/* =============================================================
   Everyday AI Guide — styles.css
   Archetype: Magazine Multi-Page (clean modern editorial)
   v=20260521
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #ffffff;
  --bg-2:       #f8fafc;
  --bg-3:       #f1f5f9;
  --ink:        #0f172a;
  --ink-soft:   #334155;
  --ink-mute:   #64748b;
  --accent:     #4f46e5;
  --accent-dk:  #3730a3;
  --accent-lt:  #eef2ff;
  --accent-2:   #06b6d4;
  --success:    #10b981;
  --line:       rgba(15, 23, 42, 0.08);
  --line-2:     rgba(15, 23, 42, 0.14);
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 16px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl:  0 32px 64px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --serif:      'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h:      68px;
  --gutter:     clamp(1rem, 4vw, 2rem);
  --max-w:      1200px;
  --article-w:  760px;
}

/* =============================================================
   2. Reset & Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4, h5 {
  text-wrap: balance;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-family: var(--serif);
}
ul, ol { list-style: none; }
::selection { background: var(--accent-lt); color: var(--accent-dk); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: var(--article-w);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.2rem;
  background: var(--accent); color: #fff;
  z-index: 9999; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .875rem;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Reveal system */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-split] { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }
.reveal--delay-4 { transition-delay: .4s; }

/* =============================================================
   4. Typography
   ============================================================= */
