@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #FAF7F2;
  --ink:       #1A1A1A;
  --ink-mid:   #4A4845;
  --ink-light: #7A7570;
  --accent:    #1B3A5C;
  --rule:      #D8D3C8;
  --max-w:     680px;
  --max-w-wide: 860px;
  --nav-h:     64px;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 0.5em; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4em; }
h4 { font-size: 1rem; font-weight: 600; font-style: italic; margin-bottom: 0.25em; }

p { margin-bottom: 1.35em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
a:hover { text-decoration-color: var(--accent); }

em { font-style: italic; }
strong { font-weight: 500; }

small, .small {
  font-size: 0.85rem;
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--ink-light);
  letter-spacing: 0.02em;
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--accent);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-wordmark:hover { color: var(--accent); text-decoration-color: transparent; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a.active { border-bottom: 1px solid var(--accent); padding-bottom: 1px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Layout Containers ── */
.page-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.container--wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ── Section Spacing ── */
.section      { padding: 5rem 0; }
.section--sm  { padding: 3rem 0; }
.section--lg  { padding: 7rem 0; }

/* ── Page Headers ── */
.page-header {
  padding: 4.5rem 0 3rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 4rem;
}

.page-header .eyebrow {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* ── Rule Dividers ── */
hr, .rule {
  border: none;
  border-top: 1px solid var(--accent);
  opacity: 0.25;
  margin: 3rem 0;
}

.rule--sm { margin: 2rem 0; }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--accent);
  margin-top: 3rem;
}

.card {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--accent);
  transition: background-color 0.2s ease;
}
.card:last-child { border-right: none; }
.card:hover { background-color: rgba(27, 58, 92, 0.04); }

.card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.card p {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ── Writing List ── */
.writing-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.writing-item:first-child { border-top: 1px solid var(--rule); }

.writing-item .meta {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.6rem;
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
}

.writing-item h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.writing-item p {
  font-size: 1rem;
  color: var(--ink-mid);
  margin-bottom: 0;
}

/* ── Speaking Items ── */
.speaking-section { margin-bottom: 3.5rem; }

.speaking-section h2 {
  font-size: 0.82rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--accent);
}

.talk-item {
  margin-bottom: 1.75rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--rule);
  transition: border-left-color 0.2s ease;
}
.talk-item:hover { border-left-color: var(--accent); }

.talk-item h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.talk-item .venue { font-size: 0.95rem; color: var(--ink-light); }

/* Engagements list */
.engagements-list {
  list-style: none;
  column-count: 2;
  column-gap: 2.5rem;
  margin-top: 1rem;
}
.engagements-list li {
  font-size: 0.95rem;
  color: var(--ink-mid);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule);
  break-inside: avoid;
}

/* ── Services (Consulting) ── */
.service-item {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}
.service-item:first-of-type { border-top: 1px solid var(--rule); }

.service-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--accent);
  padding-top: 0.15rem;
}

.service-body p { font-size: 1rem; color: var(--ink-mid); }

/* ── Contact Form ── */
.contact-form { margin-top: 2.5rem; }

.form-group { margin-bottom: 1.75rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 0.5rem;
  font-family: 'EB Garamond', Georgia, serif;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-bottom-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.65; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231B3A5C'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 1.5rem;
  cursor: pointer;
}

.btn {
  display: inline-block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background-color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn.btn--ghost {
  background-color: transparent;
  color: var(--accent);
  margin-left: 0.75rem;
}
.btn.btn--ghost:hover {
  background-color: var(--accent);
  color: var(--bg);
}
.btn:hover {
  background-color: transparent;
  color: var(--accent);
  text-decoration-color: transparent;
}

/* ── Hero (Home) ── */
.hero { padding: 6rem 0 5rem; }

.hero-positioning {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.4;
  max-width: 600px;
  margin-bottom: 2rem;
  color: var(--ink);
}

.hero-positioning em { font-style: italic; color: var(--accent); }

.hero-bio {
  max-width: 580px;
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--accent);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p { font-size: 0.85rem; color: var(--ink-light); margin-bottom: 0; }

.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  font-family: 'EB Garamond', Georgia, serif;
}
.footer-links a:hover { color: var(--accent); }

/* ── About Page ── */
.about-body { font-size: 1rem; max-width: var(--max-w); }
.about-body p + p { margin-top: 1.5em; }

.credentials-aside {
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  background: rgba(27, 58, 92, 0.04);
}
.credentials-aside p { font-size: 0.95rem; color: var(--ink-mid); margin-bottom: 0; line-height: 1.7; }

/* ── Utilities ── */
.text-center  { text-align: center; }
.text-light   { color: var(--ink-light); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--accent);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .card-grid { grid-template-columns: 1fr; }
  .card { border-right: none; border-bottom: 1px solid var(--accent); }
  .card:last-child { border-bottom: none; }

  .service-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .engagements-list { column-count: 1; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .section { padding: 3.5rem 0; }
  .section--lg { padding: 4rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
}

@media (max-width: 480px) {
  .container, .container--wide { padding: 0 1.25rem; }
  .nav-inner { padding: 0 1.25rem; }
  .nav-links { padding: 1.25rem 1.25rem; }
}
