:root {
  color-scheme: light dark;
  --bg: #f7f4ed;
  --paper: #fffcf6;
  --ink: #192e24;
  --muted: #506154;
  --accent: #245641;
  --line: #d7d1c4;
  --panel: #e8eee3;
  --panel-alt: #ece3d2;
  --forest: #17372a;
  --cream: #fff7e8;
  --gold: #e8cda0;
  --button: #204937;
  --button-text: #fffaf0;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12251d;
    --paper: #1b3027;
    --ink: #fbf5e8;
    --muted: #c0cfc1;
    --accent: #cce4ce;
    --line: #496050;
    --panel: #284436;
    --panel-alt: #343e31;
    --button: #e5cc9a;
    --button-text: #172e24;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--gold); color: #192e24; }
p { margin: 0; line-height: 1.65; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 6.5vw, 5.7rem); line-height: 1.02; letter-spacing: -.06em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.55rem); line-height: 1.06; letter-spacing: -.045em; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.16; letter-spacing: -.025em; }

.wrap { width: min(calc(100% - clamp(2rem, 7vw, 6rem)), 76rem); margin-inline: auto; }
.skip {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  transform: translateY(-170%);
  padding: .65rem 1rem;
  border-radius: .55rem;
  background: var(--paper);
  color: var(--accent);
}
.skip:focus { transform: none; }

.site-header {
  display: flex;
  min-height: 4.8rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding-block: .55rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.025em;
}
.brand img { flex: none; border-radius: .65rem; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem clamp(.8rem, 2vw, 2rem); }
.site-header nav a, .site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .94rem;
  text-decoration: none;
  color: var(--muted);
}
.site-header nav a:hover, .site-footer nav a:hover { color: var(--accent); text-decoration: underline; }

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  padding: .67rem 1.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: .72rem;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.button.primary { color: var(--button-text); background: var(--button); }
.button.primary:hover { box-shadow: inset 0 0 0 2px var(--gold); }
.button.secondary { color: var(--accent); border-color: var(--line); }
.button.secondary:hover { background: var(--paper); border-color: var(--accent); }
.text-link { color: var(--accent); font-weight: 650; }

.legal-header { border-bottom: 1px solid var(--line); }
.legal-layout { width: min(calc(100% - clamp(2rem, 7vw, 6rem)), 43rem); margin-inline: auto; padding-block: clamp(2rem, 6vw, 5.25rem); }
.legal-layout h1 { font-size: clamp(2.55rem, 7vw, 5rem); }
.legal-layout h2 { font-size: clamp(1.55rem, 3.8vw, 2.2rem); margin: 2.4rem 0 .65rem; }
.legal-layout p { color: var(--muted); overflow-wrap: anywhere; }
.legal-layout p + p { margin-top: .9rem; }
.legal-layout a:not(.button) { color: var(--accent); }
.legal-layout .legal-lead { margin-top: .75rem; font-size: clamp(1.05rem, 2.3vw, 1.22rem); }
.legal-nav { display: flex; flex-wrap: wrap; column-gap: 1.2rem; margin: 1.55rem 0 1.75rem; border-block: 1px solid var(--line); }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; text-decoration: none; }
.legal-nav [aria-current="page"] { font-weight: 700; text-decoration: underline; }
.legal-nav a:hover { text-decoration: underline; }
.legal-layout .legal-date { font-size: .9rem; }
.help-callout { margin-block: 1.65rem; padding: clamp(1.1rem, 4vw, 1.8rem); background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; }
.help-callout h2 { margin-top: 0; }
.help-callout .button { margin-top: .9rem; }
.search-label { display: block; font-weight: 650; margin-bottom: .45rem; }
.support-search { width: 100%; min-height: 48px; padding: .65rem .85rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .7rem; }
.help-count { display: block; margin-top: .45rem; font-size: .875rem; color: var(--muted); }
.help-list { margin-block: 1rem; }
.help-list details, .faq-list details { border-top: 1px solid var(--line); }
.help-list details:last-child, .faq-list details:last-child { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; min-height: 46px; padding-block: .9rem; color: var(--ink); font-weight: 650; }
details[open] summary { color: var(--accent); }
details p { color: var(--muted); padding-bottom: 1rem; }
.legal-footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

@media (max-width: 36rem) {
  .site-header { min-height: 4.2rem; }
  .site-header nav { order: 1; width: 100%; border-top: 1px solid var(--line); }
  .site-header nav a { min-height: 40px; }
}
