:root {
  --ink: #28163d;
  --muted: #70657d;
  --cream: #fff8e9;
  --paper: #fffef9;
  --jade: #0f6f61;
  --jade-dark: #0a4e45;
  --coral: #e94673;
  --gold: #f7c84b;
  --cyan: #39c7d9;
  --line: rgba(40, 22, 61, 0.15);
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    var(--cream);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
strong {
  text-wrap: balance;
}

p,
li,
td,
th {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  color: #fffdf5;
  background: var(--jade-dark);
  border-bottom: 4px solid var(--gold);
}

.site-header-inner,
.content-inner,
.site-footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.site-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-weight: 950;
  text-decoration: none;
}

.site-brand img {
  width: 42px;
  height: 52px;
  object-fit: contain;
}

.site-brand span {
  display: grid;
  gap: 2px;
}

.site-brand strong {
  font-size: 1.02rem;
  line-height: 1;
}

.site-brand small {
  color: rgba(255, 253, 245, 0.72);
  font-size: 0.66rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.site-nav a {
  min-height: 40px;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--gold);
}

.seo-hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  color: #fffdf5;
  background-color: var(--jade-dark);
  background-image:
    linear-gradient(90deg, rgba(10, 30, 30, 0.93) 0%, rgba(10, 45, 40, 0.78) 51%, rgba(10, 45, 40, 0.16) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.seo-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 470px;
  margin: 0 auto;
  padding: 54px 0 46px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.eyebrow {
  width: fit-content;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(2.5rem, 7vw, 5.9rem);
  line-height: 0.96;
}

.hero-copy .lead {
  max-width: 700px;
  color: rgba(255, 253, 245, 0.86);
  font-size: clamp(1.02rem, 2.2vw, 1.32rem);
  font-weight: 720;
  line-height: 1.45;
}

.hero-character {
  align-self: end;
  justify-self: center;
  width: min(390px, 100%);
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 26px 25px rgba(0, 0, 0, 0.34));
}

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

.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  background: var(--coral);
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: 7px;
  box-shadow: 0 5px 0 #8f2146;
  font-weight: 950;
  text-decoration: none;
}

.button.secondary {
  color: var(--ink);
  background: var(--gold);
  border-color: rgba(40, 22, 61, 0.16);
  box-shadow: 0 5px 0 #ad791d;
}

.button.ghost {
  color: var(--jade-dark);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 5px 0 rgba(40, 22, 61, 0.16);
}

.button:focus-visible,
.site-nav a:focus-visible,
.topic-link:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.content-band {
  padding: 62px 0;
  border-bottom: 1px solid var(--line);
}

.content-band.is-white {
  background: rgba(255, 255, 255, 0.74);
}

.content-band.is-jade {
  color: #fffdf5;
  background: var(--jade-dark);
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1;
}

.section-heading p,
.prose p,
.prose li {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.6;
}

.is-jade .section-heading p,
.is-jade .prose p,
.is-jade .prose li {
  color: rgba(255, 253, 245, 0.78);
}

.topic-grid,
.step-grid,
.tactic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.topic-link,
.step-item,
.tactic-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topic-link {
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(40, 22, 61, 0.13);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease;
}

.topic-link:hover {
  border-color: var(--jade);
  transform: translateY(-2px);
}

.topic-link small,
.step-item small,
.tactic-item small {
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.topic-link strong,
.step-item strong,
.tactic-item strong {
  font-size: 1.15rem;
  line-height: 1.1;
}

.topic-link p,
.step-item p,
.tactic-item p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.step-item b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 4px 0 rgba(40, 22, 61, 0.18);
}

.prose {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.prose h2 {
  margin-top: 20px;
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  line-height: 1.05;
}

.prose h3 {
  margin-top: 10px;
  font-size: 1.25rem;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
}

.callout {
  padding: 18px 20px;
  color: var(--ink);
  background: #fff0b8;
  border-left: 5px solid var(--coral);
  border-radius: 0 8px 8px 0;
  font-weight: 800;
  line-height: 1.5;
}

.rank-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rank-strip span {
  padding: 7px 9px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--paper);
}

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

th {
  color: #fff;
  background: var(--jade);
  font-size: 0.76rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

td strong {
  color: var(--ink);
}

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

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq-list details {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.cta-band {
  padding: 50px 0;
  color: #fffdf5;
  background:
    linear-gradient(90deg, rgba(15, 111, 97, 0.96), rgba(15, 111, 97, 0.74)),
    url("/boards/maokong-tea-garden.jpg") center / cover;
}

.cta-band .content-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
}

.cta-band p {
  margin-top: 10px;
  color: rgba(255, 253, 245, 0.78);
  font-weight: 700;
  line-height: 1.5;
}

.site-footer {
  color: rgba(255, 253, 245, 0.8);
  background: #172b2a;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 18px 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: #fffdf5;
  font-weight: 800;
}

@media (max-width: 840px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .seo-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.5fr);
  }

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

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

@media (max-width: 620px) {
  .site-header-inner,
  .content-inner,
  .site-footer-inner,
  .seo-hero-inner {
    width: min(100% - 24px, 1120px);
  }

  .site-brand small {
    display: none;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .seo-hero,
  .seo-hero-inner {
    min-height: 610px;
  }

  .seo-hero {
    background-image:
      linear-gradient(180deg, rgba(10, 30, 30, 0.95) 0%, rgba(10, 45, 40, 0.82) 62%, rgba(10, 45, 40, 0.28) 100%),
      var(--hero-image);
  }

  .seo-hero-inner {
    grid-template-columns: 1fr;
    align-content: space-between;
    padding: 40px 0 0;
  }

  .hero-character {
    width: min(250px, 72vw);
    max-height: 245px;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 14vw, 4.2rem);
  }

  .actions .button {
    flex: 1 1 170px;
  }

  .content-band {
    padding: 42px 0;
  }

  .topic-grid,
  .topic-grid.is-four,
  .step-grid,
  .tactic-grid {
    grid-template-columns: 1fr;
  }

  .cta-band .content-inner {
    grid-template-columns: 1fr;
  }
}

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

  .topic-link {
    transition: none;
  }
}
