/* The Fine Print Market — shared tokens + components for the proposal pages.
   Fonts are free stand-ins for the brief's licensed faces:
   Romantic (Adele Moon) → Fraunces · Hand (Morello) → Beth Ellen
   Mischief (Augustine Typewriter / Vintage Goods) → Special Elite · Print (CS Sione) → Newsreader */

:root {
  /* Foundation */
  --paper: #F3EFE7;
  --linen: #F5F1EB;
  --ink: #30302D;
  /* Color world */
  --blue: #A9B9C4;
  --sage: #9BA58A;
  --rose: #D7A7A4;
  --butter: #E6CF83;
  --lavender: #B7AEC3;
  /* Punctuation */
  --burgundy: #783F47;
  --cherry: #5A0501;
  --denim: #3F4C5C;
  --marigold: #C69A54;

  --ink-soft: color-mix(in srgb, var(--ink) 74%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 16%, transparent);
  --sheet: color-mix(in srgb, var(--linen) 55%, white);

  --romantic: "Fraunces", Georgia, serif;
  --hand: "Beth Ellen", "Bradley Hand", cursive;
  --mischief: "Special Elite", "Courier New", monospace;
  --print: "Newsreader", Georgia, serif;

  --shadow-paper: 0 1px 1px rgb(48 48 45 / .08), 0 12px 24px -14px rgb(48 48 45 / .38);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .19 0 0 0 0 .19 0 0 0 0 .18 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --gutter: clamp(1rem, 4vw, 3.5rem);
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font-family: var(--print);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

svg { display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px dashed var(--denim);
  outline-offset: 4px;
  border-radius: 2px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--romantic);
  font-weight: 380;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.012em;
  line-height: 1;
}

/* ---------- Labels: typewritten, the recurring navigation device ---------- */
.label {
  margin: 0;
  font-family: var(--mischief);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ---------- Plaque: a vintage label with notched corners, used for every call to action ---------- */
.plaque {
  --plaque-bg: var(--ink);
  --plaque-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  width: fit-content;
  padding: 1.05em 1.7em;
  background: var(--plaque-bg);
  color: var(--plaque-fg);
  font-family: var(--mischief);
  font-size: .8rem;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-mask:
    radial-gradient(circle 7px at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat,
    radial-gradient(circle 7px at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat,
    radial-gradient(circle 7px at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat,
    radial-gradient(circle 7px at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat;
  mask:
    radial-gradient(circle 7px at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat,
    radial-gradient(circle 7px at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat,
    radial-gradient(circle 7px at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat,
    radial-gradient(circle 7px at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat;
  transition: background-color .25s ease;
}
.plaque::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid color-mix(in srgb, var(--plaque-fg) 45%, transparent);
  pointer-events: none;
}
.plaque .arrow { transition: translate .25s ease; }
.plaque:hover { --plaque-bg: var(--burgundy); }
.plaque:hover .arrow { translate: .25em 0; }
.plaque:focus-visible { outline-offset: 5px; }

/* ---------- Wordmark: a composed lockup, stand-in until the real logo ---------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .5em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .wm-small {
  font-family: var(--mischief);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.wordmark .wm-big {
  font-family: var(--romantic);
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.01em;
  line-height: 1;
}

.skip {
  position: absolute;
  left: -999px;
  top: .75rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mischief);
  font-size: .8rem;
}
.skip:focus { left: .75rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
