/* Wax & Letter identity · 01 The Seal.
   Loaded last on every page (after the page's own <style>), so this file is the one place
   where the brand lives: palette, type, buttons, labels. Source of truth: public/brand/01.html.

   Rules of the identity:
   - oxblood is for wax only (the seal, the ampersand, one small accent); buttons are ink
   - names and headings: Forum capitals, tracked .06em
   - reading text: Sorts Mill Goudy; small labels: Hanken Grotesk 600, capitals, tracked .14em
   - corners 3px, paper cards on a stone page */

:root {
  --wl-wax: #6E1F24; --wl-wax-pressed: #3F0E13; --wl-wax-lip: #93393A;
  --wl-ink: #231B1A; --wl-slate: #6B625C;
  --wl-stone: #E7E2D9; --wl-stone-2: #DCD5C9; --wl-paper: #F5F2EC; --wl-tallow: #C9878A;
  --wl-rule: rgba(35, 27, 26, .18);
  --wl-font-names: "Forum", "Times New Roman", serif;
  --wl-font-hand: "Mrs Saint Delafield", cursive;
  --wl-font-text: "Sorts Mill Goudy", Georgia, serif;
  --wl-font-label: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wl-radius: 3px;
  --wl-shadow-paper: 0 10px 24px rgba(35, 27, 26, .14);

  /* app.css vocabulary (editor, dashboard, checkout, start, make, affiliate) */
  --bg: var(--wl-stone); --panel: var(--wl-paper); --ink: var(--wl-ink); --soft: var(--wl-slate);
  --line: #D0C8BB; --line-2: #C4BBAD;
  --accent: var(--wl-ink); --accent-ink: var(--wl-paper); --accent-tint: #EADDD8;
  --warn: #8E2B20; --ok: #2F5F45;
  --display: var(--wl-font-names); --ui: var(--wl-font-text); --mono: var(--wl-font-label);

  /* info.css + home vocabulary */
  --stone: var(--wl-stone); --paper: var(--wl-paper); --paper-2: var(--wl-stone-2);
  --ink-2: #3F3532; --mute: var(--wl-slate);
  --wax: var(--wl-wax); --wax-hi: var(--wl-wax-lip); --wax-deep: var(--wl-wax-pressed); --wax-ink: var(--wl-wax);
  --on-wax: var(--wl-paper); --wax-tint: #EADDD8;
  --disp: var(--wl-font-names); --body: var(--wl-font-text);
}

html { background: var(--wl-stone); }
body { font-family: var(--wl-font-text); font-synthesis: none; }
/* Goudy has one weight: emphasis is ink against slate, never a faked bold */
b, strong { font-weight: 400; }
::selection { background: var(--wl-wax); color: var(--wl-paper); }
:focus-visible { outline: 2px solid var(--wl-wax); outline-offset: 3px; }

/* ---------- headings: Forum capitals ---------- */
h1, h2, h3, .h-display, .h-xl, .h-l {
  font-family: var(--wl-font-names); font-weight: 400; text-transform: uppercase; letter-spacing: .06em;
}
.h-display { font-size: clamp(34px, 5.6vw, 84px); line-height: 1.02; letter-spacing: .06em; }
.h-xl { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.06; letter-spacing: .06em; }
.h-l { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; letter-spacing: .07em; }
h3 { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.2; letter-spacing: .09em; }
/* the italic voice: Goudy italic in wax, lower case, the way the ampersand sits in the logo */
h1 em, h2 em, h3 em, .h-display em, .h-xl em, .h-l em {
  font-family: var(--wl-font-text); font-style: italic; text-transform: none; letter-spacing: 0; color: var(--wl-wax); font-size: .9em;
}
.wl-hand { font-family: var(--wl-font-hand); font-weight: 400; color: var(--wl-wax); text-transform: none; letter-spacing: 0; line-height: 1; }

