/* Ghostwriter Events · site tokens and base components
   S2 draft, Thu Oct 29, 2026 ([Build]). Source: brand kit colors.css + Web Spec, mirrored from the app
   (ghostwriter-events @264b62f, src/styles.css). See tokens-draft.md and APP-PARITY.md for every value's origin.
   Rules: no @import, no third-party URLs, no inline styles needed (CSP style-src 'self').
   Oxblood appears only on .is-accent (one per screen; the gate counts it). Square corners; fields 2px.
   Breakpoint: 720px, the app's phone breakpoint. */

/* ───────── Fonts: self-hosted WOFF2, latin subset, OFL (see /assets/fonts/OFL.txt).
   Same 7 files as the live holding page. ───────── */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-500-normal.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-500-italic.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-600-normal.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/eb-garamond-latin-400-normal.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/eb-garamond-latin-400-italic.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/eb-garamond-latin-600-normal.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/courier-prime-latin-400-normal.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* S7 (6.4): metric-matched fallbacks (Times New Roman / Courier New, or their Liberation twins), so the
   swap to the web fonts moves nothing. Values from the WOFF2 metrics vs the fallback's average width. */
@font-face { font-family: "Cormorant Fallback"; font-style: normal; font-weight: 500; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos");
  size-adjust: 97.33%; ascent-override: 94.94%; descent-override: 29.49%; line-gap-override: 0%; }
@font-face { font-family: "Cormorant Fallback"; font-style: italic; font-weight: 500; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"), local("Tinos Italic");
  size-adjust: 88.67%; ascent-override: 104.21%; descent-override: 32.37%; line-gap-override: 0%; }
@font-face { font-family: "Cormorant Fallback"; font-style: normal; font-weight: 600; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("Tinos Bold");
  size-adjust: 92.07%; ascent-override: 100.36%; descent-override: 31.17%; line-gap-override: 0%; }
@font-face { font-family: "EB Garamond Fallback"; font-style: normal; font-weight: 400; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos");
  size-adjust: 94.53%; ascent-override: 106.53%; descent-override: 31.52%; line-gap-override: 0%; }
@font-face { font-family: "EB Garamond Fallback"; font-style: italic; font-weight: 400; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"), local("Tinos Italic");
  size-adjust: 93.33%; ascent-override: 107.89%; descent-override: 31.93%; line-gap-override: 0%; }
@font-face { font-family: "EB Garamond Fallback"; font-style: normal; font-weight: 600; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("Tinos Bold");
  size-adjust: 95.1%; ascent-override: 105.89%; descent-override: 31.33%; line-gap-override: 0%; }
@font-face { font-family: "Courier Prime Fallback"; font-style: normal; font-weight: 400; src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("Cousine");
  size-adjust: 99.92%; ascent-override: 78.19%; descent-override: 34.21%; line-gap-override: 0%; }

