/* =========================================================
   Rudrav Modi — Homepage v4 (fresh premium concept)
   Idea: "White & black, side by side" — the hero splits the
   screen between the watercolour on paper and a black panel.
   Type: Poppins (titles) + Manrope (text/UI)
   ========================================================= */
:root {
  --ink: #000000;
  --paper: #ffffff;
  --mist: #f5f5f3;
  --graphite: #5a5a5a;
  --ash: #a3a3a3;
  --rule: #e3e3e3;
  --rule-dark: rgba(255,255,255,.14);
  --status: #3f9a63;

  --f-title: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --header-h: 84px;
  --sec-y: clamp(4.5rem, 9vw, 4rem);
  --radius: 4px;
  --ease: cubic-bezier(.22, .8, .12, 1);

  color-scheme: light;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-variant-numeric: lining-nums;
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-size: 1rem; line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip-link { position: fixed; left: 50%; top: -100px; transform: translateX(-50%); z-index: 2000; background: var(--paper); color: var(--ink); padding: .55rem 1.1rem; border-radius: 999px; font-size: .85rem; font-weight: 500; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.skip-link:focus { top: .75rem; }
.skip-link:focus:not(:focus-visible) { top: -100px; }
section[id] { scroll-margin-top: 70px; }

/* ---------- Type scale (kept calm) ---------- */
.h-xl,
.h-lg,
.h-md,
.hero-title,
.legacy-lead,
.post-title,
.marquee span,
.menu-overlay a {
  font-family: var(--f-title); font-weight: 600; color: inherit; letter-spacing: -.02em;
}
.h-xl { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.12; margin: 0 0 1.25rem; }
.h-lg { font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.15; margin: 0 0 1.25rem; }
.h-md { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.3; font-weight: 500; margin: 0 0 .75rem; }

.eyebrow { display: flex; align-items: center; gap: .8rem; font-size: .82rem; font-weight: 500; letter-spacing: .04em; color: var(--graphite); margin: 0 0 1.25rem; }
.eyebrow--light { color: var(--ash); }
.eyebrow-line { width: 36px; height: 1px; background: currentColor; display: inline-block; }
.body-text { color: var(--graphite); margin: 0 0 1.25rem; max-width: 60ch; }
.body-text strong { color: var(--ink); font-weight: 600; }
.mb-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Buttons ---------- */
.rm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--f-text); font-weight: 500; font-size: .9rem; letter-spacing: .01em;
  padding: .95rem 1.9rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; background: transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-solid-light { background: var(--paper); color: var(--ink); }
.btn-solid-light:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

.btn-outline-dark-pill { color: var(--ink); border-color: var(--ink); }
.btn-outline-dark-pill:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header: inverts over the split hero ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1030; padding-top: env(safe-area-inset-top, 0px); transition: background-color .4s var(--ease); }
.header-bar {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}
.site-header:not(.is-solid) { mix-blend-mode: difference; color: #fff; }
.site-header.is-solid { background: #000; color: #fff; }
.brand img { width: 160px; height: auto; }
.nav-list { list-style: none; align-items: center; gap: 2.4rem; margin: 0; padding: 0; }
.nav-list a { font-size: .9rem; text-decoration: none; color: inherit; opacity: .78; position: relative; transition: opacity .2s; }
.nav-list a:hover,
.nav-list a.is-active { opacity: 1; }
.nav-list a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; }

.nav-toggle { width: 44px; height: 44px; border: 0; background: none; position: relative; padding: 0; color: inherit; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.menu-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu-open .site-header { mix-blend-mode: normal; background: transparent; }
.menu-overlay {
  position: fixed; inset: 0; z-index: 1020; background: var(--ink); color: var(--paper);
  display: flex; align-items: start; padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
}
.menu-overlay[hidden] { display: none; }
.menu-overlay ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.menu-overlay li { border-top: 1px solid var(--rule-dark); }
.menu-overlay a { display: block; padding: .9rem 0; font-size: 1.6rem; text-decoration: none; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(540px, 76svh, 720px); }
.hero-left { background: var(--paper); display: flex; align-items: flex-end; justify-content: center; padding-top: var(--header-h); overflow: hidden; }
.hero-left img { width: 104%; max-width: 760px; margin-right: -2%; }
.hero-right { background: var(--ink); color: var(--paper); position: relative; display: flex; align-items: center; padding: calc(var(--header-h) + 1.5rem) clamp(1.5rem, 6vw, 6rem) 3.5rem; }
.hero-copy { max-width: 32rem; }
.hero-right .eyebrow { color: var(--ash); }
.hero-title { font-size: clamp(2.2rem, 3.6vw, 3.5rem); line-height: 1.12; margin: 0 0 1.5rem; }
.hero-title span { display: block; }
.hero-title span + span { color: #9a9a9a; }
.hero-sub { color: var(--ash); max-width: 38ch; margin: 0 0 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.scroll-cue { position: absolute; left: clamp(1.5rem, 6vw, 6rem); bottom: 1.5rem; width: 22px; height: 36px; border: 1px solid rgba(255,255,255,.45); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: #fff; border-radius: 2px; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Entrance: the one orchestrated moment */
.js .hero-left img { opacity: 0; transform: scale(1.04); }
.js .hero-copy > * { opacity: 0; transform: translateY(20px); }
.is-loaded .hero-left img { opacity: 1; transform: none; transition: opacity 1.6s var(--ease), transform 2s var(--ease); }
.is-loaded .hero-copy > * { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.is-loaded .hero-copy > :nth-child(1) { transition-delay: .3s; }
.is-loaded .hero-copy > :nth-child(2) { transition-delay: .45s; }
.is-loaded .hero-copy > :nth-child(3) { transition-delay: .6s; }
.is-loaded .hero-copy > :nth-child(4) { transition-delay: .75s; }

@media (max-width: 991.98px) { .hero { grid-template-columns: 1fr; min-height: 0; } .hero-left { padding-top: calc(var(--header-h) + 1rem); } .hero-left img { width: 100%; margin: 0; } .hero-right { padding: 3.5rem 1.5rem 5rem; } .scroll-cue { display: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--rule); padding: 1.4rem 0; background: var(--paper); }
.marquee-track { display: flex; align-items: center; gap: 2.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight: 500; white-space: nowrap; }
.marquee i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.sec { padding-block: var(--sec-y); }
.about-media { position: relative; padding: 0 14% 14% 0; }
.about-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--mist); }

.about-badge {
  position: absolute; z-index: 2; left: -1px; bottom: 22%; background: var(--ink); color: var(--paper);
  padding: 1.1rem 1.4rem; border-radius: 0 6px 6px 0; display: flex; flex-direction: column; gap: .1rem;
}
.about-badge strong { font-family: var(--f-title); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.about-badge span { font-size: .8rem; color: var(--ash); }
.about-lede { font-family: var(--f-title); font-weight: 500; font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.5; margin: 0 0 1.25rem; }
.about-legacy { color: var(--ink); }
.about-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; padding: 0; }
.about-tags li { font-size: .82rem; font-weight: 500; padding: .45rem 1rem; border: 1px solid var(--rule); border-radius: 999px; }
.btn-dark-pill { background: var(--ink); color: var(--paper); }
.btn-dark-pill:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (max-width: 575.98px) { .about-media { padding: 0 8% 18% 0; } .about-badge { bottom: auto; top: 8%; } }
.about-media--sketch { padding: 0; }
.about-media--sketch .about-main { aspect-ratio: auto; height: auto; object-fit: contain; background: none; border-radius: 0; }
.about-media--sketch .about-badge { bottom: 14%; left: 0; }

/* ---------- Legacy: full-bleed photo ---------- */
.legacy { position: relative; color: var(--paper); background: #1b1b1b var(--bg) center / cover no-repeat; padding-block: clamp(4.5rem, 9vw, 7.5rem); }

.legacy-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.6) 100%); }

.legacy-inner { position: relative; }
.legacy-lead { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.45; font-weight: 500; margin: 0 0 1.75rem; }

@media (max-width: 991.98px) { .legacy-shade { background: rgba(0,0,0,.6); } }

/* ---------- Project ---------- */
.project-media { position: relative; margin: 0; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.project-media:hover img { transform: scale(1.03); }
.project-media figcaption {
  position: absolute; left: 1.25rem; top: 1.25rem; display: inline-flex; align-items: center; gap: .55rem;
  background: var(--paper); color: var(--ink); font-size: .8rem; font-weight: 500; padding: .45rem .95rem; border-radius: 999px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status); box-shadow: 0 0 0 4px rgba(63,154,99,.18); }
.project-note { font-size: .95rem; line-height: 1.6; color: var(--graphite); margin: 1.75rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); }

/* ---------- Skills (black) ---------- */
.skills { background: var(--mist); color: var(--ink); }
.skills-grid { border-top: 1px solid var(--rule); }
.skill { padding: 2.25rem 2.5rem 0 0; position: relative; }
.skill::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--ink); transition: width .7s var(--ease); }
.skill:hover::before { width: calc(100% - 2.5rem); }
.skill p { color: var(--graphite); margin: 0; font-size: .95rem; }
.skill-icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #d2d2cf; background: var(--paper); display: grid; place-items: center; margin-bottom: 1.5rem; color: var(--ink); transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.skill-icon svg { width: 24px; height: 24px; }
.skill:hover .skill-icon { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (min-width: 992px) { .skill + .skill { padding-left: 2.5rem; border-left: 1px solid var(--rule); } .skill + .skill::before { left: 2.5rem; } }
@media (max-width: 991.98px) { .skill { padding: 1.75rem 0; } .skill + .skill { border-top: 1px solid var(--rule); } }

/* ---------- Aspirations: photo background + glass panels ---------- */
.aspire-x { position: relative; color: var(--paper); background: #111 var(--bg) center / cover no-repeat; padding-block: clamp(5rem, 10vw, 8.5rem); overflow: hidden; }
.aspire-x-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.62) 50%, rgba(0,0,0,.85) 100%); }
.aspire-x-inner { position: relative; }
.aspire-x-head { text-align: center; max-width: 760px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.aspire-x-head .h-lg { margin-bottom: 1rem; }
.aspire-x-head > p:last-child { color: rgba(255,255,255,.75); margin: 0; }
.aspire-glass {
  height: 100%; text-align: center; padding: 2.75rem 2rem 2.5rem; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); outline-offset: 4px;
  transition: transform .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
}
.aspire-ring {
  width: 92px; height: 92px; margin: 0 auto 1.75rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); color: var(--paper); position: relative;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.aspire-ring::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); transition: transform 1.2s var(--ease); }
