/* Minimal, type-led. The work is the interface; everything else gets out of its way. */
:root {
  --paper:#faf8f3; --ink:#15120d; --muted:#6b6457; --line:#e4dfd3;
  --accent:#b4621f; --surface:#fffdf9;
  --gutter:20px; --measure:1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:#131210; --ink:#f4f1ea; --muted:#9a9388; --line:#2c2924;
    --accent:#e0a062; --surface:#1a1816;
  }
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body {
  margin:0; background:var(--paper); color:var(--ink);
  font:400 17px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3 { margin:0; font-weight:400; letter-spacing:-.02em; }
a { color:inherit; }
img { max-width:100%; display:block; }

.wrap { max-width:var(--measure); margin:0 auto; padding:0 var(--gutter); }

/* header */
.site-head {
  position:sticky; top:0; z-index:20;
  background:color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
}
.site-head .wrap { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:62px; }
/* On a narrow screen the nav gets its own row instead of running off the edge. */
@media (max-width:600px) {
  .site-head .wrap { flex-direction:column; align-items:stretch; gap:0; padding-top:12px; }
  .site-head .wordmark { padding-bottom:10px; }
  .site-nav { margin:0 calc(var(--gutter) * -1); padding:0 calc(var(--gutter) - 6px) 8px; }
}
.wordmark { font:500 16px/1 "Instrument Serif", Georgia, serif; letter-spacing:.01em; text-decoration:none; white-space:nowrap; }
.site-nav { display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; margin:0 -6px; }
.site-nav::-webkit-scrollbar { display:none; }
.site-nav a {
  flex:none; padding:9px 11px; border-radius:8px; font-size:15px;
  color:var(--muted); text-decoration:none; white-space:nowrap;
}
.site-nav a:hover { color:var(--ink); background:var(--surface); }
.site-nav a.cta { color:var(--accent); font-weight:600; }

/* hero */
.hero { padding:60px 0 clamp(40px,7vw,72px); display:flex; flex-direction:column; align-items:flex-start; }
/* Portrait sits beside the headline on a wide screen, above it on a phone. */
.portrait {
  width:92px; height:92px; border-radius:50%; object-fit:cover; object-position:center top;
  margin:0 0 24px; border:1px solid var(--line); order:-1;
}
.hero-text { min-width:0; }
.hero h1 {
  font-family:"Instrument Serif", Georgia, serif;
  font-size:clamp(34px,6vw,60px); line-height:1.04;
}
.hero .lede { margin:26px 0 0; max-width:60ch; font-size:clamp(17px,2.1vw,20px); color:var(--muted); line-height:1.55; }
.hero .lede a { color:var(--ink); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }

/* section furniture */
section { padding:clamp(44px,6vw,76px) 0; border-top:1px solid var(--line); }
.sec-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:clamp(22px,3vw,34px); flex-wrap:wrap; }
.sec-head h2 { font-size:13px; letter-spacing:.14em; text-transform:uppercase; font-weight:600; color:var(--muted); }
.sec-head .more { font-size:15px; color:var(--accent); text-decoration:none; }
.sec-head .more:hover { text-decoration:underline; text-underline-offset:3px; }

/* work: the centrepiece */
.work { display:grid; gap:14px; }
.project {
  display:grid; grid-template-columns:1fr; gap:0;
  border:1px solid var(--line); border-radius:16px; overflow:hidden;
  background:var(--surface); text-decoration:none; transition:border-color .18s, transform .18s;
}
.project:hover { border-color:var(--accent); transform:translateY(-2px); }
.project figure { margin:0; aspect-ratio:16/9; overflow:hidden; background:var(--paper); }
.project figure img { width:100%; height:100%; object-fit:cover; }
.project .body { padding:22px; }
.project h3 { font-family:"Instrument Serif", Georgia, serif; font-size:clamp(24px,3.4vw,32px); line-height:1.12; }
.project p { margin:10px 0 0; color:var(--muted); font-size:16px; max-width:52ch; }
.project .go { margin-top:16px; display:inline-flex; align-items:center; gap:7px; font-size:15px; color:var(--accent); }
.project-links { margin-top:16px; display:flex; flex-wrap:wrap; gap:7px 20px; }
.project-links a { font-size:15px; color:var(--accent); text-decoration:none; }
.project-links a:hover { text-decoration:underline; text-underline-offset:3px; }
div.project:hover { transform:none; border-color:var(--line); }