/* ───────── Tokens ───────── */
:root {
  /* Color: brand kit, identical to the app (src/styles.css:10-17) */
  --paper:        #F7F4EE;  /* page background, never pure white */
  --card:         #FFFFFF;  /* cards, fields */
  --vellum:       #EAE5DC;  /* the one tint: one band per page at most */
  --ink:          #141414;  /* all primary text, logo */
  --graphite:     #5C5A57;  /* secondary text, captions, fine print (6.26:1 on paper) */
  --hairline:     #D8D3CA;  /* 1px decorative rules and card edges only, never a field's only edge */
  --rule:         var(--hairline);  /* app name, kept so shared snippets work */
  --oxblood:      #7A1420;  /* the single accent: only on .is-accent */
  --oxblood-deep: #4E0C14;  /* hover / pressed */
  --oxblood-on-ink: #C23A44; /* on ink only, text >= 24px only (3.49:1). Unused in round 1 */

  /* Color: site additions (tokens-draft §3.1, §4.1) */
  --ink-hover:    #2E2D2B;  /* app ink-button hover (styles.css:79) */
  --field-edge:   #8A8680;  /* field, chip and checkbox edges: 3.62:1 on card, 3.30:1 on paper (replaces app --rule-strong, 2.19:1) */
  --placeholder:  var(--graphite); /* 6.87:1 on card; placeholders never carry required info */
  --on-ink-muted: var(--hairline); /* secondary text on an ink band (12.36:1); graphite on ink fails */
  --selection:    var(--vellum);

  /* Type families (brand kit) */
  --font-display: "Cormorant Garamond", "Cormorant Fallback", Garamond, Georgia, serif;
  --font-body:    "EB Garamond", "EB Garamond Fallback", Garamond, Georgia, serif;
  --font-mono:    "Courier Prime", "Courier Prime Fallback", "Courier New", monospace;

  /* Type scale, desktop (phone values in the 720px query below) */
  --fs-hero:   72px;  --lh-hero: 1.02;   /* Cormorant italic 500 */
  --fs-h1:     48px;  --lh-h1:   1.02;   /* = app .portal-title */
  --fs-h2:     36px;  --lh-h2:   1.08;   /* = app .module-title */
  --fs-h3:     30px;  --lh-h3:   1.1;    /* = app .dialog-title; package names */
  --fs-h4:     24px;  --lh-h4:   1.15;   /* = app h3; step and post titles */
  --fs-dek:    21px;  --lh-dek:  1.3;    /* Cormorant italic 500, graphite; = app .portal-dek size */
  --fs-body:   18px;  --lh-body: 1.55;   /* EB Garamond, never below 18 for running copy */
  --fs-prose:  18px;  --lh-prose: 1.7;   /* journal posts, legal: = app .doc-sheet */
  --fs-small:  16px;  --lh-small: 1.5;   /* captions, fine print, errors, footer */
  --fs-hint:   16px;  --lh-hint:  1.4;
  --fs-label:  13px;  --lh-label: 1.5;   /* Courier caps */
  --fs-btn:    13px;
  --fs-price:  24px;
  --fs-input:  18px;
  --track-label: 0.2em;                  /* brand: Courier caps tracked 0.2em (labels, nav, buttons, prices) */

  /* Spacing: brand scale 8/16/32/64 (brand names), plus helpers */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --section-gap: var(--space-8);          /* brand: 64px between sections */
  --card-pad: var(--space-4);             /* brand: 32px inside cards */

  /* Layout: = app .portal-body and intake body */
  --container: 1080px;
  --container-narrow: 780px;
  --measure: 680px;
  --gutter: 32px;
  --header-h: 83px;                       /* 18 + 46 logo + 18 + 1px rule, = app .intake-top */
  --logo-h: 46px;
  --header-pad-y: 18px;

  /* Shape */
  --radius: 0;
  --radius-field: 2px;
  --border: 1px solid var(--hairline);
  --border-field: 1px solid var(--field-edge);
  --border-strong: 1px solid var(--ink);

  /* Interaction */
  --tap: 44px;                            /* minimum hit area, every width (plan 2.5) */
  --btn-h: 48px;
  --focus-ring: 2px solid var(--ink);
  --focus-offset: 2px;
  --transition: background-color .15s, color .15s, border-color .15s;

  /* Photos: brand allows B&W or soft desaturated */
  --photo-stock: grayscale(1) contrast(0.96);
  --photo-soft: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94); /* = app .washed */
}

@media (max-width: 720px) {
  :root {
    --fs-hero: 44px;
    --fs-h1: 36px;
    --fs-h2: 30px;
    --fs-h3: 26px;
    --fs-h4: 22px;
    --fs-dek: 19px;
    --fs-price: 20px;
    --section-gap: var(--space-6);
    --card-pad: var(--space-3);
    --gutter: 16px;
    --header-h: 67px;                     /* 14 + 38 + 14 + 1, = app .intake-top on phones */
    --logo-h: 38px;
    --header-pad-y: 14px;
  }
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: 0; margin: 0; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--graphite); }
::selection { background: var(--selection); }
hr, .rule { height: 1px; border: 0; background: var(--hairline); margin: 0; }

/* Type roles */
.hero-line { font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: -0.005em; text-wrap: balance; }
.dek { font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: var(--fs-dek); line-height: var(--lh-dek); color: var(--graphite); }
.prose { font-size: var(--fs-prose); line-height: var(--lh-prose); max-width: var(--measure); }
.prose p + p { margin-top: 1em; }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.muted { color: var(--graphite); }
.numeral { font-family: var(--font-display); font-weight: 600; font-variant-numeric: lining-nums; }

/* Courier labels: caps, tracked 0.2em (brand). Same tracking as the app's .label (styles.css:60-63) */
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  line-height: var(--lh-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--graphite);
}
.label--ink { color: var(--ink); }
.price {
  font-family: var(--font-mono); font-size: var(--fs-price); line-height: 1.2;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink);
}

/* ───────── Focus ───────── */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); border-radius: 0; }

