/* Two ideas only: a full-screen photo with the name on it, then plain pages of writing. */
:root {
  --ink: #111214;
  --soft: #5c6068;
  --rule: #dcdcd8;
  --page: #ffffff;
  --dark: #0c0d0f;
  --gutter: clamp(20px, 5vw, 72px);
  --col: 40rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); color: var(--ink); font: 400 1.125rem/1.6 var(--font); }
main { flex: 1; }
::selection { background: var(--ink); color: var(--page); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p, ul, ol { margin: 0; padding: 0; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--ink); color: var(--page); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px var(--gutter); position: relative; z-index: 3; }
.mark { font-weight: 500; text-decoration: none; white-space: nowrap; display: inline-block; padding: 12px 0; }
.menu { display: flex; gap: clamp(16px, 3vw, 32px); list-style: none; font-size: 1rem; }
.menu a { text-decoration: none; display: inline-block; padding: 12px 0; }
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; }

/* home: the photo */
.home .top { position: absolute; left: 0; right: 0; top: 0; color: #fff; }
.home .mark { visibility: hidden; }
.cover { position: relative; min-height: 100svh; background: var(--dark); color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.35)); }
.cover-text { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(40px, 8vh, 96px); width: 100%; }
.cover h1 { font-size: clamp(3.25rem, 11vw, 6rem); line-height: 0.92; letter-spacing: -0.04em; animation: rise 900ms var(--ease) backwards; }
.cover h1 span { display: block; }
.cover p { margin-top: 20px; font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.35; max-width: 22em; animation: rise 900ms 120ms var(--ease) backwards; }
.cover .down { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 1rem; text-decoration: none; border-bottom: 1px solid currentColor; padding: 11px 0 9px; animation: rise 900ms 240ms var(--ease) backwards; }
.cover .down svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform 300ms var(--ease); }
.cover .down:hover svg { transform: rotate(90deg) translateX(4px); }
.cover .slot { position: absolute; z-index: 1; right: var(--gutter); top: 96px; max-width: 18rem; font-size: 0.875rem; line-height: 1.45; color: #c9ccd1; border: 1px dashed #5c6068; padding: 12px 14px; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* plain pages */
.plain { padding: clamp(48px, 8vw, 96px) var(--gutter) 0; }
.plain > * { max-width: var(--col); }
.plain h2 { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--soft); margin-bottom: 14px; }
.plain section + section { margin-top: clamp(48px, 7vw, 80px); }
.list { list-style: none; }
.list li { padding: 4px 0; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 18px; }
.list .row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; min-width: 0; }
.list .thumb { flex: none; width: 128px; background: var(--dark); overflow: hidden; }
.list .thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 500ms var(--ease); }
.list li:hover .thumb img { transform: scale(1.06); }
.lead { margin: clamp(20px, 3vw, 32px) 0 0; }
.lead figcaption { font-size: 0.8125rem; color: var(--soft); margin-top: 6px; }
.lead img { background: var(--dark); display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list a { font-size: 1.3125rem; line-height: 1.3; display: inline-block; padding: 9px 0; }
.list .thumb { padding: 0; margin: 8px 0; }
.list time, .list .tag { font-size: 0.9375rem; color: var(--soft); white-space: nowrap; }
.more { margin-top: 16px; }
.say { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 500; margin-bottom: 12px; text-wrap: balance; }
.steps { padding-left: 1.3em; }
.steps li + li { margin-top: 6px; }
.close { margin-top: 18px; font-weight: 500; }
.empty { color: var(--soft); }

.page-head { padding: clamp(32px, 6vw, 72px) var(--gutter) 0; }
.page-head > * { max-width: var(--col); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.page-head .deck { margin-top: 12px; color: var(--soft); }
.crumbs { font-size: 0.9375rem; color: var(--soft); margin-bottom: 6px; }
.crumbs a { display: inline-block; padding: 12px 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 8px; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs li[aria-current] { display: none; }
.meta { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 14px; font-size: 0.9375rem; color: var(--soft); }
.notice { margin-top: 20px; padding: 12px 14px; border: 1px dashed var(--rule); font-size: 0.9375rem; color: var(--soft); }
.year { font-size: 1rem; font-weight: 500; color: var(--soft); margin: 40px 0 14px; letter-spacing: 0; }

.wrap { padding: 0 var(--gutter); }
.wrap > * { max-width: var(--col); }
.prose { margin-top: clamp(28px, 4vw, 48px); font-size: 1.1875rem; line-height: 1.65; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.625rem; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding-left: 1.1em; border-left: 1px solid var(--ink); font-size: 1.3125rem; line-height: 1.5; }
.prose code { font: 0.86em/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; background: #f1f1ee; padding: 0.1em 0.35em; }
.prose pre { background: var(--dark); color: #f2f2f0; padding: 18px 20px; overflow-x: auto; font-size: 0.875rem; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { max-width: 100%; height: auto; display: block; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2em 0; }
.signoff { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 1rem; color: var(--soft); }
.signoff a { color: var(--ink); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; font-size: 1rem; }
.pager span { display: block; font-size: 0.9375rem; color: var(--soft); }
.pager .next { grid-column: 2; text-align: right; }

.foot { margin-top: clamp(64px, 9vw, 112px); padding: 10px var(--gutter) 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.9375rem; color: var(--soft); }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; }
.foot a { display: inline-block; padding: 12px 0; }
.foot > span { padding: 12px 0; }

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .menu li:last-child { display: none; }
  .list .thumb { width: 96px; }
  .cover .slot { top: 72px; left: var(--gutter); }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .menu, .foot, .cover img, .cover::after, .cover .slot, .cover .down { display: none; } .cover { min-height: 0; background: none; color: #000; } }