/* speaking teaser */
.teaser {
  display:grid; gap:20px; align-items:center;
  border:1px solid var(--line); border-radius:16px; padding:clamp(22px,3.5vw,34px); background:var(--surface);
}
.teaser h3 { font-family:"Instrument Serif", Georgia, serif; font-size:clamp(23px,3.4vw,31px); line-height:1.14; max-width:22ch; }
.teaser p { margin:12px 0 0; color:var(--muted); max-width:58ch; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:48px; padding:0 22px; border-radius:10px; border:1px solid var(--ink);
  background:var(--ink); color:var(--paper); text-decoration:none; font-weight:600; font-size:16px;
  transition:opacity .18s;
}
.btn:hover { opacity:.86; }
.btn.ghost { background:transparent; color:var(--ink); border-color:var(--line); font-weight:500; }

/* writing */
.posts { display:grid; gap:0; }
.post { display:flex; align-items:baseline; gap:16px; padding:17px 2px; border-bottom:1px solid var(--line); text-decoration:none; }
.post:first-child { border-top:1px solid var(--line); }
.post:hover .t { color:var(--accent); }
.post .t { font-size:clamp(17px,2.2vw,20px); }
.post .s { margin-left:auto; color:var(--muted); font-size:15px; text-align:right; flex:none; max-width:46%; }

