@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f8f0e4;
  --bg-deep: #13212d;
  --surface: rgba(255, 250, 242, 0.76);
  --surface-strong: #fff9f0;
  --surface-deep: rgba(19, 33, 45, 0.92);
  --ink: #17212d;
  --ink-soft: #5d6976;
  --line: rgba(23, 33, 45, 0.14);
  --line-strong: rgba(23, 33, 45, 0.28);
  --gold: #b76a29;
  --gold-soft: #f2c68f;
  --blue: #234e68;
  --blue-soft: #d8ebf4;
  --shadow: 0 26px 60px rgba(23, 33, 45, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(183, 106, 41, 0.16), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(35, 78, 104, 0.18), transparent 24%),
    linear-gradient(180deg, #fffaf2 0%, #f3e6d1 100%);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 33, 45, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 45, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 90%);
  opacity: 0.35;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

::selection {
  background: rgba(183, 106, 41, 0.24);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 242, 0.84);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-mark {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.nav-link,
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.footer-link:hover {
  background: rgba(35, 78, 104, 0.08);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-link.is-active {
  background: var(--ink);
  color: #fff;
}

.hero,
.page-hero {
  position: relative;
  padding: 4.5rem 0 2.8rem;
}

.hero-grid,
.page-hero-grid,
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.84fr);
  align-items: stretch;
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  align-items: stretch;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1,
.page-hero h1,
.section-title,
.card h3,
.quote-text,
.table-title {
  font-family: "Cormorant Garamond", serif;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lead,
.section-copy,
.card p,
.muted {
  color: var(--ink-soft);
}

.lead {
  max-width: 68ch;
  font-size: 1.04rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: #0f1720;
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  background: rgba(35, 78, 104, 0.08);
}

.button-ghost {
  background: transparent;
  color: var(--blue);
  border-color: rgba(35, 78, 104, 0.18);
}

.hero-note,
.fine-print,
.card-meta,
.table-footnote,
.meta-line,
.badge-note,
.footer-copy {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.hero-note {
  margin-top: 1rem;
}

.panel,
.card,
.quote-card,
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(242, 198, 143, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(19, 33, 45, 0.96) 0%, rgba(35, 78, 104, 0.92) 100%);
  color: #fff;
  box-shadow: 0 36px 70px rgba(19, 33, 45, 0.22);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel::before {
  width: 420px;
  height: 420px;
  right: -190px;
  top: -180px;
}

.hero-panel::after {
  width: 240px;
  height: 240px;
  right: 1rem;
  bottom: -120px;
}

.panel-header,
.card-header {
  padding: 1.2rem 1.3rem 0;
}

.panel-body {
  padding: 0 1.3rem 1.3rem;
}

.panel-body.flush {
  padding: 0;
}

.signal-board {
  position: relative;
  z-index: 1;
}

.signal-board .table-title {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1;
}

.signal-board p {
  color: rgba(255, 255, 255, 0.75);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.stat-chip {
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.stat-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.tag-row,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag,
.status-pill,
.note-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.tag {
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink-soft);
}

.tag-dark {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.status-pill {
  background: rgba(35, 78, 104, 0.08);
  color: var(--blue);
}

.status-pill.affiliated {
  background: rgba(183, 106, 41, 0.14);
  color: #8b4d1f;
}

.status-pill.reviewed {
  background: rgba(34, 111, 65, 0.12);
  color: #2c6c3d;
}

.section {
  padding: 1.6rem 0 4rem;
}

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

.section-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.section-head > div {
  max-width: 70ch;
}

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

.ranking-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
}

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

.ranking-table th,
.compare-table th {
  background: rgba(23, 33, 45, 0.04);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ranking-table tr:last-child td,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.rank-value {
  display: inline-flex;
  min-width: 2.4rem;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.site-name {
  display: inline-block;
  font-size: 1.04rem;
  font-weight: 700;
}

.site-name-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1.4px;
  text-underline-offset: 3px;
}

.site-name + .card-meta {
  margin-top: 0.25rem;
}

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: rgba(183, 106, 41, 0.12);
  color: #8d4f21;
  font-weight: 700;
}

.disclosure-bar {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--line);
  background: rgba(183, 106, 41, 0.08);
}

.card,
.quote-card,
.metric-card {
  padding: 1.4rem;
}

.card h3,
.quote-text {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1;
}

.card-list,
.checklist,
.toc-list,
.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.card-list li,
.checklist li,
.resource-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
}

.card-list li::before,
.checklist li::before,
.resource-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px dashed var(--line);
}

.metric-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.metric-label {
  color: var(--ink-soft);
}

.metric-value {
  font-weight: 700;
}

.spotlight-grid,
.article-grid,
.quote-grid,
.quick-links-grid {
  display: grid;
  gap: 1.1rem;
}

.spotlight-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

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

.quote-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-links-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.quick-link-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.quick-link-rank {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(183, 106, 41, 0.12);
  color: #8d4f21;
  font-weight: 700;
}

.quick-link-actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.profile-actions {
  margin-top: 1rem;
}

.callout,
.note-card {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
}

.callout strong,
.note-card strong {
  color: var(--ink);
}

.link-inline {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.2px;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.48);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.2rem;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 1.2rem 1.2rem;
}

.quote-card {
  background:
    radial-gradient(circle at top left, rgba(183, 106, 41, 0.15), transparent 30%),
    var(--surface);
}

.quote-text {
  line-height: 1.08;
}

.page-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.page-meta span,
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.content-stack {
  display: grid;
  gap: 1.2rem;
}

.cta-band {
  padding: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(35, 78, 104, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(247, 235, 218, 0.92));
}

.cta-band .section-title {
  margin-bottom: 0.8rem;
}

.footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.tiny {
  font-size: 0.8rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.65s ease forwards;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .nav-link,
  .footer-link,
  .button {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .page-hero-grid,
  .spotlight-grid,
  .article-grid,
  .quote-grid,
  .quick-links-grid,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-row,
  .footer-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-2,
  .grid-3,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-hero {
    padding-top: 3.5rem;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 1.2rem));
  }

  .hero-panel,
  .panel,
  .card,
  .quote-card,
  .cta-band,
  .faq-item {
    border-radius: 24px;
  }

  .ranking-table th,
  .ranking-table td,
  .compare-table th,
  .compare-table td {
    padding: 0.85rem 0.8rem;
  }
}
