/* =====================================================================
   vurna.app — support and legal
   Ported from Docs/new-designs/web/vurna-web.css + support.html.

   Two rules shape this file:

   1. NO JAVASCRIPT. The page has to be readable with scripting off, so the
      mockup's dusk/daylight toggle (a JS class swap) becomes a
      `prefers-color-scheme` query instead. Parchment-first, as the web
      companion is drawn, with dusk following the reader's own setting.

   2. NO ASSISTANT PRESENCE (support.html:642-648). This is the studio, not
      Vurna: no Goldcrust, no italic Fraunces, no flame avatar, no arrival
      animation. `--goldcrust` and `--voice` are deliberately absent below —
      not unused, absent, so they cannot be reached for by accident.
   ===================================================================== */

:root {
  --ember: #dc4122;
  --ember-400: #f2856a;
  --ember-800: #9c2e18;

  --font-display: 'Fraunces', 'Iowan Old Style', Palatino, Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-input: 8px;
  --r-card: 12px;
  --r-pill: 999px;

  /* Daylight — the default, matching the drawn web companion. */
  --surface-canvas: #f4ecdf;
  --surface-raised: #fbf6ee;
  --surface-card: #fbf6ee;
  --surface-sunken: #eae0ce;
  --text-primary: #1f1612;
  --text-secondary: rgba(31, 22, 18, 0.72);
  --text-tertiary: rgba(31, 22, 18, 0.55);
  --border-subtle: rgba(31, 22, 18, 0.08);
  --border-default: rgba(31, 22, 18, 0.15);
  --link: #9c2e18;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-canvas: #1f1612;
    --surface-raised: #2a1e18;
    --surface-card: #2c201a;
    --surface-sunken: #171110;
    --text-primary: #f4ecdf;
    --text-secondary: rgba(244, 236, 223, 0.72);
    --text-tertiary: rgba(244, 236, 223, 0.55);
    --border-subtle: rgba(244, 236, 223, 0.08);
    --border-default: rgba(244, 236, 223, 0.14);
    --link: #f2856a;
  }
}

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

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

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-card);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: var(--r-input);
  z-index: 10;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* ─── Page frame ─── */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
  border-bottom: 0.5px solid var(--border-subtle);
  margin-bottom: 30px;
}
.site-mark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text-primary);
  text-decoration: none;
}
.site-nav .right {
  margin-left: auto;
}
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
}
.lang a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 24px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  color: var(--text-secondary);
  text-decoration: none;
}
.lang a:hover,
.lang a:focus {
  background: var(--surface-card);
  color: var(--text-primary);
}

/* ─── Support index ─── */
.sup-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.sup-sub {
  font-size: 16.5px;
  color: var(--text-secondary);
  margin: 0 0 26px;
}

.card {
  background: var(--surface-card);
  border: 0.5px solid var(--border-subtle);
  border-radius: var(--r-card);
}
.contact {
  padding: 22px;
  margin-bottom: 30px;
}
.contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 8px;
}
.contact p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  padding: 12px 16px;
  border-radius: var(--r-input);
  background: var(--surface-sunken);
  color: var(--text-primary);
  text-decoration: none;
  /* `break-all` splits the address even when it would fit on the next line;
     `anywhere` only breaks when there is genuinely no room. */
  overflow-wrap: anywhere;
}
.mail:hover,
.mail:focus {
  text-decoration: underline;
}
.when {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin-top: 16px;
}
.when svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.topic {
  margin-bottom: 30px;
}
.topic h2,
.topic h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding-bottom: 9px;
  border-bottom: 0.5px solid var(--border-subtle);
  margin: 0 0 2px;
}
.q-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 4px;
  border-bottom: 0.5px solid var(--border-subtle);
  font-size: 16px;
  text-decoration: none;
  color: var(--text-primary);
}
.q-row:hover,
.q-row:focus {
  color: var(--link);
}
.q-row .go {
  margin-left: auto;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.topic p {
  font-size: 15px;
  color: var(--text-secondary);
  padding-top: 12px;
  margin: 0;
}

/* ─── Article ─── */
.art {
  padding-bottom: 10px;
}
.crumb {
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.crumb a {
  color: var(--text-secondary);
}
.art h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 18px;
}
.art p {
  font-size: 16.5px;
  line-height: 1.65;
  margin: 0 0 16px;
}
.art p.lede-p {
  color: var(--text-secondary);
}
.art h2,
.art h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.3;
  margin: 30px 0 10px;
}
.art ol,
.art ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.art li {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 8px;
}
.art b {
  font-weight: 600;
}
.art .hard {
  border-left: 2px solid var(--ember);
  padding: 4px 0 4px 16px;
  margin: 20px 0;
}
.art .hard p {
  font-size: 15.5px;
  margin-bottom: 0;
  color: var(--text-secondary);
}
.art .hard b {
  color: var(--text-primary);
}
.updated {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border-subtle);
}
.back {
  display: inline-block;
  margin-top: 24px;
  font-size: 15px;
}

/* ─── Terms placeholder ─── */
.placeholder {
  border: 2px solid var(--ember);
  border-radius: var(--r-card);
  padding: 24px;
  margin: 24px 0;
  background: var(--surface-card);
}
.placeholder .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid var(--ember);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  margin-bottom: 14px;
}
.placeholder h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 14px;
}
.placeholder p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.placeholder p:last-child {
  margin-bottom: 0;
}

/* ─── Licences ─── */
.lic-meta {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0 0 22px;
}
.lic-group {
  margin-bottom: 26px;
}
.lic-group h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding-bottom: 9px;
  border-bottom: 0.5px solid var(--border-subtle);
  margin: 0 0 10px;
}
.lic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 26px;
}
.lic-list li {
  font-size: 13.5px;
  line-height: 1.7;
  break-inside: avoid;
}
.lic-list a {
  color: var(--text-primary);
  text-decoration: none;
}
.lic-list a:hover,
.lic-list a:focus {
  color: var(--link);
  text-decoration: underline;
}
.lic-list .v {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-tertiary);
}

/* ─── Footer ─── */
.site-foot {
  margin-top: 44px;
  padding: 22px 0 40px;
  border-top: 0.5px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.site-foot .links {
  margin-bottom: 12px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-foot .links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
}
.site-foot .links a:hover,
.site-foot .links a:focus {
  text-decoration: underline;
}
.site-foot .seller {
  margin: 10px 0 0;
  max-width: 56ch;
}

/* ─── Narrow — how nearly everyone arrives ─── */
@media (max-width: 560px) {
  .wrap {
    padding: 0 18px;
  }
  .site-nav {
    height: 54px;
    margin-bottom: 24px;
  }
  .sup-title {
    font-size: 28px;
  }
  .art h1 {
    font-size: 28px;
  }
  .lic-list {
    columns: 1;
  }
}
