/* Inkhearth — static site styles. No external fonts, scripts, or trackers. */
:root {
  --paper: #F7F3EB;
  --paper-2: #EFE8DA;
  --ink: #141B2D;
  --ink-soft: #3A4257;
  --accent: #C4623F;      /* terracotta (decorative / large text) */
  --accent-text: #A34A2B; /* darker terracotta for body-size links: AA on paper */
  --brass: #C9A24B;
  --rule: rgba(201, 162, 75, 0.55);
  --card: #FBF8F2;
  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 42rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10151F;
    --paper-2: #161D2B;
    --ink: #F3EEE3;
    --ink-soft: #C9C3B6;
    --accent: #E08A66;
    --accent-text: #E89A78;
    --brass: #C9A24B;
    --rule: rgba(201, 162, 75, 0.38);
    --card: #182032;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 1.25rem; font-size: .95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; margin-bottom: .9rem; }
.lede { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* Hero */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { max-width: 18ch; }
.hero .lede { max-width: 36rem; }
.price-line { display: inline-flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; }
.price-line li { margin: 0; border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .85rem; font-size: .9rem; background: var(--card); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn { display: inline-block; padding: .8rem 1.3rem; border-radius: 12px; font-weight: 600; text-decoration: none; font-size: 1rem; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #222B44; }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: #FFFFFF; } }
.btn-ghost { color: var(--ink); border: 1px solid var(--brass); }

.rule-ornament { border: 0; height: 1px; background: var(--rule); margin: 0; }

/* Features */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section h2:first-child { margin-top: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 1.35rem 1.35rem 1.1rem; }
.card h3 { margin-top: 0; font-size: 1.15rem; }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: .4rem; }
.card .mark { display: inline-block; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: var(--paper-2); color: var(--accent); text-align: center; line-height: 2.1rem; font-family: var(--serif); font-size: 1.1rem; margin-bottom: .7rem; border: 1px solid var(--rule); }

.note { border-left: 3px solid var(--brass); background: var(--card); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; }
.note p:last-child { margin-bottom: 0; }
.note.warm { border-left-color: var(--accent); }

/* Pages */
.page { padding: clamp(2.5rem, 7vw, 4.5rem) 0 3rem; }
.page-head { margin-bottom: 2rem; }
.meta { font-size: .9rem; color: var(--ink-soft); }
.toc { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 1rem 1.25rem; margin: 1.5rem 0 2rem; }
.toc ol { margin: .4rem 0 0; padding-left: 1.2rem; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 2rem; } }
.toc a { color: var(--ink); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: .9rem 0; }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--sans); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-top: .6rem; color: var(--ink); }

table.facts { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .97rem; }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: .6rem .5rem; border-bottom: 1px solid var(--rule); }
table.facts th { font-weight: 600; width: 40%; }

.contact-card { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 1.4rem 1.5rem; margin: 2rem 0; }
.contact-card a { color: var(--paper); font-weight: 600; }
.contact-card h2 { margin-top: 0; font-size: 1.4rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: 2rem; padding: 2rem 0 2.5rem; font-size: .9rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header nav, .skip, .cta-row { display: none; } body { background: #fff; color: #000; } }
.see-also { margin-top: 2rem; }
table.facts caption { text-align: left; padding-bottom: .3rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
.wrap.prose { max-width: 68rem; }
.wrap.prose > * { max-width: var(--measure); }
.card .mark { width: auto; min-width: 2.1rem; padding: 0 .45rem; font-size: .95rem; letter-spacing: .04em; }
