/* ==========================================================
   Morning to Morning — "The Morning Edition"
   Night-to-dawn palette, arch frames, sunrise timeline.
   ========================================================== */

:root {
  --night: #1b2340;
  --night-deep: #141a31;
  --dusk: #6a4c6b;
  --ember: #d9572b;
  --sun: #f28c28;
  --sun-light: #f7b267;
  --dawn: #fce6cf;

  --paper: #fbf6ee;
  --paper-2: #f4ece0;
  --card: #ffffff;
  --ink: #1b2340;
  --ink-soft: #4f5672;
  --muted: #747a91;
  --line: #e6ddd0;
  --on-night: #f5eee4;
  --on-night-soft: rgba(245, 238, 228, 0.72);

  --accent: var(--ember);
  --accent-soft: var(--dawn);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 20px;
  --arch: 50% 50% 18px 18px / 40% 40% 18px 18px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(27, 35, 64, 0.06), 0 12px 32px rgba(27, 35, 64, 0.08);
}

.theme-india {
  --accent: #c2410c;
  --accent-soft: #ffe6d2;
}

.theme-usa {
  --accent: #2f5d8a;
  --accent-soft: #e3ecf6;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.3rem, 6.5vw, 4.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--sun);
  color: var(--night);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--night);
}

/* ---------- Country visibility ---------- */

