/* Afterhours — a fictional night photography collective. Gloock + Schibsted Grotesk, near-black, one neon-rose accent. */
:root {
  --b-bg: #0a0b0f; --b-surface: #14161c; --b-ink: #ece9e2; --b-muted: #a8a59d; --b-line: rgb(236 233 226 / .16); --b-accent: #ff5a7a; --b-accent-ink: #0a0b0f;
  --b-display: 'Gloock', Georgia, serif; --b-text: 'Schibsted Grotesk', system-ui, sans-serif;
  --b-pad: clamp(16px, 3.4vw, 48px);
  color-scheme: dark; scrollbar-color: #4a4d57 var(--b-bg);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--b-bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--b-bg); color: var(--b-ink); font: 400 17px/1.55 var(--b-text); -webkit-font-smoothing: antialiased; padding-bottom: 72px; }
::selection { background: var(--b-accent); color: var(--b-accent-ink); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--b-accent); outline-offset: 3px; border-radius: 4px; }
.ah-skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--b-accent); color: var(--b-accent-ink); padding: 10px 14px; border-radius: 8px; }
.ah-skip:focus { top: 12px; }

.ah-head { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; gap: 24px; max-width: 1440px; margin: 0 auto; padding: 20px var(--b-pad); }
.ah-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px/1 var(--b-display); letter-spacing: -0.01em; }
.ah-moon { width: 24px; height: 24px; color: var(--b-accent); }
.ah-nav { display: flex; gap: clamp(14px, 2.4vw, 32px); margin-left: auto; font-weight: 500; font-size: 15px; }
.ah-nav a { text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.ah-nav a:hover, .ah-nav a[aria-current] { border-color: var(--b-accent); }

.ah-hero { position: relative; min-height: clamp(560px, 82vh, 780px); display: flex; align-items: flex-end; overflow: hidden; }
.ah-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ah-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--b-bg) 0%, rgb(10 11 15 / .72) 30%, rgb(10 11 15 / .15) 65%, rgb(10 11 15 / .55) 100%); }
.ah-hero__in { position: relative; z-index: 2; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--b-pad) clamp(40px, 6vw, 80px); }
.ah-hero h1 { margin: 0 0 20px; font: 400 clamp(56px, 10vw, 160px)/0.92 var(--b-display); letter-spacing: -0.03em; }
.ah-hero p { margin: 0 0 28px; max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); color: #f4f1ea; }
.ah-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--b-accent); color: var(--b-accent-ink); font: 700 16px/1 var(--b-text); text-decoration: none; transition: background .2s; }
.ah-btn:hover { background: #fff; }

.ah-archive { max-width: 1440px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--b-pad) 0; min-height: 1400px; }
.ah-sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 28px; }
.ah-sechead h2, .ah-walks h2, .ah-collective h2 { margin: 0; font: 400 clamp(40px, 5.4vw, 80px)/1 var(--b-display); letter-spacing: -0.025em; }
.ah-sechead p { margin: 0; color: var(--b-muted); }
.ah-archive media-boxes { --mb-font: var(--b-text); --mb-text: var(--b-ink); --mb-text-muted: var(--b-muted); --mb-surface: var(--b-surface); --mb-border: var(--b-line); --mb-accent: var(--b-accent); --mb-accent-contrast: var(--b-accent-ink); --mb-focus: var(--b-accent); --mb-radius: 4px; --mb-placeholder: #1a1d24; --mb-overlay-bg: rgb(8 9 13 / .62); }
.ah-archive .mb-toolbar { margin-bottom: 20px; }
.ah-archive .mb-filter { background: transparent; border: 1px solid rgb(236 233 226 / .32); color: var(--b-ink); font-weight: 500; }
.ah-archive .mb-filter:hover { background: rgb(236 233 226 / .1); }
.ah-archive .mb-filter.is-active, .ah-archive .mb-filter[aria-pressed='true'] { background: var(--b-accent); border-color: var(--b-accent); color: var(--b-accent-ink); }
.ah-archive .mb-count { opacity: 1; }
.ah-archive .mb-title { font: 400 clamp(20px, 1.8vw, 26px)/1.1 var(--b-display); letter-spacing: -0.01em; color: #fff; }
.ah-archive .mb-text { color: #ece9e2; }
.ah-archive .mb-author { font-weight: 600; color: #fff; }
.ah-archive .mb-meta, .ah-archive .mb-meta-item { color: #e2dfd8; }
.ah-archive .mb-date { display: none; }
.ah-archive .mb-load-more { background: transparent; color: var(--b-ink); border: 1px solid rgb(236 233 226 / .4); }
.ah-archive .mb-load-more:hover { background: var(--b-ink); color: #0a0b0f; }

.ah-walks, .ah-collective { max-width: 1440px; margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--b-pad) 0; }
.ah-walks__lead { margin: 16px 0 36px; max-width: 52ch; color: var(--b-muted); font-size: 19px; }
.ah-walklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--b-line); }
.ah-walklist li { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px 32px; padding: 26px 0; border-bottom: 1px solid var(--b-line); }
.ah-walklist time { font: 400 20px/1 var(--b-display); color: var(--b-muted); } .ah-walklist time b { display: block; font-weight: 400; font-size: 52px; color: var(--b-ink); line-height: 1; }
.ah-walklist h3 { margin: 0 0 4px; font: 400 clamp(22px, 2.2vw, 30px)/1.15 var(--b-display); }
.ah-walklist p { margin: 0; color: var(--b-muted); }
.ah-link { color: var(--b-accent); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.ah-link:hover { color: #fff; }

.ah-collective ul { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--b-line); }
.ah-collective li { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) 100px; gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--b-line); align-items: baseline; }
.ah-name { font: 400 clamp(22px, 2.2vw, 30px)/1.1 var(--b-display); }
.ah-bio { color: var(--b-muted); }
.ah-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--b-muted); }

.ah-foot { margin-top: clamp(72px, 9vw, 128px); padding: 28px var(--b-pad) 40px; border-top: 1px solid var(--b-line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; color: var(--b-muted); }
.ah-foot p { margin: 0; font-size: 14px; } .ah-foot .ah-logo { color: var(--b-ink); font-size: 22px; }

@media (max-width: 760px) {
  .ah-nav a:not([aria-current]):not(:last-child) { display: none; } .ah-head { justify-content: space-between; }
  .ah-archive { min-height: 0; }
  .ah-walklist li { grid-template-columns: 76px 1fr; } .ah-walklist .ah-link { grid-column: 2; } .ah-walklist time b { font-size: 40px; }
  .ah-collective li { grid-template-columns: 1fr auto; } .ah-bio { grid-column: 1 / -1; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-btn { transition: none; }
}
.ah-hero { min-height: clamp(640px, 92vh, 860px); padding-top: 96px; }
.ah-archive { min-height: 0; }
.ah-archive:not(:has(media-boxes[data-ready])) { min-height: 1400px; }