.display-xl {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.display-lg {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.display-md {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker--mute { color: var(--ink-mute); }
.body-lg { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; }
.body-sm { font-size: .875rem; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.4;
  transition: all .25s var(--ease-out);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.3);
}
.btn--outline {
  border-color: var(--line-2);
  color: var(--ink-soft);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lt);
}
.btn--ghost {
  color: var(--accent);
  font-weight: 600;
  padding-inline: .5rem;
}
.btn--ghost:hover {
  text-decoration: underline;
}
.btn--sm {
  padding: .5rem 1rem;
  font-size: .875rem;
}
.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* Badge / Tag */
.tag {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--accent-lt);
  color: var(--accent);
  text-decoration: none;
}
.tag:hover { background: var(--accent); color: #fff; }
.tag--mute { background: var(--bg-3); color: var(--ink-mute); }

/* Cards */
.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease-out);
}
.card:hover .card__img { transform: scale(1.04); }
.card__img-wrap {
  overflow: hidden;
}
.card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.card__date {
  font-size: .8rem;
  color: var(--ink-mute);
  font-family: var(--sans);
}
.card__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}
.card:hover .card__title { color: var(--accent); }
.card__excerpt {
  font-size: .9rem;
  color: var(--ink-mute);
  line-height: 1.6;
  flex: 1;
}
.card__footer {
  padding-top: .5rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

/* Featured card (larger) */
.card--featured {
  position: relative;
}
.card--featured .card__img {
  aspect-ratio: 4/3;
}
.card--featured .card__title {
  font-size: 1.4rem;
}

/* Grid layouts */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 540px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Section spacing */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--sm { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--lg { padding-block: clamp(4rem, 9vw, 8rem); }
.section--gray { background: var(--bg-2); }
.section--dark {
  background: var(--ink);
  color: #fff;
}

/* Section header */
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head--center {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head__sub {
  margin-top: .75rem;
  color: var(--ink-mute);
  font-size: 1.05rem;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Prompt box (for article pages) */
.prompt-box {
  background: var(--accent-lt);
  border: 1px solid rgba(79,70,229,0.15);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.prompt-box__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.prompt-box__text {
  font-family: 'Georgia', serif;
  font-size: .975rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-style: italic;
}

/* Tip box */
.tip-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.tip-box__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #16a34a;
  margin-bottom: .4rem;
}
.tip-box p { font-size: .975rem; color: #166534; }

/* Warning box */
.warn-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.warn-box__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c2410c;
  margin-bottom: .4rem;
}
.warn-box p { font-size: .975rem; color: #7c2d12; }

/* Numbered list (article) */
.numbered-list {
  counter-reset: num;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.75rem 0;
}
.numbered-list__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.numbered-list__item::before {
  counter-increment: num;
  content: counter(num);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  margin-top: .1rem;
}

/* =============================================================
   6. Navigation
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--sans);
  flex-shrink: 0;
}
.nav__links {
  display: none;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: .4rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.nav__links a:hover { color: var(--accent); background: var(--accent-lt); }
.nav__links a.active { color: var(--accent); font-weight: 600; }
.nav__cta {
  display: none;
  font-size: .875rem;
  padding: .5rem 1.1rem;
}
.nav__burger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: .4rem;
  transition: background .2s;
}
.nav__burger:hover { background: var(--bg-3); }
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 1.5rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: .25rem;
  transform: translateX(100%);
  transition: transform .35s var(--ease-out);
  overflow-y: auto;
}
.nav.is-open .nav__mobile { transform: none; }
.nav__mobile a {
  display: block;
  padding: .9rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:hover { color: var(--accent); background: var(--accent-lt); }
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .nav__mobile { display: none !important; }
}

/* =============================================================
   7. Hero — Homepage
   ============================================================= */
.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(79,70,229,0.3) 0%,
    rgba(6,182,212,0.1) 50%,
    rgba(15,23,42,0.9) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}
.hero__kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: italic;
  color: var(--accent-2);
}
.hero__sub {
  font-size: clamp(.975rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-inline: auto;
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__actions .btn--primary {
  background: var(--accent);
  color: #fff;
  padding: .875rem 2rem;
}
.hero__actions .btn--primary:hover { background: var(--accent-dk); }
.hero__actions .btn--outline {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
}
.hero__actions .btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}
.hero__scroll {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(.6); opacity: .4; }
}

/* =============================================================
   8. Featured Articles
   ============================================================= */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .featured-grid {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto;
  }
  .featured-grid .card--hero {
    grid-row: span 2;
  }
}
.card--hero .card__img {
  aspect-ratio: 3/2;
}
@media (min-width: 720px) {
  .card--hero .card__img {
    aspect-ratio: unset;
    height: 100%;
    max-height: 400px;
  }
}
.card--hero .card__title { font-size: 1.5rem; }
@media (min-width: 960px) {
  .card--hero .card__title { font-size: 1.75rem; }
}
.card--sm .card__img { aspect-ratio: 16/9; }
.card--sm .card__body { padding: 1.25rem; }
.card--sm .card__title { font-size: 1rem; }

/* =============================================================
   9. Recent Articles
   ============================================================= */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .articles-grid { grid-template-columns: repeat(4, 1fr); }
}
.articles-grid .card__img { aspect-ratio: 16/9; }
.articles-grid .card__body { padding: 1.25rem; }
.articles-grid .card__title { font-size: 1rem; }

/* =============================================================
   10. Categories Section
   ============================================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 540px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .categories-grid { grid-template-columns: repeat(6, 1fr); }
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  text-decoration: none;
  display: block;
}
.cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.cat-card:hover .cat-card__img { transform: scale(1.08); }
.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.85) 30%, rgba(15,23,42,0.2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  text-align: center;
  gap: .25rem;
}
.cat-card__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: .25rem;
}
.cat-card__name {
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.cat-card__count {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
}
.cat-card:hover .cat-card__overlay {
  background: linear-gradient(to top, rgba(79,70,229,0.9) 30%, rgba(79,70,229,0.3) 100%);
}

/* =============================================================
   11. Benefits Section
   ============================================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 540px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}
.benefit-card {
  padding: 2rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.benefit-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.benefit-card__title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.benefit-card__text {
  font-size: .9rem;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* =============================================================
   12. Newsletter CTA
   ============================================================= */
.newsletter-section {
  background: linear-gradient(135deg, var(--ink) 0%, #1e1b4b 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: #fff;
  margin-block: clamp(3rem, 6vw, 5rem);
}
.newsletter-section h2 { color: #fff; }
.newsletter-section p { color: rgba(255,255,255,.72); margin-block: 1rem 2rem; }
.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 460px;
  margin-inline: auto;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: .875rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: .9375rem;
  font-family: var(--sans);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }

/* =============================================================
   13. Footer
   ============================================================= */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.footer__logo-icon {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--sans);
  flex-shrink: 0;
}
.footer__desc {
  font-size: .875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}
.footer__col-title {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 1rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  list-style: none;
}
.footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__legal a {
  color: rgba(255,255,255,.35);
  transition: color .2s;
}
.footer__legal a:hover { color: rgba(255,255,255,.7); }

/* =============================================================
   14. Article page
   ============================================================= */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .1s linear;
}
.article-hero {
  position: relative;
  background: var(--ink);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 0;
  overflow: hidden;
}
.article-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: .25;
}
.article-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  padding-bottom: 3rem;
}
.article-hero__kicker {
  margin-bottom: 1rem;
}
.article-hero__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}
.article-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
}
.article-hero__meta-sep { opacity: .3; }
.article-hero__img-wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.article-hero__img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}

