:root {
  color-scheme: light;
  --ink: #0f1713;
  --muted: #58635e;
  --paper: #f6f8f3;
  --panel: #ffffff;
  --line: #d8e0d7;
  --accent: #14a46d;
  --accent-dark: #0b6b48;
  --shade: #10261f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgb(20 164 109 / 0.12), transparent 28rem),
    linear-gradient(315deg, rgb(16 38 31 / 0.08), transparent 28rem),
    var(--paper);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .75rem 1rem;
  background: var(--shade);
  color: #fff;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand,
.nav,
.footer-links,
.hero-actions,
.source-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: .7rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: .75rem;
  color: #fff;
  background: var(--shade);
}

.nav {
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.footer-links a,
.source-list a {
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: .6rem .8rem;
  text-decoration: none;
  background: rgb(255 255 255 / .72);
}

.nav a:hover,
.guide-card:hover,
.source-list a:hover,
.related-panel a:hover {
  border-color: var(--accent);
}

.hero,
.quick-answer,
.trend-grid,
.video-section,
.keyword-articles,
.source-strip,
.article-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100dvh - 80px);
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.kicker {
  margin: 0 0 .75rem;
  color: var(--accent-dark);
  font-size: .9rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: .92;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-summary,
.article-hero p,
.quick-answer p,
.source-strip p {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: .85rem;
  padding: .85rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--accent-dark);
}

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

.button:active,
.nav a:active,
.guide-card:active {
  transform: translateY(1px);
}

.hero-media {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #dbeee4;
  box-shadow: 0 24px 80px rgb(16 38 31 / .14);
}

.hero-copy,
.article-hero > *,
.article-layout > *,
.trend-card {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 616 / 353;
  object-fit: cover;
}

.signal-panel {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: .1rem;
  border-radius: .9rem;
  padding: .9rem 1rem;
  color: #fff;
  background: rgb(16 38 31 / .88);
}

.signal-panel span,
.trend-card span,
.card-index {
  color: rgb(255 255 255 / .75);
  font-size: .82rem;
  font-weight: 800;
}

.quick-answer,
.source-strip {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.section-heading p {
  color: var(--muted);
}

.video-section,
.keyword-articles {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.video-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--shade);
  box-shadow: 0 24px 80px rgb(16 38 31 / .12);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

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

.guide-card,
.article-card {
  display: grid;
  min-height: 14rem;
  align-content: start;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  text-decoration: none;
  background: rgb(255 255 255 / .82);
}

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

.article-card {
  min-height: 16rem;
}

.article-card span {
  color: var(--accent-dark);
  font-size: .82rem;
  font-weight: 800;
}

.article-card strong {
  font-size: 1.12rem;
  line-height: 1.1;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.card-index {
  color: var(--accent-dark);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
}

.card-summary {
  color: var(--muted);
  font-size: .95rem;
}

.source-list {
  gap: .75rem;
  flex-wrap: wrap;
}

.article-shell {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.article-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.trend-card,
.related-panel,
.article-section,
.faq-section {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgb(255 255 255 / .82);
}

.trend-card {
  padding: 1rem;
}

.trend-card span {
  color: var(--accent-dark);
}

.trend-card strong {
  display: block;
  margin: .2rem 0 1rem;
  font-size: 1.25rem;
  line-height: 1.15;
}

.trend-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.2rem;
  align-items: start;
}

.article-content {
  display: grid;
  gap: 1rem;
}

.article-section,
.faq-section,
.related-panel {
  padding: 1.2rem;
}

.article-section h2,
.faq-section h2,
.related-panel h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.article-section p,
details p {
  color: var(--muted);
}

details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.related-panel {
  position: sticky;
  top: 1rem;
}

.related-panel div {
  display: grid;
  gap: .7rem;
}

.related-panel a {
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: .7rem;
  text-decoration: none;
  background: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
}

.site-footer p {
  margin: .25rem 0 0;
  max-width: 64ch;
}

.footer-links {
  gap: .5rem;
}

@media (max-width: 900px) {
  .hero,
  .article-hero,
  .article-layout,
  .quick-answer,
  .source-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .related-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(135deg, rgb(20 164 109 / 0.12), transparent 18rem),
      var(--paper);
  }

  .site-header,
  .site-footer,
  .hero,
  .quick-answer,
  .trend-grid,
  .video-section,
  .keyword-articles,
  .source-strip,
  .article-shell {
    width: min(100% - 24px, 1120px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
  }

  .site-header {
    padding: .75rem 0 .5rem;
  }

  .brand {
    width: 100%;
    line-height: 1.15;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .65rem;
  }

  .nav {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 0 .35rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: .55rem .7rem;
    font-size: .9rem;
  }

  .hero {
    gap: 1rem;
    padding: 1.25rem 0 2rem;
  }

  .hero-summary,
  .article-hero p,
  .quick-answer p,
  .source-strip p,
  .section-heading p {
    font-size: .98rem;
  }

  .hero-actions {
    gap: .55rem;
    margin-top: 1rem;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.35rem, 12vw, 3.2rem);
    line-height: .96;
  }

  h2 {
    font-size: clamp(1.55rem, 9vw, 2.25rem);
    line-height: 1.04;
  }

  .quick-answer,
  .source-strip,
  .video-section,
  .keyword-articles {
    gap: .75rem;
    padding: 1.5rem 0;
  }

  .section-heading {
    margin-bottom: .85rem;
  }

  .hero-media,
  .video-frame,
  .guide-card,
  .article-card,
  .trend-card,
  .related-panel,
  .article-section,
  .faq-section {
    border-radius: .85rem;
  }

  .hero-media,
  .video-frame {
    box-shadow: 0 14px 36px rgb(16 38 31 / .1);
  }

  .hero-media img {
    height: clamp(11rem, 52vw, 13rem);
    aspect-ratio: auto;
    object-position: center;
  }

  .signal-panel {
    position: absolute;
    left: .45rem;
    right: .45rem;
    bottom: .45rem;
    padding: .65rem .75rem;
    color: #fff;
    background: rgb(16 38 31 / .88);
  }

  .signal-panel span {
    color: rgb(255 255 255 / .75);
  }

  .signal-panel strong {
    font-size: .88rem;
    line-height: 1.2;
  }

  .video-frame {
    border-radius: .85rem;
  }

  .guide-card,
  .article-card {
    min-height: auto;
    gap: .55rem;
    padding: .9rem;
  }

  .article-card {
    min-height: auto;
  }

  .card-title,
  .article-card strong {
    font-size: 1.04rem;
  }

  .card-summary,
  .article-card p {
    font-size: .9rem;
  }

  .source-list,
  .footer-links {
    align-items: stretch;
    width: 100%;
  }

  .source-list a,
  .footer-links a {
    flex: 1 1 100%;
    text-align: center;
  }

  .article-shell {
    padding: 1.25rem 0 2rem;
  }

  .article-hero {
    gap: .9rem;
    margin-bottom: 1rem;
  }

  .article-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .article-section,
  .faq-section,
  .related-panel,
  .trend-card {
    padding: 1rem;
  }

  .site-footer {
    padding: 1.25rem 0;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 2.8rem;
    padding: .78rem .9rem;
    text-align: center;
  }
}
