/* Samvara World Dharma
   Palette: night lapis + lantern saffron. Type: Marcellus (display) / Hanken Grotesk (text). */

/* self-hosted fonts (latin subsets from Google Fonts) */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/marcellus.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/hanken-grotesk.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/hanken-grotesk-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-italic-600.woff2") format("woff2"); }

/* while the fonts load (see the script in index.html) the page stays hidden, then fades in */
html.fonts-wait body { opacity: 0; }
body { transition: opacity .35s ease; }

:root {
  --night: #0c1331;
  --deep: #141e4a;
  --lapis: #24357e;
  --dusk: #3d4f9e;
  --mist: #e9edf7;
  --paper: #f7f8fc;
  --ink: #141a3a;
  --ink-soft: #4a5275;
  --glow: #f2a93b;
  --glow-soft: #ffd88f;

  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* modular scale, ratio 1.25 from 18px */
  --s-1: .9rem;
  --s0: 1.125rem;
  --s1: 1.4rem;
  --s2: 1.75rem;
  --s3: 2.2rem;
  --s4: clamp(2.4rem, 4.5vw, 3.4rem);
  --s5: clamp(4rem, 12vw, 9.5rem);

  --wrap: 1120px;
  --measure: 64ch;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--s0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--glow); color: var(--night); padding: .5rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  color: var(--mist);
  transition: background-color .4s ease, box-shadow .4s ease;
}
.nav.is-solid {
  background: rgb(12 19 49 / .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgb(255 255 255 / .06);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--display); font-size: 1.15rem; }
