:root {
  color-scheme: dark;
  --bg: #06111b;
  --bg-2: #0b1d24;
  --ink: #f2eadf;
  --muted: #b7c1b5;
  --soft: #80907f;
  --line: rgba(218, 206, 181, 0.2);
  --panel: rgba(9, 27, 39, 0.72);
  --panel-strong: rgba(11, 42, 43, 0.86);
  --green: #8fae74;
  --green-strong: #315f50;
  --gold: #d2bd8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 18%, rgba(49, 95, 80, 0.44), transparent 31rem),
    linear-gradient(115deg, rgba(6, 17, 27, 0.96) 0%, rgba(7, 22, 31, 0.94) 54%, rgba(9, 35, 34, 0.96) 100%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(210, 189, 138, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 189, 138, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(130deg, transparent 0%, black 28%, black 82%, transparent 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(22px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 27, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  color: var(--muted);
  font-size: 0.98rem;
}

.nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-color: var(--green);
}

main {
  width: min(100% - 40px, 1400px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(30px, 7vw, 100px);
  align-items: end;
  min-height: calc(100vh - 72px);
  padding: clamp(64px, 10vw, 128px) 0 72px;
}

.hero.compact {
  grid-template-columns: 1fr;
  align-items: center;
  min-height: calc(100vh - 172px);
}

.calendar-hero {
  display: grid;
  align-items: end;
  min-height: 46vh;
  padding: clamp(58px, 8vw, 112px) 0 40px;
}

.hero-copy {
  max-width: 770px;
}

.section-label {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 11vw, 9.5rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0;
}

.dek {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.intro,
.panel p,
.timeline-item p,
.contact p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.intro {
  max-width: 720px;
  margin-bottom: 34px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

.button.primary {
  border-color: rgba(143, 174, 116, 0.52);
  background: linear-gradient(135deg, rgba(49, 95, 80, 0.94), rgba(29, 70, 68, 0.94));
  box-shadow: 0 14px 36px rgba(34, 86, 76, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  border-color: var(--gold);
  color: var(--ink);
}

.profile-card,
.panel,
.timeline,
.contact,
.calendar-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: clamp(24px, 3vw, 36px);
}

.monogram {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(143, 174, 116, 0.7);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.profile-kicker {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
}

.profile-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.profile-card li {
  display: flex;
  gap: 12px;
  line-height: 1.5;
}

.profile-card li::before {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.content-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 18px;
  padding: 0 0 26px;
}

.panel {
  padding: clamp(26px, 4vw, 44px);
}

.panel.large {
  background: var(--panel-strong);
}

.experience {
  padding: 58px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.timeline-item {
  position: relative;
  min-height: 260px;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.timeline-item:last-child {
  border-right: 0;
}

.dot {
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 44px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--green-strong);
  box-shadow: 0 0 0 10px rgba(143, 174, 116, 0.08);
}

.writing,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(28px, 4vw, 48px);
}

.calendar-section {
  padding: 0 0 clamp(42px, 7vw, 86px);
}

.calendar-frame {
  overflow: hidden;
  min-height: 680px;
  background: rgba(243, 236, 223, 0.98);
}

.calendar-frame iframe {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  min-height: 680px;
  border: 0;
}

.calendar-fallback {
  margin: 18px 0 0;
  color: var(--soft);
}

.calendar-fallback a {
  color: var(--green);
  border-bottom: 1px solid rgba(143, 174, 116, 0.5);
  font-weight: 800;
}

.writing {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.text-link {
  width: max-content;
  color: var(--green);
  border-bottom: 1px solid rgba(143, 174, 116, 0.5);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 40px, 1400px);
  margin: 0 auto;
  padding: 32px 0 42px;
  color: var(--soft);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 20px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero,
  .content-grid,
  .writing,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item:last-child {
    border-bottom: 0;
  }

  .dot {
    margin-bottom: 28px;
  }
}

@media (max-width: 560px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1400px);
  }

  .nav {
    gap: 14px 20px;
    font-size: 0.94rem;
  }

  h1 {
    font-size: clamp(3.6rem, 19vw, 5rem);
  }

  .button,
  .text-link {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
