/* ============================================================
   Patrick Boueri — site styles
   Simple, quiet, serif-led. Chicago palette + flag carried over
   from the brand work; everything else stripped back.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Lora:ital,wght@0,400;0,500;1,400&family=Inter+Tight:wght@400;500&display=swap');

:root {
  /* Paper + ink */
  --paper:        #F4EEE2;
  --paper-2:      #ECE4D3;
  --paper-3:      #E2D7BF;
  --ink:          #1E1B16;
  --graphite:     #4A463D;
  --graphite-2:   #6E6A60;
  --chalk:        #9A9587;

  /* Greens */
  --moss:         #3E5542;
  --moss-deep:    #2A3B2E;

  /* Gold accent */
  --gold:         #C89A3E;

  /* Semantic */
  --bg:           var(--paper);
  --fg:           var(--ink);
  --fg-2:         var(--graphite);
  --fg-3:         var(--graphite-2);
  --fg-muted:     var(--chalk);
  --brand:        var(--moss);
  --brand-deep:   var(--moss-deep);
  --accent:       var(--gold);

  --rule:         rgba(30, 27, 22, 0.16);
  --rule-soft:    rgba(30, 27, 22, 0.07);

  /* Display face — name, nav, titles. Keeps the distinctive character. */
  --font-display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  /* Reading face — body & prose. Open and screen-legible. Swap here. */
  --font-serif:   'Lora', Georgia, 'Times New Roman', serif;
  --font-meta:    'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --measure:      40rem;
}

/* ============ Reset + base ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: var(--rule); text-decoration-thickness: 1px;
    transition: color 140ms, text-decoration-color 140ms; }
a:hover { color: var(--brand-deep); text-decoration-color: var(--brand); }

/* Headings — no bold anywhere; Instrument Serif has a single weight */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--fg);
  margin: 1.8em 0 0.5em;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
h1:first-child, h2:first-child, h3:first-child { margin-top: 0; }

/* ============ Layout shell ============ */
.site {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 4rem;
  align-items: start;
}

/* ============ Sidebar ============ */
.sidebar {
  position: sticky;
  top: 3.5rem;
  padding: 3.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand-mark { width: 3rem; height: auto; display: block; }

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nav a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: var(--fg-2);
  text-decoration: none;
  padding: 0.15rem 0;
  width: fit-content;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--fg); }
.nav a.active { color: var(--fg); border-bottom-color: var(--accent); }

/* ============ Content column ============ */
.content {
  padding: 3.5rem 0 6rem;
  min-width: 0;
}
.content .prose,
.content .list,
.content .page-head,
.content .article-head { max-width: var(--measure); }

.page-head { margin-bottom: 2.5rem; }
.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.005em;
  margin: 0;
}
.page-intro {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--fg-2);
  margin: 0.6rem 0 0;
}

/* ============ Home landing ============ */
.home {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.75rem;
}
.home-tagline {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--fg-2);
  margin: 0;
  max-width: 22ch;
}
.home-monolith {
  height: 240px;
  width: auto;
  display: block;
}

/* ============ About — circular photo, text wraps around it ============ */
/* Selector matches `.prose img` specificity (+1) so its margin/border win. */
.prose img.about-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  object-fit: cover;
  float: left;
  margin: 0.25rem 2.5rem 1.25rem 0;
  shape-outside: circle(50%);
  shape-margin: 2rem;
}
.prose::after { content: ''; display: block; clear: both; }

/* ============ Prose ============ */
.prose p { margin: 0 0 1.1rem; }
.prose p:first-child { margin-top: 0; }
.prose.list-intro { margin-bottom: 2.5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose img { margin: 1.5rem 0; border: 1px solid var(--rule); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
  color: var(--fg-2);
  font-style: italic;
}
.prose code {
  font-family: var(--font-meta);
  font-size: 0.85em;
  background: var(--paper-2);
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
}
.prose pre {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 0 0 1.3rem;
  border-radius: 2px;
}
.prose pre code { background: none; padding: 0; font-size: 0.8rem; }

/* ============ Index / list rows ============ */
.list { display: flex; flex-direction: column; }
.list-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}
.list-item:last-child { border-bottom: 1px solid var(--rule); }
.list-item:hover .list-item-title { color: var(--brand); }
.list-item-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--fg);
  transition: color 140ms;
}
.list-item-meta {
  font-family: var(--font-meta);
  font-size: 0.78rem;
  color: var(--fg-3);
  margin-top: 0.2rem;
}
.list-item-desc {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--fg-2);
  margin-top: 0.35rem;
}

.empty {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg-3);
  padding: 1.5rem 0;
}

/* ============ Button / play CTA ============ */
.play-cta { margin: 2rem 0; }
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.5rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 140ms, color 140ms, border-color 140ms;
}
.btn:hover {
  color: var(--paper);
  background: var(--brand);
  border-color: var(--brand);
}

/* ============ Single article ============ */
.backlink {
  font-family: var(--font-meta);
  font-size: 0.8rem;
  color: var(--fg-3);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2rem;
}
.backlink:hover { color: var(--fg); }

.article-head { margin-bottom: 2.25rem; }
.article-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.005em;
  margin: 0;
}
.article-meta {
  font-family: var(--font-meta);
  font-size: 0.8rem;
  color: var(--fg-3);
  margin-top: 0.5rem;
}
.article-meta a { color: var(--fg-3); }
.article-meta a:hover { color: var(--brand); }

/* ============ Talk embed ============ */
.embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 0 0 2rem;
  border: 1px solid var(--rule);
  background: var(--paper-3);
}
.embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .site {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 1.5rem;
  }
  .sidebar {
    position: static;
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--rule);
    gap: 1.25rem;
  }
  .nav { flex-flow: row wrap; gap: 1rem; }
  .nav a { padding: 0; }
  .content { padding: 2.5rem 0 4rem; }
  .home { min-height: 50vh; }
  .home-monolith { height: 200px; }
}
@media (max-width: 560px) {
  .prose img.about-photo {
    float: none;
    shape-outside: none;
    display: block;
    margin: 0 auto 1.5rem;
  }
}
