/* ============================================================
   Dan Bath — personal site v2
   ============================================================ */

:root {
  --bg: #f7f4ec;
  --surface: #ffffff;
  --surface-warm: #fbf8f1;
  --ink: #22262b;
  --ink-soft: #5c6069;
  --gold: #b8862f;
  --clay: #8b3f2e;
  --sage: #5c6e52;
  --line: #e2dcc9;
  --line-strong: #cdc4ac;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1040px;
  --max-w-narrow: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

/* -------- header -------- */

.site-header {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-warm);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
}

.brand span {
  color: var(--gold);
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* -------- hero (landing) -------- */

.hero {
  padding: 60px 0 50px;
}

.hero .wrap {
  display: flex;
  align-items: center;
  gap: 52px;
}

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

.hero-portrait {
  flex: 0 0 auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--surface);
  outline: 1px solid var(--line-strong);
  box-shadow: 0 14px 34px rgba(34, 38, 43, 0.14);
}

.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero p.lede {
  max-width: 640px;
  font-size: 1.14rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 680px) {
  .hero .wrap { flex-direction: column-reverse; text-align: center; gap: 24px; }
  .hero-portrait { width: 150px; height: 150px; }
}

/* -------- role card grid -------- */

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 10px 0 70px;
}

@media (max-width: 880px) {
  .role-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .role-grid { grid-template-columns: 1fr; }
}

.role-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.role-card:hover,
.role-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(34, 38, 43, 0.09);
}

.role-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: var(--clay);
}

.role-icon svg { width: 100%; height: 100%; }

.role-card .role-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 8px;
}

.role-card h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.2;
}

.role-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
  flex-grow: 1;
}

.role-card .go {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.role-card .go::after { content: " \2192"; }

/* -------- subpage hero -------- */

.page-hero {
  padding: 50px 0 34px;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--line);
}

.page-hero .icon-badge {
  width: 46px;
  height: 46px;
  color: var(--clay);
  margin-bottom: 16px;
}

.page-hero .icon-badge svg { width: 100%; height: 100%; }

.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 2.9rem); }

.page-hero p.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0;
}

/* -------- content -------- */

.content { padding: 46px 0 40px; }

.content-inner {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

.content h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 42px 0 14px;
}
.content h2:first-child { margin-top: 0; }

.content p { margin: 0 0 18px; color: var(--ink-soft); }
.content ul { margin: 0 0 18px; padding-left: 20px; color: var(--ink-soft); }
.content li { margin-bottom: 10px; }

.pillars { display: grid; gap: 16px; margin: 22px 0 30px; }

.pillar {
  border-left: 3px solid var(--sage);
  padding: 4px 0 4px 18px;
}

.pillar .num {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pillar h3 { font-family: var(--serif); font-size: 1.2rem; margin: 4px 0 6px; }
.pillar p { margin: 0; }

.tagline-block {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.28rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  margin: 36px 0;
}

.note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  margin: 0 0 30px;
}

/* -------- buttons / action row -------- */

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--surface);
  background: var(--ink);
  padding: 12px 22px;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--clay); border-color: var(--clay); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: transparent;
  padding: 11px 21px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--gold); color: var(--gold); }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.btn-gold:hover, .btn-gold:focus-visible { background: var(--clay); border-color: var(--clay); }

/* -------- photo gallery / placeholders -------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 36px;
}

.gallery.two-col { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 640px) {
  .gallery, .gallery.two-col { grid-template-columns: repeat(2, 1fr); }
}

.photo-frame {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-warm);
  border: 1px dashed var(--line-strong);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
}

.photo-frame.placeholder span {
  font-size: 0.76rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.photo-frame.wide { grid-column: span 2; }


.photo-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* -------- Q&A -------- */

.qa-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.qa-item:last-child { border-bottom: none; }

.qa-q {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.qa-q::before {
  content: "Q.";
  color: var(--gold);
  margin-right: 8px;
}

.qa-a { margin: 0; color: var(--ink-soft); }

.qa-a::before {
  content: "A.";
  color: var(--sage);
  font-weight: 600;
  margin-right: 8px;
}

/* -------- social row -------- */

.social-row {
  display: flex;
  gap: 14px;
  margin: 8px 0 4px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social-btn:hover, .social-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.social-btn svg { width: 19px; height: 19px; }

/* -------- footer -------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  background: var(--surface-warm);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.site-footer a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.site-footer a:hover { border-bottom-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
