/* nilsbulling.com · shared styles (Forum direction) */

/* Self-hosted fonts (SIL Open Font License 1.1, see fonts/LICENSE.md) */
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/spectral-latin-400-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/spectral-latin-ext-400-normal.woff2) format('woff2'); 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/spectral-latin-500-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/spectral-latin-ext-500-normal.woff2) format('woff2'); 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/spectral-latin-600-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/spectral-latin-ext-600-normal.woff2) format('woff2'); 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-latin-ext-400-normal.woff2) format('woff2'); 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-latin-ext-500-normal.woff2) format('woff2'); 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/hanken-grotesk-latin-ext-600-normal.woff2) format('woff2'); 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }


:root {
  --blue: #0B2A5B;
  --on-blue: #F3F6FB;
  --on-blue-2: #BFD0EA;
  --line-blue: rgba(191, 208, 234, 0.32);
  --paper: #FFFFFF;
  --tint: #EEF2F8;
  --ink: #14202E;
  --ink-2: #556274;
  --rule: #D7DEE8;
  --rule-soft: #E8ECF2;
  --sky: #2F7DE1;
  --serif: "Spectral", "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", "Arial", sans-serif;
  --gutter: clamp(1rem, 4.4vw, 5rem);
  --max: 88rem;
  --mast: 5.25rem;
  --gap: clamp(1rem, 2.2vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink-2) var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--sky);
}
::selection { background: var(--on-blue-2); color: var(--blue); }

a { color: inherit; text-underline-offset: 0.24em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 1px; }
.field-blue a:focus-visible { outline-color: var(--on-blue-2); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 10; background: var(--on-blue); color: var(--blue); padding: 0.6rem 1rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 0.75rem; }

/* ---------- Blue fields ---------- */
.field-blue { background: var(--blue); color: var(--on-blue); }
.field-blue ::selection { background: var(--on-blue); color: var(--blue); }

.masthead { border-bottom: 1px solid var(--line-blue); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--mast); }
.site-name { white-space: nowrap; font-family: var(--serif); font-weight: 600; font-size: 1.375rem; letter-spacing: 0.005em; text-decoration: none; color: var(--on-blue); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.site-nav a {
  font-size: 0.9875rem; font-weight: 500; letter-spacing: 0.01em; color: var(--on-blue);
  padding-block: 0.4rem;
  text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.45em;
  transition: text-decoration-color 160ms ease-out;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { text-decoration-color: var(--sky); }

/* ---------- Home: thesis and agenda ---------- */
.hero { min-height: calc(100vh - var(--mast) - 1px); min-height: calc(100svh - var(--mast) - 1px); display: flex; flex-direction: column; }
.thesis { flex: 1; display: flex; align-items: flex-end; padding-block: clamp(2.75rem, 6.5vh, 5rem) clamp(2.5rem, 5.5vh, 4.5rem); }
.thesis-inner { width: 70%; }
.thesis h1 { font-size: clamp(2.5rem, 1.15rem + 4.15vw, 5rem); line-height: 1.06; letter-spacing: -0.018em; }
.thesis .lede { margin-top: clamp(1.75rem, 3.6vh, 2.5rem); max-width: 47rem; font-size: clamp(1.15rem, 1rem + 0.45vw, 1.4rem); line-height: 1.58; color: var(--on-blue-2); }
.thesis .proof { margin-top: 0.9rem; max-width: 47rem; font-size: clamp(1.15rem, 1rem + 0.45vw, 1.4rem); line-height: 1.58; color: var(--on-blue); }

.agenda-band { border-top: 1px solid var(--line-blue); }
.agenda-band .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; }
.agenda-band h2 { grid-column: 1 / span 3; font-family: var(--serif); font-size: clamp(1.375rem, 1.05rem + 0.7vw, 1.75rem); font-weight: 400; line-height: 1.22; letter-spacing: -0.008em; color: var(--on-blue); padding: 1.9rem 0 0; }
.agenda-band ul { grid-column: 4 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
.agenda-band li { border-left: 1px solid var(--line-blue); display: flex; }
.agenda-band li a {
  display: block; width: 100%; padding: 1.9rem 1.5rem 2.25rem;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.375rem, 1.05rem + 0.7vw, 1.75rem); line-height: 1.22; letter-spacing: -0.008em;
  color: var(--on-blue); text-decoration: none;
}
.agenda-band .t-field, .agenda-band .t-q, .fields .t-field, .fields .t-q { display: block; }
.agenda-band .t-q { font-weight: 400; color: var(--on-blue-2); }
.agenda-band .t-field { text-decoration-line: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 0.3em; transition: text-decoration-color 180ms ease-out; }
.agenda-band a:hover .t-field, .agenda-band a:focus-visible .t-field { text-decoration-color: var(--on-blue); }
.fields .t-q { font-weight: 400; color: var(--ink-2); }
.agenda-band li a:focus-visible { outline-offset: -6px; }

/* ---------- Page title field (inner pages) ---------- */
.page-title { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.page-title h1 { font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.5rem); line-height: 1.08; letter-spacing: -0.016em; max-width: 20ch; }
.page-title .intro { margin-top: 1.5rem; max-width: 40rem; font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.62; color: var(--on-blue-2); text-wrap: pretty; }
.page-title .meta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; font-size: 0.9875rem; color: var(--on-blue-2); }
.page-title .meta time { font-variant-numeric: tabular-nums lining-nums; }
.page-title .meta a { color: var(--on-blue); text-decoration-color: var(--sky); text-decoration-thickness: 2px; }
.page-title .meta a:hover { text-decoration-color: var(--on-blue); }

