/* Sovereign HQ. "The Architect's Ledger": espresso ink, one brass accent, condensed structural type.
   Tokens and reasoning: see ../DESIGN.md. */

:root {
  --ink: oklch(15.5% 0.014 55);
  --surface: oklch(21% 0.017 55);
  --ink-deep: oklch(10.5% 0.012 55);
  --paper: oklch(95% 0.011 75);
  --paper-secondary: oklch(80% 0.02 68);
  --paper-muted: oklch(63.5% 0.024 62);
  --accent: oklch(72% 0.13 58);
  --accent-hover: oklch(78% 0.145 58);
  --accent-tint-bg: oklch(26% 0.05 58);
  --on-accent: oklch(16% 0.02 55);
  --error: oklch(75% 0.15 25);
  --line: oklch(95% 0.011 75 / 0.14);
  --line-faint: oklch(95% 0.011 75 / 0.07);

  --font-display: "Barlow Condensed", "Noto Sans Hebrew", sans-serif;
  --font-body: "Barlow", "Noto Sans Hebrew", sans-serif;

  --text-xs: 0.95rem;
  --text-sm: 1.05rem;
  --text-md: 1.2rem;
  --text-lg: 1.4rem;
  --text-name: clamp(2rem, 4.6vw, 3.1rem);
  --text-display: clamp(2.8rem, 7.5vw, 6rem);

  --gutter: 16px;
  --measure: 72rem;
  color-scheme: dark;
}

/* Hebrew has no Barlow glyphs: give it its own heavy display face instead of a fallback mix. */
:root:lang(he) {
  --font-display: "Noto Sans Hebrew", "Barlow Condensed", sans-serif;
  --font-body: "Noto Sans Hebrew", "Barlow", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 2.5rem; } }

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

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line-faint);
}

.wordmark {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: var(--text-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }

.lang {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--paper-secondary);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.lang:hover { color: var(--paper); border-color: var(--paper-muted); }

.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 4px;
  font-weight: 500;
}
.skip:focus { top: 0.75rem; color: var(--on-accent); }

.footer {
  display: grid;
  gap: 0.75rem;
  padding-block: 2rem 2.5rem;
  margin-top: 5rem;
  border-top: 1px solid var(--line-faint);
  color: var(--paper-muted);
  font-size: var(--text-xs);
}
.footer a { color: var(--paper-secondary); overflow-wrap: anywhere; }
.footer a:hover { color: var(--accent); }

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

.hero { padding-block: clamp(3rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero--small { padding-bottom: 0; }

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-display);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
:lang(en) h1 { text-transform: uppercase; }
:lang(he) h1 { line-height: 1.1; letter-spacing: 0; }

.lede {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  font-size: var(--text-md);
  color: var(--paper-secondary);
}

/* ---------- catalog ---------- */

.shelf { margin-top: 3.5rem; }

.shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}
.shelf-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: 0.08em;
}
:lang(en) .shelf-head h2 { text-transform: uppercase; }
.shelf-count { color: var(--paper-muted); font-size: var(--text-xs); }

.entries { list-style: none; margin: 0; padding: 0; }
.entries li { border-bottom: 1px solid var(--line); }

/* A ledger row, not a card: name, what it is, where it stands. */
.entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding-block: 1.5rem;
  color: inherit;
  text-decoration: none;
}
@media (min-width: 760px) {
  .entry {
    grid-template-columns: minmax(12rem, 1fr) 2fr auto;
    align-items: baseline;
    gap: 2rem;
    padding-block: 1.9rem;
  }
}

.entry-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-name);
  line-height: 1;
  transition: color 0.15s ease;
}
:lang(en) .entry-name { text-transform: uppercase; }

.entry-tagline { color: var(--paper-secondary); font-size: var(--text-sm); max-width: 36rem; }

.entry .status { justify-self: start; }
.entry:hover .entry-name, .entry:focus-visible .entry-name { color: var(--accent); }

/* ---------- status chip ---------- */

