/*
  The public marketing site (marceline.studio). Plain CSS, no build step, no framework.

  The tokens below are lifted from the product's design system
  (`frontend/customer/app/globals.css`) so the site and the app read as one company. They are
  copied rather than imported: that file is a Tailwind v4 `@theme` block and pulling Tailwind into
  a six-page brochure would be the waste this site is meant not to be. When a token changes there,
  change it here — `website/check.py` cannot see a drift, only a human can.

  Rules this file keeps:
  - **No third-party request, ever.** Every `url()` here is a path on our own origin. The three
    families are the same self-hosted woff2 files the app serves (`assets/fonts/`, SIL OFL 1.1,
    notice in `assets/fonts/LICENSES.txt`). Google Fonts is a third-party request on every page
    load and it sees every visitor; a site whose selling point is "we store nothing about you"
    cannot make one.
  - **Dark follows the reader.** `prefers-color-scheme`, guarded by `:not([data-theme="light"])`
    exactly as the app does, so an explicit choice has somewhere to go if one is ever offered.
  - **No images.** The only pictures on this site are inline SVG icons drawn from these same
    tokens: one stroke width, `currentColor`, sized in em, `aria-hidden` with the text carrying the
    meaning. They theme with the page, cost no request and obey no lazy-loading rule. An icon that
    would need an `<img>`, a sprite file or an icon font does not get drawn.
*/

/* ---------------------------------------------------------------- typefaces */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.c10e9d3f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-ext.94580055.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin.6ecf1043.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-ext.a41a0bd4.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.ef5e5368.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.ad3ac043.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------- tokens */

:root {
  color-scheme: light dark;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --surface-000: #f6f2f1;
  --surface-100: #ffffff;
  --surface-200: #ede8e7;
  --surface-inset: #faf7f6;

  --hairline: #ded6d5;
  --hairline-strong: #c8bdbc;

  --ink: #171315;
  --ink-muted: #5c5154;
  /* The app's --color-ink-subtle (#665a5c) is 5.9:1 on --surface-100 but only 4.4:1 on the
     --surface-200 panels this site uses for quiet blocks. Muted is used there instead; subtle is
     kept for text that only ever sits on white. */
  --ink-subtle: #665a5c;

  --brand: #b0111f;
  --brand-hover: #8e0b17;
  --brand-ink: #a1101d;
  --brand-quiet: #fbe9eb;
  --on-brand: #fff6f7;

  /* Violet is machine-made: a fingerprint, an automated step. Red is ours. */
  --accent: #5c34a8;
  --accent-quiet: #f1ebfb;

  --positive-ink: #0a6456;

  --focus: #b0111f;
  --selection: #b0111f26;

  --shadow-sm: 0 1px 2px #17131514;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --measure: 34rem;
  --page: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface-000: #080607;
    --surface-100: #100d0f;
    --surface-200: #191517;
    --surface-inset: #0c0a0b;

    --hairline: #2a2326;
    --hairline-strong: #3b3236;

    --ink: #f5f0f1;
    --ink-muted: #b6a9ad;
    --ink-subtle: #968a8d;

    --brand: #d21f2e;
    --brand-hover: #d8212f;
    --brand-ink: #f2596a;
    --brand-quiet: #2a1013;

    --accent: #a583dd;
    --accent-quiet: #231b33;

    --positive-ink: #3fcfb5;

    --focus: #f2596a;
    --selection: #f2596a33;

    --shadow-sm: 0 1px 2px #00000080;
  }
}

:root[data-theme="dark"] {
  --surface-000: #080607;
  --surface-100: #100d0f;
  --surface-200: #191517;
  --surface-inset: #0c0a0b;
  --hairline: #2a2326;
  --hairline-strong: #3b3236;
  --ink: #f5f0f1;
  --ink-muted: #b6a9ad;
  --ink-subtle: #968a8d;
  --brand: #d21f2e;
  --brand-hover: #d8212f;
  --brand-ink: #f2596a;
  --brand-quiet: #2a1013;
  --accent: #a583dd;
  --accent-quiet: #231b33;
  --positive-ink: #3fcfb5;
  --focus: #f2596a;
  --selection: #f2596a33;
  --shadow-sm: 0 1px 2px #00000080;
}

/* --------------------------------------------------------------- foundation */

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

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

body {
  margin: 0;
  background-color: var(--surface-000);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 28px;
  text-rendering: optimizeLegibility;
}

