/* Fonts: self-hosted, Latin subset (licences in /fonts) */
@font-face{font-family:"Newsreader";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/newsreader-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/newsreader-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Geist";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/geist-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Geist";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/geist-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Spectral";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/spectral-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Spectral";font-style:italic;font-weight:500;font-display:swap;src:url(/fonts/spectral-latin-500-italic.woff2) format("woff2")}

:root{
  color-scheme:light dark;
  --bg:#F6F2E9;--fg:#1A1814;--mute:#5F5A4E;--line:#D8D1BF;--panel:#FBF8F1;
  --acc:#8A4B14;--acc-fg:#FFFFFF;--oc:rgba(138,75,20,.18);
}
@media (prefers-color-scheme:dark){
  :root{--bg:#15130F;--fg:#EFE9DB;--mute:#A89F8C;--line:#34302A;--panel:#1D1A15;--acc:#E3A566;--acc-fg:#1A1006;--oc:rgba(227,165,102,.2)}
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:"Geist",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:17px;line-height:1.55}
a{color:inherit}
.serif{font-family:"Newsreader",Georgia,serif}

.split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);min-height:100vh;min-height:100svh}

/* Profile */
.prof{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:64px 56px}
.av{width:168px;height:168px;border-radius:50%;border:1px solid var(--line);background:var(--panel);object-fit:cover;display:block}
h1{font-size:44px;line-height:1.05;font-weight:400;letter-spacing:-.015em;margin:32px 0 4px}
.loc{margin:0 0 28px;color:var(--mute)}
.bio{max-width:340px;margin:0;text-wrap:balance}
.bio2{margin-top:16px}
.links{display:flex;gap:12px;margin-top:32px}
.ico{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);color:var(--fg);transition:border-color .15s,color .15s}
.ico:hover{border-color:var(--acc);color:var(--acc)}
.ico:focus-visible,.row:focus-visible{outline:2px solid var(--acc);outline-offset:3px}

/* Projects */
.main{border-left:1px solid var(--line);padding:96px 72px 72px}
h2{font-size:52px;line-height:1;font-weight:400;letter-spacing:-.02em;margin:0 0 56px}
.row{display:grid;grid-template-columns:306px minmax(0,1fr);gap:36px;align-items:center;color:inherit;text-decoration:none;border-radius:16px}
.row+.row{margin-top:56px}
.img{height:198px;width:306px;max-width:100%;border-radius:14px;border:1px solid var(--line);background:var(--panel);overflow:hidden;transition:transform .2s ease}
.row:hover .img{transform:translateY(-3px)}
.row:hover .ttl{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.ttl{font-size:32px;line-height:1.1;font-weight:500;letter-spacing:-.01em;margin:0 0 8px}
.pitch{margin:0 0 6px}
.desc{margin:0 0 12px;color:var(--mute);font-size:15px;line-height:1.5}
.go{color:var(--acc);font-size:15px;font-weight:500}

/* WhatsOnLondon wordmark tile (brand colours are fixed in both themes) */
.img.logo{display:flex;align-items:center;justify-content:center;background:#FBFAF8;border-color:#E6E4DF}
.wm{font-family:"Spectral",Georgia,serif;font-weight:600;font-size:28px;letter-spacing:-.03em;color:#0B0B0B;white-space:nowrap;line-height:1}
.wm b{font-family:Helvetica,Arial,sans-serif;font-weight:700;color:#D9202B}
.wm i{font-weight:500;color:#D9202B}

/* PagerCal before/after calendar */
.mini{padding:14px;font-size:11px;zoom:.9}
.lb{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--mute);margin:0 0 4px}
.mb{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:4px;height:74px;position:relative}
.c{position:relative;border-left:1px solid var(--line)}
.blk{position:absolute;left:2px;right:2px;top:2px;bottom:2px;border:1px solid var(--acc);border-radius:2px;background:repeating-linear-gradient(135deg,var(--oc),var(--oc) 4px,transparent 4px,transparent 8px)}
.ev{position:absolute;left:2px;right:2px;height:18px;border-radius:2px;background:var(--bg);border:1px solid var(--fg);font-size:11px;line-height:16px;padding:0 3px;white-space:nowrap;overflow:hidden;z-index:2}
.ev.ghost{opacity:.5;border-style:dashed}
.band{position:absolute;left:2px;right:2px;top:2px;height:19px;border-radius:2px;background:var(--acc);color:var(--acc-fg);font-size:11px;font-weight:500;line-height:19px;padding:0 6px;z-index:2}
.sp{height:8px}
.t5{top:5px}.t26{top:26px}.t28{top:28px}.t48{top:48px}.t52{top:52px}

/* 404 */
.nf{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 24px}
.nf-code{margin:0 0 8px;color:var(--mute);letter-spacing:.1em;font-size:14px}
.nf h1{margin:0 0 12px}
.nf-msg{margin:0 0 24px;color:var(--mute)}
.nf .go{display:inline-block;padding:6px 0;text-decoration:none}
.nf .go:hover{text-decoration:underline;text-underline-offset:4px}
.nf .go:focus-visible{outline:2px solid var(--acc);outline-offset:3px}

@media (prefers-reduced-motion:reduce){.img,.ico{transition:none}}

@media (max-width:860px){
  .split{grid-template-columns:minmax(0,1fr);min-height:0}
  .prof{padding:48px 24px 40px}
  .av{width:132px;height:132px}
  h1{font-size:40px;margin-top:24px}
  .loc{margin-bottom:20px}
  .links{margin-top:24px}
  .ico{width:48px;height:48px}
  .main{border-left:0;border-top:1px solid var(--line);padding:40px 24px 56px}
  h2{font-size:44px;margin-bottom:32px}
  .row{grid-template-columns:minmax(0,1fr);gap:20px}
  .row+.row{margin-top:44px}
  .img{height:190px;width:100%}
  .ttl{font-size:30px}
  .go{display:inline-block;padding:6px 0}
}
