:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --ink: #171512;
  --muted: #686057;
  --line: #d9cec0;
  --panel: #fffaf1;
  --cedar: #8f3d2d;
  --moss: #3f6c57;
  --blue: #285f85;
  --shadow: 0 24px 70px rgba(54, 42, 30, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(143, 61, 45, 0.12), transparent 28rem),
    linear-gradient(180deg, var(--paper), #ede5d9 72%, #e7ded1);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(23, 21, 18, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 18, 0.04) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.site-header,
main,
.site-footer {
  width: min(100% - 2rem, 70rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.contact-links,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(23, 21, 18, 0.14);
  border-radius: 0.35rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
}

.site-nav {
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(23, 21, 18, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.64);
}

.site-nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

.hero {
  display: grid;
  min-height: calc(100svh - 4.4rem);
  grid-template-columns: minmax(16rem, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.hero-media {
  display: grid;
  min-height: 32rem;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(40, 95, 133, 0.72), rgba(63, 108, 87, 0.88)),
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1100&q=80");
  background-position: center;
  background-size: cover;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.portrait-card {
  display: grid;
  width: min(72%, 20rem);
  aspect-ratio: 4 / 5;
  place-items: center;
  border: 1px solid rgba(255, 250, 241, 0.42);
  border-radius: 0.45rem;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.18);
}

.portrait-card span {
  color: var(--cedar);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13rem;
  line-height: 0.8;
}

.hero-copy {
  padding-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--cedar);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.6rem;
  font-weight: 600;
  line-height: 0.9;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 0.96;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.lede {
  max-width: 38rem;
  margin-bottom: 1.65rem;
  font-size: 1.28rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  padding: 0 1.1rem;
  font-weight: 850;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.68);
}

.intro-band {
  margin-bottom: clamp(3rem, 8vw, 6rem);
  padding: clamp(1.4rem, 4vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band p {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1.28;
}

.section,
.split-section,
.contact-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.work-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.work-card,
.profile-card,
.photo-card {
  min-height: 18rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 250, 241, 0.72);
}

.profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-number {
  display: block;
  margin-bottom: 4.5rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
}

.work-card p {
  margin-bottom: 0;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.about-copy {
  display: grid;
  gap: 1rem;
}

.about-copy p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.contact-section {
  align-items: start;
}

.contact-links {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.contact-links a {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 250, 241, 0.68);
  color: var(--ink);
  font-weight: 800;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.page-hero {
  max-width: 58rem;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
}

.page-hero h1 {
  max-width: 11ch;
}

.resume-hero h1 {
  max-width: 8ch;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  display: grid;
  grid-template-columns: 9rem minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.timeline span,
.resume-meta {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 850;
}

.timeline h3,
.timeline p {
  margin-bottom: 0;
}

.profile-card {
  min-height: 16rem;
}

.profile-initial {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  place-items: center;
  margin-bottom: 3rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.resume-sidebar,
.resume-main section {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.resume-sidebar h2,
.resume-main h2 {
  font-size: 2.2rem;
}

dl {
  display: grid;
  gap: 1.2rem;
  margin: 1.4rem 0 0;
}

dt {
  color: var(--cedar);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.resume-main {
  display: grid;
  gap: 2.5rem;
}

.resume-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.resume-item p {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.68);
  color: var(--ink);
  font-weight: 800;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.photo-card {
  min-height: 0;
}

.photo-placeholder {
  display: grid;
  min-height: 18rem;
  place-items: end start;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(135deg, rgba(23, 21, 18, 0.12), transparent),
    linear-gradient(135deg, #8f3d2d, #285f85);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
}

.photo-placeholder.alt {
  background:
    linear-gradient(135deg, rgba(23, 21, 18, 0.1), transparent),
    linear-gradient(135deg, #3f6c57, #d9cec0);
}

.photo-placeholder.deep {
  background:
    linear-gradient(135deg, rgba(23, 21, 18, 0.12), transparent),
    linear-gradient(135deg, #171512, #3f6c57);
}

.photo-placeholder.light {
  background:
    linear-gradient(135deg, rgba(23, 21, 18, 0.08), transparent),
    linear-gradient(135deg, #d9cec0, #285f85);
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.top-button {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.25rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    max-width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 1.2rem;
  }

  .hero-media {
    min-height: 22rem;
    order: 2;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  h1 {
    max-width: 9ch;
    font-size: 4.7rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .lede {
    font-size: 1.16rem;
  }

  .intro-band p {
    font-size: 1.45rem;
  }

  .portrait-card span {
    font-size: 10rem;
  }

  .work-grid,
  .profile-grid,
  .photo-grid,
  .resume-layout,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .work-number {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: static;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    border-radius: 0.5rem;
  }

  .site-nav a {
    flex: 1;
    min-width: max-content;
    text-align: center;
  }

  .hero-media {
    min-height: 18rem;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .intro-band p {
    font-size: 1.25rem;
  }

  .portrait-card span {
    font-size: 7.5rem;
  }

  .button {
    width: 100%;
  }
}