/* art */
.gallery { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.gallery a { display:block; text-decoration:none; }
.gallery figure { margin:0; border-radius:12px; overflow:hidden; border:1px solid var(--line); background:var(--surface); aspect-ratio:4/5; }
.gallery img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.gallery a:hover img { transform:scale(1.03); }
.gallery figcaption { margin-top:9px; font-size:15px; color:var(--muted); }

/* index of everything */
.index { display:grid; grid-template-columns:repeat(2,1fr); gap:2px 14px; }
.index a { padding:11px 2px; font-size:16px; color:var(--muted); text-decoration:none; border-bottom:1px solid var(--line); }
.index a:hover { color:var(--accent); }

/* footer */
.site-foot { border-top:1px solid var(--line); padding:38px 0 54px; }
.site-foot .wrap { display:flex; flex-wrap:wrap; gap:14px 24px; align-items:center; justify-content:space-between; }
.site-foot .copy { color:var(--muted); font-size:15px; }
.socials { display:flex; gap:16px; }
.socials a { color:var(--muted); font-size:15px; text-decoration:none; }
.socials a:hover { color:var(--ink); }

@media (min-width:720px) {
  :root { --gutter:34px; }
  .hero { flex-direction:row; align-items:center; gap:clamp(30px,5vw,60px); padding-top:76px; }
  .portrait { width:clamp(150px,19vw,232px); height:clamp(150px,19vw,232px); margin:0; order:0; flex:none; }
  .hero .lede { margin-top:22px; }
  .project { grid-template-columns:minmax(0,42%) 1fr; }
  .project figure { aspect-ratio:auto; height:100%; min-height:220px; }
  .project .body { padding:30px; display:flex; flex-direction:column; justify-content:center; }
  .gallery { grid-template-columns:repeat(4,1fr); }
  .teaser { grid-template-columns:1fr auto; }
  .teaser .btn { white-space:nowrap; }
}
@media (min-width:1000px) { :root { --gutter:48px; } }
@media (prefers-reduced-motion:reduce) { * { transition:none !important; animation:none !important; } html { scroll-behavior:auto; } }

/* ---------- speaking page ---------- */
.eyebrow { margin:0 0 18px; font-size:13px; letter-spacing:.14em; text-transform:uppercase; font-weight:600; color:var(--accent); }

.topics { display:grid; gap:2px 36px; grid-template-columns:1fr; }
.topic { padding:20px 0; border-top:1px solid var(--line); }
.topic h3 { font-family:"Instrument Serif", Georgia, serif; font-size:clamp(20px,2.8vw,25px); line-height:1.2; }
.topic p { margin:8px 0 0; color:var(--muted); font-size:16px; max-width:46ch; }

.videos { display:grid; gap:14px; grid-template-columns:1fr; }
.video {
  display:block; width:100%; padding:0; border:0; background:none; text-align:left; cursor:pointer; font:inherit; color:inherit;
}
.thumb { position:relative; display:block; border-radius:12px; overflow:hidden; border:1px solid var(--line); background:var(--surface); aspect-ratio:16/9; }
.thumb img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.video:hover .thumb img { transform:scale(1.03); }
.play {
  position:absolute; inset:50% auto auto 50%; translate:-50% -50%;
  width:58px; height:58px; border-radius:50%; background:rgba(21,18,13,.74); backdrop-filter:blur(2px);
}
.play::after { content:""; position:absolute; inset:50% auto auto 54%; translate:-50% -50%; border:11px solid transparent; border-left:17px solid #fff; }
.vt { display:block; margin-top:10px; font-size:16px; line-height:1.4; }
.videos iframe { width:100%; aspect-ratio:16/9; border:0; border-radius:12px; background:#000; }
.fineprint { margin:18px 0 0; font-size:14px; color:var(--muted); }
.fineprint a { color:var(--accent); }

/* form */
.form { display:grid; gap:16px; max-width:720px; }
.row { display:grid; gap:16px; grid-template-columns:1fr; }
.form label { display:grid; gap:7px; }
.form label > span { font-size:13px; letter-spacing:.08em; text-transform:uppercase; font-weight:600; color:var(--muted); }
.form input, .form select, .form textarea {
  font:inherit; width:100%; min-height:50px; padding:13px 14px;
  border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--ink);
}
.form textarea { min-height:132px; resize:vertical; line-height:1.55; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline:0; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.actions { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.form-note { font-size:15px; color:var(--muted); }
.form-note.good { color:#2f6b3c; }
.form-note.bad { color:#a33a2c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-note.good { color:#8fd3a2; }
  :root:not([data-theme="light"]) .form-note.bad { color:#f0a295; }
}

@media (min-width:720px) {
  .topics { grid-template-columns:1fr 1fr; }
  .videos { grid-template-columns:1fr 1fr; }
  .row { grid-template-columns:1fr 1fr; }
}
@media (min-width:1000px) {
  .videos { grid-template-columns:repeat(3,1fr); }
}

/* ---------- imported pages ---------- */
.site-nav a.here { color:var(--ink); background:var(--surface); }

.page { max-width:46rem; margin:0 auto; padding:clamp(34px,6vw,66px) 0 clamp(50px,8vw,90px); }
.back { display:inline-block; margin-bottom:26px; font-size:15px; color:var(--muted); text-decoration:none; }
.back:hover { color:var(--accent); }
.page-icon { font-size:.72em; line-height:1; margin-right:.12em; vertical-align:.06em; }
.page-title {
  font-family:"Instrument Serif", Georgia, serif; font-weight:400;
  font-size:clamp(32px,6vw,52px); line-height:1.06; letter-spacing:-.02em;
  margin:0 0 clamp(24px,4vw,38px);
}
.page p { margin:0 0 20px; font-size:17px; line-height:1.68; }
.page h2, .page h3, .page h4 { font-family:"Instrument Serif", Georgia, serif; line-height:1.18; margin:40px 0 14px; }
.page h2 { font-size:clamp(25px,3.6vw,33px); }
.page h3 { font-size:clamp(21px,3vw,27px); }
.page h4 { font-size:19px; }
.page a { color:var(--ink); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; text-decoration-color:color-mix(in srgb, var(--accent) 55%, transparent); }
.page a:hover { color:var(--accent); }
.page ul, .page ol { margin:0 0 22px; padding-left:1.25em; }
.page li { margin:0 0 9px; line-height:1.65; }
.page hr { border:0; border-top:1px solid var(--line); margin:38px 0; }
.page mark { background:color-mix(in srgb, var(--accent) 20%, transparent); color:inherit; padding:1px 2px; border-radius:3px; }
.page blockquote {
  margin:26px 0; padding:4px 0 4px 20px; border-left:2px solid var(--accent);
  font-family:"Instrument Serif", Georgia, serif; font-size:clamp(19px,2.6vw,23px); line-height:1.4;
}
.page code { font-size:.92em; background:var(--surface); border:1px solid var(--line); border-radius:5px; padding:1px 5px; }

.callout { display:flex; gap:13px; margin:24px 0; padding:17px 18px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.callout-icon { flex:none; font-size:19px; line-height:1.5; }
.callout p:last-child { margin-bottom:0; }
.callout div { min-width:0; }

.shot { margin:30px 0; }
.shot img { width:100%; height:auto; border-radius:12px; border:1px solid var(--line); background:var(--surface); }
.shot figcaption { margin-top:10px; font-size:15px; color:var(--muted); }

.bookmark { display:flex; flex-direction:column; gap:3px; margin:0 0 12px; padding:15px 16px; border:1px solid var(--line); border-radius:11px; background:var(--surface); text-decoration:none !important; }
.bookmark small { color:var(--muted); font-size:14px; }

.cards-list { display:grid; gap:0; margin:26px 0 42px; }
.cards-list .card { display:flex; align-items:baseline; gap:16px; padding:16px 2px; border-bottom:1px solid var(--line); text-decoration:none !important; }
.cards-list .card:first-child { border-top:1px solid var(--line); }
.cards-list .card .card-shot { display:none; }
.cards-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(16px,2.4vw,24px); margin:30px 0 44px; }
.cards-grid .card { display:block; text-decoration:none !important; }
.card-shot { display:block; border-radius:12px; overflow:hidden; border:1px solid var(--line); background:var(--surface); aspect-ratio:4/3; }
.card-shot img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.card:hover .card-shot img { transform:scale(1.03); }
.card-text { display:flex; flex-direction:column; gap:3px; min-width:0; }
.cards-grid .card-text { margin-top:10px; }
.card-text strong { font-weight:600; font-size:17px; }
.card-icon { margin-right:.5em; font-size:.95em; opacity:.9; }
.card-text small { color:var(--muted); font-size:15px; }
.cards-list .card-text { flex-direction:row; align-items:baseline; gap:14px; width:100%; }
.cards-list .card-text small { margin-left:auto; text-align:right; flex:none; max-width:50%; }
.card:hover .card-text strong { color:var(--accent); }

@media (min-width:720px) { .cards-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px) {
  .cards-list .card-text { flex-direction:column; gap:3px; }
  .cards-list .card-text small { margin-left:0; text-align:left; max-width:none; }
}

/* ---------- contact ---------- */
.socials-grid { display:grid; grid-template-columns:1fr; gap:0; margin:20px 0 10px; border-top:1px solid var(--line); }
.soc {
  display:flex; align-items:center; gap:13px; padding:14px 2px;
  border-bottom:1px solid var(--line); text-decoration:none !important; color:inherit;
}
.soc:hover { color:var(--accent); }
.soc-icon { width:21px; height:21px; flex:none; color:var(--muted); transition:color .15s; }
.soc:hover .soc-icon { color:var(--accent); }
.soc-name { font-size:16px; font-weight:500; }
.soc-handle { margin-left:auto; font-size:15px; color:var(--muted); text-align:right; overflow-wrap:anywhere; }
@media (min-width:720px) { .socials-grid { grid-template-columns:1fr 1fr; column-gap:36px; } }
