/* ==========================================================================
   Lifestyle-ki — styles
   ========================================================================== */

:root {
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --ink: #161412;
  --ink-soft: #2e2a26;
  --muted: #6a645d;
  --line: #e5dfd6;
  --accent: #d0542c;
  --food: #c4461c;
  --travel: #0f7184;
  --pets: #7a55c7;
  --header-bg: rgb(247 244 239 / 0.85);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme='dark'] {
  --bg: #121110;
  --surface: #1a1816;
  --ink: #f2ede6;
  --ink-soft: #d9d3ca;
  --muted: #a39c92;
  --line: #2d2a26;
  --accent: #ea7a52;
  --food: #ec8457;
  --travel: #4fb6c8;
  --pets: #a98af0;
  --header-bg: rgb(18 17 16 / 0.85);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #121110;
    --surface: #1a1816;
    --ink: #f2ede6;
    --ink-soft: #d9d3ca;
    --muted: #a39c92;
    --line: #2d2a26;
    --accent: #ea7a52;
    --food: #ec8457;
    --travel: #4fb6c8;
    --pets: #a98af0;
    --header-bg: rgb(18 17 16 / 0.85);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s, color 0.3s;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  font-optical-sizing: auto;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
}

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

.icon {
  flex-shrink: 0;
}

.eyebrow {
  font: 600 0.72rem/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 600 0.95rem var(--sans);
  cursor: pointer;
  transition: transform 0.2s var(--ease), filter 0.2s;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

/* ---------- Top bar & header ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
}

.topbar__date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #23a55a;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

.topbar__link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.topbar__link:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 68px;
}

.logo {
  font: 600 1.6rem/1 var(--serif);
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  margin-left: -0.04em;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background-color 0.2s, color 0.2s;
}

.nav a:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
}

.nav a[aria-current='page'] {
  background: var(--ink);
  color: var(--bg);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

[data-theme-toggle] .icon--sun {
  display: none;
}

:root[data-theme='dark'] [data-theme-toggle] .icon--sun {
  display: block;
}

:root[data-theme='dark'] [data-theme-toggle] .icon--moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) [data-theme-toggle] .icon--sun {
    display: block;
  }
  :root:not([data-theme='light']) [data-theme-toggle] .icon--moon {
    display: none;
  }
}

.nav-toggle {
  display: none;
}

@media (max-width: 860px) {
  .topbar__note {
    display: none;
  }

  .site-header__inner {
    gap: 0.5rem;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    margin: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav ul {
    flex-direction: column;
  }

  .nav a {
    padding: 0.85rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font: 500 1.5rem var(--serif);
  }

  .nav a[aria-current='page'] {
    background: none;
    color: var(--accent);
  }
}

/* ---------- Teasers ---------- */

.kicker {
  display: inline-block;
  font: 600 0.7rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}

.kicker--food {
  color: var(--food);
}
.kicker--travel {
  color: var(--travel);
}
.kicker--pets {
  color: var(--pets);
}

.kicker:hover {
  text-decoration: underline;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.meta__author {
  color: var(--ink-soft);
  font-weight: 500;
}

.teaser {
  position: relative;
}

.teaser__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.teaser__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.teaser:hover .teaser__media img {
  transform: scale(1.04);
}

.teaser__body {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.teaser__title a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease);
}

.teaser__title a:hover {
  background-size: 100% 1px;
}

.teaser__dek {
  color: var(--muted);
  line-height: 1.55;
}

.teaser--card {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.teaser--card .teaser__title {
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
}

.teaser--lead {
  display: grid;
  gap: 1.4rem;
}

.teaser--lead .teaser__title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.teaser--lead .teaser__dek {
  font-size: 1.12rem;
  max-width: 60ch;
}

.teaser--row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 1rem;
  align-items: start;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}

.teaser--row .teaser__media {
  order: 2;
}

.teaser--row .teaser__media img {
  aspect-ratio: 1;
}

.teaser--row .teaser__title {
  font-size: 1.12rem;
  line-height: 1.25;
}

@media (min-width: 700px) {
  .teaser--row {
    grid-template-columns: 1fr 140px;
  }
}

/* ---------- Layout sections ---------- */

.hero {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.hero__side {
  display: grid;
  align-content: start;
}

.hero__side .eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  padding-bottom: 0.9rem;
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 3.5rem;
  }

  .hero__side {
    border-left: 1px solid var(--line);
    padding-left: 2.5rem;
  }
}

