:root {
  --ivory: #f5f0e6;
  --paper: #fffdf8;
  --navy: #0c2340;
  --navy-deep: #07172b;
  --gold: #c59a43;
  --gold-light: #dcbf7a;
  --ink: #132136;
  --muted: #65707c;
  --rule: rgba(12, 35, 64, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #e4ded2;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

main {
  width: min(calc(100% - 96px), 1380px);
  margin: 48px auto;
  overflow: hidden;
  background: var(--ivory);
  box-shadow: 0 28px 80px rgba(7, 23, 43, 0.13);
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.site-header {
  height: 104px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--rule);
  background: var(--ivory);
}

.monogram {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--navy);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
}

.signature-logo {
  width: clamp(170px, 14vw, 220px);
  height: 68px;
  display: block;
  overflow: hidden;
  background: var(--ivory);
}

.signature-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: darken;
}

.site-header nav { display: flex; gap: clamp(24px, 3vw, 48px); }

.site-header nav a,
.header-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-header nav a { color: var(--muted); }
.site-header nav a:hover { color: var(--navy); }
.header-link { justify-self: end; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

.hero {
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: 46.5% 53.5%;
}

.hero-copy {
  padding: clamp(64px, 8vw, 122px) clamp(32px, 6vw, 94px) 56px clamp(32px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow,
.section-label,
.timeline-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 740px;
  margin: 28px 0 30px;
  color: var(--navy);
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(58px, 6.5vw, 112px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .9;
}

.hero h1 em { color: var(--gold); font-weight: 400; }

.hero-intro {
  max-width: 560px;
  margin: 0;
  color: #4e5b68;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.primary-action {
  min-height: 58px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.primary-action:hover { transform: translateY(-3px); background: transparent; color: var(--navy); }

.text-action { font-size: 14px; font-weight: 700; text-underline-offset: 6px; }

.hero-facts {
  width: 100%;
  margin: auto 0 0;
  padding-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hero-facts div { border-top: 1px solid var(--rule); padding-top: 14px; }
.hero-facts dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-facts dd { margin: 8px 0 0; color: var(--navy); font-family: Iowan Old Style, Baskerville, serif; font-size: 18px; }

.hero-image {
  position: relative;
  min-height: 760px;
  margin: 38px 38px 38px 0;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-image::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 92px;
  height: 92px;
  background: var(--navy);
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
}

.hero-image figcaption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: rgba(7, 23, 43, .8);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.statement {
  padding: 140px clamp(32px, 8vw, 132px);
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 3fr;
  gap: 56px;
  background: var(--navy);
  color: white;
}

.statement h2,
.education h2,
.contact h2 {
  margin: 0;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(46px, 5vw, 82px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
}

.statement p:not(.section-label) { max-width: 820px; margin: 36px 0 0; color: #c6cfda; font-size: 19px; line-height: 1.75; }

.education { padding: 136px clamp(32px, 8vw, 132px); background: var(--paper); }
.education-heading { max-width: 820px; margin-bottom: 78px; }
.education-heading h2 { margin-top: 24px; color: var(--navy); }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { padding: 34px 0; display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 56px; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline-year { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.timeline-content h3 { margin: 12px 0 8px; color: var(--navy); font-family: Iowan Old Style, Baskerville, serif; font-size: clamp(27px, 2.4vw, 40px); font-weight: 400; }
.timeline-content h3 a { text-decoration: none; }
.timeline-content h3 a:hover { color: var(--gold); }
.timeline-content > p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.timeline-featured { background: rgba(197, 154, 67, .08); }

.memories {
  padding: 136px clamp(32px, 6vw, 100px);
  background: var(--ivory);
}

.memories-heading {
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: end;
  gap: 60px;
}

.memories h2 {
  max-width: 920px;
  margin: 24px 0 0;
  color: var(--navy);
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(46px, 5vw, 82px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
}

.memories-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 34px);
  align-items: start;
}

.memory-card { margin: 0; }
.memory-wide { grid-column: span 2; }

.memory-photo {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #d9d2c5;
}

.memory-wide .memory-photo { aspect-ratio: 16 / 9; min-height: 0; }
.memory-tall .memory-photo { aspect-ratio: 3 / 4; min-height: 0; }
.memory-photo img { object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.memory-card:hover .memory-photo img { transform: scale(1.025); }

.memory-card figcaption {
  padding: 16px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
}

.memory-card figcaption span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.memory-card figcaption strong {
  color: var(--navy);
  font-family: Iowan Old Style, Baskerville, serif;
  font-size: 18px;
  font-weight: 400;
}

.contact {
  padding: 128px clamp(32px, 8vw, 132px);
  background: var(--gold);
  color: var(--navy-deep);
}

.contact .section-label { color: var(--navy); }
.contact h2 { max-width: 1000px; margin-top: 22px; }
.contact-links { margin-top: 58px; display: flex; gap: 40px; flex-wrap: wrap; }
.contact-links a { font-size: clamp(17px, 2vw, 25px); font-weight: 700; text-underline-offset: 8px; }

footer {
  min-height: 130px;
  padding: 32px clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  background: var(--navy-deep);
  color: #c7ced7;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

footer p:last-child { justify-self: end; }
.monogram-light { border-color: var(--gold-light); color: var(--gold-light); }

@media (max-width: 960px) {
  main {
    width: calc(100% - 40px);
    margin: 20px auto;
  }

  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 750px; }
  .hero-image { min-height: 720px; margin: 0 24px 24px; }
  .statement,
  .timeline li,
  .memories-heading { grid-template-columns: 1fr; gap: 22px; }

  .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memory-wide { grid-column: span 2; }
}

@media (max-width: 620px) {
  main {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .site-header { height: 84px; padding: 0 20px; }
  .monogram { width: 44px; height: 44px; }
  .signature-logo { width: 150px; height: 58px; }
  .hero-copy { min-height: auto; padding: 66px 22px 48px; }
  .hero h1 { font-size: clamp(52px, 16vw, 76px); }
  .hero-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .primary-action { justify-content: space-between; }
  .hero-facts { margin-top: 54px; grid-template-columns: 1fr; }
  .hero-image { min-height: 580px; margin: 0; }
  .hero-image::before { width: 66px; height: 66px; }
  .hero-image figcaption { flex-direction: column; gap: 8px; }
  .statement,
  .education,
  .memories,
  .contact { padding: 88px 22px; }
  .statement h2,
  .education h2,
  .contact h2 { font-size: 46px; }
  .memories h2 { font-size: 46px; }
  .timeline li { padding: 28px 0; }
  .memories-heading { margin-bottom: 46px; }
  .memory-grid { grid-template-columns: 1fr; }
  .memory-wide { grid-column: span 1; }
  .memory-wide .memory-photo,
  .memory-tall .memory-photo { aspect-ratio: 4 / 5; }
  .memory-card figcaption { align-items: baseline; }
  footer { grid-template-columns: 1fr auto; }
  footer p:first-of-type { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}


/* Click-to-open photo gallery */
.site-header {
  grid-template-columns: 1fr auto auto 1fr;
}

.gallery-toggle,
.gallery-close {
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.gallery-toggle {
  width: 42px;
  height: 42px;
  padding: 9px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
}

.gallery-toggle:hover {
  background: var(--navy);
  color: var(--ivory);
}

.gallery-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.gallery-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: 90vh;
  padding: 0;
  border: 0;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 32px 100px rgba(7, 23, 43, .35);
}

.gallery-dialog::backdrop {
  background: rgba(7, 23, 43, .78);
  backdrop-filter: blur(6px);
}

.gallery-shell {
  padding: clamp(24px, 5vw, 64px);
}

.gallery-header {
  margin-bottom: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.gallery-header h2 {
  margin: 12px 0 0;
  color: var(--navy);
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
}

.gallery-close {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.gallery-close:hover {
  background: var(--navy);
  color: var(--ivory);
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 18px;
}

.gallery-grid figure {
  margin: 0 0 18px;
  break-inside: avoid;
  overflow: hidden;
  background: #d9d2c5;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 18px; }
}

@media (max-width: 620px) {
  .site-header { gap: 10px; }
  .gallery-toggle { width: 38px; height: 38px; padding: 8px; }
  .header-link { font-size: 10px; }
  .gallery-dialog { width: calc(100% - 16px); max-height: 94vh; }
  .gallery-header { margin-bottom: 24px; }
  .gallery-grid { columns: 1; }
}


/* Professional experience */
.experience {
  padding: 128px clamp(32px, 8vw, 132px);
  background: var(--paper);
}

.experience-heading {
  max-width: 820px;
  margin-bottom: 64px;
}

.experience-heading h2 {
  margin: 20px 0 0;
  color: var(--navy);
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(46px, 5vw, 78px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}

.experience-list { border-top: 1px solid var(--rule); }

.experience-item {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
}

.experience-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.experience-period {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.experience-item h3 { margin: 0; color: var(--navy); font-family: Iowan Old Style, Baskerville, serif; font-size: clamp(25px, 3vw, 38px); font-weight: 400; }
.experience-item h3 a { text-decoration: none; }
.experience-item h3 a:hover { color: var(--gold); }
.experience-item > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.experience-item > div > p:last-child a { color: inherit; text-underline-offset: 4px; }

.experience-club ul { margin: 24px 0 0; padding: 0; list-style: none; }
.experience-club li { padding: 14px 0; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(12,35,64,.12); }
.experience-club li strong { color: var(--navy); font-size: 15px; }
.experience-club li span { color: var(--muted); font-size: 13px; text-align: right; }

@media (max-width: 620px) {
  .experience { padding: 88px 22px; }
  .experience-heading { margin-bottom: 42px; }
  .experience-heading h2 { font-size: 46px; }
  .experience-item { grid-template-columns: 50px 1fr; gap: 16px; }
  .experience-mark { width: 42px; height: 42px; font-size: 10px; }
  .experience-club li { display: block; }
  .experience-club li span { display: block; margin-top: 5px; text-align: left; }
}