.status {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--paper-secondary);
}
.status--live { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.status--soon { background: var(--accent-tint-bg); border-color: transparent; color: var(--accent); }

/* ---------- product page ---------- */

.crumb {
  display: inline-block;
  margin-top: 2rem;
  font-size: var(--text-sm);
  color: var(--paper-secondary);
  text-decoration: none;
}
.crumb::before { content: "← "; }
:lang(he) .crumb::before { content: "→ "; }
.crumb:hover { color: var(--accent); }

.product-head { padding-block: 2.5rem 3rem; border-bottom: 1px solid var(--line); }

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--paper-muted);
  font-size: var(--text-sm);
}

.aka {
  margin: 0.5rem 0 0;
  font-family: "Noto Sans Hebrew", "Barlow", sans-serif;
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--paper-muted);
}

.shot { margin: 3rem 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--ink-deep); border: 1px solid var(--line); }

.product-body {
  display: grid;
  gap: 3rem;
  padding-top: 3rem;
}
@media (min-width: 900px) { .product-body { grid-template-columns: 3fr 2fr; gap: 4rem; } }

.prose p { margin: 0 0 1.25rem; font-size: var(--text-md); max-width: 38rem; }

.facts {
  background: var(--surface);
  border-radius: 6px;
  padding: 1.75rem;
  align-self: start;
}
.facts h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-md);
  letter-spacing: 0.06em;
}
:lang(en) .facts h2 { text-transform: uppercase; }
.facts ul { margin: 0; padding: 0; list-style: none; }
.facts li {
  padding-block: 0.65rem;
  border-top: 1px solid var(--line-faint);
  color: var(--paper-secondary);
}
.facts li:first-child { border-top: 0; padding-top: 0; }

.action { margin-top: 1.75rem; }
.not-out { margin: 0 0 0.75rem; color: var(--paper-muted); }

.button {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  transition: background 0.15s ease;
}
:lang(en) .button { text-transform: uppercase; }
.button:hover { background: var(--accent-hover); color: var(--on-accent); }
.button--quiet { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.button--quiet:hover { background: var(--accent-tint-bg); color: var(--accent-hover); }

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

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }

/* ---------- contact ---------- */

.contact {
  display: grid;
  gap: 2rem;
  margin-top: 5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border-radius: 6px;
}
@media (min-width: 900px) { .contact { grid-template-columns: 2fr 3fr; gap: 3.5rem; } }

.contact-intro h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-name);
  line-height: 1.05;
}
:lang(en) .contact-intro h2 { text-transform: uppercase; }
.contact-intro p { margin: 0; color: var(--paper-secondary); font-size: var(--text-sm); }

.contact-form { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .contact-form { grid-template-columns: 1fr 1fr; } }
.field--wide { grid-column: 1 / -1; }

.field label { display: block; margin-bottom: 0.35rem; font-size: var(--text-sm); color: var(--paper-secondary); }
.optional { color: var(--paper-muted); }

.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 0.85rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

/* Spam trap: visually gone, still in the form for bots to fill. */
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }

.form-foot .button { border: 0; cursor: pointer; }
.form-foot .button:disabled { opacity: 0.6; cursor: wait; }
.consent { margin: 0.9rem 0 0; font-size: var(--text-xs); color: var(--paper-muted); }
.form-status { margin: 0.75rem 0 0; color: var(--accent); }
.form-status:empty { display: none; }
.form-error { margin: 0.75rem 0 0; color: var(--error); }

/* ---------- legal pages ---------- */

.legal { max-width: 44rem; padding-block: 2.5rem 0; }
.legal h1 { font-size: var(--text-name); max-width: none; }
.legal h2 {
  margin: 2.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-md);
  letter-spacing: 0.04em;
}
:lang(en) .legal h2 { text-transform: uppercase; }
.legal p { margin: 0 0 1rem; color: var(--paper-secondary); }
.legal .updated { margin-top: 0.75rem; color: var(--paper-muted); font-size: var(--text-xs); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Price line and the waitlist form on product pages */
.price { margin: 0 0 1rem; font-size: var(--text-lg, 1.25rem); color: var(--paper); }
.price span { display: block; font-size: var(--text-sm); color: var(--paper-secondary); }
.waitlist-form { grid-template-columns: 1fr; margin-top: 0.5rem; }

/* "More from Sovereign HQ" at the bottom of product pages */
.shelf.more { margin-top: 3.5rem; }