/* ---------- Lower page ---------- */
section { scroll-margin-top: 1.5rem; }
.block { padding-block: clamp(4rem, 8vw, 7.5rem); }
.block + .block { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.row > .head { grid-column: 1 / span 4; }
.row > .body { grid-column: 5 / span 8; }
.marker { display: block; width: 2.5rem; height: 2px; background: var(--sky); margin-bottom: 1.4rem; }
h2.section { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.012em; }

.continuation .body { grid-column: 1 / span 9; }
@media (max-width: 860px) { .continuation .body { grid-column: 1 / -1; } }
.continuation p { font-family: var(--serif); font-size: clamp(1.3rem, 1rem + 0.9vw, 1.65rem); line-height: 1.42; letter-spacing: -0.006em; text-wrap: pretty; }
.continuation p + p { margin-top: 0.8em; }

.prose p { max-width: 38rem; font-size: 1.1875rem; line-height: 1.7; }
.prose p + p { margin-top: 1.1rem; }

.fields { margin: clamp(2.5rem, 4vw, 3.5rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.fields li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: 2rem 2.15rem; border-bottom: 1px solid var(--rule); scroll-margin-top: 1.5rem; }
.fields h3 { grid-column: 1 / span 5; font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.75rem); line-height: 1.2; letter-spacing: -0.008em; position: relative; padding-top: 1.05rem; }
.fields h3::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--sky); transform: scaleX(0.07); transform-origin: left; transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1); }
.fields li:target h3::before { transform: scaleX(1); }
.fields p { grid-column: 6 / span 7; padding-top: 1.05rem; font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); max-width: 40rem; }

