/* ekin-art.com — public site
   World: a cloud edge diffracting light. Achromatic cloud-white field, slate ink,
   colour lives only in the thin iridescent fringe; each issue brings its own fringe. */

@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ground: #f6f7f9;
  --cloud: #ffffff;
  --mist: #eef1f5;
  --ink: #2c323a;
  --ink-2: #49515c;
  --ink-3: #616a76;
  --line: #e2e6eb;
  --line-2: #cfd5dd;
  --accent: #6447d6;
  --accent-ink: #ffffff;

  /* House fringe; every issue overrides --f1..--f3 with colours from its own cover. */
  --mint: #7fddbf;
  --rose: #f39bc4;
  --violet: #8c6be8;
  --f1: var(--mint);
  --f2: var(--rose);
  --f3: var(--violet);
  --fringe: linear-gradient(90deg, var(--f1), var(--f2) 52%, var(--f3));
  --fringe-diag: linear-gradient(115deg, var(--f1), var(--f2) 50%, var(--f3));

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-edge: rgba(255, 255, 255, 0.9);

  --shadow-sm: 0 1px 2px rgba(36, 44, 58, 0.06), 0 2px 6px -2px rgba(36, 44, 58, 0.08);
  --shadow-md: 0 2px 4px rgba(36, 44, 58, 0.05), 0 12px 28px -12px rgba(36, 44, 58, 0.22);
  --shadow-page: 0 1px 1px rgba(36, 44, 58, 0.06), 0 10px 24px -8px rgba(36, 44, 58, 0.22), 0 36px 70px -30px rgba(36, 44, 58, 0.32);

  --font: "Commissioner", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 26px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  /* Lights off: the same world at night. Pages stay white; the room around them dims. */
  color-scheme: dark;
  --ground: #0f1217;
  --cloud: #171b22;
  --mist: #1b2028;
  --ink: #eef0f4;
  --ink-2: #c9ced6;
  --ink-3: #9ea6b3;
  --line: #262c35;
  --line-2: #333b46;
  --accent: #b3a1ff;
  --accent-ink: #14111f;
  --glass: rgba(24, 28, 36, 0.6);
  --glass-strong: rgba(24, 28, 36, 0.82);
  --glass-edge: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 6px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  --shadow-page: 0 1px 1px rgba(0, 0, 0, 0.4), 0 12px 28px -8px rgba(0, 0, 0, 0.6), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
:root[data-theme="dark"] body::before { opacity: 0.08; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::before {
  /* Cloud paper: a faint grain so the ground reads as a surface, not a flat fill. */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.24  0 0 0 0 0.3  0 0 0 1 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 300; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--f3) 30%, transparent); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cloud); color: var(--ink); padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 16px; }

.icon { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Wordmark: the dot over the i is a droplet carrying the current fringe ---- */
.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.28em;
  font-size: 1.75rem; line-height: 1; font-weight: 300; letter-spacing: -0.02em; color: var(--ink);
}
.wordmark__art { color: var(--ink-3); font-weight: 300; }
.wordmark__i { position: relative; display: inline-block; }
.wordmark__drop {
  position: absolute; left: 50%; top: -0.06em; width: max(0.21em, 5px); height: max(0.21em, 5px); border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.95) 0 18%, transparent 46%),
    conic-gradient(from 200deg, var(--f1), var(--f2), var(--f3), var(--f1));
  box-shadow: 0 0 0.12em color-mix(in srgb, var(--f2) 60%, transparent);
}
.wordmark--small { font-size: 1.3rem; }
a.wordmark { padding-block: 10px; margin-block: -10px; }

/* ---- Buttons: pill with the diffraction hairline as its border ---- */
.btn {
  --btn-bg: var(--cloud);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.6em; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--ink);
  font-size: 1rem; font-weight: 500; letter-spacing: 0.005em; white-space: nowrap;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.25px; z-index: -1;
  background: var(--fringe-diag);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn:hover { box-shadow: var(--shadow-md); }