.aspire-ring svg { width: 46px; height: 46px; }
.aspire-glass .h-md { margin-bottom: .8rem; }
.aspire-glass p { margin: 0 auto; color: rgba(255,255,255,.72); font-size: .95rem; max-width: 30ch; }
.aspire-glass:hover,
.aspire-glass:focus-visible { transform: translateY(-8px); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.aspire-glass:hover .aspire-ring,
.aspire-glass:focus-visible .aspire-ring { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.aspire-glass:hover .aspire-ring::after { transform: rotate(90deg); }

/* ---------- Blogs ---------- */
.blogs { background: var(--mist); }
.post-link { text-decoration: none; display: block; }
.post-media { margin: 0 0 1.4rem; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: #e8e8e6; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-link:hover .post-media img { transform: scale(1.05); }
.post-title { font-size: 1.15rem; line-height: 1.4; font-weight: 500; margin: 0 0 .6rem; }
.post-excerpt { color: var(--graphite); font-size: .93rem; margin: 0 0 1rem; }
.post-more { font-size: .88rem; font-weight: 500; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .35s var(--ease); }
.post-link:hover .post-more { background-size: 40% 1px; }

/* ---------- Contact ---------- */

/* ---------- Footer (simple) ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 2.25rem 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.footer-brand img { width: 140px; height: auto; }
.footer-nav { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; color: var(--ash); font-size: .9rem; transition: color .2s; }
.footer-nav a:hover { color: var(--paper); }
.footer-copy { margin: 0; font-size: .82rem; color: #8c8c8c; }
@media (max-width: 767.98px) { .footer-row { flex-direction: column; text-align: center; } }

/* ---------- SweetAlert ---------- */

@media (prefers-reduced-motion: reduce) { .js .hero-left img,
.js .hero-copy > * { opacity: 1 !important; transform: none !important; transition: none !important; } .marquee-track,
.scroll-cue span { animation: none; } }

/* =========================================================
   Inner pages: blog listing & article
   ========================================================= */
.page-inner { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.page-head { background: var(--ink); color: var(--paper); padding: clamp(3rem, 7vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head .h-xl { margin-bottom: .75rem; }
.page-head-sub { color: var(--ash); max-width: 52ch; margin: 0 0 2rem; }
.blog-search { display: flex; max-width: 460px; border-bottom: 1px solid rgba(255,255,255,.3); }
.blog-search input { flex: 1; background: transparent; border: 0; color: var(--paper); font: inherit; padding: .7rem 0; min-width: 0; }
.blog-search input::placeholder { color: #8c8c8c; }
.blog-search input:focus { outline: none; }
.blog-search button { background: none; border: 0; color: var(--paper); font-weight: 500; font-size: .9rem; padding: .7rem 0 .7rem 1rem; cursor: pointer; }
.blog-search:focus-within { border-bottom-color: var(--paper); }

.cat-bar { border-bottom: 1px solid var(--rule); background: var(--paper); overflow-x: auto; }
.cat-bar ul { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 1rem 0; white-space: nowrap; }
.cat-bar a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-size: .88rem; font-weight: 500; padding: .5rem 1.05rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--graphite); transition: all .25s var(--ease); }
.cat-bar a span { font-size: .75rem; color: var(--ash); }
.cat-bar a:hover { border-color: var(--ink); color: var(--ink); }
.cat-bar a.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cat-bar a.is-active span { color: var(--ash); }

.blog-index { padding-top: clamp(3rem, 6vw, 4.5rem); }
.feature-post { margin-bottom: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.feature-link { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; text-decoration: none; }
.feature-media { margin: 0; aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feature-link:hover .feature-media img { transform: scale(1.04); }
.feature-link:hover .post-more { background-size: 40% 1px; }
.badge-featured { background: var(--ink); color: var(--paper) !important; padding: .2rem .65rem; border-radius: 999px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: .8rem; font-weight: 500; color: var(--graphite); margin: 0 0 .6rem; }
.post-byline { font-size: .85rem; color: var(--graphite); margin: 0 0 1.25rem; }
.post-byline span { margin: 0 .35rem; color: var(--ash); }
@media (max-width: 991.98px) { .feature-link { grid-template-columns: 1fr; } }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.pager a { min-width: 42px; height: 42px; padding: 0 .9rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 500; }
.pager a:hover { border-color: var(--ink); }
.pager a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty-state { text-align: center; padding: 3rem 0; max-width: 520px; margin: 0 auto; }
.empty-state .body-text { margin-inline: auto; }

/* Article */
.preview-bar { background: #fff4d6; color: #5c4400; text-align: center; font-size: .88rem; font-weight: 500; padding: .7rem 1rem; }
.article-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: var(--graphite); margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; color: var(--graphite); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--ash); }
.article-title { font-family: var(--f-title); font-weight: 600; letter-spacing: -.02em; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.15;  margin: 0 0 1.25rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .88rem; color: var(--graphite); margin: 0; }
.article-cover { margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.article-cover img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.article-body { font-size: 1.06rem; line-height: 1.85; color: #222; max-width: 70ch; }
.article-body > * + * { margin-top: 1.25rem; }
.article-body p { margin: 0; }
.article-body h2,
.article-body h3,
.article-body h4 { font-family: var(--f-title); font-weight: 600; letter-spacing: -.015em; color: var(--ink); line-height: 1.3; margin-top: 2.25rem; }
.article-body h2 { font-size: 1.6rem; } .article-body h3 { font-size: 1.3rem; } .article-body h4 { font-size: 1.1rem; }
.article-body a { color: var(--ink); text-underline-offset: 3px; }
.article-body img { border-radius: var(--radius); margin: 2rem 0; }
.article-body blockquote { border-left: 2px solid var(--ink); padding: .25rem 0 .25rem 1.5rem; margin: 2rem 0; font-family: var(--f-title); font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.article-body ul,
.article-body ol { padding-left: 1.4rem; }
.article-body li + li { margin-top: .4rem; }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.article-gallery figure { margin: 0; }
.article-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.article-gallery figcaption { font-size: .8rem; color: var(--graphite); margin-top: .4rem; }
.article-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 2rem 0 0; margin: 2.5rem 0 0; border-top: 1px solid var(--rule); }
.article-tags a { display: inline-block; font-size: .82rem; font-weight: 500; text-decoration: none; padding: .4rem .95rem; border: 1px solid var(--rule); border-radius: 999px; }
.article-tags a:hover { border-color: var(--ink); }
.article-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 2rem; }
.aside-label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--graphite); margin: 0 0 .75rem; }
.share-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-links a,
.share-links button { font: inherit; font-size: .82rem; font-weight: 500; text-decoration: none; color: var(--ink); background: none; padding: .45rem .9rem; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; transition: border-color .2s; }
.share-links a:hover,
.share-links button:hover { border-color: var(--ink); }
.author-box { padding: 1.5rem; background: var(--mist); border-radius: 6px; }
.author-name { font-family: var(--f-title); font-weight: 600; font-size: 1.1rem; margin: 0 0 .35rem; }
.author-bio { font-size: .88rem; color: var(--graphite); margin: 0; }
.related { margin-top: clamp(3rem, 6vw, 5rem); }

/* ---------- Contact page ---------- */
.contact-simple { padding-block: clamp(3.5rem, 4vw, 3rem); }
.contact-media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-simple .h-xl { margin-bottom: 2.25rem; }
.contact-mail { display: block; text-decoration: none; padding: 1.5rem 0; border-block: 1px solid var(--rule); }
.contact-mail-label { display: block; font-size: .82rem; font-weight: 500; color: var(--graphite); margin-bottom: .4rem; }
.contact-mail-address { font-family: var(--f-title); font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.6rem); word-break: break-word;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.contact-mail:hover .contact-mail-address { background-size: 100% 1.5px; }
@media (max-width: 991.98px) { .contact-media { aspect-ratio: 4 / 3; } }
