/* Praxis — Nick Paul Smith. Shared stylesheet.
   Palette inherited from Notes from the Crossing mockups (quieter register). */

:root {
  /* Charcoal & Brass — warm charcoal ink, golden brass accents,
     round 3 direction 2026-06-12 (see experiment_palettes3.html;
     repaired Graphite & Amber, which read too cold) */
  --warm-white: #FBFAF6;
  --cream: #F3F1EA;
  --sand: #E7E3D8;
  --amber: #9C7A3F;
  --deep-amber: #806331;
  --warm-brown: #4C4841;
  --text-primary: #2B2A27;
  --text-secondary: #534F48;
  --text-muted: #838077;
  --border-light: #E0DCD1;
  /* photograph frames — mat + hairline, gallery register
     (border round 2, 2026-06-12) */
  --photo-hairline: 1px solid rgba(43, 42, 39, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--warm-white);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
}

/* Small interface elements stay sans for clarity */
.kicker, .nav-links a, .btn, dl.facts dt, .talk-meta, .footer-inner {
  font-family: 'Inter', -apple-system, sans-serif;
}

a { color: var(--deep-amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(253,251,249,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: 880px; margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.nav-name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.25rem; color: var(--text-primary);
}
.nav-name:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.nav-links a {
  font-size: 0.85rem; letter-spacing: 0.04em;
  color: var(--text-secondary); text-transform: uppercase;
  white-space: nowrap;
}
.nav-links a.active { color: var(--deep-amber); border-bottom: 1px solid var(--amber); }
.nav-links a:hover { color: var(--deep-amber); text-decoration: none; }

/* ---------- Layout ---------- */
main { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3.5rem 0; }
.narrow { max-width: 640px; }

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 4.5rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 40%, var(--cream) 100%);
}
.hero-inner { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 3.7rem); margin-bottom: 1.2rem; }
.hero .kicker {
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--deep-amber); margin-bottom: 1.4rem;
}
.hero .lede {
  font-size: 1.2rem; color: var(--text-secondary);
  max-width: 580px; margin-bottom: 2.2rem;
}
/* hero buttons breathe when they wrap on narrow screens */
.hero .btn { margin: 0 0.8rem 0.8rem 0; }

/* ---------- Type ---------- */
h2 { font-size: 2.05rem; margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; margin: 2rem 0 0.6rem; color: var(--warm-brown); }
p { margin-bottom: 1.1rem; color: var(--text-secondary); }
p.primary { color: var(--text-primary); }
.muted { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Components ---------- */
.btn {
  display: inline-block;
  background: var(--deep-amber); color: var(--warm-white);
  padding: 0.8rem 1.8rem; border-radius: 2px;
  font-size: 0.9rem; letter-spacing: 0.05em;
  transition: background 0.3s;
}
.btn:hover { background: var(--warm-brown); text-decoration: none; color: var(--warm-white); }
.btn.ghost {
  background: transparent; color: var(--deep-amber);
  border: 1px solid var(--amber);
}
.btn.ghost:hover { background: var(--cream); }

.rule {
  border: none; border-top: 1px solid var(--border-light);
  margin: 0 auto; max-width: 880px;
}

.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
}
@media (max-width: 680px) { .two-col { grid-template-columns: 1fr; } }

.card {
  background: var(--warm-white); border: 1px solid var(--border-light);
  border-radius: 3px; padding: 1.8rem;
}
.card h3 { margin-top: 0; }

dl.facts { margin: 1rem 0; }
dl.facts dt {
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
  color: var(--text-secondary); margin-top: 1.1rem;
}
dl.facts dd { color: var(--text-secondary); margin-left: 0; }

.placeholder {
  background: #FFF3E0; border: 1px dashed var(--amber);
  padding: 0.1rem 0.4rem; border-radius: 2px;
  font-size: 0.95em;
}

blockquote {
  border-left: 2px solid var(--amber);
  padding-left: 1.4rem; margin: 2rem 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.35rem; color: var(--warm-brown); font-style: italic;
}

/* ---------- One-page additions ---------- */
section[id] { scroll-margin-top: 5rem; }

/* compact register: one line per talk, single-spaced — the list
   should read as "speaking for years", not as a programme */
.talks { list-style: none; margin: 0.6rem 0 0; }
.talks li {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 1.2rem;
  padding: 0;
}
.talk-year {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.74rem; letter-spacing: 0.08em;
  color: var(--text-muted); padding-top: 0.3rem;
}
.talks .talk-title {
  display: inline;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem; color: var(--text-primary); line-height: 1.45;
}
.talks .talk-meta {
  display: inline;
  font-size: 0.82rem; color: var(--text-muted);
  font-family: 'Inter', -apple-system, sans-serif;
}
.talks .talk-meta::before { content: '\00B7\00A0'; margin-left: 0.35em; }

