:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --text: #12212a;
  --muted: #5f6b73;
  --brand: #0f766e;
  --brand-deep: #0a4f52;
  --gold: #b7791f;
  --line: rgba(18, 33, 42, 0.1);
  --soft: #edf5f2;
  --soft-warm: #f7efe2;
  --max: 1280px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 32%),
    radial-gradient(circle at top right, rgba(237, 245, 242, 0.85), transparent 30%),
    linear-gradient(180deg, #f9f7f2 0%, #f2efe8 100%);
  color: var(--text);
  font-family: Inter, sans-serif;
  line-height: 1.6;
  position: relative;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

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

h1,
h2,
h3,
h4,
.logo {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.02em;
}

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

button,
input {
  font: inherit;
}

.container {
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 24px;
}

.site-header {
  backdrop-filter: blur(10px);
  background: rgba(250, 248, 243, 0.9);
  border-bottom: 1px solid rgba(18, 33, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px 0;
}

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

.logo span {
  color: var(--brand);
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-toggle {
  background: none;
  border: 1px solid rgba(18, 33, 42, 0.12);
  border-radius: 12px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
}

.nav-toggle span {
  background: var(--text);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 22px;
}

.nav-links a {
  font-size: 0.96rem;
  font-weight: 600;
  opacity: 0.88;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  opacity: 1;
}

.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-radius: 999px;
  color: #fff !important;
  padding: 10px 16px;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.hero {
  background:
    linear-gradient(135deg, rgba(236, 254, 255, 0.92), rgba(255, 251, 235, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  border-bottom: 1px solid var(--line);
  padding: 92px 0 78px;
}

.hero-grid,
.split-grid {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: 1.08fr 0.92fr;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.page-title {
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 0.98;
  margin-bottom: 18px;
  max-width: 820px;
  text-wrap: balance;
}

.page-intro {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 720px;
}

.hero-actions,
.band-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border-radius: 14px;
  display: inline-block;
  font-weight: 700;
  padding: 14px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-main {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 33, 42, 0.1);
}

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

.btn-main:hover,
.nav-cta:hover {
  box-shadow: 0 18px 30px rgba(15, 118, 110, 0.24);
}

.hero-panel,
.panel,
.card,
.news-box,
.band,
.legal-content,
.side-card,
.article-shell {
  background: var(--card);
  border: 1px solid rgba(18, 33, 42, 0.08);
  border-radius: var(--radius-lg);
}

.hero-panel,
.card,
.panel {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-panel img,
.card img,
.panel img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-media {
  min-height: 420px;
}

.panel-body,
.card-body,
.news-box,
.legal-content,
.side-card,
.article-shell,
.band {
  padding: 24px;
}

.section {
  padding: 82px 0;
}

.section-tight {
  padding: 28px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 900px;
}

.section-head h2,
.related-head h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
  margin-bottom: 10px;
  text-wrap: balance;
}

.section-head p,
.related-head p,
.panel-body p,
.band p,
.card p,
.side-card p,
.article-shell p,
.legal-content p,
.legal-content li,
.article-shell li {
  color: var(--muted);
}

.quick-grid,
.card-grid,
.grid-3,
.footer-grid {
  display: grid;
  gap: 24px;
}

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

.quick-card {
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(18, 33, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  padding: 22px;
}

.quick-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

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

.card {
  background: linear-gradient(180deg, #fff 0%, #fffdf9 100%);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.card-media {
  height: 240px;
}

.tag {
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  color: var(--brand);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding: 7px 11px;
  text-transform: uppercase;
}

.card h3 {
  font-size: 1.38rem;
  line-height: 1.16;
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 14px;
}

.guide-card,
.click-card {
  cursor: pointer;
  position: relative;
}

.guide-card:focus-visible,
.click-card:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 4px;
}

.guide-card::after,
.click-card::after {
  background: rgba(18, 33, 42, 0.9);
  border-radius: 999px;
  color: #fff;
  content: attr(data-guide-hint);
  font-size: 0.74rem;
  font-weight: 800;
  left: 18px;
  letter-spacing: 0.08em;
  opacity: 0;
  padding: 8px 12px;
  position: absolute;
  top: 18px;
  transform: translateY(-4px);
  transition: 0.2s ease;
  z-index: 2;
}

.guide-card:hover::after,
.guide-card:focus-visible::after,
.click-card:hover::after,
.click-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.guide-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0 16px;
}

.guide-meta-item {
  background: rgba(15, 118, 110, 0.05);
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-radius: 18px;
  padding: 12px 14px;
}

.guide-meta-label {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.guide-meta-value {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
}

.guide-hint {
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
}

.photo-credit {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 10px;
}

.card-link,
.text-link {
  color: var(--brand);
  font-weight: 700;
}

.card-link::after,
.text-link::after {
  content: " →";
}

.card-link:hover,
.text-link:hover,
.footer a:hover {
  color: var(--brand-deep);
}

.band {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr auto;
  background:
    linear-gradient(135deg, rgba(236, 254, 255, 0.9), rgba(255, 251, 235, 0.92));
  border: 1px solid rgba(18, 33, 42, 0.08);
  box-shadow: var(--shadow);
}

.band h3 {
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  margin-bottom: 8px;
}

.band p {
  max-width: 700px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 33, 42, 0.08);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 14px;
}

.newsletter-note,
.small-note,
.meta,
.copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.newsletter-form input,
.search-input {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 33, 42, 0.12);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  min-width: 260px;
  padding: 14px 16px;
}

.search-input {
  min-width: 280px;
  padding: 11px 14px;
}

.filters {
  backdrop-filter: blur(10px);
  background: rgba(250, 248, 243, 0.9);
  border-bottom: 1px solid rgba(18, 33, 42, 0.08);
  position: sticky;
  top: 73px;
  z-index: 90;
}

.filter-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 0;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(18, 33, 42, 0.1);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 16px;
  transition: 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.16);
}

.hidden {
  display: none !important;
}

.layout-sidebar {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.side-card h4 {
  font-size: 1.06rem;
  margin-bottom: 12px;
}

.link-list a,
.toc a,
.side-links a {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  display: block;
  font-weight: 600;
  padding: 10px 0;
}

.link-list a:last-child,
.toc a:last-child,
.side-links a:last-child {
  border-bottom: none;
}

.toc a {
  color: var(--muted);
  font-weight: 500;
}

.article-shell h2,
.legal-content h2 {
  color: var(--text);
  font-size: 2rem;
  line-height: 1.1;
  margin: 28px 0 12px;
}

.article-shell h3,
.legal-content h3 {
  color: var(--text);
  font-size: 1.35rem;
  margin: 22px 0 10px;
}

.article-shell ul,
.article-shell ol,
.legal-content ul {
  margin: 12px 0 18px;
  padding-left: 22px;
}

.article-shell table {
  border-collapse: collapse;
  margin: 18px 0;
  width: 100%;
}

.article-shell td,
.article-shell th {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.article-shell blockquote {
  background: var(--soft);
  border-left: 4px solid var(--brand);
  border-radius: 16px;
  color: var(--text);
  margin: 18px 0;
  padding: 18px 20px;
}

.cta-box,
.comparison-box,
.monetize-box,
.note-box {
  background: linear-gradient(135deg, #ecfeff, #fffbeb);
  border: 1px solid var(--line);
  border-radius: 26px;
  margin: 26px 0;
  padding: 24px;
}

.comparison-box ul,
.monetize-box ul,
.note-box ul {
  margin-top: 10px;
}

.legal-layout {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: 300px minmax(0, 1fr);
}

.legal-nav {
  position: sticky;
  top: 92px;
}

.legal-nav a {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: block;
  font-weight: 600;
  padding: 10px 0;
}

.legal-nav a:last-child {
  border-bottom: none;
}

.footer {
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(18, 33, 42, 0.08);
  margin-top: 24px;
  padding: 58px 0;
}

.footer-grid {
  grid-template-columns: 2fr 1fr 1fr;
}

.footer h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.footer a,
.footer p {
  color: var(--muted);
  display: block;
  margin: 8px 0;
}

.copy {
  margin-top: 28px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.guide-trigger {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(10, 79, 82, 0.12));
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  color: var(--brand-deep);
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
  transition: 0.2s ease;
}

.guide-trigger:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 999;
}

.modal.active {
  display: flex;
}

.modal-card {
  background: linear-gradient(180deg, #fff, #fffdf9);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  max-height: 92vh;
  max-width: 760px;
  overflow: auto;
  width: 100%;
}

.modal-media {
  height: 280px;
  object-fit: cover;
  width: 100%;
}

.modal-body {
  padding: 24px;
}

.guide-modal-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.guide-modal-meta div {
  background: var(--soft);
  border-radius: 18px;
  padding: 14px;
}

.guide-modal-meta span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.guide-modal-meta strong {
  display: block;
  line-height: 1.4;
}

.modal-close {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  height: 42px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
}

.stats {
  display: grid;
  gap: 16px;
}

.stat {
  border-bottom: 1px solid rgba(18, 33, 42, 0.08);
  padding-bottom: 16px;
}

.stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 1020px) {
  .hero-grid,
  .split-grid,
  .quick-grid,
  .card-grid,
  .grid-3,
  .band,
  .footer-grid,
  .layout-sidebar,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 2.8rem;
  }

  .sidebar,
  .legal-nav {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(18, 33, 42, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
    padding: 10px;
    width: 100%;
  }

  .site-nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 10px;
    width: 100%;
  }

  .container {
    padding: 0 22px;
  }

  .hero {
    padding: 64px 0 54px;
  }

  .page-title {
    font-size: 2.3rem;
  }

  .hero-media,
  .card-media {
    min-height: 0;
    height: 300px;
  }

  .newsletter-form input,
  .search-input {
    min-width: 100%;
  }

  .guide-meta,
  .guide-modal-meta {
    grid-template-columns: 1fr;
  }

  .filters {
    top: 69px;
  }
}
