:root {
  --paper: #fbfbf8;
  --paper-deep: #f1eee7;
  --ink: #191715;
  --muted: #65605a;
  --line: #d8d1c5;
  --oxblood: #7d1f28;
  --oxblood-dark: #52131a;
  --brass: #9d7b36;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(38, 28, 18, 0.08);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(125, 31, 40, 0.04) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(rgba(157, 123, 54, 0.06) 1px, transparent 1px) 0 0 / 100% 48px,
    var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}

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;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 209, 197, 0.8);
  background: rgba(251, 251, 248, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--oxblood);
  color: var(--oxblood);
  font-family: var(--serif);
  font-size: 13px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a,
.footer-links a,
.note-layout a {
  background-image: linear-gradient(var(--brass), var(--brass));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
}

.nav a:hover,
.footer-links a:hover,
.note-layout a:hover {
  color: var(--oxblood);
}

main {
  padding: 0 clamp(20px, 5vw, 72px);
}

.section-frame {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(32px, 7vw, 92px);
  min-height: min(640px, calc(88vh - 64px));
  align-items: center;
  padding: clamp(44px, 6vw, 82px) clamp(18px, 4vw, 56px);
}

.hero::before {
  content: "";
  position: absolute;
  top: 64px;
  right: clamp(250px, 33vw, 500px);
  width: clamp(170px, 18vw, 260px);
  height: clamp(130px, 15vw, 210px);
  border-bottom: 1px solid rgba(125, 31, 40, 0.2);
  background:
    linear-gradient(142deg, transparent 48%, rgba(125, 31, 40, 0.15) 49%, rgba(125, 31, 40, 0.15) 51%, transparent 52%) 0 0 / 100% 46% no-repeat,
    linear-gradient(218deg, transparent 48%, rgba(125, 31, 40, 0.15) 49%, rgba(125, 31, 40, 0.15) 51%, transparent 52%) 0 0 / 100% 46% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(25, 23, 21, 0.1) 29px 31px, transparent 32px 44px);
  opacity: 0.9;
}

.hero-copy,
.brief {
  position: relative;
  z-index: 1;
}

.folio {
  margin: 0 0 22px;
  color: var(--oxblood);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 28px);
}

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

h1,
h2 {
  font-family: var(--serif);
  line-height: 1.05;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(56px, 6.5vw, 96px);
  letter-spacing: 0;
}

.lede {
  max-width: 730px;
  margin-bottom: 34px;
  color: #3e3934;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--oxblood);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.button.primary {
  background: var(--oxblood);
  color: var(--white);
}

.button.secondary {
  color: var(--oxblood);
}

.brief {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.courthouse {
  display: none;
}

.brief-rule {
  width: 54px;
  height: 4px;
  margin-bottom: 28px;
  background: var(--oxblood);
}

.brief-title {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 24px;
}

.brief p:not(.brief-title) {
  color: var(--muted);
}

dl {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--brass);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.journey,
.skills,
.work,
.notes {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.section-heading span {
  color: var(--brass);
  font-family: var(--serif);
  font-size: 20px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 64px);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.timeline article {
  min-height: 250px;
  padding: 26px 28px 24px 0;
  border-right: 1px solid var(--line);
}

.timeline article + article {
  padding-left: 28px;
}

time {
  color: var(--oxblood);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h3 {
  margin: 16px 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
}

.timeline p,
.skill-grid p,
.note-layout p,
.footer p {
  color: var(--muted);
}

.skills {
  padding-right: clamp(18px, 4vw, 56px);
  padding-left: clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.48);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.skill-grid article {
  min-height: 190px;
  padding: 26px;
  background: rgba(251, 251, 248, 0.96);
}

.skill-grid h3 {
  color: var(--oxblood-dark);
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-list a {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.work-list span {
  color: var(--brass);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-list strong {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.25;
}

.work-list a:hover strong {
  color: var(--oxblood);
}

.notes {
  padding-right: clamp(18px, 4vw, 56px);
  padding-left: clamp(18px, 4vw, 56px);
}

.note-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.note-layout p {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.55;
}

.note-layout ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-layout li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 22px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin: 0 clamp(20px, 5vw, 72px);
  padding: 38px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-title {
  margin-bottom: 8px;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: 24px;
}

.footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .timeline,
  .skill-grid,
  .note-layout,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    display: none;
  }

  .brief {
    align-self: auto;
  }

  .timeline article,
  .timeline article + article {
    min-height: auto;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .work-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  main {
    padding: 0 16px;
  }

  .site-header {
    padding: 16px;
  }

  .section-frame {
    border-right: 0;
    border-left: 0;
  }

  .section-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .hero {
    padding: 44px 0 56px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 74px);
  }

  .brief,
  .skill-grid article {
    padding: 22px;
  }

  .skills,
  .notes {
    padding-right: 0;
    padding-left: 0;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer {
    margin: 0 16px;
  }
}