.btn:active { transform: scale(0.97); transition-duration: 90ms; }
.btn .icon { width: 18px; height: 18px; transition: transform 240ms var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

.btn--quiet { --btn-bg: transparent; box-shadow: none; }
.btn--quiet::before { background: var(--line-2); }
.btn--quiet:hover { box-shadow: none; background: var(--cloud); }

.text-link {
  /* 44px tall for touch; the fringe underline still sits just under the words. */
  display: inline-flex; align-items: center; gap: 0.35em; min-height: 44px; padding-block: 10px; color: var(--ink-2); font-weight: 500;
  background-image: var(--fringe); background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 calc(100% - 9px);
  transition: background-size 320ms var(--ease-out), color 200ms;
}
.text-link:hover { color: var(--ink); background-size: 100% 1.5px; }
.text-link .icon { width: 16px; height: 16px; }

/* ---- Site header: open at the top, a misted-glass capsule once the page moves ---- */
.site-header { position: sticky; top: 0; z-index: 30; padding-block: 12px; }
.site-header__bar { position: relative; isolation: isolate; display: flex; align-items: center; gap: 24px; height: 64px; }
.site-header__bar::before {
  content: ""; position: absolute; inset: 0 -20px; z-index: -1; border-radius: 999px;
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-edge);
  opacity: 0; transform: scale(0.985); transition: opacity 320ms var(--ease-out), transform 480ms var(--ease-out);
}
.site-header__bar::after {
  /* The fringe catches the capsule's lower rim. */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 1px; z-index: -1;
  background: var(--fringe); opacity: 0; transition: opacity 320ms var(--ease-out);
}
.is-scrolled .site-header__bar::before { opacity: 1; transform: none; }
.is-scrolled .site-header__bar::after { opacity: 0.75; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 0.97rem; font-weight: 450; transition: color 200ms, background-color 200ms;
}
.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--cloud) 70%, transparent); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--fringe);
}
.site-nav__short { display: none; }
.site-nav a.site-nav__issue {
  gap: 10px; padding: 0 16px 0 7px; margin-right: 8px; min-height: 46px;
  background: color-mix(in srgb, var(--cloud) 72%, transparent); box-shadow: inset 0 0 0 1px var(--line);
}
.site-nav__issue img {
  width: 22px; height: 31px; object-fit: cover; border-radius: 2px;
  box-shadow: 0 -1.5px 0 0 var(--f2), 0 2px 6px -2px rgba(36, 44, 58, 0.35);
  transition: transform 300ms var(--ease-out);
}
.site-nav__issue:hover img { transform: translateY(-2px) rotate(-2deg); }
.site-nav__issue > span { display: grid; line-height: 1.15; font-size: 0.78rem; color: var(--ink-3); }
.site-nav__issue-no { color: var(--ink); font-size: 0.9rem; font-weight: 550; }
.site-header .lamp { color: var(--ink-2); margin-right: -8px; }

@media (max-width: 760px) {
  .site-header { padding-block: 8px; }
  .site-header__bar { height: 52px; gap: 8px; }
  .site-header__bar::before { inset: 0 -10px; }
  .site-nav a { padding: 0 10px; font-size: 0.95rem; }
  .site-nav__long { display: none; }
  .site-nav__short { display: inline; }
  .site-nav a.site-nav__issue { padding: 0 6px; margin-right: 2px; min-height: 44px; }
  .site-nav__issue > span { display: none; }
  .wordmark { font-size: 1.5rem; }
}

/* ---- Sky: the WebGL cloud edge (with a CSS fallback underneath) ---- */
.sky {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 55% at 78% 22%, rgba(255, 255, 255, 0.95), transparent 70%),
    radial-gradient(45% 40% at 92% 48%, rgba(255, 255, 255, 0.8), transparent 70%);
}
.sky::before {
  /* Fallback fringe, hidden once the shader draws. */
  content: ""; position: absolute; left: 30%; right: -10%; top: 46%; height: 26px;
  background: var(--fringe); filter: blur(16px); opacity: 0.55; transform: rotate(-13deg);
  transition: opacity 600ms;
}
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1200ms var(--ease-out); }
.sky.is-live canvas { opacity: 1; }
.sky.is-live::before { opacity: 0; }

