:root {
  --background: #ffffff;
  --foreground: #282c34;
  --muted: #667085;
  --border: #e5e7eb;
  --soft: #f7f8f6;
  --soft-orange: #fff4ec;
  --orange: #f97015;
  --orange-dark: #c75305;
  --orange-deep: #a94704;
  --green: #4f7d4f;
  --ink: #16181d;
  --shadow: 0 18px 48px rgba(40, 44, 52, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 3px;
  width: 0;
  background: var(--orange);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.nav-inner,
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97015, #ff9b45);
  color: #fff;
  box-shadow: 0 12px 24px rgba(249, 112, 21, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  color: rgba(40, 44, 52, 0.78);
}

.nav-links a:hover {
  color: var(--orange-dark);
}

.nav-links .nav-cta,
.nav-links .nav-cta:hover {
  color: #fff;
}

.nav-cta,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-cta,
.button-primary {
  border: 0;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 32px rgba(22, 24, 29, 0.14);
}

.button-primary {
  background: var(--orange-deep);
  color: #fff;
  box-shadow: 0 16px 32px rgba(169, 71, 4, 0.2);
}

.button-secondary {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
}

.nav-cta:hover,
.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button-secondary:hover {
  border-color: #fed7aa;
  background: var(--soft-orange);
  color: var(--orange-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 54px;
  background: radial-gradient(circle at top right, rgba(249, 112, 21, 0.11), transparent 34%), #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  max-width: 640px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.article-hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero p,
.article-hero p {
  max-width: 610px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-panel,
.image-frame,
.finder,
.article-card,
.quick-answer,
.interactive-box,
.source-box,
.cta-panel {
  border: 1px solid rgba(229, 231, 235, 0.76);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  justify-self: end;
  border-radius: 18px;
  padding: 16px;
}

.hero-panel img,
.image-frame img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.hero-panel img {
  height: clamp(300px, 24vw, 360px);
  object-position: center;
}

.image-frame img {
  aspect-ratio: 16 / 9;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.stat-strip div {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 8px;
  background: #fff7ed;
  padding: 12px;
}

.stat-strip strong {
  display: block;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 18px;
  line-height: 1.16;
}

.stat-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head h2,
.article-content h2,
.cta-panel h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 32px;
  line-height: 1.14;
  letter-spacing: 0;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.finder {
  border-radius: 12px;
  padding: 24px;
}

.finder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.filter-button,
.quarter-button {
  min-height: 42px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 0 16px;
  color: var(--foreground);
  font-weight: 800;
}

.filter-button:focus-visible,
.quarter-button:focus-visible,
.nav-links a:focus-visible,
.button-primary:focus-visible,
.button-secondary:focus-visible,
.article-card:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(249, 112, 21, 0.35);
  outline-offset: 3px;
}

.filter-button[aria-pressed="true"],
.quarter-button[aria-pressed="true"] {
  border-color: var(--orange-deep);
  background: var(--orange-deep);
  color: #fff;
}

.finder-result {
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fff7ed;
  padding: 18px;
  color: rgba(40, 44, 52, 0.84);
  line-height: 1.6;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 112, 21, 0.32);
  box-shadow: 0 26px 80px rgba(249, 112, 21, 0.12);
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.article-meta,
.crumbs,
.article-side,
.article-footnote,
.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 12px 0;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.article-card .read-link {
  margin-top: auto;
  padding-top: 22px;
  color: var(--orange-dark);
  font-weight: 900;
}

.article-hero {
  padding: 54px 0 42px;
  background: radial-gradient(circle at 80% 0, rgba(249, 112, 21, 0.1), transparent 38%), #fff;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.crumbs a {
  color: var(--orange-dark);
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 56px;
  align-items: start;
  justify-content: center;
}

.article-main {
  min-width: 0;
}

.article-side {
  position: sticky;
  top: 100px;
  border-left: 1px solid var(--border);
  padding-left: 22px;
}

.article-side a {
  display: block;
  margin-top: 12px;
  color: rgba(40, 44, 52, 0.74);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}

.article-side a:hover {
  color: var(--orange-dark);
}

.article-side a.is-active {
  color: var(--orange-dark);
  font-weight: 800;
}

.article-content {
  font-size: 18px;
  line-height: 1.72;
}

.article-content > p,
.article-content li {
  color: rgba(40, 44, 52, 0.82);
}

.article-content h2 {
  margin-top: 52px;
  margin-bottom: 16px;
  font-size: 30px;
}

.article-content h3 {
  margin-top: 36px;
  margin-bottom: 8px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.article-content section {
  scroll-margin-top: 110px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.article-content li + li {
  margin-top: 10px;
}

.image-frame {
  overflow: hidden;
  margin: 34px 0;
  border-radius: 12px;
}

.quick-answer,
.interactive-box,
.source-box,
.cta-panel {
  border-radius: 12px;
  padding: 22px;
  box-shadow: none;
}

.quick-answer {
  margin: 30px 0;
  border-color: #fed7aa;
  background: #fff7ed;
  border-left: 4px solid var(--orange);
}

.quick-answer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 18px;
}

.interactive-box {
  margin: 44px 0;
  background: #fffaf5;
}

.interactive-box h2 {
  margin-top: 0;
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  color: rgba(40, 44, 52, 0.84);
  font-weight: 700;
  line-height: 1.45;
}

.checklist input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
}

.score-bar {
  overflow: hidden;
  height: 12px;
  margin: 20px 0 10px;
  border-radius: 999px;
  background: #f3f4f6;
}

.score-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--green));
  transition: width 180ms ease;
}

.score-message {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.deadline-table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border);
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll:focus-visible {
  outline: 3px solid rgba(249, 112, 21, 0.35);
  outline-offset: 3px;
}

.deadline-table caption {
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.deadline-table th,
.deadline-table td {
  border-bottom: 1px solid var(--border);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

.deadline-table th {
  background: #fff7ed;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.deadline-table tr:last-child td {
  border-bottom: 0;
}

.deadline-planner {
  margin-top: 18px;
}

.quarter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.deadline-result {
  border-radius: 8px;
  background: #fff7ed;
  padding: 18px;
  color: rgba(40, 44, 52, 0.86);
  font-weight: 800;
}

.source-box {
  margin-top: 46px;
  background: #fff;
}

.source-box a {
  color: var(--orange-dark);
  font-weight: 800;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-list summary {
  cursor: pointer;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.faq-list p {
  color: var(--muted);
}

.cta-panel {
  margin-top: 54px;
  text-align: center;
  background: linear-gradient(180deg, #fff4ec, #fff);
}

.cta-panel p {
  max-width: 660px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.cta-panel .hero-actions {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
}

.hidden-card {
  display: none;
}

@media (max-width: 920px) {
  .hero-grid,
  .article-layout,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-side {
    order: -1;
    position: static;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 22px 0 0;
  }

  .hero {
    padding-top: 64px;
  }
}

@media (max-width: 700px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 18px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
  }

  .nav-cta {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
  }

  .hero,
  .article-hero,
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero h1,
  .article-hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .section-head h2,
  .article-content h2,
  .cta-panel h2 {
    font-size: 28px;
    line-height: 1.16;
  }

  .hero p,
  .article-hero p,
  .section-head p,
  .cta-panel p {
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-actions,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .hero-panel img {
    height: auto;
  }

  .stat-strip div {
    min-height: auto;
  }

  .article-content {
    font-size: 17px;
  }

  .table-scroll {
    margin-right: -16px;
    padding-right: 16px;
  }

  .deadline-table {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
