:root {
  --paper: #f7f3e8;
  --surface: #fffdf7;
  --surface-2: #eee8d9;
  --ink: #171915;
  --muted: #62675d;
  --line: #d7d1c2;
  --green: #0f5a3a;
  --green-2: #0a422b;
  --gold: #d2a21f;
  --red: #a63b2b;
  --blue: #164db5;
  --shadow: 0 20px 70px rgba(45, 38, 24, .10);
  --radius: 20px;
  --shell: min(1180px, calc(100% - 32px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #151713;
  --surface: #1d201b;
  --surface-2: #262a23;
  --ink: #f4f0e6;
  --muted: #b4b9ae;
  --line: #3d4339;
  --green: #78d5a9;
  --green-2: #a7e6c7;
  --gold: #edc453;
  --red: #ff9c8f;
  --blue: #8db1ff;
  --shadow: 0 20px 70px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; font-weight: 850; letter-spacing: -.04em; font-size: 1.35rem; }
.brand small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; font-size: .92rem; font-weight: 700; color: var(--muted); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav .nav-cta { color: var(--surface); background: var(--green-2); padding: 10px 14px; border-radius: 999px; }
.theme-toggle, .menu-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; cursor: pointer; }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; }
.theme-toggle svg { width: 18px; }
.menu-toggle { display: none; padding: 9px 13px; gap: 9px; align-items: center; }
.menu-toggle i { font-style: normal; font-size: 1.2rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: clamp(40px, 7vw, 92px); padding-block: clamp(70px, 10vw, 132px) 72px; align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--green); text-transform: uppercase; letter-spacing: .14em; font-weight: 850; font-size: .74rem; }
.hero h1, .page-header h1, .not-found-content h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7.5vw, 6.9rem); line-height: .93; letter-spacing: -.065em; font-weight: 500; }
.hero h1 em { color: var(--green); font-weight: inherit; }
.hero-lede { max-width: 680px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); margin: 28px 0; }
.hero-actions, .section-end, .not-found-content > div { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.primary-button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 17px; background: var(--green-2); color: #fffdf7; border: 0; border-radius: 999px; font-weight: 800; text-decoration: none; cursor: pointer; }
.primary-button svg, .word-card-footer svg, .topic-card svg, .related-grid svg, .source-library svg { width: 18px; }
.text-link { font-weight: 800; color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.search-box { margin-top: 42px; position: relative; max-width: 720px; }
.search-box > label, .directory-tools > label { display: block; font-weight: 800; margin-bottom: 10px; }
.search-control { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 12px; box-shadow: var(--shadow); }
.search-control:focus-within { border-color: var(--green); outline: 3px solid color-mix(in srgb, var(--green) 20%, transparent); }
.search-control svg { width: 22px; color: var(--green); flex: 0 0 auto; }
.search-control input { width: 100%; min-height: 48px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-control kbd { border: 1px solid var(--line); background: var(--surface-2); border-radius: 6px; padding: 2px 7px; color: var(--muted); }
.search-control button { border: 0; background: transparent; color: var(--green); font-weight: 800; cursor: pointer; }
.search-results { position: absolute; inset: calc(100% + 8px) 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); z-index: 12; }
.search-results a { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; text-decoration: none; padding: 12px; border-radius: 10px; }
.search-results a:hover, .search-results a:focus-visible { background: var(--surface-2); }
.search-results span { color: var(--muted); font-size: .92rem; }
.search-results p { margin: 10px; color: var(--muted); }
.search-status { color: var(--muted); font-size: .83rem; margin: 9px 4px 0; }
.featured-entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); transform: rotate(1deg); }
.featured-label { display: flex; justify-content: space-between; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 800; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.featured-place { color: var(--green); font-weight: 800; margin: 25px 0 3px; }
.featured-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.featured-heading dfn { font-family: Georgia, serif; font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.05em; font-style: normal; }
.featured-pronunciation { color: var(--muted); margin: 0 0 18px; }
.featured-definition { font-size: 1.18rem; }
.featured-entry blockquote { margin: 24px 0; border-left: 3px solid var(--gold); padding-left: 16px; color: var(--muted); font-family: Georgia, serif; font-size: 1.04rem; }
.featured-entry > a { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 850; }
.featured-entry > a svg { width: 18px; }
.voice-button { border: 1px solid var(--line); color: var(--green); background: var(--surface); border-radius: 999px; padding: 10px 13px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; }
.voice-button svg { width: 19px; height: 19px; }
.voice-button.is-compact { padding: 7px 10px; font-size: .78rem; }
.voice-button:hover, .voice-button:focus-visible, .voice-button.is-speaking { border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.trust-strip { border-block: 1px solid var(--line); background: var(--surface-2); }
.trust-strip .shell { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-strip div > div { padding: 24px; border-right: 1px solid var(--line); }
.trust-strip div > div:first-child { border-left: 1px solid var(--line); }
.trust-strip strong { display: block; font-family: Georgia, serif; font-size: 1.8rem; }
.trust-strip span { color: var(--muted); font-size: .82rem; }
.section { padding-block: clamp(70px, 10vw, 120px); }
.section-tint { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, .65fr); gap: 40px; align-items: end; margin-bottom: 38px; }
.section-heading h2, .method-callout h2, .page section > h2, .source-library h2, .topic-neighbors h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; letter-spacing: -.045em; font-size: clamp(2.2rem, 4.5vw, 4.2rem); line-height: 1; }
.section-heading > p { margin: 0; color: var(--muted); }