::selection {
  background-color: var(--selection);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

a {
  color: var(--brand-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1.1rem;
  max-width: var(--measure);
}

ul,
ol {
  max-width: var(--measure);
}

li {
  margin-bottom: 0.45rem;
}

strong {
  font-weight: 600;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.01em;
}

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-100);
  color: var(--ink);
  padding: 0.7rem 1rem;
  z-index: 10;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* -------------------------------------------------------------- page frame */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-100);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.015em;
}

.wordmark:hover {
  color: var(--brand-ink);
}

.wordmark .dot {
  color: var(--brand);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-left: auto;
  align-items: baseline;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.93rem;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--hairline-strong);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.lang-switch a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch .current {
  color: var(--ink);
  font-weight: 700;
}

main {
  display: block;
}

section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--hairline);
}

section:first-of-type {
  border-top: 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.overline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
  display: block;
}

.lead {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 40rem;
}

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

.hero {
  padding: 6rem 0 4.5rem;
  background:
    radial-gradient(60rem 30rem at 12% -10%, var(--brand-quiet), transparent 65%),
    radial-gradient(48rem 26rem at 92% 0%, var(--accent-quiet), transparent 60%);
}

.hero h1 {
  max-width: 21ch;
}

.hero .lead {
  margin-top: 1.75rem;
  font-size: 1.45rem;
  line-height: 1.5;
  max-width: 34rem;
  color: var(--ink);
}

/* ------------------------------------------------------------------ blocks */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  background: var(--surface-100);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h2,
.card h3 {
  margin-bottom: 0.6rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--ink-muted);
  max-width: none;
}

.note {
  border-left: 3px solid var(--brand);
  background: var(--brand-quiet);
  padding: 1.1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 44rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.note .overline {
  color: var(--brand-ink);
}

/* Icons. Hand-drawn, one stroke width, `currentColor`, sized in em so an icon follows the text it
   sits beside. They carry no meaning of their own: every one is aria-hidden and the sentence next
   to it says the thing. No icon font, no sprite, no request. */
.icon {
  width: 1.4em;
  height: 1.4em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The three short statements under the hero. */
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.pillars li {
  margin: 0;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.4;
}

.pillars .icon {
  color: var(--brand-ink);
}

.card h2,
.card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* A card title is an h2 — a card is a section of the page and there is no heading above it — but
   it reads as a title in a row of them, so it takes h3's size. Same reasoning as .steps h2. */
.card h2 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.card h2 .icon,
.card h3 .icon {
  color: var(--brand-ink);
  /* Beside a display-face heading an icon at 1.4em reads as a second heading; hold it back. */
  width: 1.05em;
  height: 1.05em;
}

/* The small line that closes a page: the other door, the postal address. Quieter than the
   content above it, louder than a footnote. */
.quiet-note {
  margin-top: 2.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--hairline-strong);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Numbered steps. The counter is drawn, not an image. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: 1.75rem;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.4rem;
  margin: 0;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-100);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-ink);
}

/* The rail between the circles, drawn from the hairline token. */
.steps > li::after {
  content: "";
  position: absolute;
  left: 1.16rem;
  top: 2.65rem;
  bottom: -1.9rem;
  width: 1px;
  background: var(--hairline);
}

.steps > li:last-child::after {
  display: none;
}

/* The step titles are h2 — they sit directly under the page's h1, with no section heading
   between — but they read as a list, so they take h3's size rather than h2's. */
.steps h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 0.45rem;
}

.steps p {
  color: var(--ink-muted);
  max-width: 40rem;
}

.steps p:last-child {
  margin-bottom: 0;
}

/* A plain fact list: term on the left, statement on the right. */
.facts {
  display: grid;
  gap: 0 2rem;
  grid-template-columns: minmax(10rem, 15rem) 1fr;
  margin: 0;
}

.facts dt {
  font-weight: 600;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--hairline);
}

.facts dd {
  margin: 0;
  padding: 0.85rem 0 0.95rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-muted);
}

@media (max-width: 34rem) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facts dd {
    border-top: 0;
    padding-top: 0.15rem;
  }
}

.cta {
  display: inline-block;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.cta:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.cta-row .quiet {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.contact-line {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-line .icon {
  color: var(--brand-ink);
}

address {
  font-style: normal;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 1.6rem;
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--surface-100);
  padding: 2.5rem 0 3rem;
  margin-top: 1rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.site-footer p,
.site-footer ul {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin: 0;
}

.site-footer a {
  color: var(--ink-muted);
}

.site-footer a:hover {
  color: var(--brand-ink);
}

.footer-claim {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--positive-ink);
}

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

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }
}