.region-in [data-only="us"],
.region-us [data-only="in"] {
  display: none !important;
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name em {
  margin: 0 0.18em;
  font-style: italic;
  font-weight: 400;
  color: var(--sun);
}

/* ---------- Header (night) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--night);
  color: var(--on-night);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 68px;
  padding-block: 0.5rem;
}

.header-inner > .brand {
  margin-right: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--on-night-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-night);
}

.site-nav a[aria-current="page"] {
  background: rgba(242, 140, 40, 0.18);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-night);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 760px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--night);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 28px rgba(20, 26, 49, 0.35);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .js .site-nav a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
}

/* ---------- Country switcher ---------- */

.country-switch {
  display: none;
  position: relative;
}

.js .country-switch {
  display: block;
}

.country-current {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 44px;
  padding: 0 0.7rem;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-night);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.country-current:hover {
  border-color: var(--sun);
  background: rgba(255, 255, 255, 0.1);
}

.country-flag-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.flag {
  flex: none;
  width: 22px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(27, 35, 64, 0.2);
}

.country-caret {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.country-current[aria-expanded="true"] .country-caret {
  transform: rotate(180deg);
}

.country-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  min-width: 210px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.country-menu[hidden] {
  display: none;
}

.country-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.country-menu button:hover {
  background: var(--dawn);
}

.country-menu button[aria-current="true"] {
  font-weight: 700;
}

.country-menu button[aria-current="true"]::after {
  content: "\2713";
  margin-left: auto;
  color: var(--ember);
}

@media (max-width: 420px) {
  .header-inner {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.4rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .country-current {
    padding: 0 0.6rem;
  }

  .country-code,
  .country-caret {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--night);
  color: var(--on-night);
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  border-color: var(--night);
  color: var(--night);
}

.btn-ghost:hover {
  background: var(--night);
  color: var(--on-night);
}

.btn-sun {
  background: var(--sun);
  color: var(--night);
}

.btn-sun:hover {
  background: var(--on-night);
  color: var(--night);
}

.btn-light {
  border-color: rgba(245, 238, 228, 0.55);
  color: var(--on-night);
}

.btn-light:hover {
  background: var(--on-night);
  color: var(--night);
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 7px;
  border-radius: 14px 14px 0 0;
  background: var(--sun);
}

.lead {
  max-width: 36em;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--ink-soft);
}

.notice {
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1.5px dashed var(--accent);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.notice strong {
  color: var(--ink);
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-tight {
  padding-block: 2rem 0;
}

.section-flush {
  padding-top: 0;
}

.section-alt {
  background: var(--paper-2);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--ink-soft);
}

.section-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.section-row .section-head {
  margin-bottom: 0;
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.link-arrow:hover {
  text-decoration: underline;
}

.badge-sample {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--night);
  color: var(--on-night);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.save-pill {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--dawn);
  color: #a63d14;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.arch {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--arch);
  background: var(--accent-soft);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch .badge-sample {
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
}

.glance + .notice {
  margin-top: 2rem;
}

/* ---------- Edition bar (masthead) ---------- */

.edition-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.65rem;
  border-block: 1px solid rgba(245, 238, 228, 0.18);
  color: var(--on-night-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.edition-bar strong {
  color: var(--sun-light);
  font-weight: 700;
}

/* ---------- Home: dawn hero ---------- */

.dawn-hero {
  position: relative;
  overflow: hidden;
  padding-top: 1.25rem;
  background: linear-gradient(
    180deg,
    var(--night) 0%,
    #26305a 34%,
    var(--dusk) 62%,
    #d9785f 84%,
    var(--sun-light) 100%
  );
  color: var(--on-night);
}

.dawn-hero-copy {
  max-width: 50rem;
  margin: clamp(2.5rem, 7vw, 4.5rem) auto 0;
  text-align: center;
}

.dawn-hero h1 {
  margin-bottom: 0.4em;
}

.dawn-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--sun-light);
}

.dawn-hero .lead {
  margin-inline: auto;
  color: var(--on-night-soft);
}

.dawn-hero .eyebrow {
  color: var(--sun-light);
}

.dawn-hero .hero-actions {
  justify-content: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.horizon {
  position: relative;
  height: clamp(110px, 16vw, 170px);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.horizon-sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(200px, 30vw, 340px);
  aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(circle at 50% 100%, #fff1cf 0%, var(--sun-light) 42%, var(--sun) 100%);
  box-shadow: 0 0 90px 30px rgba(247, 178, 103, 0.45);
  transform: translateX(-50%);
  animation: rise 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.horizon-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--paper);
}

@keyframes rise {
  from {
    transform: translate(-50%, 45%);
  }
  to {
    transform: translate(-50%, 0);
  }
}

/* ---------- Home: glance ---------- */

.glance {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.glance li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.glance-figure {
  min-width: 2.2ch;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--sun);
}

.glance strong {
  display: block;
  font-size: 1.05rem;
}

.glance div span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .glance {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .glance li {
    border-bottom: 0;
    border-top: 2px solid var(--night);
  }
}

/* ---------- Home: preview picks ---------- */

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-pick {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  padding: 1rem 1rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mini-pick:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.mini-pick .arch {
  margin-bottom: 0.6rem;
}

.mini-pick h3 {
  margin: 0;
  font-size: 1.2rem;
}

.mini-pick p {
  margin: 0;
}

.mini-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin-top: auto !important;
  padding-top: 0.6rem;
}

.pick-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.price-now {
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price-usual {
  color: var(--muted);
  font-size: 0.92rem;
}

.price-note {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Home: checklist ---------- */

.checklist-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.checklist {
  margin: 0;
  padding: 0.5rem 1.75rem;
  list-style: none;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.checklist li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px dashed var(--line);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dawn);
  color: var(--ember);
  font-weight: 700;
}

.checklist strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.checklist span {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

@media (min-width: 880px) {
  .checklist-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

/* ---------- Home: category shelf ---------- */

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shelf figure {
  margin: 0;
  text-align: center;
}

.shelf .arch {
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.25s ease;
}

.shelf li:hover .arch {
  transform: translateY(-4px);
}

.shelf figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Home: the "never" list ---------- */

.never {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.never li {
  padding: 0.6rem 1.1rem;
  border: 1.5px dashed var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  display: grid;
  gap: 1.25rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: 28px;
  background: linear-gradient(160deg, var(--night) 0%, #2d3560 60%, var(--dusk) 100%);
  color: var(--on-night);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun-light) 0%, var(--sun) 70%);
  opacity: 0.9;
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin-bottom: 0.25em;
}

.cta-band p {
  margin: 0;
  color: var(--on-night-soft);
}

@media (min-width: 760px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    padding-right: 12rem;
  }
}

/* ---------- Edition pages (India / USA) ---------- */

.edition-head {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0 clamp(2.5rem, 6vw, 4rem);
  color: var(--on-night);
}

.theme-india .edition-head {
  background: linear-gradient(180deg, var(--night) 0%, #3b2d55 45%, #8a3f5a 78%, #e2702f 100%);
}

.theme-usa .edition-head {
  background: linear-gradient(180deg, var(--night) 0%, #24406c 48%, #5f7fae 78%, #f2b48a 100%);
}

.edition-head::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 0;
  width: clamp(140px, 22vw, 260px);
  aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(circle at 50% 100%, #fff1cf 0%, var(--sun-light) 45%, var(--sun) 100%);
  box-shadow: 0 0 70px 20px rgba(247, 178, 103, 0.35);
  pointer-events: none;
}

.edition-head > .wrap {
  position: relative;
  z-index: 1;
}

.edition-title {
  margin-top: clamp(2rem, 5vw, 3rem);
  max-width: 40rem;
}

.edition-head .eyebrow {
  color: var(--sun-light);
}

.edition-head .lead {
  color: var(--on-night-soft);
}

.edition-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.edition-facts li {
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(245, 238, 228, 0.3);
  border-radius: 999px;
  background: rgba(20, 26, 49, 0.25);
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 700px) {
  .edition-head::after {
    opacity: 0.45;
  }
}

.edition-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.edition-side {
  display: grid;
  gap: 1.25rem;
}

.side-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.side-title {
  margin-bottom: 0.85rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.toc a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.toc-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.legend {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0;
}

.legend-dot,
.legend-tick,
.legend-bar {
  flex: none;
  display: inline-block;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--night);
  border-radius: 50%;
  background: var(--sun);
}

.legend-tick {
  width: 3px;
  height: 16px;
  margin-inline: 5.5px;
  border-radius: 2px;
  background: var(--ink-soft);
}

.legend-bar {
  width: 14px;
  height: 6px;
  border-radius: 3px;
  background: var(--sun-light);
}

@media (min-width: 980px) {
  .edition-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .edition-side {
    position: sticky;
    top: 92px;
  }
}

/* ---------- Filters ---------- */

.filters {
  display: none;
}

.js .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.chip {
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  border-color: var(--night);
  background: var(--night);
  color: var(--on-night);
}

/* ---------- Sunrise timeline ---------- */

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 27px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 45%, var(--ember) 75%, var(--sun) 100%);
}

.pick {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1.75rem;
}

.pick[hidden] {
  display: none;
}

.pick-time {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.2rem;
  color: var(--night);
}

.pick-time::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-bottom: 0.4rem;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
}

.pick:nth-child(2) .pick-time {
  color: #3b3561;
}

.pick:nth-child(3) .pick-time {
  color: var(--dusk);
}

.pick:nth-child(4) .pick-time {
  color: var(--ember);
}

.pick:nth-child(5) .pick-time {
  color: var(--sun);
}

.pick-time time {
  padding: 0.1rem 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pick-time small {
  background: var(--paper);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pick-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pick-media {
  padding: 1rem 1rem 0;
}

.pick-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.25rem 1.25rem;
}

.pick-body p {
  margin: 0;
}

.pick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: center;
}

.pick-type {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.pick-title {
  margin: 0;
  font-size: 1.3rem;
}

.pick-why {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.pick-why strong {
  color: var(--ink);
}

.pick-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.6rem !important;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
}

.pick-cta {
  padding: 0.35rem 0.85rem;
  border: 1.5px dashed var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .pick-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .pick-media {
    padding: 1rem 0 1rem 1rem;
  }

  .pick-media {
    align-self: start;
  }
}

@media (max-width: 480px) {
  .timeline::before {
    left: 19px;
  }

  .pick {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .pick-time time {
    font-size: 0.75rem;
  }

  .pick-time small {
    display: none;
  }
}

/* ---------- Honest price line ---------- */

.price-line {
  margin-top: 0.4rem;
}

.price-figures {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.7rem;
}

.gauge {
  position: relative;
  height: 20px;
  margin: 0.55rem 0 0.2rem;
}

.gauge-track {
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}

.gauge-track::after {
  content: "";
  position: absolute;
  right: 0;
  top: -5px;
  width: 2px;
  height: 12px;
  background: var(--muted);
}

.gauge-save {
  position: absolute;
  top: 7px;
  left: var(--today);
  width: calc(var(--usual) - var(--today));
  height: 6px;
  border-radius: 3px;
  background: var(--sun-light);
}

.gauge-usual {
  position: absolute;
  top: 2px;
  left: var(--usual);
  width: 3px;
  height: 16px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ink-soft);
}

.gauge-today {
  position: absolute;
  top: 3px;
  left: var(--today);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border: 2px solid var(--night);
  border-radius: 50%;
  background: var(--sun);
}

.gauge-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Simple pages ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, var(--night) 0%, #2d3560 60%, var(--dusk) 100%);
  color: var(--on-night);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 0;
  width: clamp(110px, 16vw, 180px);
  aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(circle at 50% 100%, #fff1cf 0%, var(--sun-light) 45%, var(--sun) 100%);
  opacity: 0.9;
  pointer-events: none;
}

.page-hero > .wrap {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: var(--sun-light);
}

.page-hero .lead {
  margin-bottom: 0;
  color: var(--on-night-soft);
}

.page-hero .updated {
  color: var(--on-night-soft);
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2em;
  font-size: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4em;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.contact-card {
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.contact-card h2 {
  font-size: 1.5rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.contact-list dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}

.contact-list a {
  font-weight: 600;
}

.form-note {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--dawn);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.form-note strong {
  color: var(--ink);
}

.form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.95rem;
  font-weight: 600;
}

.field-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sun);
  box-shadow: 0 0 0 4px rgba(242, 140, 40, 0.22);
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.form-status:empty {
  display: none;
}

@media (min-width: 600px) {
  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  padding-block: clamp(4rem, 12vw, 8rem);
  text-align: center;
}

.not-found .brand-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
}

.not-found .lead {
  margin-inline: auto;
}

/* ---------- Footer (night) ---------- */

.site-footer {
  padding: 3.5rem 0 2rem;
  background: var(--night-deep);
  color: var(--on-night);
}

.site-footer a {
  color: var(--on-night);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--sun-light);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  max-width: 22rem;
  margin-top: 1rem;
  color: var(--on-night-soft);
  font-size: 0.95rem;
}

.footer-title {
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-night-soft);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-night-soft);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