.brand span { color: var(--glow-soft); }
.brand em { font-style: normal; }
.brand-mark { width: 34px; height: 34px; }
#nav-links { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
#nav-links a { text-decoration: none; font-size: var(--s-1); font-weight: 500; letter-spacing: .02em; padding: .35rem 0; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
#nav-links a:hover, #nav-links a.is-active { color: var(--glow-soft); border-color: currentColor; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; color: inherit; }
.nav-toggle .bar { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s; }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(3.75px) rotate(45deg); } /* span 1 is the sr-only label */
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(3) { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(100svh, 640px); overflow: hidden;
  display: flex; align-items: center;
  color: var(--paper); isolation: isolate;
}
.layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.sky { background: linear-gradient(180deg, #070c24 0%, #111a48 45%, #26367f 78%, #3a3f86 100%); z-index: -6; }
.stars { z-index: -5; height: 120%; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: var(--o, .6); }
.moon {
  z-index: -4; inset: 12% 12% auto auto; width: clamp(80px, 10vw, 140px); height: clamp(80px, 10vw, 140px);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff8e6 0%, #f7e5bd 55%, #e8cf98 100%);
  box-shadow: 0 0 60px 18px rgb(255 226 160 / .27), 0 0 160px 60px rgb(255 226 160 / .12); /* 1.5x glow (was .18 / .08) */
}
.ridge { width: 100%; height: 100%; }
.ridge-far { z-index: -3; fill: #2c3c8a; opacity: .85; }
.ridge-mid { z-index: -2; fill: #18235c; }
.water {
  z-index: -1; inset: auto 0 -10% 0; height: 36%;
  background: linear-gradient(180deg, rgb(24 35 92 / 0) 0%, #141d50 14%, #0f1740 40%, var(--night) 85%);
}

/* paper lantern: warm box with a reflection beneath */
.lantern {
  position: absolute; left: var(--x); top: var(--y);
  width: 16px; height: 18px; border-radius: 2px 2px 3px 3px;
  background: linear-gradient(180deg, #fff1c9 0%, var(--glow-soft) 40%, var(--glow) 100%);
  box-shadow: 0 0 14px 4px rgb(242 169 59 / .55), 0 0 44px 14px rgb(242 169 59 / .18);
  animation: bob 6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.lantern::before { content: ""; position: absolute; inset: -3px -2px auto; height: 3px; background: #6b3c12; border-radius: 1px; }
.lantern::after {
  content: ""; position: absolute; left: 50%; top: 24px; width: 10px; height: 26px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgb(242 169 59 / .45), transparent);
  filter: blur(3px);
}
@keyframes bob { 50% { transform: translateY(-4px); } }

.hero-copy { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; padding: calc(var(--nav-h) + 2rem) 0 18vh; }
.hero-kicker { font-family: var(--display); font-size: var(--s1); line-height: 1.65; color: var(--glow-soft); margin: 0 0 .6rem; letter-spacing: .04em; } /* an h2, styled to match the old paragraph */
.hero h1 {
  font-size: var(--s5); line-height: .92; letter-spacing: -.005em;
  background: linear-gradient(180deg, #ffffff 30%, #c9d3f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 80px rgb(160 180 255 / .15);
}
.hero-lede { max-width: 34ch; font-size: var(--s1); line-height: 1.5; color: #d3daf2; margin: 1.6rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.5rem;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: var(--s-1); letter-spacing: .02em;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.btn-glow { background: var(--glow); color: var(--night); box-shadow: 0 0 0 0 rgb(242 169 59 / 0); }
.btn-glow:hover { background: var(--glow-soft); box-shadow: 0 0 28px 4px rgb(242 169 59 / .35); }
.btn-line { border: 1px solid rgb(233 237 247 / .45); color: var(--mist); }
.btn-line:hover { border-color: var(--glow-soft); color: var(--glow-soft); }

/* ---------- About ---------- */
.about { background: var(--paper); padding: clamp(5rem, 11vw, 9rem) 0; position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 6.5rem); } /* columns stretch to equal height, so both tops and both bottoms line up */
/* the last line of each column (the *Ahjan note, "Contributing author") is pinned to the bottom with no space under it, so the two sit exactly level */
.about-text, .about-path { display: flex; flex-direction: column; }
.about-text .aka { margin: auto 0 0; }
.about-path .books { margin-top: auto; }
.books li:last-child { padding-bottom: 0; }
.about h2, .updates h2, .connect h2 { font-size: var(--s4); margin-bottom: 1.6rem; }
.about h2 { color: var(--lapis); }
.about-text p { max-width: var(--measure); color: var(--ink-soft); }
.about-text .lede { font-size: var(--s1); line-height: 1.5; color: var(--ink); }
.aka { font-size: var(--s-1); font-style: italic; }
.about-path { border-left: 1px solid #cdd4ea; padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.about-path h3 { font-size: var(--s1); color: var(--lapis); margin-bottom: 1.2rem; }
.timeline { list-style: none; margin: 0 0 2.6rem; padding: 0; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid #dfe4f2; font-size: var(--s-1); line-height: 1.5; color: var(--ink-soft); }
.timeline li:last-child { border-bottom: 1px solid #dfe4f2; }
.about-text a, .timeline a { color: var(--lapis); text-decoration: underline; text-decoration-color: rgb(242 169 59 / .6); text-underline-offset: .2em; transition: text-decoration-color .25s; }
.about-text a:hover, .timeline a:hover { text-decoration-color: var(--glow); }
.yr { font-family: var(--display); font-size: 1.05rem; color: var(--ink); font-variant-numeric: lining-nums; }
.books ul { margin: 0; padding: 0; list-style: none; }
.books li { padding: .35rem 0; }
.books cite { font-family: var(--display); font-style: normal; font-size: 1.1rem; color: var(--ink); }
.books a { display: inline-block; padding: .2rem 0; text-decoration: underline; text-decoration-color: rgb(242 169 59 / .6); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: text-decoration-color .25s; }
.books a:hover cite, .books a:focus-visible cite { color: var(--lapis); }
.books a:hover { text-decoration-color: var(--glow); }
.book-note { display: block; font-size: var(--s-1); font-style: italic; color: var(--ink-soft); }

/* ---------- Parallax bands ---------- */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(380px, 62vh, 620px);
  display: grid; place-items: center; text-align: center;
  color: var(--mist);
}
.band-lotus { min-height: clamp(520px, 82vh, 820px); } /* taller than the lantern band, with room above the wings and below the feet */
.band-lotus { background: radial-gradient(ellipse at 50% 50%, var(--lapis) 0%, var(--deep) 55%, var(--night) 100%); }
/* retired lotus mandala:
.lotus { position: absolute; width: min(120vw, 860px); aspect-ratio: 1; color: var(--glow); opacity: .32; z-index: -1; will-change: transform; }
*/
.dragon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: #fff; opacity: .34; will-change: transform; }
.steam-puff { opacity: 0; transform-box: fill-box; transform-origin: center; animation: steam 5.5s ease-out infinite; }
@keyframes steam {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0deg); }
  15% { opacity: .85; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(2.2) rotate(70deg); }
}
@media (prefers-reduced-motion: reduce) { .steam-puff { animation: none; opacity: .5; } }
.band-lotus::after { /* darkens the middle so the quote keeps strong contrast over the dots */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 44% 42% at 50% 50%, rgb(12 19 49 / .62) 0%, rgb(12 19 49 / .45) 55%, rgb(12 19 49 / 0) 100%);
}
.band-quote { margin: 0; padding: 0 1.5rem; }
.band-quote p { font-family: var(--display); font-size: var(--s4); line-height: 1.15; color: var(--paper); margin: 0 auto 1.2rem; max-width: 17ch; text-wrap: balance; }
.band-quote footer { font-size: var(--s-1); color: var(--glow-soft); letter-spacing: .03em; }
.band-quote cite { font-style: italic; }

.band-lanterns { background: linear-gradient(180deg, var(--night) 0%, #17205a 60%, #2b2f6e 100%); }
.rise { position: absolute; inset: -20% 0; z-index: -1; will-change: transform; }
.rise .lantern { transform: scale(1.4); }
.band-line { font-family: var(--display); font-size: var(--s4); line-height: 1.15; color: var(--paper); margin: 0; padding: 0 1.5rem; }

/* ---------- Updates ---------- */
.updates { background: var(--mist); padding: clamp(5rem, 11vw, 9rem) 0; position: relative; z-index: 1; }
.updates h2 { color: var(--lapis); }
.post { background: var(--paper); border-radius: 4px; padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem); box-shadow: 0 30px 60px -40px rgb(20 30 74 / .45); }
.post-head, .post-body { max-width: none; } /* text spans the full width of the card */
.post-meta { font-size: var(--s-1); color: var(--dusk); font-weight: 500; margin-bottom: 1rem; }
.post h3 { font-size: var(--s3); color: var(--ink); margin-bottom: .6rem; text-wrap: balance; }
.post-byline { font-size: var(--s-1); color: var(--ink-soft); margin-bottom: 1.4rem; }
.post-byline a { color: var(--lapis); text-decoration-color: rgb(242 169 59 / .6); text-underline-offset: .2em; }
.post-lede { font-size: calc(var(--s1) * .9); font-style: italic; line-height: 1.5; color: var(--ink); }
.post-body { color: var(--ink-soft); margin-top: 2.2rem; }
.post-body h4 { font-size: var(--s1); color: var(--lapis); margin: 2.4rem 0 .9rem; }
.theme {
  font-family: var(--display); font-size: var(--s2); line-height: 1.25; color: var(--ink);
  border-left: 3px solid var(--glow); padding: .2rem 0 .2rem 1.4rem; margin: 1.8rem 0 2rem;
}
.theme span { display: block; font-family: var(--text); font-style: italic; font-size: var(--s0); color: var(--dusk); margin-top: .5rem; }

/* rows of three that wrap; a short last row is centred */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; column-gap: 1.25rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.gallery figure { margin: 0 0 1.5rem; width: calc((100% - 2.5rem) / 3); }
.gallery .g-wide { width: 100%; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--deep); cursor: zoom-in; border-radius: 3px; overflow: hidden; }
.zoom picture { display: block; }
.zoom img { width: 100%; transition: transform .6s ease, opacity .3s; }
.zoom:hover img { transform: scale(1.025); }

/* lead photo (and the About portrait): an even gilded border catching gold light */
.g-framed .zoom, .gold-frame {
  width: 50%; margin-inline: auto;
  position: relative; padding: 14px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(135deg, #f9e3a8 0%, #c8913a 22%, #fbe9b8 46%, #b07a2c 70%, #f2c46d 100%);
  box-shadow:
    0 0 0 1px rgb(255 216 143 / .8),
    0 0 28px 6px rgb(242 169 59 / .45),
    0 0 80px 24px rgb(242 169 59 / .25),
    0 0 160px 60px rgb(255 216 143 / .16),
    0 0 260px 110px rgb(255 216 143 / .08);
}
.g-framed .zoom img, .gold-frame img { position: relative; z-index: 1; border-radius: 1px; box-shadow: 0 0 0 1px #7a5216, 0 0 0 3px rgb(255 240 200 / .6); }
.g-framed .zoom::after, .gold-frame::after { /* slow sheen of light travelling across the gold */
  content: ""; position: absolute; inset: -50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgb(255 250 230 / .75) 50%, transparent 58%);
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.g-framed figcaption { text-align: center; margin-top: 1rem; }
.about-photo { margin: clamp(6rem, 12vw, 9rem) 0 clamp(2.5rem, 6vw, 4.5rem); } /* generous space above and below */
.about-photo figcaption { text-align: center; margin-top: 1.25rem; font-size: var(--s-1); line-height: 1.45; color: var(--ink-soft); } /* matches the gallery captions */
.about-photo .gold-frame { width: min(410px, 80%); } /* its original size (70% of the text column); centered by the shared rule */
.gold-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) { .gallery figure { width: calc((100% - 1.25rem) / 2); } .gallery .g-wide { width: 100%; } .g-framed .zoom { width: 80%; padding: 9px; } .about-photo .gold-frame { width: 80%; padding: 9px; } }

.gallery figcaption { font-size: var(--s-1); line-height: 1.45; color: var(--ink-soft); margin-top: .6rem; }

.soon { margin-top: clamp(3rem, 7vw, 5rem); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; padding-top: clamp(4.5rem, 10.5vw, 6.75rem); border-top: 1px solid #c9d1ea; }
.soon h3 { font-size: var(--s2); color: var(--ink); }
.soon p { margin: 0; color: var(--ink-soft); }
.soon-tag {
  display: inline-block; margin-bottom: .2rem; /* inline-block so the gradient spans just the words */
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600;
  font-size: clamp(3rem, 15vw, 10rem); line-height: 1.2; letter-spacing: .01em; /* 2.5x the original; the floor keeps it within a phone screen */
  /* top layer: soft bands of light parked off to the side, swept across on hover */
  background:
    linear-gradient(110deg, transparent 30%, rgb(255 246 220 / .55) 38%, transparent 44%, rgb(255 246 220 / .3) 50%, transparent 56%) -100% 0 / 250% 100% no-repeat,
    linear-gradient(100deg, #c9781a 0%, var(--glow) 30%, #e0792f 55%, var(--dusk) 85%, var(--lapis) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgb(242 169 59 / .25));
  padding: 0 .1em .12em 0; /* room for the italic overhang and the g's descender, which background-clip would otherwise cut off */
}
.soon-now:hover .soon-tag { animation: soon-shine 3.2s linear infinite; } /* the whole row is the hover target */
/* left to right: 95% puts the bands just off the left edge of the words, -20% just off the right; then a short rest */
@keyframes soon-shine { 0% { background-position: 95% 0, 0 0; } 65%, 100% { background-position: -20% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .soon-now:hover .soon-tag { animation: none; } }
.soon .soon-now { flex-basis: 100%; text-align: right; margin: clamp(1.5rem, 4vw, 2.5rem) 0 .75rem; }
.soon .soon-follow { flex-basis: 100%; text-align: left; font-family: var(--display); font-size: var(--s2); line-height: 1.25; /* matches the h3 above */ margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.soon-link { color: var(--lapis); font-weight: 600; text-decoration: underline; text-decoration-color: var(--glow); text-underline-offset: .2em; text-decoration-thickness: 2px; transition: color .25s; }
.soon-link:hover { color: #c9781a; }

/* ---------- Connect ---------- */
.connect { background: #2b2f6e; background: linear-gradient(180deg, #2b2f6e 0%, var(--deep) 100%); color: var(--mist); padding: clamp(4rem, 9vw, 7rem) 0 clamp(5rem, 10vw, 8rem); }
.connect h2 { color: var(--glow-soft); margin-bottom: .8rem; }
.connect-intro { color: #bcc5e6; margin-bottom: 2.8rem; }
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; column-gap: 2rem; border-top: 1px solid rgb(233 237 247 / .14); } /* columns spread edge to edge */
.socials li { border-bottom: 1px solid rgb(233 237 247 / .14); }
.socials a { display: flex; flex-direction: column; gap: .15rem; padding: 1.4rem 1rem 1.4rem 0; text-decoration: none; }
.net { font-family: var(--display); font-size: var(--s2); line-height: 1.1; transition: color .25s; }
.handle { font-size: var(--s-1); color: #9ea9d4; overflow-wrap: anywhere; }
.socials a:hover .net, .socials a:focus-visible .net { color: var(--glow-soft); }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: #8f99c4; font-size: var(--s-1); padding: 1.6rem 0; }
.foot-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.foot-row > :last-child { justify-self: end; }
.foot-mark { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgb(242 169 59 / .25)); } /* logo sits in the exact centre */
.site-foot p { margin: 0; }
.site-foot a { display: inline-block; padding: .5rem 0; text-decoration: none; } /* comfortable tap target */
.site-foot a:hover { color: var(--glow-soft); }

/* ---------- Photo viewer ---------- */
.viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--mist); }
.viewer::backdrop { background: rgb(7 11 30 / .92); }
.viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; animation: fadein .25s ease; }
.viewer figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.viewer img { max-width: min(94vw, 1100px); max-height: 80vh; width: auto; border-radius: 3px; }
.viewer figcaption { font-size: var(--s-1); text-align: center; max-width: 60ch; padding: 0 1rem; }
.viewer-ctrl { display: flex; gap: .6rem; }
.viewer-ctrl button { min-width: 48px; min-height: 44px; border-radius: 999px; border: 1px solid rgb(233 237 247 / .35); background: transparent; color: inherit; font: 500 1rem var(--text); cursor: pointer; padding: 0 1rem; }
.viewer-ctrl button:hover { border-color: var(--glow-soft); color: var(--glow-soft); }
@keyframes fadein { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-path { border-left: 0; padding-left: 0; border-top: 1px solid #cdd4ea; padding-top: 2.5rem; }
}
@media (max-width: 720px) {
  .dragon { left: -122%; width: 230%; } /* larger on phones, framed on the head and forelegs */
  .nav-toggle { display: block; }
  #nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .5rem 1.5rem 1.5rem;
    background: rgb(12 19 49 / .96); backdrop-filter: blur(12px);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  #nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  #nav-links a { padding: .9rem 0; font-size: var(--s0); border-bottom: 1px solid rgb(255 255 255 / .08); }
  .brand span { font-size: 1rem; }
  .hero-copy { padding-bottom: 22vh; }
  .timeline li { grid-template-columns: 1fr; gap: .1rem; }
  .post-lede { font-size: 1.08rem; }
  .post h3 { font-size: var(--s2); }
}
@media (max-width: 620px) {
  .socials { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 480px) {
  .foot-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot-row > :last-child { justify-self: center; }
  .foot-mark { order: -1; }
  .socials { grid-template-columns: 1fr; }
  .gallery figure { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lantern { animation: none; }
  .layer, .dragon, .rise, [data-speed] { transform: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
