:root {
  --ink: #1d2525;
  --muted: #5c6865;
  --petrol: #123c3b;
  --petrol-2: #1f766f;
  --sand: #f4ead7;
  --warm: #fbf7ee;
  --paper: #fffdf7;
  --gold: #c49a4b;
  --blue: #1e3f5a;
  --line: rgba(18, 60, 59, 0.15);
  --shadow: 0 18px 45px rgba(18, 60, 59, 0.11);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  font-family: Manrope, Inter, "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
}

a {
  color: var(--petrol-2);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--petrol);
  color: white;
  border-radius: var(--radius);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 247, 238, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap,
.section,
.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 840;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--petrol);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.58rem 0.72rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(31, 118, 111, 0.11);
  color: var(--petrol);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(18, 60, 59, 0.94), rgba(30, 63, 90, 0.88)),
    radial-gradient(circle at 78% 20%, rgba(196, 154, 75, 0.28), transparent 34%);
  color: white;
}

.hero .section {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 76px 0 86px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  font-weight: 880;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 850;
}

h3 {
  font-size: 1.18rem;
  font-weight: 820;
}

.lead {
  max-width: 720px;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--petrol);
  color: white;
  font-weight: 820;
  line-height: 1.15;
  text-decoration: none;
}

.button:hover {
  background: #0d302f;
  color: white;
}

.button.light {
  background: var(--sand);
  color: var(--petrol);
}

.button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
}

.button.outline {
  background: transparent;
  border-color: var(--line);
  color: var(--petrol);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.finance-panel {
  width: min(100%, 430px);
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid rgba(244, 234, 215, 0.22);
  border-radius: 12px;
  background: rgba(251, 247, 238, 0.09);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.panel-row span,
.panel-row strong {
  min-width: 0;
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row strong {
  font-size: 1.55rem;
  text-align: right;
  overflow-wrap: break-word;
}

.chart {
  height: 160px;
  margin-top: 1rem;
}

.band {
  padding: clamp(58px, 8vw, 96px) 0;
}

.band.paper {
  background: var(--paper);
}

.band.petrol {
  background: var(--petrol);
  color: white;
}

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

.section-head p,
.page-intro,
.card p,
.guide-list p,
.article-card p {
  color: var(--muted);
}

.petrol .section-head p,
.petrol .card p,
.petrol .notice {
  color: rgba(255, 255, 255, 0.78);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card,
.article-card,
.guide-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(18, 60, 59, 0.05);
}

.card h2,
.guide-card h2,
.footer-inner h2 {
  font-size: 1.28rem;
  line-height: 1.18;
}

.article-card h3 {
  font-size: 1.16rem;
  line-height: 1.22;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: var(--radius);
  background: rgba(31, 118, 111, 0.12);
  color: var(--petrol);
  font-weight: 900;
}

.petrol .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.petrol .card-icon {
  background: rgba(244, 234, 215, 0.16);
  color: var(--sand);
}

.page-hero {
  background: linear-gradient(112deg, var(--petrol), var(--blue));
  color: white;
}

.page-hero .section {
  padding: 70px 0 74px;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(2.2rem, 5.8vw, 4.2rem);
}

.breadcrumbs {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.91rem;
}

.breadcrumbs a {
  color: white;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.article-body,
.page-content {
  max-width: 820px;
}

.article-body h2,
.page-content h2 {
  margin-top: 2.4rem;
  color: var(--petrol);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

.article-body h3,
.page-content h3 {
  margin-top: 1.6rem;
  color: var(--blue);
}

.article-body p,
.article-body li,
.page-content p,
.page-content li {
  color: #34413f;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.aside-box {
  position: sticky;
  top: 98px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.aside-box a {
  display: block;
  margin-top: 0.65rem;
  font-weight: 760;
  text-decoration: none;
}

.notice {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(196, 154, 75, 0.12);
  color: #4c4230;
}

.article-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.article-card .meta {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 820;
}

.article-card a {
  margin-top: auto;
  font-weight: 830;
  text-decoration: none;
}

.guide-list {
  display: grid;
  gap: 1rem;
}

.guide-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.guide-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--petrol);
  color: white;
  font-weight: 880;
}

.site-footer {
  padding: 52px 0 30px;
  background: #102c2c;
  color: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

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

.credit {
  margin-top: 1rem;
  font-size: 0.94rem;
}

.fine-print {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.94rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .hero .section,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero .section {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .grid.four,
  .grid.three,
  .grid.two,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .aside-box {
    position: static;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .nav-wrap,
  .section,
  .footer-inner {
    width: min(calc(100% - 24px), 366px);
    margin-left: 12px;
    margin-right: auto;
  }

  .brand small {
    display: none;
  }

  h1,
  .page-hero h1 {
    font-size: 1.92rem;
  }

  .lead {
    font-size: 1rem;
  }

  .finance-panel {
    padding: 1rem;
  }

  .panel-row {
    gap: 0.6rem;
  }

  .panel-row strong {
    font-size: 1.24rem;
  }

  .hero-actions,
  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .guide-card {
    grid-template-columns: 1fr;
  }
}
