@font-face {
  font-family: "Smorgasbord";
  src: url("../fonts/Smorgasbord-Edited.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2a1c12;
  --ink-soft: #3d2a1c;
  --cream: #f6ead4;
  --parchment: #f3e2c4;
  --parchment-deep: #e7d3aa;
  --brass: #e6c56a;
  --brass-light: #fff1c4;
  --brass-mid: #c79a3e;
  --brass-dark: #6e5316;
  --leather: #5a3420;
  --leather-deep: #3a2214;
  --wood: #4a301c;
  --wood-dark: #2a1a10;
  --wax: #7c1c16;
  --display: "Smorgasbord", Charter, "Bitstream Charter", Georgia, serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --mast: 5.4rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mast) + 0.5rem);
  -webkit-text-size-adjust: 100%;
}

html {
  background-color: #3a2618;
}

body {
  position: relative;
  z-index: 0;
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #3a2618;
  background-image:
    radial-gradient(ellipse at 18% 22%, rgba(20, 10, 4, 0.28) 0 14px, rgba(90, 55, 25, 0.12) 18px, transparent 28px),
    radial-gradient(ellipse at 72% 68%, rgba(16, 8, 4, 0.32) 0 16px, rgba(80, 48, 22, 0.1) 20px, transparent 32px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0 3px, rgba(255, 214, 160, 0.06) 4px, transparent 14px, transparent 78px, rgba(0, 0, 0, 0.16) 112px, rgba(255, 200, 140, 0.05) 128px, transparent 140px, rgba(0, 0, 0, 0.5) 168px),
    repeating-linear-gradient(
      90deg,
      #5a3c28 0px,
      #6b4a32 28px,
      #4a3120 74px,
      #3a2416 108px,
      #6d4c34 128px,
      #2e1d12 158px,
      #4e3422 168px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255, 230, 190, 0.045) 0px,
      rgba(0, 0, 0, 0.05) 1px,
      transparent 3px
    );
  background-size: 900px 1100px, 900px 1100px, 168px 100%, 168px 100%, auto;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p {
  margin-top: 0;
}

a {
  color: inherit;
}

::selection {
  background: #8e2420;
  color: #f8e7c8;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.55rem 0.9rem;
  background: var(--brass-light);
  color: var(--ink);
  font-family: var(--serif);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 3px;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  background:
    linear-gradient(180deg, rgba(255, 220, 170, 0.18), transparent 28%),
    linear-gradient(180deg, #6b4630 0%, #4a2e1c 22%, #3a2416 78%, #24160e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 170, 0.38),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 10px 18px rgba(0, 0, 0, 0.38);
}

.mast::after {
  content: "";
  display: block;
  height: 12px;
  background:
    radial-gradient(circle at 12px 5px, #fff1c4 0 2px, #d4b15e 2.6px, #6a5018 5px, transparent 6px) 0 0 / 32px 12px repeat-x;
  opacity: 0.85;
}

.mast-inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--mast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0.7rem 0 0.35rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1;
  text-decoration: none;
  color: #f6e2a6;
  text-shadow:
    0 1px 0 #fff6d4,
    0 2px 0 #6a5014,
    0 4px 6px rgba(0, 0, 0, 0.45);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.plate {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  color: #2c1c0c;
  background: linear-gradient(180deg, #fff6d6 0%, #e8cb78 36%, #c4983c 64%, #8d6822 100%);
  border: 1px solid #5c4314;
  border-radius: 5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 0 rgba(90, 58, 8, 0.42),
    0 3px 0 #3a2410,
    0 5px 7px rgba(0, 0, 0, 0.32);
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.nav .plate,
.nav a {
  padding: 0.42rem 0.85rem;
  font-size: 1rem;
  line-height: 1.2;
}

.plate:hover {
  background: linear-gradient(180deg, #fff9e4 0%, #f3d98a 32%, #d2a64a 66%, #9c7729 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 0 rgba(110, 74, 12, 0.32),
    0 3px 0 #4a3014,
    0 7px 10px rgba(0, 0, 0, 0.26);
}

.plate:active {
  background: linear-gradient(180deg, #c9a04a 0%, #a07c2c 48%, #7a5a1c 100%);
  box-shadow:
    inset 0 3px 5px rgba(50, 32, 0, 0.5),
    0 0 0 #3a2410;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 6.15rem);
  min-height: calc(100dvh - 6.15rem);
  padding: 2.75rem 6vw 3.25rem;
  background-color: #1a100c;
  background-image:
    linear-gradient(90deg, rgba(20, 12, 6, 0.58) 0%, rgba(20, 12, 6, 0.28) 34%, rgba(12, 8, 4, 0.04) 58%, rgba(12, 8, 4, 0.16) 100%),
    linear-gradient(180deg, rgba(10, 6, 3, 0.28), transparent 18% 84%, rgba(36, 24, 16, 0.28)),
    url("../images/drives.jpeg");
  background-size: cover, cover, cover;
  background-position: center, center, 70% center;
  background-repeat: no-repeat;
}

.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 28% 48%, transparent 20%, rgba(10, 6, 3, 0.22) 78%),
    linear-gradient(180deg, transparent 86%, #3a2618);
}

.sign {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.sign-board {
  position: relative;
  padding: 2.3rem 2.4rem 1.8rem;
  border-radius: 12px;
  border: 1px solid #1a0e08;
  border-top-color: #b08454;
  border-left-color: #8d6240;
  background-color: #4e321f;
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(255, 220, 170, 0.05) 0px,
      rgba(0, 0, 0, 0.045) 2px,
      transparent 5px
    ),
    linear-gradient(180deg, #8a5c38 0%, #6a4428 8%, #533620 18%, #3f2818 78%, #2a1a10 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 220, 170, 0.28),
    inset 0 -8px 14px rgba(0, 0, 0, 0.35),
    inset 0 0 0 10px rgba(36, 20, 10, 0.28),
    0 1px 0 rgba(255, 210, 150, 0.25),
    0 18px 28px rgba(0, 0, 0, 0.5);
}

.sign-board::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 8px;
  border: 2px solid rgba(24, 12, 6, 0.45);
  box-shadow: 0 1px 0 rgba(255, 214, 160, 0.18);
  pointer-events: none;
}

.sign h1,
.tagline,
.lede,
.rule {
  position: relative;
  z-index: 1;
}

.sign h1 {
  margin: 0 0 0.35rem;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.5vw, 4.55rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: #f8e7b0;
  text-shadow:
    0 1px 0 #fff8dc,
    0 -1px 0 #6a5012,
    0 3px 0 #4e390e,
    0 7px 10px rgba(0, 0, 0, 0.4);
  text-wrap: balance;
}

.rule {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(240px, 64%);
  margin: 0.35rem auto 0.85rem;
  color: #f0d48a;
}

.rule i {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e8cc86, transparent);
  box-shadow: 0 1px 0 rgba(70, 42, 8, 0.55);
}

.rule svg {
  filter: drop-shadow(0 1px 0 rgba(255, 244, 210, 0.7)) drop-shadow(0 2px 0 #5c4310);
}

.tagline {
  margin: 0 0 1.15rem;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 400;
  line-height: 1.25;
  color: #f3dc9a;
  text-shadow:
    0 1px 0 rgba(255, 246, 214, 0.75),
    0 2px 0 #5c4312,
    0 4px 6px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.lede {
  margin: 0 auto;
  max-width: 40rem;
  padding: 0.9rem 1.15rem;
  text-align: center;
  text-wrap: balance;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.45), transparent 55%),
    linear-gradient(180deg, #f7edd8, #e8d4ae);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 0 14px rgba(110, 70, 20, 0.12),
    0 1px 0 rgba(255, 220, 170, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.25);
}

.screw {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff6d2 0 18%, #e4c56e 42%, #8a6820 74%, #3a2a10 100%);
  box-shadow:
    inset 0 -1px 1px rgba(0, 0, 0, 0.45),
    0 1px 1px rgba(0, 0, 0, 0.55);
}

.screw::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 7px;
  height: 1.5px;
  border-radius: 1px;
  background: rgba(42, 24, 6, 0.7);
  transform: rotate(28deg);
}

.screw-tl { top: 12px; left: 12px; }
.screw-tr { top: 12px; right: 12px; }
.screw-bl { bottom: 12px; left: 12px; }
.screw-br { bottom: 12px; right: 12px; }

.band {
  padding: 3.4rem 0 0.6rem;
  scroll-margin-top: calc(var(--mast) + 0.6rem);
}

.wrap {
  width: min(1040px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.nameplate {
  position: relative;
  z-index: 1;
  display: table;
  margin: 0 auto -1.15rem;
  padding: 0.35rem 1.7rem 0.45rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 400;
  line-height: 1.05;
  color: #3a2810;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45), 0 -1px 0 rgba(90, 60, 8, 0.28);
  background: linear-gradient(180deg, #fff4cc 0%, #e6c66a 42%, #b58832 100%);
  border: 1px solid #6a5016;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -3px 0 rgba(90, 60, 8, 0.35),
    0 4px 0 #2a180e,
    0 8px 12px rgba(0, 0, 0, 0.32);
}

.shelf {
  padding: 2.6rem 1.15rem 1.7rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 214, 160, 0.14), transparent 18%),
    linear-gradient(180deg, #6d4932 0%, #4a3020 28%, #2c1b12 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 214, 160, 0.28),
    inset 0 -14px 18px rgba(0, 0, 0, 0.35),
    0 16px 22px rgba(0, 0, 0, 0.36);
}

.jobs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.55rem 1.15rem;
}

.job {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 210px;
  padding: 1.55rem 1rem 1.35rem;
  text-align: center;
  border-radius: 12px;
  background-color: #4a2c1c;
  background-image:
    radial-gradient(circle at 18px 18px, #fff1c4 0 2px, #d4b15e 3px, #6a5018 6.5px, transparent 7.5px),
    radial-gradient(circle at calc(100% - 18px) 18px, #fff1c4 0 2px, #d4b15e 3px, #6a5018 6.5px, transparent 7.5px),
    radial-gradient(circle at 18px calc(100% - 18px), #fff1c4 0 2px, #d4b15e 3px, #6a5018 6.5px, transparent 7.5px),
    radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), #fff1c4 0 2px, #d4b15e 3px, #6a5018 6.5px, transparent 7.5px),
    radial-gradient(ellipse at 30% 0%, rgba(255, 214, 160, 0.2), transparent 52%),
    linear-gradient(165deg, #7a4e30 0%, #5a3420 40%, #3c2416 74%, #64402c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 214, 160, 0.28),
    inset 0 -10px 14px rgba(0, 0, 0, 0.28),
    0 1px 0 #1a0c06,
    0 7px 0 #24150d,
    0 12px 14px rgba(0, 0, 0, 0.32);
}

.job::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px dashed rgba(232, 200, 148, 0.55);
  border-radius: 7px;
  pointer-events: none;
}

.medallion {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  color: #3a280c;
  background:
    radial-gradient(circle at 34% 30%, #fff8dc 0 12%, #f0d48a 28%, #c4983c 58%, #7a5c1c 82%, #f3e0a4 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.75),
    inset 0 -5px 6px rgba(80, 50, 0, 0.4),
    0 3px 0 #2a160c,
    0 5px 7px rgba(0, 0, 0, 0.3);
}

.medallion svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.job h3 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f6e6c8;
  text-shadow:
    0 1px 0 rgba(255, 230, 180, 0.22),
    0 -1px 0 rgba(0, 0, 0, 0.55),
    0 2px 2px rgba(0, 0, 0, 0.3);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.6rem;
  align-items: stretch;
}

.note,
.letter {
  position: relative;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(150, 90, 40, 0.14), transparent 42%),
    radial-gradient(ellipse at 100% 100%, rgba(120, 70, 30, 0.16), transparent 46%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.5), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(90, 50, 20, 0.018) 4px);
  box-shadow:
    inset 0 0 40px rgba(120, 75, 25, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 22px rgba(0, 0, 0, 0.38),
    0 2px 0 rgba(0, 0, 0, 0.2);
}

.note {
  padding: 2.3rem 2rem 1.8rem;
  border-radius: 3px 4px 3px 2px;
  transform: rotate(-0.35deg);
}

.note h2,
.letter h2 {
  margin: 0 0 0.8rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
}

.note h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #2c1a10;
}

.note h2::after,
.letter h2::after {
  content: "";
  display: block;
  width: 8.5rem;
  margin: 0.7rem auto 0;
  border-top: 2px solid currentColor;
  border-bottom: 1px solid currentColor;
  height: 5px;
}

.note p,
.letter p {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.plate-lg {
  padding: 0.85rem 1rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.35;
  border-radius: 6px;
}

.frame {
  margin: 0;
  padding: 14px;
  border-radius: 3px;
  background:
    linear-gradient(155deg, #c49a62 0%, #7a5234 18%, #3e2818 52%, #8a5c38 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 180, 0.5),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 2px 0 #1a0d08,
    0 16px 22px rgba(0, 0, 0, 0.4);
}

.mat {
  padding: 10px;
  background: linear-gradient(180deg, #f6edd8, #e4d0a4);
  box-shadow:
    inset 0 0 0 1px rgba(90, 60, 20, 0.35),
    0 0 0 1px #1a0e08;
}

.mat img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.14) saturate(0.92) contrast(1.04);
}

.band-about {
  padding-top: 3.2rem;
  padding-bottom: 3.4rem;
}

.letter {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 2.5rem 2.6rem 1.7rem;
  border-radius: 2px;
  transform: rotate(0.3deg);
}

.letter h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--wax);
}

.letter p {
  font-size: 1.28rem;
}

.letter-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.2rem;
}

.seal {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #5c1210;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 190, 170, 0.45), transparent 28%),
    radial-gradient(circle at 50% 45%, #c4473a 0%, #8e1e18 58%, #4e0e0c 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 200, 180, 0.35),
    inset 0 -8px 10px rgba(0, 0, 0, 0.35),
    0 6px 8px rgba(0, 0, 0, 0.32);
  transform: rotate(8deg);
}

.seal svg {
  filter: drop-shadow(0 1px 0 rgba(255, 180, 160, 0.35));
}

.tack {
  position: absolute;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff6d2, #e0c06a 40%, #7a5a18 75%, #3a2a10);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.35), inset 0 -1px 1px rgba(0, 0, 0, 0.35);
}

.tack-l { left: 14px; }
.tack-r { right: 14px; }

.footer {
  margin-top: 0.4rem;
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 214, 160, 0.12), transparent 30%),
    linear-gradient(180deg, #3a2416, #24150e 45%, #160d08);
  box-shadow: inset 0 2px 0 rgba(255, 210, 160, 0.16);
}

.footer p {
  margin: 0;
  color: #e7d3b0;
  font-size: 1.05rem;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.45rem;
  color: #f3dc9a;
  text-shadow: 0 1px 0 #fff3cc, 0 2px 0 #5a4010;
}

.footer-dot {
  margin: 0 0.35rem;
}

@media (max-width: 860px) {
  .jobs {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .note,
  .letter {
    transform: none;
  }
}

@media (max-width: 680px) {
  :root {
    --mast: 8.25rem;
  }

  .mast-inner {
    min-height: 0;
    justify-content: center;
    text-align: center;
    padding-top: 0.85rem;
  }

  .nav {
    justify-content: center;
  }

  .hero {
    min-height: calc(100svh - var(--mast));
    padding: 2.2rem 1rem 2.6rem;
    background-position: center, center, 78% center;
  }

  .sign-board {
    padding: 1.8rem 1.15rem 1.35rem;
  }

  .jobs {
    grid-template-columns: 1fr;
  }

  .note,
  .letter {
    padding: 2.2rem 1.25rem 1.5rem;
  }

  .plate-lg {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .plate {
    transition: none;
  }
}

@media (forced-colors: active) {
  .plate,
  .job,
  .sign-board,
  .note,
  .letter,
  .frame,
  .nameplate {
    border: 1px solid CanvasText;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .mast,
  .hero-veil,
  .screw,
  .tack,
  .seal {
    display: none;
  }

  .hero,
  .sign-board,
  .job,
  .note,
  .letter,
  .shelf,
  .nameplate {
    background: white;
    color: black;
    box-shadow: none;
  }

  .sign h1,
  .tagline,
  .job h3,
  .footer-brand {
    color: black;
    text-shadow: none;
  }
}
