:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --ink: #2b2118;
  --muted: #6b5b4b;
  --primary: #c2562f;
  --accent: #e0a03a;
  --rust: #973b21;
  --line: #d9c5b2;
  --tint: #f2e6d8;
  --display: Fraunces, Georgia, serif;
  --body: Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); }
a { color: var(--rust); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .68; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.13; font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.5rem); letter-spacing: -.032em; }
h3 { font-size: 1.25rem; }
.frame { width: min(1096px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: .6rem; transform: translateY(-180%); padding: .5rem 1rem; background: var(--card); z-index: 2; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 68px; }
.brand { display: inline-flex; gap: 0; align-items: center; color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; margin-right: 9px; border-radius: 50%; background: var(--rust); color: var(--card); font: 700 20px/1 var(--display); }
.domain-suffix { color: var(--rust); }
nav { display: flex; flex-wrap: wrap; gap: 22px; }
nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--rust); text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 42px 0 36px; }
.hero h1 { margin-bottom: 14px; font-size: clamp(2.45rem, 6.3vw, 4.5rem); line-height: 1.01; letter-spacing: -.068em; }
.hero p { max-width: 38ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.13rem); }
.engraving { display: grid; place-items: center; }
.engraving svg { width: 100%; max-width: 335px; }
.workbook { display: grid; grid-template-columns: 1fr .92fr; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 12px 35px #5533100c; }
.workbook-input, .workbook-output { min-width: 0; padding: clamp(20px, 4.2vw, 40px); }
.workbook-output { border-left: 1px solid var(--line); background: var(--tint); display: flex; align-items: center; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend, .angel-label { margin-bottom: 12px; padding: 0; font: 700 1.5rem/1.2 var(--display); }
.date-grid { display: grid; grid-template-columns: 1.5fr .75fr .95fr; gap: 12px; }
label { display: block; min-width: 0; font-weight: 600; font-size: .875rem; }
input, select { display: block; min-width: 0; width: 100%; min-height: 48px; margin-top: 5px; border: 1px solid #af9680; border-radius: 6px; padding: 8px 10px; background: #fffdf8; color: var(--ink); font: 400 1rem/1.35 var(--body); }
.angel-label input { margin-top: 13px; }
[aria-invalid="true"] { border-color: var(--rust); }
.form-error { margin: 10px 0 0; color: var(--rust); font-weight: 600; font-size: .875rem; }
.actions { margin-top: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.primary, .text-button { min-height: 44px; border-radius: 6px; padding: 9px 13px; font-size: .875rem; font-weight: 700; }
.primary { border: 1px solid var(--rust); background: var(--rust); color: var(--card); }
.primary span { margin-left: .35em; }
.primary:hover { background: #792b17; }
.text-button { border: 0; padding-inline: 2px; background: none; color: var(--rust); text-decoration: underline; text-underline-offset: .22em; }
.text-button:hover { color: var(--ink); }
.form-note { margin: 9px 0 0; color: var(--muted); font-size: .875rem; }
.empty-reading { width: 100%; text-align: center; color: var(--muted); }
.empty-reading svg { color: var(--rust); }
.empty-reading p { margin: 9px 0 0; }
.filled-reading { width: 100%; }
.filled-reading p { margin-bottom: 10px; }
.result-heading { display: flex; flex-wrap: wrap; gap: 7px 16px; align-items: center; margin-bottom: 13px; }
.result-num { color: var(--rust); font: 700 clamp(2rem, 5vw, 3.7rem)/1 var(--display); overflow-wrap: anywhere; letter-spacing: -.04em; }
.result-heading h2 { margin: 0; font-size: 1.55rem; }
.result-heading .kicker { margin: 0 0 3px; font-size: .75rem; font-weight: 700; color: var(--rust); }
.reflection { padding-left: 12px; border-left: 2px solid var(--primary); }
.calculation summary { min-height: 44px; padding: 9px 0; font-weight: 700; font-size: .875rem; }
summary { cursor: pointer; }
.calculation ul { margin: 0 0 4px; padding-left: 20px; font-size: .875rem; overflow-wrap: anywhere; }
.related { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: .875rem; font-weight: 700; }
.guide, .legal, .faq { max-width: 720px; margin: 48px auto 0; }
.guide h2, .legal h2 { padding-top: 24px; border-top: 1px solid var(--line); margin: 30px 0 14px; }
.guide h3 { margin: 24px 0 6px; }
.guide ol { padding-left: 24px; }
.guide li { padding-left: 3px; margin-bottom: .4em; }
.guide blockquote { margin: 16px 0 22px; padding: 16px 20px; border-left: 3px solid var(--primary); background: var(--tint); }
.guide blockquote p { margin: 0; }
.faq { margin-top: 37px; }
.faq h2 { margin-bottom: 12px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 48px; padding: 13px 0; font-weight: 600; }
.faq details p { color: var(--muted); margin: 0 0 15px; }
.legal { min-height: 50vh; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: -.045em; }
.site-footer { margin-top: 60px; min-height: 88px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--ink); margin-right: 7px; }
@media (max-width: 720px) {
  .frame { width: calc(100% - 36px); }
  .hero { grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; padding: 28px 0 24px; }
  .hero h1 { font-size: clamp(2rem, 6vw, 3.05rem); letter-spacing: -.05em; }
  .desktop-break { display: none; }
  .workbook { grid-template-columns: 1fr; }
  .workbook-output { border-left: 0; border-top: 1px solid var(--line); }
  .empty-reading svg { width: 42px; height: 42px; vertical-align: middle; }
  .empty-reading p { display: inline; margin-left: 8px; }
  .guide, .legal { margin-top: 34px; }
}
@media (max-width: 470px) {
  .frame { width: calc(100% - 28px); }
  nav { gap: 13px; }
  .header-inner { display: grid; justify-content: stretch; gap: 0; padding-top: 8px; }
  .site-header .brand { justify-self: start; }
  .site-header nav { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .site-header nav a { font-size: .8125rem; white-space: nowrap; }
  #life-path-method table:has(a[href*="/life-path-number-"]) :is(th, td) {
    padding: 8px 6px;
    vertical-align: middle;
  }
  #life-path-method table:has(a[href*="/life-path-number-"]) :is(th, td):first-child {
    white-space: nowrap;
  }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .engraving { display: none; }
  .workbook-input, .workbook-output { padding: 16px; }
  .date-grid { gap: 7px; }
  .primary { padding-inline: 10px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 12px 0; gap: 0; }
}
@media (max-width: 640px) {
  .actions .primary { width: 100%; }
}
