@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&display=swap');

:root {
  --ink: #1c1a17;
  --paper: #faf6ef;
  --paper-raised: #f2ebdd;
  --muted: #6b6459;
  --accent: #ffc700;       /* bright yellow — backgrounds, borders, decoration */
  --accent-text: #8a6d00;  /* deep gold, same hue family — used only where accent is body/link TEXT, for readability */
  --accent-ink: #1c1a17;   /* text placed on top of the bright yellow */
  --line: #e4dcc9;
  --max-width: 740px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .site-name {
  font-family: "Fraunces", Georgia, serif;
}

a { color: var(--accent-text); }
a:hover { color: var(--ink); }

/* Layout: persistent sidebar + content pane */

.layout {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  flex: 0 0 252px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 30px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-top .site-name {
  display: block;
  font-weight: 900;
  font-size: 25px;
  line-height: 1.18;
  color: var(--paper);
  text-decoration: none;
  margin-bottom: 12px;
}

.sidebar-tag {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  margin: 0 0 44px;
  line-height: 1.4;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-nav a {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  padding: 9px 14px;
  margin-left: -14px;
  border-left: 3px solid transparent;
  opacity: 0.72;
}

.sidebar-nav a:hover { opacity: 1; border-left-color: var(--accent); }

.sidebar-nav a.active {
  opacity: 1;
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(255, 199, 0, 0.09);
}

.sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 48px;
}

.sidebar-contact a {
  font-size: 13px;
  color: var(--paper);
  opacity: 0.6;
  text-decoration: none;
}

.sidebar-contact a:hover { opacity: 1; color: var(--accent); }

.content {
  flex: 1 1 auto;
  min-width: 0;
}

.wrap {
  max-width: var(--max-width);
  margin: 0;
  padding: 60px 52px 40px;
}

/* Page heading (used on Writing / Speaking / Recognition / CV pages) */

.page-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.page-head h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.page-head .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 48px;
}

/* Hero (home page) */

.hero {
  padding: 8px 0 40px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.hero-text {
  flex: 1 1 380px;
  min-width: 280px;
}

.hero-photo-wrap {
  flex: 0 0 auto;
}

.hero-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 7px solid var(--accent);
  background: var(--paper-raised);
  display: block;
}

.eyebrow {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-text);
}

.hero p {
  margin: 0 0 16px;
  color: var(--ink);
}

.hero .lede {
  font-size: 20px;
  color: var(--muted);
}

/* Pull quote */

.pullquote {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 34px 0;
  margin: 8px 0 52px;
}

.pullquote blockquote {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-style: italic;
  font-size: 28px;
  line-height: 1.3;
  color: var(--ink);
}

.pullquote blockquote::before { content: "\201C"; color: var(--accent); }
.pullquote blockquote::after { content: "\201D"; color: var(--accent); }

.pullquote cite {
  display: block;
  font-family: "Source Serif 4", serif;
  font-style: normal;
  font-size: 15px;
  color: var(--muted);
  margin-top: 14px;
}

/* Explore (home page quicklinks) */

.explore-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.explore-list li {
  border-bottom: 1px solid var(--line);
}

.explore-list li:last-child { border-bottom: none; }

.explore-list a {
  display: block;
  padding: 20px 4px;
  text-decoration: none;
  color: var(--ink);
}

.explore-list a:hover strong { color: var(--accent-text); }

.explore-list strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.explore-list span {
  color: var(--muted);
  font-size: 16px;
}

/* Sections */

main { padding-bottom: 24px; }

section { margin-bottom: 56px; }

h2 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0 0 28px;
  padding-left: 14px;
  border-left: 5px solid var(--accent);
}

/* Writing */

.piece {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.piece:last-child { border-bottom: none; }

.piece h3 { font-size: 24px; margin: 0 0 8px; font-weight: 700; }

.piece h3 a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 3px;
  transition: background-size 0.15s ease;
}

.piece h3 a:hover { background-size: 100% 3px; }

.piece p { color: var(--muted); margin: 0; font-size: 17px; }

/* Speaking */

.topics { list-style: none; padding: 0; margin: 0; }

.topics li {
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.topics li:first-child { padding-top: 0; }
.topics li:last-child { border-bottom: none; }

.topics li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 18px;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 18px;
}

.topics strong { font-family: "Fraunces", serif; font-weight: 700; }

.subhead {
  font-family: "Fraunces", serif;
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  color: var(--muted);
  margin: 40px 0 16px;
}

/* Contact (footer, every page) */

.page-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

/* CV page */

.role {
  margin-bottom: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.role:last-child { border-bottom: none; }

.role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.role h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.role-dates {
  font-family: "Source Serif 4", serif;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.role-org {
  font-family: "Source Serif 4", serif;
  font-style: italic;
  color: var(--accent-text);
  margin: 4px 0 14px;
  font-size: 16px;
}

.role ul {
  margin: 0;
  padding-left: 20px;
}

.role li {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.plain-list li:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .layout { flex-direction: column; }

  .sidebar {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 3px solid var(--accent);
  }

  .sidebar-top {
    display: flex;
    align-items: baseline;
    gap: 14px;
  }

  .sidebar-top .site-name { margin-bottom: 0; font-size: 20px; }
  .sidebar-tag { margin: 0; font-size: 13px; }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 4px;
  }

  .sidebar-nav a {
    padding: 6px 10px;
    margin-left: 0;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .sidebar-nav a:hover, .sidebar-nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .sidebar-contact {
    flex-direction: row;
    margin-top: 0;
    gap: 18px;
  }

  .wrap { padding: 36px 24px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { flex-direction: column-reverse; }
  .hero-photo { width: 180px; height: 180px; }
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 18px; }
  .page-head h1 { font-size: 28px; }
  .pullquote blockquote { font-size: 23px; }
}
