/* Shared styling for Johan Sandback website. */     :root {       --paper: #f7f6f2;       --surface: #fffefa;       --ink: #252725;       --muted: #676b66;       --accent: #806c53;       --rule: #deded7;       --content: 1060px;       --text: 720px;     }     *, *::before, *::after { box-sizing: border-box; }     html { scroll-behavior: smooth; }     body {       margin: 0;       background: var(--paper);       color: var(--ink);       font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;       -webkit-font-smoothing: antialiased;     }     a { color: inherit; text-decoration-color: #b7b3a8; text-underline-offset: .22em; }     a:hover { color: var(--accent); text-decoration-color: currentColor; }     a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }     img { max-width: 100%; height: auto; display: block; }     h1, h2, h3, p { margin-top: 0; }     h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }     h2 { font-size: clamp(2rem, 3.6vw, 2.65rem); line-height: 1.2; margin-bottom: 1.4rem; }     h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.4; margin: 0 0 .28rem; }     p { margin-bottom: 1.25rem; }     .wrap { width: min(calc(100% - 3rem), var(--content)); margin-inline: auto; }     .skip-link { position: absolute; left: 1rem; top: -5rem; background: white; padding: .55rem 1rem; z-index: 10; }     .skip-link:focus { top: 1rem; }     .site-header { border-bottom: 1px solid var(--rule); }     .site-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 1rem; }     .wordmark { text-decoration: none; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; font-size: .85rem; white-space: nowrap; }     .primary-nav { display: flex; gap: clamp(1.15rem, 3vw, 2.1rem); align-items: center; flex-wrap: wrap; }     .primary-nav a { text-decoration: none; font-size: .83rem; letter-spacing: .04em; color: var(--muted); }     .primary-nav a:hover { color: var(--ink); }     .hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .85fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; padding-block: clamp(4rem, 9vw, 7.5rem); }     .eyebrow { display: block; font-size: .73rem; line-height: 1.5; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.8rem; }     h1 { font-size: clamp(1.9rem, 7vw, 4.2rem); line-height: 1.02; margin-bottom: 1.15rem; color: #333;}     .roles { font-size: .92rem; letter-spacing: .085em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.2rem; }     .lead { font: 1.35rem/1.55 Georgia, "Times New Roman", serif; max-width: 32rem; color: #444740; }     .hero-note { color: var(--muted); font-size: .92rem; margin: 1.75rem 0 0; }     .hero-portrait { margin: 0; }     .hero-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; filter: saturate(.82); background: #ddd; }     .hero-portrait figcaption { color: var(--muted); font-size: .77rem; letter-spacing: .05em; margin-top: .7rem; }     .section { border-top: 1px solid var(--rule); padding-block: clamp(3.2rem, 6vw, 5.25rem); }     .section-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2.2rem, 7vw, 6rem); }     .section-label { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); padding-top: .4rem; }     .prose { max-width: var(--text); }     .prose p:last-child { margin-bottom: 0; }     .projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.2rem; row-gap: 2rem; }     .project { border-top: 1px solid var(--rule); padding-top: 1rem; }     .project h3 a { text-decoration: none; border-bottom: 1px solid #b7b3a8; }     .project p { font-size: .91rem; line-height: 1.65; color: var(--muted); margin-bottom: 0; }     .selected-work { padding-block: 1rem .25rem; }     .recording { background: var(--surface); border: 1px solid var(--rule); padding: 1.5rem 1.75rem; max-width: 650px; }     .recording .eyebrow { margin-bottom: .6rem; }     .recording h3 { font: 1.35rem/1.4 Georgia, "Times New Roman", serif; margin-bottom: .5rem; }     .recording p { font-size: .9rem; color: var(--muted); margin-bottom: .85rem; }     .recording a { font-size: .9rem; font-weight: 600; }
    /* Compact, single-column cards aligned with the Listen card. */
    .small-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: 650px; }
    .small-panel { max-width: none; padding: 1.4rem 1.7rem; }
    .small-panel h3 { font: 1.45rem/1.25 Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.025em; margin: 0 0 1rem; }
    .small-panel .eyebrow { margin-bottom: .55rem; }
    .small-panel > p { font-size: .91rem; line-height: 1.65; color: var(--muted); margin: 0; }
    .activity-list { border-top: 1px solid var(--rule); }
    .activity-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: .75rem; padding: .63rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
    .activity-date { display: block; color: var(--accent); font-size: .73rem; font-weight: 600; line-height: 1.5; letter-spacing: .025em; margin: .1rem 0 0; white-space: nowrap; }
    .activity-detail { min-width: 0; }
    .activity-detail a, .activity-detail strong { font-size: .88rem; font-weight: 600; line-height: 1.45; text-decoration: none; }
    .activity-detail a { border-bottom: 1px solid #b7b3a8; }
    .activity-detail p { font-size: .8rem; color: var(--muted); margin: .1rem 0 0; line-height: 1.45; }
    @media (max-width: 540px) {
      .small-panel { padding: 1.25rem; }
      .activity-item { grid-template-columns: 1fr; gap: .14rem; padding: .7rem 0; }
      .activity-date { margin: 0; font-size: .7rem; }
    }
     .archive-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }     .archive-images img { width: 100%; aspect-ratio: 3/2; object-fit: cover; object-position: center; background: #deded7; }     .contact-line { font-size: 1.13rem; margin-bottom: .5rem; }     .contact-detail { font-size: .92rem; color: var(--muted); }     .site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .78rem; }     .site-footer-inner { min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }     .site-footer a { text-decoration: none; }     @media (max-width: 800px) {       .hero { grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); gap: 2.5rem; }       .section-grid { grid-template-columns: 145px minmax(0, 1fr); gap: 2rem; }     }     @media (max-width: 640px) {       .wrap { width: min(calc(100% - 2.5rem), var(--content)); }       .site-header-inner { min-height: 80px; align-items: flex-start; flex-direction: column; justify-content: center; gap: .4rem; padding-block: 1rem; }       .primary-nav { gap: 1.15rem; }       .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 3.1rem; }       h1 { font-size: clamp(3.5rem, 12vw, 5rem); }       .lead { font-size: 1.21rem; }       .hero-portrait { max-width: 420px; }       .hero-portrait img { aspect-ratio: 5 / 4; }       .section-grid { grid-template-columns: 1fr; gap: 1.2rem; }       .projects { grid-template-columns: 1fr; gap: 1.3rem; }       .archive-images { gap: .5rem; }       .site-footer-inner { min-height: 90px; flex-wrap: wrap; padding-block: 1.2rem; }     }     @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Footer links */
block: -->
<style>
    .site-footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
    .site-footer-links a { color: inherit; text-decoration: none; }
    .site-footer-links a:hover, .site-footer-links a:focus-visible { color: var(--ink); text-decoration: underline; }

/* Subpages retain the homepage's colour, typography and layout system. */
  .subpage-hero {padding-block:clamp(3.5rem,7vw,6rem) clamp(2.6rem,5vw,4rem);}
  .subpage-hero h1 {font-size:clamp(2.7rem,6vw,4.2rem);letter-spacing:-.035em;margin-bottom:1.15rem;line-height:1.12}
  .subpage-hero .eyebrow {margin-bottom:1.35rem}
  .subpage-hero .lead {max-width:43rem;margin:0;font-size:1.24rem}
  .subpage-main {padding-bottom:5rem}
  .secondary-nav {color:var(--muted);font-size:.83rem}
  .secondary-nav a {text-decoration:none}
  .secondary-nav a[aria-current] {color:var(--ink);font-weight:600}
  .intro-meta {font-size:.85rem;color:var(--muted);margin-top:1.3rem;max-width:42rem}
  .subsection {border-top:1px solid var(--rule);padding-block:2.75rem}
  .subsection h2 {font-size:clamp(1.7rem,2.5vw,2.1rem);margin-bottom:1.45rem}
  .section-summary {color:var(--muted);max-width:640px;font-size:.94rem;margin-top:-.45rem}
  .record-list {max-width:720px}
  .record-row {display:grid;grid-template-columns:112px minmax(0,1fr);gap:1.15rem;border-top:1px solid var(--rule);padding:1.1rem 0 1.05rem}
  .record-date {color:var(--accent);font-size:.77rem;letter-spacing:.04em;font-weight:600;line-height:1.6}
  .record-row h3 {font-size:1rem;font-weight:600;margin-bottom:.33rem}
  .record-row h3 a {text-decoration:none;border-bottom:1px solid #b7b3a8}
  .record-row p {font-size:.89rem;line-height:1.63;color:var(--muted);margin:0}
  .source-name {font-weight:600;color:var(--muted)}
  .photos-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.7rem 1.45rem}
  .photo-card {margin:0;min-width:0}
  .photo-card a.photo-link {display:block;outline-offset:4px}
  .photo-card img {width:100%;aspect-ratio:4 / 3;object-fit:cover;background:#e9e8e2;filter:saturate(.89)}
  .photo-card figcaption {padding-top:.8rem;font-size:.86rem;line-height:1.55;color:var(--muted)}
  .photo-card figcaption strong {color:var(--ink);font-weight:600}
  .photo-card figcaption .caption-credit {display:block;font-size:.78rem;margin-top:.18rem}
  .photo-card.featured {grid-column:span 2;max-width:100%}
  .photo-card.featured img {aspect-ratio:16 / 9;object-position:center 38%}
  .archive-note {max-width:690px;font-size:.88rem;line-height:1.7;color:var(--muted);margin-top:1.5rem}
  .archive-note a {text-decoration-color:var(--rule)}
  .end-links {margin:1.6rem 0 0;display:flex;gap:1.4rem;flex-wrap:wrap;font-size:.87rem}
  .end-links a {text-decoration:none;border-bottom:1px solid #b7b3a8}
  @media (max-width:640px){
   .photos-grid{grid-template-columns:1fr;gap:1.7rem}
   .photo-card.featured{grid-column:span 1}
   .photo-card.featured img{aspect-ratio:4/3}
   .record-row{grid-template-columns:1fr;gap:.17rem;padding:.95rem 0}
   .subpage-hero{padding-block:3rem 2.5rem}
   .subsection{padding-block:2.35rem}
  }

/* Gallery follows the biography, within the existing About section. */
.prose > p:last-of-type { margin-bottom: 0; }
