/* Vague Media, LLC — vaguespac.es
   Ink on white, mono index kickers, grotesk headlines at regular weight,
   a narrow digit column. Colour comes only from the sunset animation. */

:root {
  --ink: #282633;
  --ink-soft: #6f6d78;   /* 5.1:1 on white — AA for small text */
  --rule: #b0afb2;       /* decorative only */
  --paper: #ffffff;
  --red: #cb0613;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", Courier, monospace;
  --ease: cubic-bezier(0.16, 0.68, 0.43, 0.99);
  --gutter: 1em;
}
@media (min-width: 40.0625em) { :root { --gutter: 1.5em; } }
@media (min-width: 60.0625em) { :root { --gutter: 3em; } }
@media (min-width: 80.0625em) { :root { --gutter: 5em; } }
@media (min-width: 100.0625em) { :root { --gutter: calc(50% - 40em); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.5; overflow-x: hidden;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--ink-soft); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; margin: 0; }

.skip {
  position: absolute; left: 1em; top: -3em; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.5em 1em; text-decoration: none;
}
.skip:focus { top: 1em; }

/* Kickers */
.kicker, .digit {
  font-family: var(--mono); font-size: 0.75rem; line-height: 1;
  letter-spacing: 0.075em; text-transform: uppercase; font-weight: 400; margin: 0;
}
.kicker { color: var(--ink-soft); margin-bottom: 1rem; }
.digit { color: var(--ink); }

/* Grid */
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.row { display: grid; grid-template-columns: 1fr; gap: 0.75rem 0; }
.row > * { min-width: 0; }
@media (min-width: 40.0625em) {
  .row { grid-template-columns: 8.33333% 1fr; gap: 0; }
  .row > .digit { padding-top: 0.4em; }
}

/* Hero: a full-bleed ink plate pinned behind the first screen. The headline starts low and rises over
   the plate as you scroll; the plate itself drifts up more slowly for depth. */
