/* Complete-site layouts. Shared type, quotation and colour rules live in styles.css. */
.nav-current { --dot-size: 5px; margin-left: 1px; vertical-align: -.016em; }
.dropdown a[aria-current] { color: var(--ink); font-weight: 600; }
.section-hero h1 { font-size: clamp(46px, 7.4vw, 102px); line-height: 1.04; letter-spacing: -.055em; white-space: normal; max-width: 1100px; margin: 4px 0 12px -.045em; }
.section-hero .article-heading h1 { font-size: clamp(43px, 6.85vw, 102px); }
.section-hero .hero-meta { margin-bottom: 29px; }
.content-prose { min-width: 0; max-width: 760px; }
.content-prose p:where(:not(.quotation)), .content-prose li { font-size: 18px; line-height: 1.8; margin: 0 0 24px; overflow-wrap: break-word; }
.content-prose > p:first-of-type { font-size: 21px; line-height: 1.65; letter-spacing: -.2px; }
.content-prose h2, .publication-content h2, .photography-content h2 { font-size: clamp(28px, 3vw, 39px); line-height: 1.2; letter-spacing: -.9px; margin: 43px 0 24px; scroll-margin-top: 30px; }
.content-prose h2:first-child { margin-top: 0; }
.content-prose h3 { font-size: 25px; line-height: 1.3; letter-spacing: -.6px; font-weight: 400; margin: 34px 0 19px; scroll-margin-top: 28px; }
.content-prose h4, .content-prose h5, .content-prose h6 { font-size: 20px; line-height: 1.4; font-weight: 500; margin: 27px 0 15px; }
.content-prose a, .publication-content a, .photo-figure figcaption a, .standalone-content > p a:where(:not(.button-link)) { color: var(--link); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; }
.content-prose a:hover, .publication-content a:hover, .photo-figure figcaption a:hover { text-decoration-color: var(--link); }
.content-prose strong, .publication-content strong { color: var(--ink); font-weight: 600; }
.content-prose ul, .content-prose ol { padding-left: 24px; margin: 0 0 26px; }
.content-prose li { padding-left: 4px; margin-bottom: 11px; }
.content-prose img, .publication-content img { display: block; max-width: 100%; height: auto; margin: 28px 0; }
.content-prose figure { margin: 31px 0; }
.content-prose figure img { margin: 0; }
.content-prose figcaption { font: 11px/1.8 var(--accent-font); color: var(--muted); margin-top: 12px; }
.content-prose hr { border: 0; border-top: 1px solid var(--rule); margin: 37px 0; }
.content-prose br + br { line-height: .7; }
.content-prose pre { max-width: 100%; overflow: auto; padding: 20px 22px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--ink) 3%, var(--paper)); margin: 27px 0; tab-size: 2; }
.content-prose code { font: 12px/1.8 var(--accent-font); overflow-wrap: anywhere; }
.content-prose pre code { overflow-wrap: normal; }
.content-prose :where(p, li) > code { background: color-mix(in srgb, var(--ink) 5%, var(--paper)); padding: 1px 4px; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .nf { color: var(--blue); }
.highlight .s, .highlight .s1, .highlight .s2 { color: var(--red); }
.highlight .c, .highlight .c1, .highlight .cm { color: var(--muted); }
.content-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 28px 0; font-size: 13px; }
.content-prose th, .content-prose td { border-bottom: 1px solid var(--rule); padding: 12px 16px 12px 0; text-align: start; vertical-align: top; }
.content-prose th { font: 12px/1.6 var(--accent-font); }
.content-prose audio, .content-prose video { display: block; width: 100%; max-width: 100%; margin: 25px 0; }
.content-prose video { height: auto; background: #20252a; }
.content-embed { display: block; width: 100%; height: 850px; border: 1px solid var(--rule); margin: 22px 0 32px; background: var(--paper); }
.app-layout { grid-template-columns: minmax(0, 1fr); }
.app-layout .page-index { position: static; max-height: none; }
.content-has-embed { max-width: none; }
.content-has-embed > p, .content-has-embed > ul, .content-has-embed > ol { max-width: 760px; }
.flourish-embed { width: 100%; min-width: 0; margin: 25px 0 8px; }
.content-prose .embed-link { font: 11px/1.8 var(--accent-font); margin: 12px 0 27px; }
.content-prose .summary-label { font: 11px/1.7 var(--accent-font); text-transform: uppercase; color: var(--muted); letter-spacing: .8px; }
.content-prose .article-tags { font: 11px/1.9 var(--accent-font); color: var(--muted); }
.post-neighbours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--rule); margin-top: 30px; padding-top: 27px; }
.post-neighbours a { color: var(--ink); text-decoration: none; font-size: 21px; line-height: 1.4; letter-spacing: -.4px; }
.post-neighbours a:hover { color: var(--link); }
.post-neighbours span { display: block; font: 10px/1.7 var(--accent-font); color: var(--muted); margin-bottom: 10px; }
.page-index { max-height: calc(100vh - var(--header-height) - 50px); max-height: calc(100dvh - var(--header-height) - 50px); overflow: auto; scrollbar-width: thin; padding-inline-start: 6px; margin-inline-start: -6px; }
.page-index a[aria-current="location"] { text-decoration: underline; text-decoration-color: var(--red); }
.anchor-target { scroll-margin-top: 24px; }
.publication-content { max-width: 830px; min-width: 0; }
.publication-content > p { font-size: 16px; line-height: 1.85; color: var(--muted); margin: 0 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--rule); overflow-wrap: break-word; }
.publication-content > p:first-child { border: 0; padding: 0; margin-bottom: 37px; }
.publication-content img { margin-top: 0; }
.photography-content { min-width: 0; }
.photography-content h2 { margin-top: 44px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 32px 27px; }
.photo-figure { min-width: 0; margin: 0; }
.photo-open { display: block; cursor: zoom-in; }
.photo-figure img { display: block; width: 100%; height: auto; }
.photo-figure figcaption { font: 11px/1.85 var(--accent-font); color: var(--muted); margin-top: 14px; }
.photo-feature { margin-bottom: 43px; }
.standalone-content { padding: 37px 0 60px; min-width: 0; }
.standalone-content > p { max-width: 760px; font-size: 18px; line-height: 1.8; margin: 0 0 24px; }
.standalone-app { display: block; width: 100%; height: 82vh; min-height: 650px; border: 1px solid var(--rule); }
.showcase-content { max-width: 900px; }
.showcase-content .card { border-top: 1px solid var(--rule); padding: 30px 0; }
.showcase-content .card h2 { font-size: 29px; }
.showcase-content .links { display: flex; gap: 16px; flex-wrap: wrap; }
.showcase-content .links a { display: inline-flex; align-items: center; padding: 10px 15px; border: 1px solid var(--rule); font: 12px/1.7 var(--accent-font); color: var(--link); text-decoration: none; }
.showcase-content .note { font-size: 13px; color: var(--muted); }
:root { --viewer-backdrop: rgba(255,255,255,.94); }
:root[data-theme="dark"] { --viewer-backdrop: rgba(45,50,56,.95); }
.image-viewer { width: min(1320px, calc(100vw - 44px)); max-width: none; max-height: calc(100vh - 44px); max-height: calc(100dvh - 44px); overflow: auto; border: 0; padding: 21px 25px; background: var(--paper); color: var(--ink); }
.image-viewer::backdrop { background: var(--viewer-backdrop); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer-toolbar, .viewer-navigation { display: flex; align-items: center; gap: 22px; font: 11px/1.6 var(--accent-font); }
.viewer-toolbar { margin-bottom: 17px; }
.viewer-count { margin-right: auto; color: var(--muted); }
.viewer-close, .viewer-previous, .viewer-next { min-height: 44px; padding: 5px 0; border: 0; background: none; font: inherit; cursor: pointer; }
.image-viewer figure { margin: 0; }
.viewer-image { display: block; width: auto; max-width: 100%; max-height: 70vh; max-height: 70dvh; object-fit: contain; margin: auto; }
.viewer-caption { font: 11px/1.8 var(--accent-font); color: var(--muted); max-width: 850px; margin: 17px auto 0; }
.viewer-navigation { justify-content: space-between; margin-top: 12px; }
.image-viewer:not([open]) { display: none; }
@media (max-width: 1079px) { .section-hero h1 { font-size: clamp(45px, 8.5vw, 87px); } }
@media (max-width: 850px) { .page-index { max-height: none; overflow: visible; } .photo-grid { gap: 27px 21px; } }
@media (max-width: 640px) {
 .section-hero h1, .section-hero .article-heading h1 { font-size: clamp(39px, 11vw, 64px); letter-spacing: -.05em; margin-top: 5px; margin-bottom: 12px; }
 .section-hero .hero-meta { margin-bottom: 24px; }
 .content-prose p:where(:not(.quotation)), .content-prose li { font-size: 16px; line-height: 1.8; margin-bottom: 22px; }
 .content-prose > p:first-of-type { font-size: 18px; line-height: 1.65; }
 .content-prose h2, .publication-content h2, .photography-content h2 { font-size: 28px; margin-top: 34px; }
 .content-prose h3 { font-size: 23px; }
 .content-prose pre { padding: 16px; }
 .content-prose code { font-size: 11px; }
 .content-prose th, .content-prose td { padding-right: 12px; }
 .publication-content > p { font-size: 15px; }
 .photo-grid { grid-template-columns: 1fr; gap: 29px; }
 .photo-figure figcaption { font-size: 10px; }
 .photo-feature { margin-bottom: 31px; }
 .post-neighbours { grid-template-columns: 1fr; gap: 25px; }
 .post-neighbours a { font-size: 20px; }
 .content-embed { height: 750px; }
 .standalone-app { min-height: 540px; }
 .image-viewer { width: calc(100vw - 22px); max-height: calc(100dvh - 22px); padding: 12px 14px; }
 .viewer-toolbar { gap: 14px; font-size: 10px; }
 .viewer-caption { font-size: 10px; }
 .viewer-image { max-height: 65dvh; }
}
@media (prefers-reduced-motion: reduce) { .content-prose h2, .content-prose h3 { scroll-margin-top: 10px; } }
