/*
 * Finishery — root site.
 *
 * Design system: LATE SHIFT (DESIGN.md / DESIGN-DARK.md). A nocturnal,
 * literary identity — forest-black canvas, parchment-cream serif type, a single
 * brass accent, and no rounded corners anywhere. Late Shift LLC is the parent
 * company in the footer, so the tools now read in the house voice.
 *
 * Late Shift is dark-native: DESIGN.md and DESIGN-DARK.md are the same palette,
 * and the spec's hard rule is "never introduce white or a light surface". There
 * is no light mode to author.
 *
 * The variable NAMES below are unchanged from the previous (white / DM Sans)
 * version on purpose — 404.html carries its own inline block that reads
 * --ink / --canvas / --hairline / --slate, and the legal pages restyle without
 * being rewritten. Only the values moved.
 *
 * Plain CSS with no build step, because these four files are uploaded by hand.
 */

:root {
  /* Surfaces — forest-black, two-tone only (canvas + the deeper band) */
  --canvas: #0d1411;
  --canvas-deep: #091009;
  --surface: #091009;
  --surface-soft: #091009;
  --hairline: #6d7669;
  --hairline-soft: #3f473d;
  --brass: #b98f3e;
  --brass-wash: rgba(185, 143, 62, 0.10);

  /* Ink — parchment ladder. --ink is the primary TEXT colour, not a dark fill. */
  --ink: #e7dfc8;
  --charcoal: #e7dfc8;
  --slate: #a3ab93;
  --steel: #a3ab93;
  --stone: #6d7669;
  --muted: #6d7669;

  /* On brass / parchment fills, content goes forest-black */
  --on-accent: #0d1411;

  /*
   * Retired: the coral identity accent (#ff5530). DESIGN.md is explicit —
   * "Don't introduce a second accent color or any bright hue — brass is the
   * only warmth." The variable is kept, pointing at brass, so any stray
   * reference degrades correctly rather than resolving to nothing.
   */
  --coral: #b98f3e;

  /* Radius — uncornered by conviction. DESIGN.md ships none (0) and full only. */
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --radius-hero: 0;
  --radius-full: 9999px;

  /* Type — the four-serif Late Shift stack */
  --font-display: "Bodoni Moda", Didot, "Bodoni MT", Georgia, serif;
  --font-body: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --font-mono: "Courier Prime", ui-monospace, "Courier New", Courier, monospace;
  --font-eyebrow: "Marcellus", Optima, Georgia, serif;

  /* Spacing — 8px base with a 6px micro-step */
  --space-xxs: 6px;
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 22px;
  --space-lg: 34px;
  --space-xl: 56px;
  --space-section: 96px;

  --measure: 68ch;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/*
 * Bodoni carries every headline at weight 500, tracking 0. A didone's contrast
 * supplies the drama, so the negative tracking the previous grotesque needed
 * would collapse its hairlines.
 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brass); text-decoration: none; }

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

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
}

/* ---- header ---- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}

header.site .wrap {
  height: 64px;
  display: flex;
  align-items: center;
}

/* wordmark — Marcellus caps, widely letterspaced */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-eyebrow);
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ink);
  min-height: 44px;
}
.brand:hover { color: var(--brass); text-decoration: none; }
.brand:hover .mark { border-color: var(--brass); color: var(--brass); }

/*
 * The badge loses its pill: "the uncornered edge is a brand conviction". A
 * sharp brass-hairline square instead, which also echoes the hero frame motif.
 */
.mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: 1px solid var(--brass);
  background: transparent;
  color: var(--brass);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  transition: border-color 0.18s ease, color 0.18s ease;
}

/* ---- hero ---- */

.hero { padding: var(--space-section) 0 var(--space-xl); }

/* eyebrow-label above the headline — brass Marcellus caps, 3px tracked */
.hero .eyebrow {
  margin: 0 0 var(--space-md);
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brass);
}

.hero h1 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem); /* up to the spec's 88px display */
  line-height: 1.0;
  letter-spacing: 0;
  font-weight: 500;
  text-wrap: balance;
}

/*
 * The italic half of the hero's roman/italic mix — a real Bodoni italic cut,
 * not a synthesised oblique. <em> carries no added emphasis semantics here
 * beyond the typographic one the spec asks for.
 */
.hero h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

/* The hero's brass hairline — the structural signature under the headline. */
.hero h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: var(--brass);
  margin-top: var(--space-lg);
}

.hero p {
  margin: var(--space-md) 0 0;
  max-width: 46ch;
  color: var(--slate);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---- tool cards ---- */

/* eyebrow-label — Marcellus caps in brass, 3px tracked */
.section-label {
  margin: 0 0 var(--space-md);
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brass);
}

.apps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 0 0 var(--space-section);
  list-style: none;
  margin: 0;
}

/* service-row / article-teaser — sharp, hairline-bounded, no shadow. */
.app {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--space-md);
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: 0;
  transition: border-color 0.18s ease;
}

.app:hover { border-color: var(--brass); }
.app.live:hover { border-color: var(--brass); }

.app h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px; /* heading-sm */
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}
.app h2 a:hover { color: var(--brass); }

.app p {
  margin: 0;
  color: var(--slate);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  flex: 1;
}

/* Sample output. The photograph is the argument on the app's own landing page;
   it does the same job here in miniature. */