.section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.section--tight {
  padding-top: 1rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink);
}

.section-head__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-head__desc {
  margin-top: 0.5rem;
  max-width: 60ch;
  color: var(--muted);
}

.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.section-head__link .icon {
  transition: transform 0.25s var(--ease);
}

.section-head__link:hover .icon {
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

.grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 700px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Most read */

.most-read {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.most-read__list {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.most-read__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.most-read__list li > div {
  display: grid;
  gap: 0.5rem;
}

.most-read__num {
  font: 400 2.6rem/0.9 var(--serif);
  font-style: italic;
  color: var(--accent);
}

.most-read__title {
  font-size: 1.1rem;
  line-height: 1.3;
}

.most-read__title a {
  text-decoration: none;
}

.most-read__title a:hover {
  text-decoration: underline;
}

@media (min-width: 700px) {
  .most-read__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .most-read__list {
    grid-template-columns: repeat(5, 1fr);
  }

  .most-read__list li {
    grid-template-columns: 1fr;
    padding-left: 1.25rem;
    border-left: 1px solid var(--line);
  }

  .most-read__list li:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* Category band */

.category-band__grid {
  display: grid;
  gap: 1.5rem 3rem;
}

.category-band__list .teaser--row:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (min-width: 900px) {
  .category-band__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

.category-band + .category-band {
  padding-top: 0;
}

.category-band--food .section-head {
  border-color: var(--food);
}
.category-band--travel .section-head {
  border-color: var(--travel);
}
.category-band--pets .section-head {
  border-color: var(--pets);
}

/* Newsletter */

.newsletter {
  background: var(--ink);
  color: var(--bg);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.newsletter .eyebrow {
  color: color-mix(in srgb, var(--bg) 60%, transparent);
  margin-bottom: 1rem;
}

.newsletter__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.newsletter__title {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.newsletter__text {
  margin-top: 1rem;
  max-width: 48ch;
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.newsletter__form input {
  flex: 1 1 240px;
  height: 48px;
  padding: 0 1.25rem;
  border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.newsletter__form input::placeholder {
  color: color-mix(in srgb, var(--bg) 50%, transparent);
}

.newsletter__form input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter__status {
  flex-basis: 100%;
  min-height: 1.5em;
  font-size: 0.9rem;
}

.newsletter__status.is-error {
  color: #ff9c7a;
}

@media (min-width: 900px) {
  .newsletter__inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

/* Footer */

.site-footer {
  padding-block: 4rem 2rem;
  font-size: 0.92rem;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.site-footer__brand {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  max-width: 42ch;
  color: var(--muted);
}

.logo--footer {
  color: var(--ink);
}

.site-footer__heading {
  margin-bottom: 1rem;
  font: 600 0.72rem var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.site-footer ul a {
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--accent);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (min-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: auto;
  }
}

/* ---------- Page headers (category, about, search) ---------- */

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.4rem;
  opacity: 0.5;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs [aria-current] {
  display: inline-block;
  max-width: 40ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.page-header {
  display: grid;
  gap: 1rem;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}

.page-header__title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.page-header--food .page-header__title {
  color: var(--food);
}
.page-header--travel .page-header__title {
  color: var(--travel);
}
.page-header--pets .page-header__title {
  color: var(--pets);
}

.page-header__desc {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.page-header__count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.feature-row {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .feature-row .teaser--lead {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }

  .feature-row .teaser--lead .teaser__title {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
  }

  .grid--wide .teaser__title {
    font-size: 1.75rem;
  }
}

.explore {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .explore {
    grid-template-columns: repeat(2, 1fr);
  }
}

.explore__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
}

.explore__card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.explore__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.6), transparent 60%);
}

.explore__card:hover img {
  transform: scale(1.05);
}

.explore__label {
  position: absolute;
  z-index: 1;
  left: 1.5rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font: 500 clamp(1.8rem, 3.5vw, 2.6rem) var(--serif);
}

/* ---------- Article ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.theme-food {
  --accent: var(--food);
}
.theme-travel {
  --accent: var(--travel);
}
.theme-pets {
  --accent: var(--pets);
}

.article__header {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  max-width: 900px;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.article__header .breadcrumbs ol {
  justify-content: center;
}

.article__title {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.article__dek {
  max-width: 60ch;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
  text-align: left;
}

.byline__name {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.byline__name a {
  font-weight: 600;
  text-decoration: none;
}

.byline__name a:hover {
  text-decoration: underline;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--accent);
  font: 600 0.95rem var(--serif);
  letter-spacing: 0.02em;
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.3rem;
}

.article__hero {
  margin: 0 auto;
  max-width: calc(1180px + 2 * var(--gutter));
}

.article__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--line);
}

.article__hero figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.credit {
  margin-left: 0.4rem;
  opacity: 0.7;
}

.article__layout {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2rem, 5vw, 3.5rem) 1rem;
}

.article__content {
  min-width: 0;
  max-width: 700px;
  width: 100%;
  margin-inline: auto;
}

.toc {
  display: none;
}

.toc__title {
  margin-bottom: 0.9rem;
  font: 600 0.72rem var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  list-style: none;
  display: grid;
  gap: 0.15rem;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 2px solid transparent;
  font-size: 0.87rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.toc a:hover {
  color: var(--ink);
}

.toc a.is-active {
  color: var(--ink);
  border-left-color: var(--accent);
}

.share {
  max-width: 700px;
  width: 100%;
  margin-inline: auto;
}

.share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.share .icon-btn {
  border: 1px solid var(--line);
}

.share .icon-btn.is-copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.share .toc__title {
  display: none;
}

@media (min-width: 1100px) {
  .article__layout {
    grid-template-columns: 220px minmax(0, 700px) 220px;
    justify-content: center;
    gap: 4rem;
  }

  .article__aside {
    position: sticky;
    top: 100px;
    align-self: start;
    display: grid;
    gap: 2.5rem;
  }

  .toc {
    display: block;
  }

  .share .toc__title {
    display: block;
  }
}

/* Prose */

.prose {
  font-size: 1.125rem;
  line-height: 1.78;
  color: var(--ink-soft);
}

.prose > * + * {
  margin-top: 1.4em;
}

.prose > p:first-child::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  font: 500 4.6em/0.8 var(--serif);
  color: var(--accent);
}

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  color: var(--ink);
}

.prose h2 + * {
  margin-top: 0.8em;
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose a {
  color: var(--accent);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose li::marker {
  color: var(--accent);
}

.prose blockquote {
  margin: 2.2em 0;
  padding: 0.25em 0 0.25em 1.4em;
  border-left: 3px solid var(--accent);
}

.prose blockquote p {
  font: italic 400 clamp(1.4rem, 2.5vw, 1.75rem)/1.35 var(--serif);
  color: var(--ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  list-style: none;
}

.tags a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.author-card__name {
  margin: 0.3rem 0 0.5rem;
  font-size: 1.35rem;
}

.author-card__name a {
  text-decoration: none;
}

.author-card__bio {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- About ---------- */

.about {
  display: grid;
  gap: 2.5rem;
  max-width: 900px;
  padding-bottom: 5rem;
}

.about .prose > p:first-child::first-letter {
  color: var(--accent);
}

.team {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team__member {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 100px;
}

.team__member h3 {
  margin-top: 0.4rem;
  font-size: 1.4rem;
}

.team__member p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

.team__member:target {
  border-color: var(--accent);
}

/* ---------- Search & 404 ---------- */

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 720px;
  margin-top: 0.5rem;
}

.search-form input {
  flex: 1 1 260px;
  height: 56px;
  padding: 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 400 1.1rem var(--sans);
}

.search-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-form .btn {
  height: 56px;
}

mark {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: inherit;
  border-radius: 2px;
}

.not-found {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.not-found .grid {
  margin-top: 2.5rem;
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .topbar,
  .site-header,
  .article__aside,
  .newsletter,
  .site-footer,
  .progress {
    display: none;
  }
}
