:root {
  color-scheme: light;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --tint: #fff4e8;
  --ink: #1b1816;
  --muted: #6c645c;
  --accent: #c2410c;
  --accent-soft: #ffe7d6;
  --accent-ink: #ffffff;
  --rule: #ebe6df;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(27,24,22,.05), 0 8px 24px -12px rgba(27,24,22,.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 44rem;
  --wide: 70rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .38  0 0 0 0 .18  0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"), var(--bg); color: var(--ink); font: 1.125rem/1.75 var(--serif); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .eyebrow, nav, .btn, summary, dt, figcaption, .yr, footer { font-family: var(--sans); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 30; }
.skip:focus { left: .5rem; top: .5rem; border-radius: 4px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251,250,248,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(27,24,22,.06); }
.bar { max-width: var(--wide); margin: 0 auto; padding: .75rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.brand { font: 800 1.1rem var(--sans); letter-spacing: -.01em; color: var(--ink); text-decoration: none; margin-right: auto; display: inline-flex; align-items: center; gap: .6rem; }
.brand::before { content: "TC"; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 5px; background: var(--ink); color: var(--bg); font-size: .75rem; letter-spacing: .04em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .25rem; font-size: .92rem; font-weight: 500; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: .4rem .85rem; border-radius: 5px; transition: background .15s, color .15s; }
.site-header nav a:hover { background: var(--accent-soft); color: var(--accent); }
.site-header nav a[aria-current] { background: var(--ink); color: var(--bg); }
.lang { font: 600 .8rem var(--sans); border: 1px solid var(--rule); border-radius: 5px; padding: .35rem .8rem; text-decoration: none; color: var(--muted); }
.lang:hover { color: var(--accent); border-color: var(--accent); }

/* layout */
main { max-width: var(--measure); margin: 0 auto; padding: 3.5rem 1.25rem 5rem; }
main.wide { max-width: var(--wide); padding-top: 0; }
.page-head { margin-bottom: 2.75rem; }
h1 { font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(2.4rem, 6vw, 3.8rem); margin: 0 0 .75rem; }
h2 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 1.25rem; }
h3 { font-weight: 700; font-size: 1.1rem; margin: 1.75rem 0 .6rem; }
.lede { font-size: 1.3rem; line-height: 1.55; color: var(--muted); margin: 0; max-width: 36rem; }
.block { margin: 0 0 4rem; }
.wide .block { max-width: var(--measure); }
.wide .block:has(.cards), .wide .block:has(.books) { max-width: none; }
.note { color: var(--muted); font-size: .95rem; }

/* hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; padding: 4rem 0 3rem; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; mix-blend-mode: multiply; inset: 0 calc(50% - 50vw); background: radial-gradient(60rem 30rem at 85% 0%, var(--accent-soft), transparent 60%), radial-gradient(40rem 24rem at 0% 100%, #fff1d6, transparent 60%); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: .4rem .8rem; border-radius: 5px; margin: 0 0 1.25rem; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); line-height: .98; margin-bottom: 1.25rem; }
.hero .lede { margin-bottom: 2rem; }
.portrait { margin: 0; position: relative; justify-self: center; width: 100%; max-width: 24rem; }
.portrait img { border-radius: 4px; aspect-ratio: 3/4; object-fit: cover; width: 100%; border: 6px solid #fff; box-shadow: 0 2px 4px rgba(27,24,22,.12), 0 18px 32px -8px rgba(27,24,22,.35), 0 40px 70px -20px rgba(27,24,22,.35); }
.btn { display: inline-block; font-weight: 600; font-size: .98rem; padding: .8rem 1.5rem; border-radius: 5px; background: var(--ink); color: var(--bg); text-decoration: none; border: 2px solid var(--ink); margin: 0 .5rem .5rem 0; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--accent-ink); }

/* at a glance */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin: 0 0 4.5rem; }
.glance div { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.glance dt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.glance dd { margin: .35rem 0 0; font-size: 1.05rem; line-height: 1.4; }
.glance div { display: flex; flex-direction: column; gap: .5rem; }
.glance dd.num { order: -1; }
.glance dd.num { margin: 0; font: 800 clamp(2.2rem, 5vw, 3rem)/1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.glance dt { line-height: 1.35; }

/* books */
.books { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem; }
.books li { display: flex; flex-direction: column; gap: .25rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); font: .95rem/1.4 var(--sans); }
.books img { width: 8.5rem; border-radius: 4px; box-shadow: 0 14px 28px -12px rgba(27,24,22,.55); margin: 0 auto 1rem; }
.books strong { font-size: 1rem; }
.books span { color: var(--muted); font-size: .85rem; }

/* cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.1rem; }
.cards a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.4rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s, border-color .18s; position: relative; }
.cards a::after { content: "→"; position: absolute; right: 1.25rem; top: 1.25rem; font-family: var(--sans); color: var(--accent); transition: transform .18s; }
.cards a:hover { transform: translateY(-4px); border-color: var(--accent); }
.cards a:hover::after { transform: translateX(4px); }
.cards strong { font: 700 1.15rem var(--sans); letter-spacing: -.01em; }
.cards span { font: .93rem/1.45 var(--sans); color: var(--muted); }

/* text */
ul.refs, ul.plain { padding-left: 1.25rem; }
ul.refs li { margin: 0 0 .8rem; padding-left: .25rem; }
ul.refs li::marker, ul.plain li::marker { color: var(--accent); }
ul.plain li { margin-bottom: .6rem; }
dl.facts { margin: 0; }
dl.facts dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-top: 1.5rem; }
dl.facts dd { margin: .25rem 0 0; }
details { background: var(--surface); border: 1px solid var(--rule); border-radius: 5px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
summary { cursor: pointer; font-weight: 600; font-size: .98rem; color: var(--accent); }
details ul { margin-top: 1rem; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.25rem; padding: 1.15rem 0; border-top: 1px solid var(--rule); }
.timeline .yr { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--accent); line-height: 1.7; }
.timeline p { margin: 0; }