.app .shot {
  display: block;
  width: 100%;
  /* A fixed height rather than aspect-ratio: deterministic before the image
     loads, so the card never reflows underneath the text. */
  height: 200px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 0;
  background: var(--surface-soft);
  margin-bottom: 4px;
}

/*
 * button-outline — the sole CTA shape in the system. DESIGN.md states the rule
 * twice ("There is no solid-fill button in the system"), so the old black pill
 * becomes a transparent field with a brass border and brass Marcellus caps, at
 * the spec's 17px 34px padding.
 */
.app .cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 15px 34px;
  border-radius: 0;
  border: 1px solid var(--brass);
  background: transparent;
  color: var(--brass);
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.3;
  transition: background-color 0.18s ease;
}
.app .cta:hover { background: var(--brass-wash); color: var(--brass); text-decoration: none; }

.tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0;
  border: 1px solid var(--hairline-soft);
  color: var(--stone);
}

/*
 * "Live" was a solid coral chip. Brass hairline plus a brass label instead —
 * the single accent, and no bright hue anywhere.
 */
.tag.live {
  color: var(--brass);
  background: transparent;
  border-color: var(--brass);
}

/* ---- long-form legal pages ---- */

.doc { padding: var(--space-xl) 0 var(--space-section); max-width: var(--measure); }

.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem); /* to the spec's 44px heading */
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 500;
  margin: 0 0 8px;
}

.doc .updated {
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1px;
  margin: 0 0 40px;
}

.doc h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline-soft);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }

.doc p, .doc li {
  color: var(--slate);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
}
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 400; }
.doc a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }

/* ---- privacy: do-not-sell control ---- */

.optout-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 15px 34px;
  border-radius: 0;
  border: 1px solid var(--brass);
  background: transparent;
  color: var(--brass);
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.optout-btn:hover { background: var(--brass-wash); color: var(--brass); }

.optout-status {
  display: inline-block;
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--steel);
}

/* ---- footer ---- */

/*
 * The deeper canvas band — the one surface variation DESIGN.md allows. It was
 * previously an --ink slab, which now resolves to parchment and would have
 * rendered a cream footer, so the colour is stated explicitly.
 */
footer.site {
  background: var(--canvas-deep);
  color: var(--muted);
  border-top: 1px solid var(--hairline-soft);
  padding: var(--space-xl) 0;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-family: var(--font-eyebrow);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--brass); text-decoration: none; }
footer.site .spacer { flex: 1; }

@media (max-width: 640px) {
  .hero { padding: var(--space-xl) 0 40px; }
  .hero p { font-size: 17px; }
  .apps { padding-bottom: var(--space-xl); }
  footer.site { padding: 48px 0; }
  footer.site .spacer { display: none; flex: none; }
  footer.site a { display: inline-flex; align-items: center; min-height: 44px; }
  .app h2 a { display: inline-flex; align-items: center; min-height: 44px; }
  .app .shot { height: 170px; }
}

/* ---- coming-soon cards: notify controls ---- */

/* Accessible label text that should not be seen. Also hides the honeypot the
   spam bots fill in. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*
 * The quieter of the two outlines: a sage hairline, so it does not compete with
 * the brass CTA for the single accent.
 */
.notify-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 15px 34px;
  border-radius: 0;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.notify-btn:hover { border-color: var(--brass); color: var(--brass); }

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* text-input — dark field, brass border, sharp corners (DESIGN.md) */
.notify-input {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--brass);
  border-radius: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px; /* 16px or iOS zooms the page on focus */
  line-height: 1.5;
}
.notify-input::placeholder { color: var(--stone); }
.notify-input:focus {
  outline: none;
  border: 2px solid var(--brass);
  padding: 10px 15px; /* keep the box the same size as the border grows */
}

.notify-submit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 15px 28px;
  border: 1px solid var(--brass);
  border-radius: 0;
  background: transparent;
  color: var(--brass);
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.notify-submit:hover { background: var(--brass-wash); }
.notify-submit:disabled {
  border-color: var(--hairline-soft);
  color: var(--stone);
  background: transparent;
  cursor: default;
}

.notify-status {
  flex-basis: 100%;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: var(--steel);
}
.notify-status:empty { display: none; }
.notify-status.is-done { color: var(--brass); }
/* Error stays legible without introducing a bright hue — a muted terracotta. */
.notify-status.is-error { color: #c25b4a; }

.apps-note {
  margin: calc(-1 * var(--space-xl)) 0 var(--space-section);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 1px;
  color: var(--stone);
}

@media (max-width: 640px) {
  .apps-note { margin: -40px 0 var(--space-xl); }
}

/* ---- the live card ---- */

/*
 * A portrait photograph letterboxed into a full-width strip crops to a
 * forehead. The live card is its own row, so it gets a two-column layout: the
 * photo sits at close to its native 3:4 beside the text, and nothing important
 * is cut off.
 */
.app.live {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.app.live .shot {
  height: 100%;
  min-height: 300px;
  object-position: center 18%;
  margin-bottom: 0;
  border-radius: 0;
}

.app-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

@media (max-width: 700px) {
  .app.live {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  /* Stacked, the photo gets a portrait-ish box rather than a letterbox. */
  .app.live .shot {
    min-height: 0;
    height: 280px;
    object-position: center 15%;
  }
}
