:root {
  color-scheme: light;
  --lockup-navy: #070F24;
  --page: #F7F4EF;
  --surface: #EDEAE4;
  --card: #E4E0D8;
  --ink: #1A1A1A;
  --muted: #666666;
  --amber: #C97A10;
  --rule: #D5D0C7;
  --brand-panel: var(--lockup-navy);
  --display: "Spectral", Georgia, serif;
  --body: "Jost", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .skip-link:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.page-width { width: min(100% - 48px, 720px); margin-inline: auto; }

.site-header { padding: 24px 0; background: var(--brand-panel); }
.header-inner { display: flex; align-items: center; gap: 16px; }
.wordmark { display: block; flex: 0 1 60%; width: 60%; max-width: 60%; min-width: 0; height: auto; }
.theme-toggle {
  flex: 0 0 auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #F0EBE1;
  font: 500 .75rem var(--body);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--amber); }
.theme-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

.definition { padding: 45px 0 0; }
.lede { margin: 0; max-width: 680px; font-size: clamp(1.125rem, 2.6vw, 1.5rem); line-height: 1.48; letter-spacing: -0.015em; }

.bands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 56px 0; }
.band {
  min-height: 100px;
  padding: 13px 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  border-right: 1px solid rgb(255 255 255 / 28%);
  line-height: 1.25;
}
.band:last-child { border-right: 0; }
.band-s1 { background: #256B25; }
.band-s2 { background: #1A3578; }
.band-s3 { background: #A31515; }
.band-s4 { background: #1A1F2B; }
.band-s5 { background: #D94000; color: #0F0F0F; }
.band-code { font-size: 1.12rem; font-weight: 600; letter-spacing: .035em; }
.band-name { font-size: .78rem; }
.band-range { font-size: .72rem; font-variant-numeric: tabular-nums; opacity: .88; }

.content-section { padding: 0 0 43px; margin-bottom: 38px; border-bottom: 1px solid var(--rule); }
.content-section h2 {
  margin: 0 0 17px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.factor-list p, .plain-list p, .statement-group p { margin: 0 0 8px; }
.factor-list p:last-child, .plain-list p:last-child, .statement-group p:last-child { margin-bottom: 0; }
.factor-list span { font-weight: 600; }

figure { margin: 28px 0 0; }
.content-image { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
figcaption { margin-top: 9px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.statement-group { padding-left: 17px; border-left: 2px solid var(--rule); }
.network-description { margin: 28px 0 0; }
.resort-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; }
.resort-list li { padding: 0 15px; border-left: 1px solid var(--rule); }
.resort-list li:first-child { padding-left: 0; border-left: 0; }
.privacy-page { min-height: 62vh; padding-top: 54px; padding-bottom: 64px; }
.back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 9px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.back-link:hover { border-color: var(--amber); color: var(--amber); }
.privacy-page h1, .not-found h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.2;
}
.not-found {
  width: min(100% - 48px, 720px);
  min-height: 100vh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.not-found p { margin: 0 0 18px; }
.not-found .eyebrow { color: var(--muted); }

.site-footer { background: var(--surface); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 22px; color: var(--muted); font-size: .88rem; }
.footer-line { line-height: 1.45; }
.footer-affiliation { font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-inner a { color: inherit; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; text-underline-offset: 3px; }
.skip-link { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 8px 12px; background: var(--page); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .page-width { width: min(100% - 36px, 720px); }
  .site-header { padding: 18px 0; }
  .header-inner { gap: 9px; }
  .theme-toggle { padding: 4px 0; font-size: .7rem; }
  .definition { padding-top: 33px; }
  .bands { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-block: 42px; }
  .band { min-height: 112px; gap: 6px; padding: 8px 3px; }
  .band-code { font-size: .86rem; }
  .band-name { font-size: .48rem; letter-spacing: -.03em; white-space: nowrap; }
  .band-range { font-size: .54rem; }
  .content-section { padding-bottom: 32px; margin-bottom: 30px; }
  .content-section h2 { font-size: 1.55rem; }
  .resort-list { gap: 6px 0; }
  .resort-list li { padding-inline: 10px; }
  .resort-list li:first-child { padding-left: 0; }
  .footer-inner { padding-block: 16px; gap: 10px; }
  .not-found { width: min(100% - 36px, 720px); }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: var(--lockup-navy);
    --surface: #112442;
    --card: #182D4A;
    --ink: #F0EBE1;
    --muted: #999999;
    --amber: #E8921A;
    --rule: #2B3A52;
    --brand-panel: var(--lockup-navy);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: var(--lockup-navy);
  --surface: #112442;
  --card: #182D4A;
  --ink: #F0EBE1;
  --muted: #999999;
  --amber: #E8921A;
  --rule: #2B3A52;
  --brand-panel: var(--lockup-navy);
}

:root[data-theme="light"] {
  color-scheme: light;
}
