/* ========== Tokens ========== */
:root {
  --bg: #F3F0E8;
  --bg-soft: #EAE6DB;
  --ink: #1A1916;
  --ink-soft: #5E5B53;
  --line: rgba(26, 25, 22, 0.14);
  --accent: #FF5B2E;
  --accent-2: #C9F04F;
  --accent-3: #A9B8FF;
  --white: #FFFFFF;

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-lg: 32px;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --measure: 720px;
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
figure, blockquote, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.measure { max-width: var(--measure); margin: 0 auto; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* ========== Tags ========== */
.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.capsule {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: rgba(255, 91, 46, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.hashtag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: rgba(255, 91, 46, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* ========== Avatars ========== */
.avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.avatar--sm  { width: 36px; height: 36px; font-size: 13px; }
.avatar--lg  { width: 64px; height: 64px; font-size: 22px; }
.avatar--xl  { width: 112px; height: 112px; font-size: 36px; }
.avatar--coral    { background: linear-gradient(135deg, #FF8A4C, var(--accent)); }
.avatar--periwink { background: linear-gradient(135deg, var(--accent-3), #E3E9FF); }
.avatar--lime     { background: linear-gradient(135deg, var(--accent-2), #EEFBC3); }
.avatar--ink      { background: linear-gradient(135deg, #2A2A27, #5C5A52); color: var(--bg); box-shadow: none; }

.author { display: flex; align-items: center; gap: 12px; }
.author__name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.author__role { font-size: 13px; color: var(--ink-soft); }

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 240, 232, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-size: 15px; font-weight: 500; }
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }
.nav .btn { margin-left: clamp(4px, 0.6vw, 8px); }
.nav .btn::after { display: none; }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 9px 15px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

/* ========== Hero carousel ========== */
.hero {
  position: relative;
  height: 92vh;
  min-height: 640px;
  max-height: 960px;
  overflow: hidden;
  color: var(--ink);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide--1 {
  background:
    radial-gradient(circle at 78% 30%, var(--accent-2) 0 14%, transparent 14.2%),
    radial-gradient(circle at 18% 70%, var(--accent-3) 0 10%, transparent 10.2%),
    linear-gradient(160deg, var(--accent) 0%, #FF8A4C 55%, #FFB27A 100%);
}
.slide--2 {
  background:
    radial-gradient(circle at 20% 28%, var(--white) 0 9%, transparent 9.2%),
    radial-gradient(circle at 82% 66%, var(--accent) 0 16%, transparent 16.2%),
    linear-gradient(160deg, var(--accent-3) 0%, #C9D3FF 60%, #E7ECFF 100%);
}
.slide--3 {
  background:
    radial-gradient(circle at 72% 20%, var(--accent-3) 0 10%, transparent 10.2%),
    radial-gradient(circle at 12% 74%, var(--accent) 0 12%, transparent 12.2%),
    linear-gradient(160deg, var(--accent-2) 0%, #DFF79A 60%, #F4FCD6 100%);
}
.frame {
  position: absolute;
  inset: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--pad) 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slide__top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.slide__body { display: flex; flex-direction: column; align-items: flex-start; }
.slide__body .tag { margin-bottom: 28px; }
.slide__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  margin: 0 0 32px;
  max-width: 14ch;
}
.slide__title em { font-style: normal; color: var(--white); }
.slide__lead {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  max-width: 40ch;
  margin: 0 0 32px;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.arrow:hover { background: var(--ink); color: var(--bg); }
.arrow--prev { left: 16px; }
.arrow--next { right: 16px; }
.hero__bar {
  position: absolute;
  left: 0; right: 0;
  bottom: 28px;
  z-index: 5;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dots { display: flex; gap: 10px; }
.dot {
  width: 36px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(26, 25, 22, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background .3s, width .3s;
}
.dot.is-active { background: var(--ink); width: 64px; }
.hero__authors {
  position: relative;
  width: 280px;
  height: 64px;
}
.slide-author {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
  justify-content: flex-start;
}
.slide-author.is-active { opacity: 1; visibility: visible; }
.slide-author > div { display: flex; flex-direction: column; gap: 1px; }
.slide-author > div p { margin: 0; }

/* ========== Sections ========== */
section { padding: clamp(80px, 12vw, 160px) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 0;
}

/* ========== Story cards ========== */
.topics { background: var(--bg-soft); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.filter:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 96px 40px;
}
.story { display: flex; flex-direction: column; gap: 16px; }
.story[hidden] { display: none; }
.story__cover { display: block; color: inherit; }
.story__img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .4s ease;
}
.story__cover:hover .story__img { transform: scale(0.985); }
.story__img--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story__img.c1 { background: linear-gradient(135deg, var(--accent), #FFB08A); }
.story__img.c2 { background: linear-gradient(135deg, var(--accent-3), #DDE4FF); }
.story__img.c3 { background: linear-gradient(135deg, var(--accent-2), #F1FCCB); }
.story__img.c4 { background: linear-gradient(135deg, #2A2A27, #5C5A52); }
.story__img.c5 { background: linear-gradient(135deg, #FFD65C, #FFEDB0); }
.story__img.c6 { background: linear-gradient(135deg, #FF9CC2, #FFD6E7); }
.story__img::after {
  content: "";
  position: absolute;
  width: 38%; aspect-ratio: 1;
  border-radius: 50%;
  right: 10%; top: 12%;
  background: rgba(255,255,255,.55);
}
.story__img--photo::after { display: none; }
.story__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.story__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.story__date svg { flex-shrink: 0; color: var(--accent); }
.story__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}
.story__title a { color: inherit; transition: color .2s; }
.story__title a:hover { color: var(--accent); }
.story__excerpt { margin: 0; color: var(--ink-soft); font-size: 15px; }
.story__footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}
.story__footer .author__name { font-weight: 600; font-size: 14px; }
.story__footer .avatar { width: 36px; height: 36px; font-size: 13px; }

/* ========== About ========== */
.about__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin: 0 0 clamp(60px, 9vw, 120px);
}
.about__title .indent { display: block; padding-left: clamp(0px, 10vw, 180px); }
.about__person {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 1.6fr;
  gap: clamp(24px, 5vw, 80px);
  padding: 56px 0;
  align-items: start;
}
.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.about__photo--a { background: linear-gradient(140deg, var(--accent-3), #E3E9FF); }
.about__photo--b { background: linear-gradient(140deg, var(--accent-2), #EEFBC3); }
.about__photo--c { background: linear-gradient(140deg, var(--accent), #FFB08A); }
.about__photo--d { background: linear-gradient(140deg, #C9F04F, #F1FCCB); }
.about__photo--e { background: linear-gradient(140deg, #A9B8FF, #FFFFFF); }
.about__photo--f { background: linear-gradient(140deg, #FFD65C, #FFEDB0); }
.about__photo::after {
  content: "";
  position: absolute;
  width: 46%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  opacity: .85;
  left: 27%; bottom: 20%;
}
.about__cover figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.about__person > div { display: flex; flex-direction: column; }
.about__head {
  display: flex;
  align-items: center;
  gap: 22px;
  order: 1;
  margin-top: 0;
  padding-top: 40px;
  border-top: 1px solid rgba(26, 25, 22, 0.35);
}
.about__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.about__role { color: var(--ink-soft); font-size: 15px; margin: 4px 0 0; }
.about__quote {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
}
.about__text { max-width: 60ch; color: var(--ink-soft); margin: 0; }
.about__read {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.about__read:hover { background: var(--ink); color: var(--bg); }
.author-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 60ch;
  margin: 40px 0;
}
.author-facts dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.author-facts dd {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
}
.pager__btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.pager__btn:hover { background: var(--ink); color: var(--bg); }

/* ========== Marquee strip ========== */
.strip {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(60px, 8vw, 110px) 0;
  overflow: hidden;
}
.strip__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  line-height: .95;
  letter-spacing: -0.045em;
  margin: 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.strip__text span { color: var(--accent-2); margin: 0 .3em; }
.strip__text a { color: inherit; text-decoration: none; }
.strip__text a:hover { color: var(--accent-2); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========== Subscribe ========== */
.subscribe {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
}
.subscribe__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  line-height: .92;
  letter-spacing: -0.045em;
  margin: 0;
}
.subscribe__form { display: flex; flex-direction: column; gap: 14px; }
.subscribe__form p { margin: 0; color: var(--ink-soft); }
.field {
  display: flex;
  gap: 8px;
  background: var(--white);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: var(--ink);
}
.field .btn { padding: 12px 22px; }
.field .btn:hover { transform: none; background: var(--accent); }

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--ink); }

/* ========== Article: post head ========== */
.post-head { padding: clamp(20px, 2.5vw, 32px) 0 clamp(20px, 2.5vw, 32px); }
.post-head .capsule { margin-bottom: 28px; }
.post-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7.4vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 0 0 20px;
  max-width: 16ch;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-top: 14px;
  font-size: 15px;
}
.post-meta__author { display: flex; align-items: center; gap: 12px; }
.post-meta__author strong { font-weight: 600; }
.post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}

/* ========== Post cover ========== */
.post-cover {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 34%, var(--accent-2) 0 13%, transparent 13.2%),
    radial-gradient(circle at 22% 72%, var(--accent-3) 0 10%, transparent 10.2%),
    linear-gradient(160deg, var(--accent) 0%, #FF8A4C 55%, #FFB27A 100%);
}

/* ========== Article body layout ========== */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 240px;
  justify-content: space-between;
  gap: clamp(48px, 6vw, 96px);
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.post-body { min-width: 0; padding: 0; }
[id] { scroll-margin-top: 110px; }

/* TOC */
.toc { align-self: stretch; min-width: 0; }
.toc__inner { position: sticky; top: 110px; }
.toc__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--accent); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }

/* Body typography */
.post-body p { margin: 0 0 1.4em; font-size: 18px; color: #2E2C27; }
.post-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 1.72em 0 0.7em;
  color: var(--ink);
}
.post-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 1.4em 0 0.6em;
  color: var(--ink);
}

/* Blocks */
.quote {
  margin: 56px 0;
  padding: 8px 0 8px 32px;
  border-left: 4px solid var(--accent);
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
  font-weight: 600;
  line-height: 1.15 !important;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
  margin: 0 0 16px;
}
.quote cite { font-style: normal; font-size: 14px; color: var(--ink-soft); font-weight: 600; }

.bullets { list-style: none; padding: 0; margin: 0 0 2em; }
.bullets li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 18px;
  color: #2E2C27;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

ol { padding-left: 1.5em; margin: 0 0 2em; }
ol li { margin-bottom: 12px; font-size: 18px; color: #2E2C27; }

.checklist { list-style: none; padding: 0; margin: 0 0 2em; }
.checklist li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  color: #2E2C27;
}
.checklist li:first-child { border-top: 1px solid var(--line); }
.check-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--line);
  display: inline-block;
}

.table-wrap {
  margin: 2.2em 0;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
table { width: 100%; border-collapse: collapse; font-size: 15px; color: #2E2C27; }
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; color: var(--ink); }

.highlight {
  margin: 2em 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border-left: 4px solid var(--accent-2);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

.post-figure { margin: 2.4em 0; }
.post-figure img { border-radius: var(--radius); }
.post-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

.ad-banner {
  width: 100%;
  aspect-ratio: 4 / 1;
  margin: 2.4em 0;
  border-radius: var(--radius);
  border: 1.5px dashed rgba(26, 25, 22, 0.3);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Downloads */
.downloads { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.downloads__title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 20px; }
.downloads__list { display: flex; flex-direction: column; gap: 12px; }
.downloads__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

/* ========== Author card ========== */
.author-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.author-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.author-card__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 8px;
}
.author-card__role { font-size: 15px; font-weight: 600; color: var(--accent); margin: 0 0 18px; }
.author-card__bio { margin: 0 0 26px; color: #2E2C27; font-size: 16px; max-width: 58ch; }
.author-card__link {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, color .2s;
}
.author-card__link:hover { background: var(--ink); color: var(--bg); }

/* ========== Related ========== */
.related { background: var(--bg-soft); padding: clamp(80px, 10vw, 130px) 0; }
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

/* ========== Comment demo ========== */
.comments { padding: clamp(30px, 4vw, 50px) 0 clamp(60px, 8vw, 100px); }
.comment-form { display: grid; gap: 16px; }
.comment-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-box { display: flex; flex-direction: column; gap: 8px; }
.field-box label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.input, .textarea {
  width: 100%;
  background: var(--white);
  border: none;
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 16px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  outline: none;
  transition: box-shadow .2s;
}
.input:focus, .textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.textarea { min-height: 160px; resize: vertical; }
.comment-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.comment-form__note { font-size: 14px; color: var(--ink-soft); margin: 0; }
.demo-comment { padding: 24px 0; border-top: 1px solid var(--line); }
.demo-comment p { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ========== Back link ========== */
.back-link { display: inline-block; margin-top: 28px; font-size: 14px; color: var(--ink-soft); }
.back-link:hover { color: var(--accent); }

/* ========== Category hero ========== */
.cat-hero { padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); }
.cat-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
}
.cat-hero__desc { max-width: 60ch; color: var(--ink-soft); font-size: 18px; margin: 0 0 24px; }

/* ========== Author page ========== */
.author-hero { padding: clamp(80px, 10vw, 130px) 0 clamp(40px, 6vw, 64px); }
.author-hero__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.author-hero__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 0 0 16px;
}
.author-hero__role { font-size: 18px; font-weight: 600; color: var(--accent); margin: 0 0 16px; }
.author-hero__bio { max-width: 60ch; color: var(--ink-soft); margin: 0; }

/* ========== 404 / upcoming ========== */
.upcoming { max-width: 820px; margin: auto; padding: 80px var(--pad) 110px; }
.upcoming h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.upcoming p { max-width: 560px; color: var(--ink-soft); margin: 28px 0; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .stories { grid-template-columns: repeat(2, 1fr); }
  .about__person { grid-template-columns: 1fr; }
  .related__grid { grid-template-columns: repeat(2, 1fr); }
  .author-hero__inner { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .post-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .header__inner { flex-wrap: wrap; position: relative; }
  .header .nav { display: none; width: 100%; order: 4; padding: 16px 0; flex-wrap: wrap; }
  .header .nav.is-open { display: flex; }
  .menu-toggle { display: block; margin-left: auto; }
  .header .btn { margin-left: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .about__title .indent { padding-left: 0; }
  .stories { grid-template-columns: 1fr; }
  .subscribe { grid-template-columns: 1fr; }
  .slide__top { display: none; }
  .hero { height: 84vh; min-height: 580px; }
  .frame { padding-bottom: 150px; }
  .arrow { width: 40px; height: 40px; font-size: 15px; }
  .arrow--prev { left: 8px; }
  .arrow--next { right: 8px; }
  .hero__authors { width: 180px; }
  .author-facts { grid-template-columns: 1fr 1fr; }
  .author-card { grid-template-columns: 1fr; }
  .comment-form__row { grid-template-columns: 1fr; }
  .related__grid { grid-template-columns: 1fr; }
  .post-body p { font-size: 17px; }
  .bullets li { font-size: 17px; }
}
@media (max-width: 420px) {
  .header__inner { gap: 10px; }
  .header .btn { padding: 9px 12px !important; font-size: 12px !important; }
  .menu-toggle { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .strip__text { animation: none; }
}

/* ========== v2 additions ========== */
.star { color: var(--accent-2); }
.slide__title-line { display: block; }
.slide__title-accent { color: var(--white); }
.section-body {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 32px;
}
.post-lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: clamp(24px,3vw,40px) 0 clamp(32px,4vw,52px);
}
.post-body .post-lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }

/* ========== Load more ========== */
.load-more { margin-top: clamp(64px,8vw,110px); }
.load-more__btn {
  display: block;
  width: 100%;
  padding: 22px;
  border-radius: 18px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.load-more__btn:hover { background: var(--ink); color: var(--bg); }
.load-more[hidden] { display: none; }

/* ========== Pager page numbers ========== */
.pager__nums { display: flex; gap: 8px; }
.pager__num {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.pager__num:hover { background: var(--ink); color: var(--bg); }
.pager__num.is-active { background: var(--ink); color: var(--bg); }

/* ========== Comment form extras ========== */
.comment-form__status {
  display: block;
  font-size: 14px;
  color: var(--accent);
  min-height: 1.4em;
}
.comments__list { display: flex; flex-direction: column; }

/* ========== Ad square ========== */
.ad-banner--square { aspect-ratio: 1 / 1; margin-top: 32px; }
