:root {
  color-scheme: light;
  --canvas: #f9f9f5;
  --paper: #fff;
  --cover: #e7eee1;
  --ink: #182521;
  --muted: #475651;
  --accent: #2e583a;
  --line: #becbc0;
  --display: Georgia, "Times New Roman", serif;
  font-family: system-ui, "Segoe UI", sans-serif;
  line-height: 1.6;
}

[data-theme="account"] {
  --canvas: #fbf9f6;
  --cover: #f0e5d6;
  --ink: #30241d;
  --muted: #625043;
  --accent: #855124;
  --line: #d8c6b8;
  --display: system-ui, "Segoe UI", sans-serif;
}

[data-theme="check"] {
  --canvas: #f7fafb;
  --cover: #e1edf1;
  --ink: #14272f;
  --muted: #3c545f;
  --accent: #164e68;
  --line: #b8ccd5;
  --display: system-ui, "Segoe UI", sans-serif;
}

[data-theme="lucky-guide"] {
  --canvas: #faf9f4;
  --cover: #e9ead7;
  --ink: #292d21;
  --muted: #50543f;
  --accent: #495023;
  --line: #c2c6aa;
}

[data-theme="lucky-review"] {
  --canvas: #fcf8f6;
  --cover: #f2e0db;
  --ink: #392728;
  --muted: #654f50;
  --accent: #853b43;
  --line: #d6b4b6;
  --display: system-ui, "Segoe UI", sans-serif;
}

[data-theme="essence"] {
  --canvas: #faf6f4;
  --cover: #261c20;
  --cover-ink: #fff6ee;
  --ink: #261c20;
  --muted: #654b54;
  --accent: #8b3829;
  --line: #d8c1ba;
  --display: system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 2.4rem, 70rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem; background: var(--paper); }
.skip:not(:focus) { clip-path: inset(50%); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 750; text-decoration: none; }
.wordmark span { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--paper); background: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: .4rem 1.35rem; }
nav a { padding-block: .4rem; font-size: .95rem; text-decoration: none; }
nav a[aria-current], nav a:hover { text-decoration: underline; }
.hero { background: var(--cover); color: var(--cover-ink, var(--ink)); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 24%); align-items: end; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3.5rem, 10vw, 9rem); }
h1, h2 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1 { font-family: var(--display); font-size: clamp(2.2rem, 5.5vw, 5.2rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.35rem, 2.7vw, 2.2rem); letter-spacing: -.025em; }
.lead { max-width: 46ch; margin: 1.3rem 0 0; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.facts { display: grid; gap: .9rem; margin: 0; }
.facts div { border-top: 1px solid currentColor; padding-block: .55rem .2rem; }
dt { font-size: .875rem; }
dd { margin: .25rem 0 0; font-weight: 700; }
.article { padding-block: clamp(2rem, 6vw, 4.5rem); }
.article section { max-width: 72ch; margin-bottom: 2.6rem; }
.article p { margin: 1rem 0 0; color: var(--muted); }
.sources { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.sources ul { padding-left: 1.2rem; }
.sources li + li { margin-top: .45rem; }
.address-check { max-width: 48rem; background: var(--paper); border: 1px solid var(--line); margin: 0 0 2.6rem; padding: clamp(1rem, 3vw, 2rem); }
label { display: block; font-weight: 700; margin-bottom: .45rem; }
.input-row { display: flex; flex-wrap: wrap; gap: .5rem; }
input, button { min-height: 2.75rem; font: inherit; }
input { flex: 1 1 12rem; min-width: 0; color: var(--ink); padding: .55rem .7rem; border: 1px solid var(--line); }
button { padding-inline: 1rem; border: 1px solid var(--accent); background: var(--accent); color: var(--paper); cursor: pointer; }
button:hover { filter: brightness(1.12); }
output { display: block; overflow-wrap: anywhere; }
output:not(:empty) { margin-top: .8rem; }
footer { border-top: 1px solid var(--line); padding-block: 1.5rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 44rem) {
  .header-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: .75rem; gap: .35rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