/* ---- Home: hero ---- */
.hero .field { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero .field.is-live { opacity: 1; }
.hero { position: relative; isolation: isolate; margin-top: -88px; padding-top: 88px; overflow: clip; }
.hero .sky {
  left: 22%;
  -webkit-mask-image: radial-gradient(115% 105% at 100% 8%, #000 42%, rgba(0, 0, 0, 0.6) 60%, transparent 86%);
  mask-image: radial-gradient(115% 105% at 100% 8%, #000 42%, rgba(0, 0, 0, 0.6) 60%, transparent 86%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 5vw, 80px);
  min-height: min(calc(100svh - 88px), 800px); padding-block: clamp(24px, 4vh, 56px) clamp(40px, 6vh, 72px);
}
.hero__title {
  font-size: clamp(2.6rem, 1.3rem + 4.4vw, 5.6rem); line-height: 1.02; font-weight: 200; letter-spacing: -0.035em;
  max-width: 13ch;
}
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: 26px; color: var(--ink-3); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em;
}
.hero__meta span + span::before {
  content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 14px; border-radius: 50%;
  background: var(--fringe); vertical-align: middle; transform: translateY(-1px);
}
.hero__summary { margin-top: 22px; max-width: 44ch; font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 38px; }

.hero__stage { position: relative; display: grid; place-items: center; min-height: 100%; }
.cover {
  position: relative; display: block; width: min(100%, var(--cover-w, 420px));
  aspect-ratio: var(--ratio, 0.707); border-radius: 3px;
  background: var(--cloud); box-shadow: var(--shadow-page);
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}
.cover img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cover::after {
  /* The diffraction edge: light catching the cover's top and right edges. */
  content: ""; position: absolute; inset: -1px; border-radius: 4px; pointer-events: none;
  padding: 1.5px; background: linear-gradient(200deg, var(--f1), var(--f2) 18%, transparent 38%, transparent 70%, var(--f3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.85;
}
.hero__cover { --cover-w: clamp(240px, 30vw, 440px); view-transition-name: issue-cover; }
.hero__cover:hover { transform: translateY(-6px) rotate(-0.4deg); }

/* Hovering the cover offers the read, nothing else sits on the book. */
.cover__hint {
  position: absolute; left: 50%; bottom: 9%; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 15px; border-radius: 999px; white-space: nowrap;
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  background: var(--glass-strong); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-edge);
  opacity: 0; transform: translate(-50%, 8px) scale(0.97); pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 420ms var(--ease-out);
}
.cover__hint .icon { width: 18px; height: 18px; color: var(--accent); }
@media (hover: hover) {
  .hero__cover:hover .cover__hint, .hero__cover:focus-visible .cover__hint { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (max-width: 900px) {
  .hero .sky {
    left: 0; bottom: auto; height: 52svh;
    -webkit-mask-image: radial-gradient(140% 100% at 70% 0%, #000 45%, transparent 92%); mask-image: radial-gradient(140% 100% at 70% 0%, #000 45%, transparent 92%);
  }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 26px; padding-block: 4px 8px; }
  .hero__stage { order: -1; }
  .hero__cover { --cover-w: min(44vw, 230px); }
  .hero__title { font-size: clamp(2.3rem, 1.2rem + 5.4vw, 3.4rem); }
  .hero__meta { margin-top: 16px; }
  .hero__summary { margin-top: 14px; font-size: 1.05rem; }
  .hero__actions { margin-top: 24px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero__actions .text-link { align-self: center; }
}

/* ---- Empty home ---- */
.hero--empty .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: min(calc(100svh - 88px), 720px); }
.hero--empty .hero__title { max-width: 16ch; }

/* ---- Section rhythm ---- */
.section { position: relative; padding-block: clamp(48px, 7vw, 96px) 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section__title { font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.6rem); line-height: 1.1; font-weight: 250; letter-spacing: -0.02em; }
.section__note { color: var(--ink-3); font-size: 0.95rem; margin-top: 8px; }

/* ---- Page strip: real pages from the latest issue ---- */
.strip { position: relative; }
.strip__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(132px, 15vw, 196px); gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 18px var(--gutter) 34px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.strip__track::-webkit-scrollbar { display: none; }
.strip__page { scroll-snap-align: start; display: grid; gap: 10px; }
.strip__sheet {
  position: relative; aspect-ratio: var(--ratio, 0.707); background: var(--cloud); border-radius: 2px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
.strip__sheet img { width: 100%; height: 100%; object-fit: cover; }
.strip__sheet::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--fringe);
  transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out);
}
.strip__page:hover .strip__sheet { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.strip__page:hover .strip__sheet::after { transform: scaleX(1); }
.strip__no { font-size: 0.82rem; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.strip__sheet--more {
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  background: var(--glass-strong); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.strip__sheet--more::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--fringe-diag);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.6;
}
.strip__more-count { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 200; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.strip__more-text { font-size: 0.86rem; color: var(--ink-3); line-height: 1.35; }
.strip__sheet--more .icon { width: 18px; height: 18px; margin-top: 6px; color: var(--accent); transition: transform 300ms var(--ease-out); }
.strip__more:hover .strip__sheet--more .icon { transform: translateX(4px); }
.strip__nav { display: flex; gap: 8px; }
.strip__nav[hidden] { display: none; }

/* Earlier issues slide sideways like the preview; the archive page keeps the full grid. */
.shelf-track { grid-auto-columns: clamp(148px, 17vw, 212px); gap: clamp(18px, 2vw, 30px); padding-top: 22px; }
.shelf-track .issue { scroll-snap-align: start; }
.issue__cover--all {
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  background: var(--glass-strong); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.issue__cover--all .icon { width: 18px; height: 18px; margin-top: 6px; color: var(--accent); transition: transform 300ms var(--ease-out); }
.issue--all:hover .issue__cover--all .icon { transform: translateX(4px); }
.round-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: transparent; cursor: pointer; color: var(--ink-2); transition: background-color 200ms, color 200ms, transform 120ms;
}
.round-btn:hover { background: var(--cloud); color: var(--ink); }
.round-btn:active { transform: scale(0.94); }
.round-btn:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 760px) { .strip__nav { display: none; } }

/* ---- Archive grid ---- */
.shelf {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 42vw), 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2.4vw, 36px);
}
.issue { display: grid; gap: 14px; align-content: start; }
.issue__cover {
  position: relative; aspect-ratio: var(--ratio, 0.707); border-radius: 2px; background: var(--mist);
  box-shadow: var(--shadow-sm); transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}
.issue__cover img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.issue__cover::before {
  content: ""; position: absolute; inset: -10px -10px 8px; z-index: -1; border-radius: 12px;
  background: var(--fringe-diag); filter: blur(22px); opacity: 0; transition: opacity 600ms var(--ease-out);
}
.issue__cover::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; border-radius: 2px; background: var(--fringe); opacity: 0.9;
}
.issue:hover .issue__cover { transform: translateY(-8px); box-shadow: var(--shadow-page); }
.issue:hover .issue__cover::before { opacity: 0.35; }
.issue__title, .issue__meta { display: block; }
.issue__title { font-size: 1.02rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.issue__meta { margin-top: 3px; font-size: 0.88rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.archive-head { position: relative; isolation: isolate; overflow: clip; margin-top: -88px; padding-block: calc(88px + clamp(36px, 6vw, 80px)) clamp(36px, 5vw, 64px); }
.archive-head .sky {
  left: 30%;
  -webkit-mask-image: radial-gradient(110% 120% at 100% 0%, #000 38%, rgba(0, 0, 0, 0.55) 58%, transparent 84%);
  mask-image: radial-gradient(110% 120% at 100% 0%, #000 38%, rgba(0, 0, 0, 0.55) 58%, transparent 84%);
}
.archive-head__inner { position: relative; z-index: 1; }
.archive-head__title { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem); line-height: 1.04; font-weight: 200; letter-spacing: -0.03em; }
.archive-head__note { margin-top: 14px; color: var(--ink-3); font-size: 1rem; max-width: 52ch; }
.shelf--hang {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(36px, 4vw, 64px) clamp(24px, 4vw, 64px);
}
.shelf--hang .issue { width: clamp(150px, 22vw, 300px); }
.shelf--hang .issue__title { font-size: 1.12rem; }
.archive-body { position: relative; margin-top: clamp(-40px, -3vw, -16px); }

.empty {
  display: grid; justify-items: start; gap: 14px; padding: clamp(32px, 6vw, 64px) 0; color: var(--ink-3); max-width: 46ch;
}
.empty h2 { font-size: 1.6rem; font-weight: 250; }

/* ---- Footer: the page closes on a second cloud edge rising from below ---- */
.site-footer { position: relative; isolation: isolate; overflow: clip; margin-top: clamp(96px, 14vw, 180px); padding-top: clamp(56px, 7vw, 96px); }
.site-footer::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--f1) 22%, var(--f2) 50%, var(--f3) 78%, transparent); opacity: 0.7;
}
.sky--footer {
  -webkit-mask-image: radial-gradient(130% 95% at 0% 100%, #000 30%, rgba(0, 0, 0, 0.5) 55%, transparent 82%);
  mask-image: radial-gradient(130% 95% at 0% 100%, #000 30%, rgba(0, 0, 0, 0.5) 55%, transparent 82%);
}
.site-footer__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.7fr); gap: clamp(36px, 5vw, 88px); align-items: start;
}
.wordmark--display { font-size: clamp(3.4rem, 2rem + 6vw, 7.2rem); font-weight: 200; letter-spacing: -0.04em; gap: 0.22em; }
.wordmark--display .wordmark__drop { top: 0.04em; width: 0.17em; height: 0.17em; }
.site-footer__about { margin-top: 20px; max-width: 34ch; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; }
.site-footer__col h2 {
  margin-bottom: 18px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3);
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.site-footer__col a { display: inline-block; color: var(--ink); font-weight: 450; transition: color 200ms; }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__col li a[style] { position: relative; padding-left: 18px; }
.site-footer__col li a[style]::before {
  /* Each issue keeps its own droplet. */
  content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.9) 0 18%, transparent 46%), conic-gradient(from 200deg, var(--f1), var(--f2), var(--f3), var(--f1));
}
.site-footer__issue-title { display: block; font-size: 1rem; line-height: 1.35; }
.site-footer__issue-meta { display: block; margin-top: 2px; font-size: 0.85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.site-footer__base {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: clamp(64px, 9vw, 128px); padding-block: 18px 26px; border-top: 1px solid color-mix(in srgb, var(--line-2) 70%, transparent);
  color: var(--ink-3); font-size: 0.9rem;
}
.site-footer__domain { letter-spacing: 0.04em; }
.site-footer__actions { display: flex; align-items: center; gap: 6px; }
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .site-footer__domain { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---- Error page ---- */
.error-page { position: relative; isolation: isolate; overflow: clip; margin-top: -88px; padding-top: 88px; min-height: 80svh; display: grid; align-items: center; }
.error-page .sky {
  left: 26%;
  -webkit-mask-image: radial-gradient(110% 110% at 100% 0%, #000 40%, rgba(0, 0, 0, 0.55) 60%, transparent 86%);
  mask-image: radial-gradient(110% 110% at 100% 0%, #000 40%, rgba(0, 0, 0, 0.55) 60%, transparent 86%);
}
.error-page__inner { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; max-width: 40rem; }
.error-page h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); font-weight: 200; line-height: 1.05; letter-spacing: -0.03em; }

/* ---- Entrance: one orchestrated moment, content visible by default ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy > * { animation: rise 900ms var(--ease-out) both; }
  .js .hero__copy > :nth-child(2) { animation-delay: 70ms; }
  .js .hero__copy > :nth-child(3) { animation-delay: 140ms; }
  .js .hero__copy > :nth-child(4) { animation-delay: 210ms; }
  .js .hero__cover { animation: settle 1200ms var(--ease-out) both 120ms; }
}
@keyframes rise { from { opacity: 0.01; transform: translateY(14px); filter: blur(6px); } }
@keyframes settle { from { transform: translateY(18px) scale(0.98); } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  @view-transition { navigation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .cover__hint { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Sections that reach under the header follow its phone height (8 + 52 + 8). Placed last so
   it wins over each section's own desktop offset. */
@media (max-width: 760px) {
  .hero, .archive-head, .error-page { margin-top: -68px; }
  .hero, .error-page { padding-top: 68px; }
  .archive-head { padding-top: calc(68px + 28px); }
}