/* Skip link: first focusable element on every page */
.skip-link {
  position: absolute; left: var(--space-2); top: -200px; z-index: 100;
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 0 var(--space-2);
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: var(--track-label); text-transform: uppercase; text-decoration: none;
}
.skip-link:focus, .skip-link:focus-visible { top: var(--space-1); color: var(--paper); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ───────── Containers ───────── */
.container        { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow{ width: 100%; max-width: calc(var(--container-narrow) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.measure          { max-width: var(--measure); }
.section          { padding-block: var(--section-gap); }
.section + .section--ruled { border-top: var(--border); }
.band-vellum      { background: var(--vellum); }   /* at most one per page */

/* ───────── Buttons ─────────
   .btn-primary = the oxblood action (app: .btn-accent). Always rendered as class="btn btn-primary is-accent".
   .btn-ink     = solid ink (app: .btn-primary).   .btn-secondary = ink outline (app: same name). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: var(--btn-h); padding: 14px 28px;
  font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-btn); line-height: 1.2;
  letter-spacing: var(--track-label); text-transform: uppercase; text-align: center; text-decoration: none;
  color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--oxblood); color: var(--paper); border-color: var(--oxblood); }
.btn-primary:hover, .btn-primary:active { background: var(--oxblood-deep); border-color: var(--oxblood-deep); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover, .btn-ink:active { background: var(--ink-hover); border-color: var(--ink-hover); color: var(--paper); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--vellum); color: var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--vellum); border-color: var(--vellum); color: var(--graphite); cursor: not-allowed; }
.btn-block { width: 100%; }
/* Second line inside a button, e.g. "(en inglés)" under the ES intake CTA */
.btn .btn-note { display: block; font-size: 12px; letter-spacing: 0.05em; text-transform: none; }
.btn--stacked { flex-direction: column; gap: 2px; }

/* Text-weight action in Courier (app .btn-link, styles.css:86-88) */
.btn-link {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0;
  font-family: var(--font-mono); font-size: var(--fs-btn); line-height: 1.2;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.btn-link > span { padding: 6px 0 2px; border-bottom: 1px solid var(--field-edge); }
.btn-link:hover { color: var(--ink); }
.btn-link:hover > span { border-bottom-color: var(--ink); }
.btn-link:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }

/* The one oxblood element per screen. Must be on exactly one element per viewport section
   (gate: <= 1 per interior page, <= 2 on Home). On a text link it colors the link only. */
a.is-accent:not(.btn) { color: var(--oxblood); }
a.is-accent:not(.btn):hover { color: var(--oxblood-deep); }
.full-stop.is-accent { color: var(--oxblood); }

/* ───────── Fields (app .input / .field-label / .field-hint / .error-text) ───────── */
.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field + .field { margin-top: var(--space-3); }
.field-label {
  font-family: var(--font-mono); font-size: var(--fs-label); line-height: var(--lh-label);
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink);
}
.field-label .opt { color: var(--graphite); }              /* "(OPTIONAL)" */
.field-label .req { color: var(--graphite); }              /* " *", aria-hidden; sr text says "(required)" */
.field-hint { font-family: var(--font-body); font-style: italic; font-size: var(--fs-hint); line-height: var(--lh-hint); color: var(--graphite); }
.input {
  width: 100%; min-height: var(--btn-h); padding: 11px 14px;
  font: inherit; font-family: var(--font-body); font-size: var(--fs-input); line-height: 1.35;
  color: var(--ink); caret-color: var(--ink); background: var(--card);
  border: var(--border-field); border-radius: var(--radius-field);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--placeholder); font-style: italic; opacity: 1; }
.input:hover { border-color: var(--graphite); }
.input:focus-visible { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 0; }
textarea.input { min-height: 144px; resize: vertical; }
input[type="date"].input { min-height: var(--btn-h); }
.input[aria-invalid="true"] { border-color: var(--ink); border-left-width: 3px; }
.field-error {                                            /* app .error-text, per field */
  font-family: var(--font-body); font-size: var(--fs-small); line-height: 1.45; color: var(--ink);
  border-left: 2px solid var(--ink); padding-left: 12px;
}
.form-alert {                                             /* error summary at the top of the form, role="alert", focus moves here */
  background: var(--card); border: var(--border-strong); border-left-width: 3px;
  padding: var(--space-2) var(--space-3); font-size: var(--fs-small); line-height: 1.5;
}
.form-alert ul { margin: var(--space-1) 0 0; padding-left: 1.2em; }

/* Checkbox row: the whole label is the hit area (>= 44px) */
.check { display: flex; align-items: flex-start; gap: 12px; min-height: var(--tap); padding: 10px 0; cursor: pointer; font-size: var(--fs-small); line-height: 1.5; }
.check input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.check input[type="checkbox"]:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* Honeypot: off-screen, not display:none (same pattern as the app intake) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ───────── Cards, tags, photos ───────── */
.card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--card-pad); background: var(--card); border: var(--border); border-radius: var(--radius); }
.tag {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--track-label); text-transform: uppercase;
  background: transparent; color: var(--ink); border: 1px solid var(--field-edge);
}
.photo { margin: 0; background: var(--vellum); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--stock img { filter: var(--photo-stock); }
.photo--soft img { filter: var(--photo-soft); }
.photo-credit { margin-top: var(--space-1); }              /* .label, e.g. "LICENSED STOCK · STYLED FOR LAYOUT" */

/* ───────── Header (mirrors the app's .intake-top) ───────── */
.site-header { background: var(--paper); border-bottom: var(--border); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: calc(var(--header-h) - 1px); padding-block: var(--header-pad-y); }
.site-header__logo img { height: var(--logo-h); width: auto; }
.nav a, .lang a, .lang span { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); justify-content: center;
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; text-decoration: none; }
.nav a { color: var(--ink); border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--hairline); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }   /* = app active tab, styles.css:136 */
.lang a { color: var(--graphite); }
.lang a:hover { color: var(--ink); text-decoration: underline; }
.lang [aria-current="true"] { color: var(--ink); border-bottom: 1px solid var(--ink); }

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