/* Don't Forget the Birds. One reading column; photographs break out wider, like plates in a field journal. */
:root{
  color-scheme:light;
  --bg:#FFFFFF; --surface:#F1F3F2; --fg:#151918; --muted:#6B7471; --rule:#E2E6E4; --accent:#2B4C9B;
  --serif:"Fraunces", "Iowan Old Style", Georgia, serif;
  --mono:"IBM Plex Mono", ui-monospace, Menlo, monospace;
  --measure:38rem; --wide:66rem;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--fg);font-family:var(--serif);font-size:1.1875rem;line-height:1.7;font-optical-sizing:auto;-webkit-font-smoothing:antialiased;margin:0}
a{color:var(--accent);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
img{max-width:100%;height:auto}
.wrap{max-width:calc(var(--wide) + 8rem);margin-inline:auto;padding-inline:clamp(16px,6vw,72px);padding-block:0 6rem}
.measure{max-width:var(--measure);margin-inline:auto}
.mono{font-family:var(--mono);font-size:.78rem;letter-spacing:.02em;font-variant-numeric:tabular-nums}

header.mast{display:grid;gap:2rem;padding-block:clamp(2.5rem,7vw,5rem) 1.6rem;border-bottom:1px solid var(--rule)}
.mark{font-family:var(--serif);font-size:clamp(2.6rem,10vw,8.5rem);font-weight:300;letter-spacing:-.035em;line-height:.92;margin:0;text-wrap:balance;color:var(--fg);text-decoration:none;overflow-wrap:break-word}
nav.tabs{display:flex;flex-wrap:wrap;gap:.5rem 2.25rem}
nav.tabs a{font-family:var(--mono);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);text-decoration:none;padding-block:.25rem;border-bottom:1px solid transparent}
nav.tabs a:hover{color:var(--fg);border-bottom-color:var(--fg)}

.post-head{padding-block:clamp(3rem,8vw,6rem) 2.5rem}
.kicker{display:flex;flex-wrap:wrap;gap:.35rem 1.4rem;color:var(--muted);margin-bottom:1.25rem}
h1{font-family:var(--serif);font-size:clamp(2.1rem,5vw,3.5rem);font-weight:350;line-height:1.08;letter-spacing:-.02em;margin:0;text-wrap:balance;overflow-wrap:break-word}
.standfirst{font-size:1.3rem;line-height:1.5;color:var(--muted);margin:0;font-weight:350;text-wrap:pretty}

.body > p,.body > h2,.body > h3,.body > ul,.body > ol,.body > blockquote,.body > hr{max-width:var(--measure);margin-inline:auto}
.body p{margin-top:0;margin-bottom:1.5em;overflow-wrap:break-word}
.body h2{font-size:1.6rem;font-weight:450;line-height:1.2;margin-top:2.6em;margin-bottom:.8em;text-wrap:balance}
.body h3{font-family:var(--mono);font-size:.78rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-top:3rem;margin-bottom:.8rem;padding-top:1rem;border-top:1px solid var(--rule)}
.body blockquote{border-left:2px solid var(--accent);padding-left:1.2rem;font-style:italic}
.body hr{border:0;border-top:1px solid var(--rule);margin-block:3rem}
.body ul,.body ol{padding-left:1.2rem;margin-bottom:1.5em}