.invitation { margin-top: clamp(2.5rem, 4.5vw, 3.75rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.invitation p { grid-column: 6 / span 7; font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem); line-height: 1.4; }
.invitation a { text-decoration-color: var(--sky); text-decoration-thickness: 2px; }
.invitation a:hover { text-decoration-color: var(--ink); }

.pubs-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.all-link { font-weight: 500; font-size: 1rem; text-decoration-color: var(--sky); text-decoration-thickness: 2px; }
.all-link:hover { text-decoration-color: var(--ink); }
.pubs { margin: clamp(2rem, 3.5vw, 3rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.pubs li { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 15rem; column-gap: clamp(1rem, 2.5vw, 3rem); padding-block: 1.75rem 1.9rem; border-bottom: 1px solid var(--rule); }
.pubs time, .pubs .when, .pubs .pub-field { font-size: 0.9375rem; color: var(--ink-2); padding-top: 0.4rem; }
.pubs time { font-variant-numeric: tabular-nums lining-nums; }
.pubs h3 { font-size: clamp(1.3rem, 1.1rem + 0.55vw, 1.625rem); line-height: 1.3; letter-spacing: -0.006em; }
.pubs h3 a { text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; transition: text-decoration-color 160ms ease-out; }
.pubs h3 a:hover, .pubs h3 a:focus-visible { text-decoration-color: var(--sky); }
.pubs .soon h3 { font-weight: 400; color: var(--ink-2); }
.soon-lead { margin-top: clamp(1.5rem, 2.5vw, 2rem); max-width: 44rem; font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); line-height: 1.45; }
.pubs .first { margin-top: 0.55rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; max-width: 44rem; }

/* ---------- Note page ---------- */
.note-body { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.note-text { grid-column: 3 / span 8; max-width: 38rem; }
.note-text p { font-family: var(--serif); font-variant-numeric: oldstyle-nums proportional-nums; font-size: clamp(1.1875rem, 1.1rem + 0.25vw, 1.3125rem); line-height: 1.72; }
.note-text p + p { margin-top: 1.25rem; }
.note-head { max-width: 50rem; }
.note-head h1 { max-width: none; }
.decision { background: var(--tint); padding-block: clamp(3rem, 6vw, 4.75rem); }
.decision .note-text { position: relative; }
.decision h2 { font-size: clamp(1.4rem, 1.15rem + 0.6vw, 1.75rem); letter-spacing: -0.008em; margin-bottom: 1.25rem; }
.note-foot { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }
.note-foot .note-text > * + * { margin-top: 1.5rem; }
.source { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }
.source a { text-decoration-color: var(--rule); }
.source a:hover { text-decoration-color: var(--sky); }
.discuss a { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); text-decoration-color: var(--sky); text-decoration-thickness: 2px; }
.discuss a:hover { text-decoration-color: var(--ink); }
.pager { display: grid; gap: 0.75rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.pager a { font-weight: 500; text-decoration-color: var(--sky); text-decoration-thickness: 2px; }
.pager a:hover { text-decoration-color: var(--ink); }
.pager span { display: block; font-size: 0.875rem; font-weight: 400; color: var(--ink-2); }

/* ---------- Journey ---------- */
.clusters { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.clusters > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: 2.25rem 2.5rem; border-bottom: 1px solid var(--rule); }
.clusters h2 { grid-column: 1 / span 4; font-size: clamp(1.4rem, 1.15rem + 0.65vw, 1.85rem); line-height: 1.2; letter-spacing: -0.008em; padding-top: 1.05rem; }
.terms { grid-column: 5 / span 8; margin: 0; padding: 1.05rem 0 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.terms li { padding-block: 0.7rem; border-top: 1px solid var(--rule); font-size: 1.125rem; line-height: 1.45; }
.terms li:nth-child(-n+2) { border-top: 0; }
.closing { margin-top: clamp(2.5rem, 4.5vw, 3.75rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.closing > div { grid-column: 5 / span 8; display: grid; gap: 1rem; }
.closing p { font-size: 1.125rem; line-height: 1.6; max-width: 40rem; text-wrap: pretty; }
.closing a { font-weight: 500; text-decoration-color: var(--sky); text-decoration-thickness: 2px; }
.closing a:hover { text-decoration-color: var(--ink); }

/* ---------- Contact and footer ---------- */
.contact { padding-block: clamp(4.5rem, 8.5vw, 8rem); }
.contact h2 { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); letter-spacing: -0.015em; }
.contact .lead { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.85rem); line-height: 1.4; max-width: 34ch; }
.contact .more { margin-top: 1.75rem; display: grid; gap: 0.9rem; max-width: 40rem; color: var(--on-blue-2); font-size: 1.125rem; line-height: 1.65; }
.contact a { text-decoration-color: var(--sky); text-decoration-thickness: 2px; color: var(--on-blue); }
.contact a:hover { text-decoration-color: var(--on-blue); }

.site-foot { border-top: 1px solid var(--line-blue); }
.site-foot .wrap { padding-block: 1.75rem 2.25rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 2rem; font-size: 0.9375rem; color: var(--on-blue-2); }
.site-foot li:first-child { color: var(--on-blue); font-weight: 500; }
.site-foot a { text-decoration: none; color: var(--on-blue-2); }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--on-blue); text-decoration: underline; text-decoration-color: var(--sky); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .thesis-inner { width: 82%; }
  .agenda-band h2 { grid-column: 1 / -1; padding: 1.75rem 0 0.25rem; }
  .agenda-band ul { grid-column: 1 / -1; }
  .agenda-band li:first-of-type { border-left: 0; }
  .agenda-band li:first-of-type a { padding-left: 0; }
  .agenda-band li a { padding-block: 1.1rem 1.75rem; }
  .note-text { grid-column: 2 / span 10; }
}
@media (max-width: 860px) {
  .thesis-inner { width: 100%; }
  .row > .head, .row > .body, .row > .note-text { grid-column: 1 / -1; }
  .row > .body { margin-top: 1.5rem; }
  .fields h3, .fields p, .invitation p { grid-column: 1 / -1; }
  .fields p { padding-top: 0.75rem; }
  .pubs li { grid-template-columns: minmax(0, 1fr); row-gap: 0.4rem; }
  .pubs time, .pubs .when, .pubs .pub-field { padding-top: 0; }
  .pubs time, .pubs .when { order: -1; }
  .agenda-band ul { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); margin-bottom: 1.25rem; }
  .agenda-band li { border-left: 0; border-top: 1px solid var(--line-blue); }
  .agenda-band li a { padding: 1.1rem 0 1.3rem; font-size: 1.375rem; }
  .agenda-band h2 { padding: 1.5rem 0 0.9rem; }
  .clusters h2, .terms, .closing > div { grid-column: 1 / -1; }
  .terms { grid-template-columns: minmax(0, 1fr); padding-top: 0.75rem; }
  .terms li:nth-child(2) { border-top: 1px solid var(--rule); }
  .terms li { padding-block: 0.45rem; font-size: 1rem; color: var(--ink-2); border-top-color: var(--rule-soft); }
}
@media (max-width: 560px) {
  :root { --mast: 4.25rem; }
  .site-name { font-size: 1.2rem; }
  .site-nav ul { gap: 1rem; }
  .site-nav a { font-size: 0.9375rem; }
  .thesis h1 { font-size: 2.5rem; line-height: 1.08; }
}
@media (max-width: 380px) {
  .masthead .wrap { flex-wrap: wrap; justify-content: flex-start; row-gap: 0.35rem; padding-block: 0.75rem; }
  .site-name { font-size: 1rem; }
  .site-nav ul { gap: 0.6rem; }
  .site-nav a { font-size: 0.875rem; }
  .thesis h1 { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Print (note pages go into board packs) ---------- */
@media print {
  @page { margin: 18mm 20mm; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .masthead, .site-foot, .contact, .skip, .pager, .discuss, .agenda-band { display: none !important; }
  .field-blue { background: #fff !important; color: #000 !important; }
  .page-title { padding: 0 0 8mm; border-bottom: 0.5pt solid #000; }
  .page-title .meta, .page-title .meta a { color: #333 !important; }
  .note-body, .decision, .note-foot { padding-block: 6mm 0; background: #fff !important; }
  .row { display: block; }
  .note-text { max-width: none; }
  .note-text p { font-size: 11.5pt; line-height: 1.55; }
  .decision h2 { margin-top: 4mm; }
  .source a::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  a { color: #000; text-decoration: none; }
}

/* ---------- Empty and draft states ---------- */
.empty { margin-top: clamp(2rem, 3.5vw, 3rem); padding-top: 1.75rem; border-top: 1px solid var(--ink); color: var(--ink-2); font-size: 1.125rem; }
.draft-tag { display: inline-block; margin-left: 0.75rem; padding: 0.1rem 0.5rem; border: 1px solid currentColor; font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; vertical-align: middle; color: var(--sky); }
.field-blue .draft-tag { color: var(--on-blue); }