/* quotes */
blockquote { margin: 0 0 1.5rem; padding: 1.5rem 1.75rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
blockquote::before { content: "“"; position: absolute; top: .2rem; left: 1rem; font: 700 3.5rem/1 Georgia, serif; color: var(--accent-soft); }
blockquote p { margin: 0 0 .75rem; position: relative; }
blockquote footer { font-size: .85rem; color: var(--muted); position: relative; }

/* galleries */
.gallery, .strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.strip { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); max-width: var(--measure); }
.gallery figure { margin: 0; }
.gallery img, .strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 5px; background: var(--rule); transition: transform .2s, box-shadow .2s; }
.gallery a:hover img, .strip a:hover img { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery figcaption { font-size: .82rem; line-height: 1.35; color: var(--muted); margin-top: .4rem; }
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lb::backdrop { background: rgba(15,12,10,.88); }
dialog.lb img { max-width: 96vw; max-height: 92vh; object-fit: contain; margin: auto; border-radius: 4px; }
dialog.lb form { position: absolute; top: .5rem; right: .5rem; margin: 0; }
dialog.lb button { font: 1.2rem var(--sans); background: rgba(255,255,255,.9); color: #000; border: 0; border-radius: 50%; width: 2.5rem; height: 2.5rem; cursor: pointer; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); font-size: .88rem; line-height: 1.5; color: var(--muted); background: var(--surface); }
.site-footer .bar { justify-content: space-between; padding-block: 1.75rem; }
.site-footer p { margin: 0; max-width: 40rem; }

@media (max-width: 760px) {
  body { font-size: 1.05rem; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 2rem 0; }
  .portrait { order: -1; max-width: 16rem; margin-right: 1.25rem; }
  .brand { width: 100%; }
  main { padding-top: 2rem; }
  .timeline li { grid-template-columns: 1fr; gap: .1rem; }
  .block { margin-bottom: 3rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .skip, .lang, .cta { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero::before,   a { color: #000; text-decoration: none; }
}

/* book shelf */
.shelf { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 2rem 1.25rem; margin: 1.5rem 0; }
.shelf figure { margin: 0; display: flex; flex-direction: column; }
.shelf a { display: block; position: relative; }
.shelf img { width: 100%; height: auto; border-radius: 2px 4px 4px 2px; box-shadow: 0 1px 2px rgba(27,24,22,.2), 0 10px 18px -8px rgba(27,24,22,.45); transition: transform .2s, box-shadow .2s; background: var(--rule); }
.shelf a::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; border-radius: 2px 0 0 2px; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.18) 60%, transparent); pointer-events: none; }
.shelf a:hover img { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 2px 4px rgba(27,24,22,.2), 0 22px 30px -10px rgba(27,24,22,.5); }
.shelf figcaption { margin-top: .75rem; font: .85rem/1.35 var(--sans); display: flex; flex-direction: column; gap: .15rem; }
.shelf figcaption span { color: var(--muted); font-weight: 400; }
.shelf figcaption time { color: var(--accent); font-weight: 700; font-size: .78rem; letter-spacing: .04em; }
.wide .block.shelf-block { max-width: none; }
.block.shelf-block { max-width: none; }
main:not(.wide) .shelf-block { margin-inline: -1rem; }

/* compact cover strip (landing page) */
.shelf.mini { grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: 1.1rem .8rem; }
.shelf.mini figure { align-items: center; }
.shelf.mini img { width: auto; max-width: 100%; height: 7.5rem; }
.shelf.mini a::after { width: 3px; }
.shelf.mini a { display: inline-block; }
.shelf.mini figcaption { margin-top: .4rem; align-items: center; }
.shelf.mini time { font-size: .7rem; }

/* key-figure tiles, one colour each */
.glance div { background: var(--tile); border-color: var(--tile-line); box-shadow: none; }
.glance dt { color: var(--tile-ink); }
.glance dd.num { color: var(--tile-ink); }
.glance div:nth-child(1) { --tile: #ffe7d6; --tile-line: #f6c9a8; --tile-ink: #9a3412; }
.glance div:nth-child(2) { --tile: #d8f0ed; --tile-line: #a9d9d3; --tile-ink: #0f5f58; }
.glance div:nth-child(3) { --tile: #e4e6fb; --tile-line: #c3c8f2; --tile-ink: #3a3aa6; }
.glance div:nth-child(4) { --tile: #fbefc2; --tile-line: #ecd988; --tile-ink: #7c4a03; }

/* grainy gradient tiles */
:root { --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.5' intercept='-.25'/%3E%3CfeFuncG type='linear' slope='1.5' intercept='-.25'/%3E%3CfeFuncB type='linear' slope='1.5' intercept='-.25'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.glance div { border: 0; color: #fff; box-shadow: 0 10px 24px -14px rgba(27,24,22,.55);
  background-color: var(--c2);
  background-image: var(--noise), radial-gradient(120% 100% at 0% 0%, rgba(255,255,255,.32), transparent 60%), linear-gradient(135deg, var(--c1), var(--c2));
  background-blend-mode: overlay, normal, normal; }
.glance div { --ink-t: var(--ink); box-shadow: 0 8px 20px -16px rgba(27,24,22,.45), inset 0 0 0 1px rgba(255,255,255,.5); }
.glance dd.num { color: var(--ink); }
.glance dt { color: #6b3a1f; opacity: 1; }
/* earthy tones from the site's own palette: terracotta, ochre, sage, clay */
.glance div:nth-child(1) { --c1: #f6d3bd; --c2: #efbfa0; }
.glance div:nth-child(2) { --c1: #f4e4b4; --c2: #ecd391; }
.glance div:nth-child(3) { --c1: #dde3c6; --c2: #c9d4ab; }
.glance div:nth-child(4) { --c1: #ecd6cf; --c2: #e0bdb2; }

/* phones: one-row scrolling nav, 3-up cover shelf that respects the page margin */
@media (max-width: 760px) {
  .site-header .bar { padding: .55rem 1rem .35rem; gap: .2rem; }
  .brand { width: 100%; font-size: 1rem; }
  .site-header nav { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 2rem); margin: 0 -1rem; padding: 0 1rem .2rem; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { flex: none; white-space: nowrap; padding: .4rem .7rem; }
  .shelf { grid-template-columns: repeat(3, 1fr); gap: 1.4rem .7rem; }
  .shelf figcaption { font-size: .74rem; }
  main:not(.wide) .shelf-block { margin-inline: 0; }
}
