/* ============================================================
   KAIROS — Site Stylesheet
   Design system: editorial, restrained, typographically driven
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Jost:wght@300;400;500&family=Tenor+Sans&display=swap');

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

/* ── Tokens ── */
:root {
  --ink:        #1c1917;
  --ink-soft:   #3a3530;
  --muted:      #6b6560;
  --rule:       #d6cfc4;
  --gold:       #b8965a;
  --gold-light: #d4b07a;
  --page:       #faf7f2;
  --warm:       #f5f0e8;
  --bg:         #f0ebe2;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;
  --font-label:   'Tenor Sans', system-ui, sans-serif;

  --max-w:      680px;
  --max-w-wide: 860px;
}

/* ── Base ── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Page wrapper ── */
.site-wrap {
  background: var(--page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV ── */
.site-nav {
  padding: 36px 60px 32px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.site-nav::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 60px;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-wordmark:hover {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

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

/* ── MAIN CONTENT ── */
.site-main {
  flex: 1;
  padding: 80px 60px 100px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  width: 100%;
}

.site-main.narrow {
  max-width: var(--max-w);
}

/* ── FOOTER ── */
.site-footer {
  padding: 28px 60px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-left {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.footer-contact {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 300;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--gold);
}

/* ── TYPOGRAPHY COMPONENTS ── */

/* Section label */
.label {
  font-family: var(--font-label);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 80px;
}

/* Display heading */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 32px;
}

.display em {
  font-style: italic;
  color: var(--gold);
}

/* Body prose */
.prose p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 62ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Drop cap */
.prose.dropcap p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  line-height: 0.78;
  float: left;
  margin-right: 8px;
  margin-top: 8px;
  color: var(--gold);
}

/* Pull quote */
.pullquote {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0;
  margin: 48px 0;
  position: relative;
}

.pullquote::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  max-width: 52ch;
}

/* Rule divider */
.rule {
  height: 1px;
  background: var(--rule);
  margin: 52px 0;
  position: relative;
}

/* CTA link */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-top: 36px;
  transition: gap 0.2s ease;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
}

.cta-link:hover {
  gap: 16px;
  border-bottom-color: var(--gold);
}

.cta-link::after {
  content: '→';
  font-family: serif;
  font-size: 14px;
}

/* ── HOMEPAGE SPECIFIC ── */
.home-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 72px;
}

.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 72px;
  align-items: start;
}

.home-advisor-note {
  background: var(--warm);
  padding: 40px 44px;
  border-top: 2px solid var(--gold);
  margin-top: 0;
}

.home-advisor-note .label {
  margin-bottom: 20px;
}

.home-advisor-note p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 0;
}

/* ── THE WORK SPECIFIC ── */
.work-triggers {
  margin: 48px 0;
}

.trigger-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}

.trigger-item:first-child {
  border-top: 1px solid var(--rule);
}

.trigger-dash {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  line-height: 1.6;
  flex-shrink: 0;
  margin-top: 2px;
}

.trigger-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ── WRITING SPECIFIC ── */
.essay-list {
  margin-top: 12px;
}

.essay-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  align-items: start;
  transition: background 0.15s ease;
}

.essay-item:first-child {
  border-top: 1px solid var(--rule);
}

.essay-item:hover .essay-title-text {
  color: var(--gold);
}

.essay-title-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.essay-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.essay-gloss {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 56ch;
}

.essay-date {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rule);
  white-space: nowrap;
  padding-top: 6px;
}

.writing-footer-note {
  margin-top: 52px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}

.writing-footer-note a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.writing-footer-note a:hover {
  border-color: var(--gold);
}

/* ── CONTACT SPECIFIC ── */
.contact-wrap {
  padding: 80px 0;
  max-width: 520px;
}

.contact-intro {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 52px;
}

.contact-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
}

.contact-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-details a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.contact-details a:hover {
  color: var(--gold);
}

.contact-tagline {
  margin-top: 52px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
}

/* ── ABOUT SPECIFIC ── */
.about-credentials {
  margin: 52px 0;
  padding: 36px 40px;
  background: var(--warm);
  border-left: 2px solid var(--gold);
}

.about-credentials p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 60ch;
}

/* ── ESSAY PAGE SPECIFIC ── */
.essay-header {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
  position: relative;
}

.essay-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.essay-body-text p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 65ch;
}

.essay-body-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 500;
  line-height: 0.78;
  float: left;
  margin-right: 8px;
  margin-top: 8px;
  color: var(--gold);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 52px;
  transition: color 0.2s;
}

.back-link::before {
  content: '←';
  font-family: serif;
  font-size: 13px;
}

.back-link:hover {
  color: var(--gold);
}

/* ── MOBILE ── */
@media (max-width: 720px) {
  .site-nav {
    padding: 28px 28px 24px;
    flex-direction: column;
    gap: 20px;
  }

  .site-nav::after {
    left: 28px;
  }

  .nav-links {
    gap: 24px;
  }

  .site-main {
    padding: 52px 28px 72px;
  }

  .site-footer {
    padding: 24px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-contact {
    text-align: left;
  }

  .home-intro {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .essay-item {
    grid-template-columns: 1fr;
  }

  .essay-date {
    padding-top: 0;
  }

  .home-advisor-note {
    padding: 28px;
  }

  .about-credentials {
    padding: 24px 24px;
  }
}
