/* ==========================================================================
   Sloan Gaon — personal site
   ========================================================================== */

:root {
  --navy: #232b42;
  --navy-deep: #171b26;
  --ink: #1a1c23;
  --paper: #fafaf9;
  --paper-alt: #f2f1ee;
  --line: #e4e2dd;
  --muted: #6b6d76;
  --gold: #b3862c;
  --gold-dark: #8f6a20;
  --white: #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
  --radius: 10px;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.9em;
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-dark); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.8); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.78;
}
.main-nav a:hover,
.main-nav a.active { opacity: 1; }
.main-nav .li-linkedin {
  opacity: 0.6;
  display: inline-flex;
}
.main-nav .li-linkedin:hover { opacity: 1; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 28px;
    gap: 22px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { font-size: 1.05rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-deep) 55%, #2e3d60 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.14) 1px, transparent 0);
  background-size: 26px 26px;
  opacity: 0.5;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  color: var(--white);
}
.hero .lede { color: rgba(255,255,255,0.78); font-size: 1.08rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-eyebrow { color: rgba(255,255,255,0.65); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-portrait { max-width: 320px; }
}

/* ---------- stats strip ---------- */
.stats-strip {
  background: var(--navy-deep);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stats-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 26px 28px;
  align-items: center;
  justify-content: space-between;
}
.stat { display: flex; align-items: baseline; gap: 10px; }
.stat .num { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }
.stat .lbl { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.stats-source { font-size: 0.75rem; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- credibility / awards bar ---------- */
.credibility {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}
.cred-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 34px 0 46px;
}
.cred-figure {
  background: var(--paper-alt);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.cred-figure .num { font-family: var(--serif); font-size: 2.1rem; color: var(--navy); }
.cred-figure .lbl { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 28px;
}
.awards-grid div {
  font-size: 0.88rem;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
}
@media (max-width: 700px) {
  .cred-figures { grid-template-columns: 1fr; }
}

/* ---------- sections generic ---------- */
section { padding: 78px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 36px;
}
.section-head .lede { margin: 0; }
.section-alt { background: var(--paper-alt); }

/* ---------- video grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(20,20,30,0.25); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--navy-deep) center/cover;
}
.video-thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb .play span {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 0.9rem;
}
.video-thumb .dur {
  position: absolute;
  right: 8px; bottom: 8px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-card .body { padding: 16px 18px 20px; }
.video-card h4 { font-size: 1rem; margin-bottom: 4px; }
.video-card p { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* ---------- essays ---------- */
.essay-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.essay-filters button {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  color: var(--muted);
}
.essay-filters button.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.essay-list article {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.essay-list article:first-child { padding-top: 0; }
.essay-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.essay-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.essay-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.essay-list h3 { font-size: 1.3rem; margin-bottom: 8px; }
.essay-list h3 a:hover { color: var(--gold-dark); }
.essay-list p { color: var(--muted); margin-bottom: 10px; max-width: 640px; }
.essay-list .read-link { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.essay-list .read-link:hover { color: var(--gold-dark); }

/* ---------- essay detail page ---------- */
.essay-detail { max-width: 720px; margin: 0 auto; padding: 60px 28px 100px; }
.essay-detail .essay-meta { margin-bottom: 18px; }
.essay-detail h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.essay-excerpt {
  font-size: 1.15rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  margin: 26px 0 34px;
}
.essay-placeholder {
  background: var(--paper-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--muted);
  font-size: 0.94rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 30px;
}

/* ---------- playbook toc & cards ---------- */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}
.toc-grid a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.92rem;
  font-weight: 600;
}
.toc-grid a:hover { border-color: var(--gold); color: var(--gold-dark); }
.pb-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.pb-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--gold-dark);
  letter-spacing: 0.08em;
}
.pb-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 20px;
}
.pb-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}
.pb-diagram {
  background: var(--paper-alt);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
}
.pb-diagram .stage {
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.pb-diagram .caption { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.pb-alloc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.pb-alloc div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.pb-alloc .pct { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); }
.pb-alloc .name { font-size: 0.85rem; font-weight: 600; margin-top: 4px; }
.pb-alloc .sub { font-size: 0.76rem; color: var(--muted); }
.pb-phases { display: grid; gap: 14px; margin: 18px 0; }
.pb-phase {
  display: flex;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.pb-phase .n {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold);
  min-width: 28px;
}
.pb-phase h4 { margin-bottom: 2px; }
.pb-phase .when { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.pb-phase ul { margin: 0; padding-left: 18px; font-size: 0.9rem; color: var(--ink); }
.download-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
}
.download-chip:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ---------- book / frameworks ---------- */
.book-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 46px;
  align-items: center;
}
.book-block img { border-radius: 8px; box-shadow: 0 20px 40px -18px rgba(20,20,30,0.35); }
.book-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.book-tags span {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--muted);
}
@media (max-width: 720px) {
  .book-block { grid-template-columns: 1fr; text-align: left; }
  .book-block img { max-width: 200px; }
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.framework-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.framework-card ul { margin: 14px 0; padding-left: 18px; font-size: 0.9rem; }
.framework-card .assets {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 14px;
}

/* ---------- board / experience list ---------- */
.role-list { display: grid; gap: 0; }
.role-row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 0.6fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  align-items: baseline;
}
.role-row .role-title { font-weight: 600; }
.role-row .role-sub { color: var(--muted); }
.role-row .role-years { color: var(--muted); text-align: right; font-size: 0.85rem; }
@media (max-width: 640px) {
  .role-row { grid-template-columns: 1fr; text-align: left; }
  .role-row .role-years { text-align: left; }
}

/* ---------- speaking topics ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.topic-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.topic-card .n { font-family: var(--serif); color: var(--gold-dark); font-size: 0.85rem; }

/* ---------- forms ---------- */
form.stacked { display: grid; gap: 16px; max-width: 560px; }
form.stacked.wide { max-width: 100%; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- newsletter cta ---------- */
.newsletter {
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  padding: 52px 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.newsletter h2 { color: var(--white); }
.newsletter .lede { color: rgba(255,255,255,0.72); }
.newsletter form { display: grid; gap: 12px; }
.newsletter .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.newsletter input {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.newsletter input::placeholder { color: rgba(255,255,255,0.5); }
@media (max-width: 780px) {
  .newsletter { grid-template-columns: 1fr; padding: 36px 24px; }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
  background: var(--paper-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-grid a {
  display: block;
  font-size: 0.9rem;
  padding: 5px 0;
  color: var(--ink);
}
.footer-grid a:hover { color: var(--gold-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- page header (interior pages) ---------- */
.page-head { padding: 56px 0 10px; }
.page-head .eyebrow { }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* ---------- misc ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 100;
}
.toast.show { transform: translateY(0); opacity: 1; }