figure{margin:clamp(2.5rem,7vw,5rem) auto}
figure.wide{max-width:var(--wide)}
figure.tall{max-width:44rem}
.plate{display:block;width:100%;border:0;padding:0;background:var(--surface);cursor:zoom-in;position:relative}
.plate img{display:block;width:100%;height:auto}
figcaption{max-width:var(--measure);margin:.8rem 0 0;display:grid;gap:.15rem}
.cap{font-size:1rem;line-height:1.4}
.exif{color:var(--muted);display:flex;flex-wrap:wrap;gap:.1rem .9rem}
.video{position:relative;display:block;text-decoration:none;color:inherit;background:#0b0e0d;aspect-ratio:16/9;overflow:hidden}
.video img{display:block;width:100%;height:100%;object-fit:cover;opacity:.9}
.video .play{position:absolute;inset:0;display:grid;place-items:center}
.video .play span{display:grid;place-items:center;width:4.5rem;height:4.5rem;border-radius:50%;background:rgba(10,14,13,.55);backdrop-filter:blur(4px)}
.video .play svg{width:1.4rem;height:1.4rem;margin-left:.25rem;fill:#fff}
.video:hover .play span{background:rgba(10,14,13,.8)}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
figure.embed iframe{display:block;width:100%;aspect-ratio:4/3;border:1px solid var(--rule)}

.pager{display:flex;justify-content:space-between;gap:1.5rem;border-top:1px solid var(--rule);margin-top:5rem;padding-top:1.5rem}
.pager a{color:var(--muted);text-decoration:none;max-width:48%}
.pager a:last-child{text-align:right}
.pager a:hover{color:var(--fg)}

.page-head{padding-block:clamp(2.5rem,7vw,5rem) 3rem}
.lead-post{display:grid;gap:1.1rem;padding-bottom:4rem;border-bottom:1px solid var(--rule)}
.lead-post h2{font-size:clamp(1.8rem,4vw,2.6rem);font-weight:350;line-height:1.08;margin:0;letter-spacing:-.015em;text-wrap:balance}
.lead-post .thumb img{max-height:75vh;object-fit:cover}
.years{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;padding-top:2rem}
.years a{color:var(--muted);text-decoration:none}
.years a:hover{color:var(--fg)}
.year{font-weight:500;color:var(--fg);margin:5rem 0 0;padding-bottom:.6rem;border-bottom:1px solid var(--rule);display:flex;gap:1rem;font-size:.9rem}
.year span{color:var(--muted);font-weight:400}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr));gap:3.5rem 2.5rem;padding-top:2.5rem}
.card{display:grid;gap:.55rem;align-content:start;text-decoration:none;color:inherit}
.card .kicker{margin:0}
.card .thumb{aspect-ratio:3/2;overflow:hidden;cursor:pointer}
.card .thumb img{width:100%;height:100%;object-fit:cover}
.lead-post .thumb{aspect-ratio:auto}
.thumb.blank{background:var(--surface)}
.card h3{font-size:1.3rem;font-weight:450;line-height:1.2;margin:0;text-wrap:balance}
.card:hover h3,.card:hover h2{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
.card p{margin:0;font-size:1rem;color:var(--muted);line-height:1.5}

footer{border-top:1px solid var(--rule);margin-top:7rem;padding-top:2rem;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 2rem;color:var(--muted)}

.lightbox{position:fixed;inset:0;background:rgba(8,11,10,.95);display:grid;grid-template-rows:1fr auto;gap:1rem;padding:calc(env(safe-area-inset-top,0px) + 2.75rem) 1rem calc(env(safe-area-inset-bottom,0px) + 1rem);z-index:10;cursor:zoom-out}
.lightbox[hidden]{display:none}
.lightbox img{max-width:100%;max-height:100%;margin:auto;display:block;align-self:center;object-fit:contain;min-height:0}
.lightbox .lb-cap{color:#D8DFDB;text-align:center;font-size:1rem}
.lb-close{all:unset;position:absolute;top:calc(env(safe-area-inset-top,0px) + .5rem);right:1rem;color:#D8DFDB;font-family:var(--mono);font-size:.78rem;letter-spacing:.08em;cursor:pointer;padding:.5rem}

/* current tab */
nav.tabs a[aria-current="page"]{color:var(--fg);border-bottom-color:var(--fg)}

/* Posts: a quiet photo wall, pictures first */
.wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr));gap:2.5rem 1.5rem;padding-top:2rem}
.tile{display:grid;gap:.5rem;align-content:start;text-decoration:none;color:inherit}
.tile .thumb{aspect-ratio:1/1;overflow:hidden;cursor:pointer}
.tile .thumb img{width:100%;height:100%;object-fit:cover;transition:opacity .2s}
.tile:hover .thumb img{opacity:.88}
.tile-cap{display:grid;gap:.1rem}
.tile-cap .t{font-size:1rem;line-height:1.3;text-wrap:balance}
.tile-cap time{color:var(--muted);font-size:.72rem}
.tile:hover .t{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
.note-tile{display:flex;align-items:flex-end;padding:1.1rem;font-size:1rem;line-height:1.45;color:var(--fg)}
.note-tile span{display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden}

/* Journal: text first, picture at the side */
.entries{display:grid;border-top:1px solid var(--rule)}
.entry{display:grid;grid-template-columns:8rem minmax(0,1fr) 11rem;gap:1rem 2rem;align-items:start;padding-block:2.25rem;border-bottom:1px solid var(--rule);text-decoration:none;color:inherit}
.entry time{color:var(--muted);padding-top:.55rem}
.entry h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:350;line-height:1.12;letter-spacing:-.01em;margin:0 0 .6rem;text-wrap:balance}
.entry p{margin:0;color:var(--muted);font-size:1.05rem;line-height:1.55;max-width:var(--measure)}
.entry .thumb{aspect-ratio:4/3;overflow:hidden}
.entry .thumb img{width:100%;height:100%;object-fit:cover}
.entry:hover h2{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
@media (max-width:720px){
  .entry{grid-template-columns:minmax(0,1fr)}
  .entry .thumb{order:-1}
  .entry time{padding-top:0}
}

/* front-page introduction: small and quiet */
.intro{padding-block:2rem 0}
.intro p{margin:0;max-width:34rem;font-size:.95rem;line-height:1.55;color:var(--muted)}

/* Posts feed: one post after another, photo first, like the old Blogger page */
.feed{display:grid}
.feed-post{padding-block:clamp(3rem,7vw,5rem);border-bottom:1px solid var(--rule)}
.feed-post:last-child{border-bottom:0}
.feed-head{max-width:var(--wide);margin-inline:auto;display:grid;gap:.4rem;margin-bottom:1.5rem}
.feed-head time{color:var(--muted)}
.feed-head h2{font-size:clamp(1.5rem,3.2vw,2.2rem);font-weight:350;line-height:1.12;letter-spacing:-.01em;margin:0;text-wrap:balance}
.feed-head h2 a{color:var(--fg);text-decoration:none}
.feed-head h2 a:hover{text-decoration:underline;text-decoration-thickness:1px}
.feed-post .body figure{margin-block:0 1.25rem}
.feed-post .body figure.wide{max-width:var(--wide)}
.feed-post .body > p{max-width:var(--wide);margin-inline:auto}
.feed-post .body > p:last-child{margin-bottom:0}
.pager .count{color:var(--muted)}
.years span{color:var(--fg)}

/* Links page */
.links{display:grid;gap:3rem}
.links h2{font-family:var(--mono);font-size:.78rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 1rem;padding-bottom:.5rem;border-bottom:1px solid var(--rule)}
.links ul{list-style:none;margin:0;padding:0;display:grid;gap:1.1rem}
.links li{display:grid;gap:.1rem}
.links li a{font-size:1.2rem}
.links li span{font-size:1rem;color:var(--muted);line-height:1.45}

/* film stills fill the frame with no black edges */
.video{background:var(--surface)}
.video img{opacity:1;transform:scale(1.02)}
.video.embed{aspect-ratio:16/9}
/* upright photos: never taller than the screen */
figure.tall .plate{background:none}
figure.tall .plate img{width:auto;max-width:100%;max-height:85vh;margin-inline:auto}
.entry .arrow{color:var(--accent);white-space:nowrap}
.entry:hover .arrow{margin-left:.15em}

/* Single post pages: smaller masthead and title so the photos lead */
body.inner header.mast{gap:1.2rem;padding-block:2rem 1.2rem}
body.inner .mark{font-size:clamp(1.9rem,4.5vw,3.2rem);letter-spacing:-.025em}
body.inner .post-head{padding-block:clamp(2rem,5vw,3.5rem) 1.5rem}
body.inner h1{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:400;line-height:1.15;letter-spacing:-.01em}
body.inner .body figure:first-child{margin-top:0}

/* Titles can take a separate display face */
:root{--display:var(--serif)}
.mark,h1,.body h2,.feed-head h2,.entry h2,.card h3,.lead-post h2{font-family:var(--display)}
/* Post headings on the Posts page: smaller, the photo leads */
.feed-head h2{font-size:clamp(1.2rem,2.2vw,1.5rem);font-weight:400;line-height:1.2;letter-spacing:0}
.feed-head{margin-bottom:1rem}

/* Lexend for titles and text; IBM Plex Mono stays for dates and labels */
:root{--serif:"Lexend", system-ui, sans-serif;--display:var(--serif)}
body{font-size:1.0625rem;line-height:1.7}
.mark{font-weight:300;letter-spacing:-.04em}
h1,.lead-post h2,.entry h2{font-weight:350;letter-spacing:-.02em}
.body h2,.card h3,.feed-head h2{font-weight:400}
.standfirst,.entry p,.card p{font-weight:300}
.intro p{font-size:.9rem}

/* Front-page introduction runs the full width, as on the old blog */
.intro p{max-width:none;font-size:1rem;line-height:1.6}

/* All text starts at the left edge, in line with the introduction */
.measure,
.body > p,.body > h2,.body > h3,.body > ul,.body > ol,.body > blockquote,.body > hr{margin-inline:0}
figure,figure.wide,figure.tall,.pair{margin-inline:0}
figure.tall .plate img{margin-inline:0}
.feed-head{margin-inline:0}