/* Article body */
.article-body {
  max-width: var(--article-w);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter);
}
.article-body > * + * { margin-top: 1.5rem; }
.article-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2rem;
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.article-body ul, .article-body ol {
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(79,70,229,0.3);
  transition: text-decoration-color .2s;
}
.article-body a:hover { text-decoration-color: var(--accent); }

/* Drop cap on first paragraph */
.article-body .lede::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: .85;
  margin: .05em .12em 0 0;
  color: var(--accent);
}

/* Article sidebar back button + related */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 2rem;
  transition: gap .2s;
}
.article-back:hover { gap: .75rem; }
.article-back svg { transition: transform .2s; }
.article-back:hover svg { transform: translateX(-3px); }

/* Related articles */
.related-section {
  background: var(--bg-2);
  padding-block: clamp(3rem, 6vw, 5rem);
}

/* =============================================================
   15. Category page
   ============================================================= */
.cat-hero {
  background: var(--ink);
  position: relative;
  padding-block: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.cat-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .18;
}
.cat-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cat-hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}
.cat-hero__sub {
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin-inline: auto;
}

/* =============================================================
   16. Basic pages (contact, about, legal)
   ============================================================= */
.page-hero {
  background: var(--bg-2);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
}
.page-hero__sub {
  margin-top: .75rem;
  color: var(--ink-mute);
  max-width: 520px;
}
.page-body {
  max-width: var(--article-w);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter);
}
.page-body > * + * { margin-top: 1.25rem; }
.page-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2.5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}
.page-body h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.5rem; }
.page-body p { color: var(--ink-soft); line-height: 1.75; }
.page-body ul { padding-left: 1.5rem; list-style: disc; }
.page-body ul li { color: var(--ink-soft); line-height: 1.7; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .875rem 1rem;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: .9375rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   17. Effects / Animations
   ============================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================================================
   18. Static pages (contact, about, legal)
   ============================================================= */
.page-hero { padding-top: calc(var(--nav-h) + 3rem); }
.page-hero__content { max-width: 640px; }
.page-hero__content .display-lg { margin-top: .5rem; }
.page-hero__sub { margin-top: 1rem; font-size: 1.125rem; color: var(--ink-soft); }

/* About / legal prose */
.prose { max-width: var(--article-w); }
.prose h2 { font-family: var(--serif); font-size: 1.5rem; margin: 2.5rem 0 .75rem; color: var(--ink); }
.prose h3 { font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 .5rem; }
.prose p { line-height: 1.8; color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { line-height: 1.8; color: var(--ink-soft); margin-bottom: .4rem; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { color: var(--accent-dk); }

/* Contact page layout */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info h2 { font-family: var(--serif); font-size: 1.75rem; margin-bottom: 1rem; }
.contact-info p { line-height: 1.8; color: var(--ink-soft); margin-bottom: 1rem; }
.contact-note { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--bg-2); border-radius: var(--radius); }
.contact-note p { margin-bottom: .5rem; font-size: .9375rem; }
.contact-note p:last-child { margin-bottom: 0; }

/* Form elements */
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.form-input {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--bg); transition: border-color .2s;
  appearance: none;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.form-textarea { resize: vertical; min-height: 130px; }
.btn--full { width: 100%; justify-content: center; }
.form-note { margin-top: .75rem; font-size: .8125rem; color: var(--ink-mute); text-align: center; }
.form-success { text-align: center; padding: 2.5rem 1.5rem; }
.form-success__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.form-success h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .75rem; }
.form-success p { color: var(--ink-soft); }

/* Section size variant */
.section--sm { padding-top: 2rem; padding-bottom: 4rem; }

/* =============================================================
   19. Responsive
   ============================================================= */
@media (min-width: 540px) {
  :root { --nav-h: 72px; }
}
@media (min-width: 960px) {
  .hero__title { font-size: 4rem; }
}
@media (max-width: 539px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input,
  .newsletter-form .btn { width: 100%; }
}

/* =============================================================
   19. Reduced motion (intrusive effects only)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line,
  .hero__kicker-dot { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
