:root {
  --ink: #201814;
  --muted: #67594d;
  --paper: #fff9ec;
  --panel: #ffffff;
  --gold: #ffbf1f;
  --sun: #ffd86a;
  --orange: #f27b22;
  --coral: #ff6b49;
  --leaf: #2f7048;
  --leaf-dark: #163b2a;
  --plum: #32182c;
  --line: rgba(32, 24, 20, 0.12);
  --shadow: 0 22px 52px rgba(86, 48, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 191, 31, 0.15), transparent 420px),
    var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255, 249, 236, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.hero-actions,
.meta-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(32, 24, 20, 0.14);
  border-radius: 50%;
  object-fit: cover;
  background: var(--gold);
}

.site-nav {
  gap: clamp(12px, 2.8vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  text-underline-offset: 6px;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: clamp(34px, 6vw, 74px);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 76px) clamp(38px, 6vw, 78px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 216, 106, 0.78), transparent 32%),
    linear-gradient(135deg, #fff4c4 0%, #fff9ec 48%, #fde5b4 100%);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a94318;
}

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

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 9vw, 7.8rem);
  line-height: 0.9;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.02;
}

h3 {
  margin: 10px 0 8px;
  font-size: 1.24rem;
  line-height: 1.15;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: #4f443a;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button {
  padding: 12px 20px;
  border: 2px solid var(--ink);
}

.button.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 9px 0 rgba(32, 24, 20, 0.18);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.58);
}

.hero-media {
  position: relative;
  align-self: center;
}

.hero-media::before {
  position: absolute;
  inset: -9%;
  content: "";
  border-radius: 36% 64% 47% 53%;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  transform: rotate(-7deg);
}

.hero-media img {
  position: relative;
  width: min(440px, 100%);
  margin-inline: auto;
  border: 8px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(62px, 8vw, 110px) clamp(18px, 5vw, 76px);
}

.section-heading {
  width: min(850px, 100%);
  margin-bottom: 28px;
}

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

.link-card,
.blog-card,
.feature-article,
.trending-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(86, 48, 14, 0.08);
}

.link-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.featured-link {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 191, 31, 0.26), transparent),
    var(--plum);
}

.card-kicker {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.featured-link .card-kicker,
.featured-link p {
  color: #ffe8ad;
}

.link-card p,
.blog-card p,
.article-body p,
.community-section p {
  color: var(--muted);
}

.featured-link h3,
.featured-link p {
  color: #fff;
}

.card-action {
  width: fit-content;
  min-height: 38px;
  margin-top: auto;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--sun);
  font-size: 0.88rem;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
  gap: 18px;
  background: #f5ecd8;
}

.feature-article {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1fr);
  overflow: hidden;
}

.article-image {
  min-height: 420px;
  background: linear-gradient(145deg, var(--gold), var(--orange));
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(24px, 4vw, 42px);
}

.meta-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.meta-row span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--leaf-dark);
  background: #edf7da;
  font-size: 0.82rem;
  font-weight: 800;
}

.trending-panel {
  padding: 22px;
  background:
    linear-gradient(150deg, rgba(255, 216, 106, 0.5), transparent 42%),
    #fffdf6;
}

.panel-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.trend-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.trend-thumb {
  display: grid;
  width: 64px;
  height: 54px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--leaf), var(--plum));
  font-size: 0.86rem;
  font-weight: 950;
  place-items: center;
}

.trend-item strong {
  display: block;
  line-height: 1.2;
}

.trend-item small {
  color: var(--muted);
  font-weight: 800;
}

.blog-section {
  background: var(--paper);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-card {
  min-height: 250px;
  padding: 24px;
}

.community-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  color: #fff;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 216, 106, 0.28), transparent 28%),
    linear-gradient(135deg, var(--leaf-dark), #2d1b30);
}

.community-section .eyebrow,
.community-section p {
  color: #e6f4d7;
}

.community-section .button.primary {
  color: var(--ink);
  background: var(--sun);
}

.site-footer {
  padding: 24px clamp(18px, 5vw, 76px);
  color: var(--muted);
  background: #f7e7bf;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1000px) {
  .hero,
  .content-section,
  .feature-article,
  .community-section {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-media {
    max-width: 460px;
  }

  .article-image {
    min-height: 330px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
  }

  .link-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .link-card,
  .blog-card {
    min-height: auto;
  }
}

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

  .link-card {
    transition: none;
  }
}
