:root {
  color-scheme: light dark;
  --tint: #8a5200;
  --tint-contrast: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f7f3ea;
  --text: #1b1a24;
  --muted: #5c5c62;
  --line: #e2dbcb;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tint: #f0b45a;
    --tint-contrast: #000000;
    --bg: #0e0c26;
    --bg-soft: #1b1740;
    --text: #eeeaf8;
    --muted: #b4b0cc;
    --line: #2f2a5e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }

a { color: var(--tint); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--tint); color: var(--tint-contrast);
  padding: 0.5rem 0.9rem; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 0.75rem; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.25rem 1.25rem; padding-top: 0.45rem; padding-bottom: 0.45rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  color: var(--text); text-decoration: none;
}
.brand img { width: 32px; height: 32px; display: block; border-radius: 8px; outline: 1px solid var(--line); outline-offset: -1px; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; }
nav a { color: var(--text); text-decoration: none; display: inline-block; padding: 0.7rem 0.15rem 0.6rem; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--tint); }
nav li { margin: 0; }

main { padding: 2rem 0 3rem; }

h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(2rem, 6.5vw, 3rem); line-height: 1.12; margin: 0 0 1rem; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 1.5rem; line-height: 1.25; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.95rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; overflow-wrap: anywhere; }

.hero { display: flex; flex-direction: column; gap: 1.25rem; padding: 1rem 0 0.5rem; }
.hero img { width: 96px; height: 96px; display: block; border-radius: 22px; outline: 1px solid var(--line); outline-offset: -1px; }
.claim {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  border-left: 4px solid var(--tint); padding: 0.1rem 0 0.1rem 1rem; margin: 0 0 1rem;
}
.store {
  display: inline-block; align-self: flex-start;
  border: 2px solid var(--tint); border-radius: 999px;
  padding: 0.45rem 1.2rem; font-weight: 700; color: var(--tint); text-decoration: none;
}
a.store { background: var(--tint); color: var(--tint-contrast); }

.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; margin: 0 0 1rem; }
.panel h3 { margin-top: 0; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel.summary { margin-bottom: 1.5rem; }
.panel.summary li:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid .panel { margin: 0; }
@media (min-width: 40rem) { .grid.two { grid-template-columns: 1fr 1fr; } }
.grid.two, .grid.three { margin-bottom: 1rem; }
@media (min-width: 40rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.faq details { border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: inside; }
.faq details p, .faq details ul, .faq details ol { margin-top: 0.7rem; }

.note { border-left: 4px solid var(--tint); padding: 0.2rem 0 0.2rem 1rem; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 0.95rem; }
footer.site ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0; margin: 0 0 0.75rem; }
footer.site p { margin: 0 0 0.4rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