.hero { position: relative; padding: 0; }
.hero__bg {
  position: sticky; top: 0; z-index: 0;
  height: 100vh;
  /* clip the sides only (no scroll container): the plate is taller than the screen and its ragged
     bottom is allowed to run on below the hero, under the top of the contact section */
  overflow-x: clip; overflow-y: visible;
  display: flex; justify-content: center; align-items: flex-start;
  pointer-events: none;
}
/* Everything after the hero paints above the plate's overrun. */
.section, .footer { position: relative; z-index: 1; }
#ink {
  font-family: var(--mono); white-space: pre; margin: 0; display: block;
  font-size: 5px; line-height: 1.2; font-weight: 400; padding: 0; color: #c95530;
  opacity: 1; will-change: transform;
  transform: translateY(calc(var(--ink-shift, 0px) + var(--drift, 0px)));
}
/* The text block is at least 96vh tall so the plate stays pinned while the title climbs ~60vh. */
.hero__text { position: relative; z-index: 1; margin-top: -36vh; margin-top: -36svh; min-height: 56vh; min-height: 56svh; padding-bottom: 2em; }
@media (min-width: 60.0625em) { .hero__text { margin-top: -40vh; margin-top: -40svh; min-height: 56vh; min-height: 56svh; } }
@media (max-width: 60em) { #ink { opacity: 0.85; } }
.hero__title {
  font-size: clamp(1.875rem, 1rem + 3.4vw, 3.5rem); line-height: 1.15;
  text-wrap: balance; max-width: 15em;
}
/* White type on black bars, one bar per line. */
.hero__title span {
  display: inline; background: #000; color: #fff;
  padding: 0.08em 0.3em; margin-left: -0.3em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* The description is hidden while the plate is busy and fades in as it thins (JS sets --lede). */
.hero__lede {
  font-size: 1.0625rem; line-height: 1.4; max-width: 32em; margin: 1.5em 0 0;
  opacity: var(--lede, 1); transition: opacity 200ms linear;
}
@media (min-width: 60.0625em) { .hero__lede { font-size: 1.25rem; margin-top: 1.75em; } }

/* Sections */
.section { padding-top: 3em; padding-bottom: 3em; }
@media (min-width: 40.0625em) { .section { padding-top: 4.5em; padding-bottom: 4.5em; } }
@media (min-width: 60.0625em) { .section { padding-top: 6em; padding-bottom: 6em; } }
.section__title {
  font-size: clamp(1.75rem, 1rem + 2.5vw, 2.625rem); line-height: 1.125;
  margin: 0 0 1.5rem; max-width: 18em; text-wrap: balance;
}
.lede { font-size: 1.125rem; line-height: 1.4; max-width: 36em; margin: 0; }
@media (min-width: 60.0625em) { .lede { font-size: 1.25rem; } }

/* Form */
.form-col { max-width: 40em; }
.form { margin-top: 2em; display: grid; gap: 1.25em; }
.field { display: grid; gap: 0.4em; }
.field label {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.075em; text-transform: uppercase; color: var(--ink);
}
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--ink); border-radius: 0; padding: 0.7em 0.8em; width: 100%; min-height: 44px;
}
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-width: 2px; border-color: var(--red); }
.field__err { margin: 0; font-size: 0.875rem; color: #a3050f; }
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.6em 1.25em;
  border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; width: fit-content;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.075em; text-transform: uppercase;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.btn:hover { background: #fff; color: var(--ink); }
.notice { margin: 1.5em 0 0; padding: 0.9em 1em; border: 1px solid var(--ink); }
.notice--error { border-color: var(--red); }

/* Fine print */
.section--fine { padding-top: 0; }
.fine { max-width: 44em; font-size: 0.9375rem; line-height: 1.55; }
.fine p { margin: 0 0 0.9em; }
.fine p:first-of-type { padding-top: 1em; border-top: 1px solid var(--rule); }

/* Footer */
.footer {
  padding: 2em var(--gutter) 2.5em; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}


/* Footer link list (shared by all pages) */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1em 2em; }
.footer__biz { flex: 1 1 100%; display: grid; gap: 1em 3em; line-height: 1.6; }
.footer__biz p { margin: 0; }
.footer__biz strong { font-weight: 400; }
.footer__copy { color: var(--ink-soft); }
@media (min-width: 48em) { .footer__biz { grid-template-columns: auto auto; justify-content: start; } }
.footer__list { display: flex; flex-wrap: wrap; gap: 1.25em; list-style: none; margin: 0; padding: 0; }
.footer a { text-decoration: none; display: inline-block; padding: 0.5em 0; }
.footer a:hover { text-decoration: underline; }

/* Legal pages */
.doc { padding-top: 4em; padding-bottom: 4em; max-width: 46em; }
@media (min-width: 60.0625em) { .doc { padding-top: 6em; padding-bottom: 6em; } }
.doc .kicker a { text-decoration: none; color: var(--ink-soft); }
.doc .kicker a:hover { color: var(--ink); text-decoration: underline; }
.doc h1 { font-size: clamp(1.75rem, 1rem + 2.5vw, 2.625rem); line-height: 1.125; margin-bottom: 0.5em; }
.doc h2 { font-size: 1.25rem; font-weight: 500; line-height: 1.25; margin: 2.25em 0 0.6em; }
.doc p, .doc li { line-height: 1.55; }
.doc p { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.5em; }
.doc li > p:first-child { margin-top: 0.4em; }
.doc .meta { color: var(--ink-soft); margin-bottom: 2.5em; }

/* About: the definition, set like a dictionary entry */
.definition h1 { font-size: clamp(1.75rem, 1rem + 2.5vw, 2.625rem); line-height: 1.15; margin-bottom: 0.35em; }
.definition h1 em { font-style: italic; font-weight: 500; }
.definition__sound { color: var(--ink-soft); font-size: 0.6em; font-weight: 400; white-space: nowrap; }
.definition__pos { font-style: italic; color: var(--ink-soft); margin: 0 0 0.75em; }
.definition__sense { font-size: 1.125rem; line-height: 1.45; max-width: 34em; margin: 0 0 0.9em; padding-left: 1.25em; }
@media (min-width: 60.0625em) { .definition__sense { font-size: 1.25rem; } }