/* ---------- labels ---------- */
.eyebrow, .mono, .lab {
  font-family: var(--wl-font-label); font-weight: 600; font-size: 11.5px; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { color: var(--wl-wax); }
.fine { font-family: var(--wl-font-text); font-size: 14.5px; line-height: 1.5; letter-spacing: 0; color: var(--wl-slate); }
.lede { color: var(--ink-2); }

/* ---------- buttons: ink, never wax ---------- */
.btn, .btn.primary, .btn.big, .btn.small {
  font-family: var(--wl-font-label); font-weight: 600; font-size: 12.5px; line-height: 1.1; letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--wl-radius); box-shadow: none; filter: none; transform: none;
}
.btn.primary, .btn.wl-solid { background: var(--wl-ink); border-color: var(--wl-ink); color: var(--wl-paper); }
.btn.primary:hover, .btn.wl-solid:hover { background: #3A2F2D; border-color: #3A2F2D; }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 13px; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 11px; letter-spacing: .12em; }
.btn.ghost { border-color: transparent; }
.btn.ghost:hover { background: rgba(35, 27, 26, .06); border-color: transparent; }
.btn:disabled { opacity: .45; }
.btn .wl-m { width: 22px; height: 22px; flex: none; }
.tlink { font-family: var(--wl-font-label); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration-color: var(--wl-rule); }

/* ---------- fields, dialogs, small furniture ---------- */
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], input[type=number], input[type=search], select, textarea {
  border-radius: var(--wl-radius); border-color: rgba(35, 27, 26, .28); background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--wl-ink); box-shadow: 0 0 0 3px rgba(35, 27, 26, .1); }
label.f > span { font-family: var(--wl-font-label); font-weight: 600; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--wl-slate); }
dialog { border-radius: 4px; background: var(--wl-paper); box-shadow: 0 30px 80px rgba(35, 27, 26, .3); }
dialog::backdrop { background: rgba(35, 27, 26, .55); }
dialog h2 { font-size: 24px; letter-spacing: .08em; line-height: 1.15; }
.toast { border-radius: var(--wl-radius); background: var(--wl-ink); color: var(--wl-paper); font-family: var(--wl-font-label); font-weight: 500; }
.err { color: var(--warn); }

/* ---------- shared blocks of the public pages ---------- */
.faq summary { font: 400 clamp(19px, 1.8vw, 22px)/1.3 var(--wl-font-text); text-transform: none; letter-spacing: 0; }
.faq summary::after { font: 400 20px/1 var(--wl-font-names); color: var(--wl-wax); }
.closer { background: var(--wl-wax-pressed); color: var(--wl-stone); }
.closer .lede { color: #CFC3BA; }
.closer .eyebrow { color: var(--wl-tallow); }
.closer h2 em, .closer .h-xl em, .closer em { color: var(--wl-tallow); }
.plan .paid .eyebrow { color: var(--wl-tallow); }
.plan .paid s { text-decoration-color: var(--wl-tallow); }
.closer .btn.primary, .closer .btn { background: var(--wl-stone); border-color: var(--wl-stone); color: var(--wl-ink); }
.closer .btn.primary:hover { background: #fff; border-color: #fff; }
.closer :focus-visible { outline-color: var(--wl-stone); }
.prose h3 { font: 600 12px/1.4 var(--wl-font-label); letter-spacing: .14em; text-transform: uppercase; }
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .08em; }
.ph { background: var(--wl-stone-2); border-radius: 2px; font-family: var(--wl-font-label); }
.draft { border-radius: var(--wl-radius); }
.draft b { font-family: var(--wl-font-label); font-weight: 600; }
.legal-toc li::before { font-family: var(--wl-font-label); font-weight: 600; color: var(--wl-wax); }

/* ---------- ornaments from the identity ---------- */
.wl-bead { height: 10px; border: 0; margin: 0; background: radial-gradient(circle, var(--wl-wax) 1.6px, transparent 2px) 0 50%/12px 10px repeat-x; }
.wl-close { display: flex; align-items: center; gap: 18px; }
.wl-close::before, .wl-close::after { content: ""; flex: 1; height: 5px; border-top: 1px solid var(--wl-ink); border-bottom: 1px solid var(--wl-ink); opacity: .5; }
.wl-close img { width: 34px; height: 34px; }

/* dark grounds are pressed wax; the accent on them is tallow */
.wl-dark em, .wl-dark .eyebrow { color: var(--wl-tallow); }
