* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #fbf7f0;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --text: #111116;
  --muted: #5d6070;
  --border: #dfd8cc;
  --soft: #f4efe7;
  --hero: #eef6ff;
  --hero-warm: #fff3e2;
  --accent: #2e80c4;
  --accent-hover: #236aa5;
  --accent-border: #2e80c4;
  --blue-ink: #17466d;
  --coral: #ffe2d6;
  --coral-ink: #73321f;
  --gold: #fff1bd;
  --gold-ink: #604700;
  --shadow: 0 18px 46px rgba(48, 39, 24, 0.08);
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(238, 246, 255, 0.55), rgba(251, 247, 240, 0) 420px),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 10px;
  margin-right: 9px;
  border-top: 2px solid var(--accent-border);
  border-bottom: 2px solid #f0a07a;
  vertical-align: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.nav-links > a:not(.button) {
  color: var(--accent);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--accent-border);
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(47, 127, 196, 0.14);
}

.button:hover,
.button:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 72px 0 52px;
  border-bottom: 1px solid rgba(80, 71, 55, 0.14);
  background:
    linear-gradient(135deg, rgba(216, 236, 255, 0.78), rgba(255, 243, 226, 0.88)),
    var(--hero);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    rgba(47, 127, 196, 0.28) 0 18px,
    rgba(255, 255, 255, 0) 18px 28px,
    rgba(240, 160, 122, 0.3) 28px 46px,
    rgba(255, 255, 255, 0) 46px 56px
  );
}

.hero-inner {
  max-width: 880px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.post-meta {
  color: var(--muted);
  font-size: 15px;
}

.eyebrow {
  margin: 0;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(47, 127, 196, 0.24);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.tag-coral {
  background: var(--coral);
  color: var(--coral-ink);
  border-color: rgba(115, 50, 31, 0.18);
}

.tag-gold {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: rgba(96, 71, 0, 0.16);
}

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

h1 {
  font-size: clamp(42px, 7vw, 76px);
  margin: 14px 0 18px;
  max-width: 980px;
  overflow-wrap: break-word;
}

h2 {
  font-size: 30px;
  margin: 46px 0 14px;
}

h3 {
  font-size: 21px;
  margin: 28px 0 10px;
}

.lede {
  font-size: 21px;
  color: #2b2d36;
  max-width: 780px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 42px 24px 80px;
}

.post-card {
  overflow: hidden;
  border: 1px solid rgba(80, 71, 55, 0.16);
  border-radius: 12px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.post-card-inner {
  padding: 22px;
}

.post-card h2 {
  margin: 10px 0 10px;
  font-size: 26px;
}

.post-card p {
  margin-bottom: 0;
}

.post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(80, 71, 55, 0.14);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  padding: 48px 24px 82px;
}

.post-content {
  max-width: 780px;
}

.post-content p,
.post-content li {
  font-size: 18px;
}

.post-content figure {
  margin: 34px 0;
}

.lead-figure {
  margin: 38px 0 42px;
}

.lead-figure img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(80, 71, 55, 0.16);
  box-shadow: var(--shadow);
}

.post-content figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.note,
.cta-box,
.related-guides {
  background: var(--surface);
  border: 1px solid rgba(80, 71, 55, 0.16);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(48, 39, 24, 0.05);
}

.note {
  border-left: 4px solid #f0a07a;
}

.cta-box {
  margin-top: 42px;
  background:
    linear-gradient(135deg, rgba(216, 236, 255, 0.8), rgba(255, 243, 226, 0.88)),
    var(--surface);
}

.related-guides {
  margin-top: 26px;
}

.related-guides h2 {
  margin-top: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  display: block;
  border: 1px solid rgba(80, 71, 55, 0.14);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
}

.related-card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.related-card span {
  display: block;
  padding: 12px;
  font-weight: 720;
}

.side-box {
  border-left: 1px solid rgba(80, 71, 55, 0.18);
  padding-left: 24px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.side-box a {
  display: block;
  margin: 10px 0;
}

.site-footer {
  border-top: 1px solid rgba(80, 71, 55, 0.14);
  padding: 30px 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .post-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .post-layout {
    display: block;
    padding-top: 30px;
  }

  .side-box {
    border-left: 0;
    border-top: 1px solid rgba(80, 71, 55, 0.18);
    margin-top: 38px;
    padding: 24px 0 0;
    position: static;
  }
}

@media (max-width: 820px) {
  .nav,
  .nav-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 46px;
  }

  h1 {
    font-size: 34px;
  }
}

@media (max-width: 430px) {
  .container,
  .nav,
  .post-list,
  .post-layout {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: 30px;
  }

  .lede {
    font-size: 19px;
  }
}
