:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-deep: #e9e2d6;
  --ink: #17211e;
  --ink-soft: #46514d;
  --line: #c9c1b4;
  --accent: #aa3f2c;
  --accent-dark: #7c2b1e;
  --white: #fffdf8;
  --max-width: 76rem;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.section,
.contact-section,
.site-footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  width: max-content;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header nav,
.header-links,
.site-footer div {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a,
.header-links a,
.site-footer a {
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover,
.header-links a:hover,
.site-footer a:hover {
  color: var(--accent-dark);
}

.header-links {
  justify-self: end;
}

.hero {
  min-height: 44rem;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 0.65fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding-block: clamp(5rem, 11vw, 9rem);
}

.eyebrow,
.note-label,
.project-meta {
  margin: 0 0 1.25rem;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-dark);
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.75rem;
  font-size: clamp(3.3rem, 8vw, 6.9rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.hero-intro {
  max-width: 41rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--ink);
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
}

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

.button-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-secondary:hover {
  color: var(--white);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.focus-note {
  position: relative;
  align-self: end;
  padding: 1.75rem 0 0 1.5rem;
  border-top: 1px solid var(--ink);
}

.focus-note::before {
  position: absolute;
  top: -0.3rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  content: "";
}

.focus-note p:not(.note-label) {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
}

.focus-note a {
  font-size: 0.82rem;
  font-weight: 700;
}

.section {
  padding-block: clamp(5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.45fr 1.4fr 0.8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading > p:last-child {
  color: var(--ink-soft);
}

.project {
  display: grid;
  grid-template-columns: 0.2fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: 3rem;
  border-top: 1px solid var(--ink);
}

.project:last-child {
  border-bottom: 1px solid var(--ink);
}

.project-index,
.principle-number {
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
}

.project-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.project-title-row h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.project-title-row h3 a {
  text-decoration: none;
}

.project-title-row h3 a:hover {
  color: var(--accent-dark);
}

.project-meta {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ink-soft);
}

.project-summary {
  max-width: 48rem;
  margin-bottom: 2.5rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0 0 2.5rem;
}

.project-details div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.project-details dt {
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-details dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.text-link {
  font-size: 0.84rem;
  font-weight: 750;
}

.section-heading.compact {
  grid-template-columns: 0.45fr 2.2fr;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.principles li {
  min-height: 20rem;
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.principles li:first-child {
  padding-left: 0;
}

.principles li:last-child {
  padding-right: 0;
  border-right: 0;
}

.principles h3 {
  margin: 4rem 0 1rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.principles p {
  color: var(--ink-soft);
}

.background-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 10vw, 9rem);
}

.background-copy h2 {
  max-width: 12ch;
}

.background-detail {
  padding-top: 2rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.background-detail p {
  margin-bottom: 1.5rem;
}

.background-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
}

.contact-section {
  padding-block: clamp(5rem, 12vw, 10rem);
  text-align: center;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 15ch;
  margin-inline: auto;
}

.contact-section > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 500;
}

.site-footer {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

@media (max-width: 56rem) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .focus-note {
    max-width: 32rem;
    align-self: auto;
  }

  .section-heading,
  .section-heading.compact {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-heading > p:last-child {
    max-width: 36rem;
  }

  .project-details {
    grid-template-columns: 1fr;
  }

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

  .principles li,
  .principles li:first-child,
  .principles li:last-child {
    min-height: 0;
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principles li:last-child {
    border-bottom: 0;
  }

  .principles h3 {
    margin-top: 2rem;
  }

  .background-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 38rem) {
  .site-header,
  .hero,
  .section,
  .contact-section,
  .site-footer {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .site-header {
    min-height: 4.5rem;
    gap: 1rem;
  }

  .header-links {
    gap: 0.85rem;
  }

  .hero {
    padding-block: 4.5rem 5rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .project {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-title-row {
    display: block;
  }

  .project-meta {
    display: block;
    margin-top: 0.75rem;
  }

  .site-footer {
    padding-block: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header nav,
  .hero-actions,
  .contact-section,
  .site-footer {
    display: none;
  }

  body {
    background: white;
  }

  .hero {
    min-height: auto;
  }
}