/* the upcoming talk is the one that earns emphasis: larger, bold,
   meta on its own line — the selected list stays a quiet record */
.talks-upcoming li { padding: 0.3rem 0; }
.talks-upcoming .talk-title {
  display: block; font-size: 1.3rem; font-weight: 600; line-height: 1.3;
}
.talks-upcoming .talk-meta { display: block; margin-top: 0.3rem; }
.talks-upcoming .talk-meta::before { content: none; margin-left: 0; }
@media (max-width: 560px) {
  .talks li { grid-template-columns: 1fr; gap: 0; }
  .talk-year { padding-top: 0.4rem; }
}

/* ---------- the plate section: photo-bearing sections sit on a
   different paper stock, like plates in a printed book ---------- */
.plate { position: relative; }
.plate::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  /* centered on the VIEWPORT, not the section — narrow sections sit
     left of viewport center, so left:50% drifted the panel leftward.
     left = panel's viewport offset minus the section's viewport offset. */
  width: min(1080px, calc(100vw - 3rem));
  left: calc((100vw - min(1080px, 100vw - 3rem)) / 2
            - max(0px, (100vw - 880px) / 2)
            - 1.5rem);
  z-index: -1;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}
.plate-top::before { border-top: 1px solid var(--border-light); }
.plate-bottom::before { border-bottom: 1px solid var(--border-light); }
/* breathing room so the hairlines never touch the hero, the
   photographs, or each other — a plate edge needs paper around it */
.plate-top { margin-top: 2.75rem; }
.plate-bottom { margin-bottom: 2.75rem; }

/* ---------- photographs ---------- */
/* full-bleed bands at the original height; the source files are now
   cropped to ~3.2:1 panorama strips, so object-fit:cover shows the
   intended frame instead of zooming into the middle of a taller image */
.photo-band { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.photo-band img { display: block; width: 100%; max-height: 480px; object-fit: cover; }
/* tucked under the paper: the band stays full bleed, but soft inner
   shading at top and bottom makes the page appear to overlap the
   photo, like a window cut in the paper. Overlay lives on a wrapper
   (inset shadows are invisible directly on replaced elements). */
.band-frame { position: relative; line-height: 0; }
.band-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 9px 12px -9px rgba(43, 42, 39, 0.55),
              inset 0 -9px 12px -9px rgba(43, 42, 39, 0.55);
}
.photo-band figcaption {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); text-align: right;
  max-width: 880px; margin: 0.5rem auto 0; padding: 0 1.5rem;
}
.photo-inline { margin: 2.5rem auto; text-align: center; max-width: 640px; }
.photo-inline img {
  width: 100%; height: auto;
  /* paper mat inside a hairline frame; square corners, like a
     mounted print. display:block kills the inline-gap below the img */
  display: block; border-radius: 0;
  background: var(--warm-white);
  padding: 10px;
  border: var(--photo-hairline);
}
.photo-inline figcaption {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 0.6rem;
}

/* Analysis and About share one continuous plate; without this their
   stacked paddings doubled the gap above "About me" */
#about { padding-top: 0; }

/* quiet sub-labels inside a section — calmer than stacked h3s */
.sublabel {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--deep-amber); margin: 3rem 0 0.6rem;
}

.three-col {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem;
}
@media (max-width: 760px) { .three-col { grid-template-columns: 1fr; } }

.beyond-links {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.9rem; letter-spacing: 0.04em;
  margin-top: 0.4rem;
}

.booking-frame {
  background: var(--cream); border: 1px solid var(--border-light);
  border-radius: 3px; padding: 2rem; text-align: center;
}
.booking-frame .placeholder { display: inline-block; margin-top: 0.5rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--cream); border-top: 1px solid var(--border-light);
  margin-top: 3rem;
}
.footer-inner {
  max-width: 880px; margin: 0 auto; padding: 2.5rem 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.88rem; color: var(--text-muted);
}
.footer-inner a { color: var(--text-muted); }
.footer-credit {
  flex-basis: 100%; font-size: 0.78rem; opacity: 0.7; letter-spacing: 0.02em;
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  body { font-size: 17.5px; }
  section { padding: 2.4rem 0; }
  .hero { padding: 4.5rem 0 3rem; }
  .nav-inner { padding: 0.9rem 1.5rem; }
  .nav-links { gap: 0.9rem 1.2rem; }
  h2 { font-size: 1.7rem; }
  blockquote { font-size: 1.2rem; padding-left: 1.1rem; }
  /* photographs: shorter bands so a phone screen isn't all image */
  .photo-band img { max-height: 300px !important; }
  .photo-band figcaption { padding: 0 1.5rem; }
}
