:root {
  color-scheme: light;
  --paper: #fffdf9;
  --ivory: #f4f0e7;
  --petrol: #173b3a;
  --ink: #202728;
  --muted: #4d5853;
  --line: #d8d6cb;
  --terra: #8b5037;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Aptos, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.64 var(--sans); }
a { color: inherit; text-underline-offset: .27em; }
a:focus-visible { outline: 3px solid var(--terra); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 .7em; font-family: var(--serif); font-weight: 400; line-height: 1.11; color: var(--petrol); }
h1 { max-width: 17ch; font-size: clamp(2.55rem, 6vw, 5.7rem); letter-spacing: -.05em; }
h1 em { font-weight: 400; }
h2 { font-size: clamp(1.9rem, 4vw, 3.25rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.55rem, 2.4vw, 2rem); letter-spacing: -.034em; }
.wrap { width: min(100% - 5rem, 82rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: .6rem auto auto .6rem; transform: translateY(-160%); padding: .6rem 1rem; background: white; color: var(--petrol); }
.skip:focus { transform: translateY(0); }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1.8rem 3rem; }
.brand { display: block; flex: 0 0 13.25rem; }
.brand img { width: 100%; }
.primary-nav { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: .4rem clamp(.7rem, 2.3vw, 2rem); }
.primary-nav a { padding: .5rem 0; font-size: .96rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--petrol); border-color: var(--petrol); }
.primary-nav a:last-child { padding: .42rem .85rem; border: 1px solid var(--petrol); }
.primary-nav a:last-child:hover, .primary-nav a:last-child[aria-current="page"] { background: var(--petrol); color: white; }

.hero { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); padding-block: 2.2rem; min-height: 35rem; }
.hero-copy { align-self: center; padding: clamp(1.4rem, 4.6vw, 4rem) clamp(1.3rem, 4vw, 4rem) clamp(1.4rem, 4.6vw, 4rem) 0; }
.hero h1 { margin-bottom: .34em; }
.hero-visual { min-height: 29rem; background: var(--petrol) url("/assets/architecture.webp") center 55% / cover no-repeat; }
.kicker { margin-bottom: 1rem; color: var(--terra); font-size: .85rem; font-weight: 650; letter-spacing: .115em; text-transform: uppercase; }
.lead { max-width: 37rem; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.35rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.3rem; margin-top: 1.8rem; }
.button { display: inline-block; width: fit-content; padding: .8rem 1.18rem; background: var(--petrol); color: #fff; text-decoration: none; font-weight: 650; }
.button:hover { background: #275453; }
.text-link { display: inline-block; width: fit-content; color: var(--petrol); font-weight: 650; }
.text-link:hover { color: var(--terra); }

.section { padding-block: clamp(3rem, 6vw, 5.8rem); }
.section-intro { display: flex; justify-content: space-between; align-items: start; gap: .6rem 2.4rem; margin-bottom: 1.7rem; }
.section-intro h2 { margin: 0; }
.section-intro p { max-width: 27rem; color: var(--muted); margin: 0; }
.grid { display: grid; gap: 1.2rem; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .profile { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--petrol); padding: clamp(1.35rem, 2.65vw, 2.2rem); }
.card { display: flex; flex-direction: column; }
.card h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.card p, .profile p:not(.kicker) { color: var(--muted); }
.card p:last-child, .profile p:last-child { margin-bottom: 0; }
.card a { margin-top: auto; }

.feature { background: var(--petrol); color: #fffdf9; }
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1.4rem 4rem; padding-block: clamp(2.8rem, 6vw, 5.3rem); }
.feature h2 { margin: 0; color: #fffdf9; }
.feature .kicker { color: #e3ba9e; }
.feature .text-link { color: #fffdf9; }
.feature .text-link:hover { color: #e3ba9e; }
.feature a:focus-visible { outline-color: #e3ba9e; }
.page-hero { background: var(--ivory); padding-block: clamp(3rem, 8vw, 7.25rem); }
.page-hero h1 { max-width: 22ch; font-size: clamp(2.6rem, 6vw, 5.15rem); margin-bottom: .35em; }
.page-hero .lead { max-width: 44rem; }
.page-hero .button { margin-top: .6rem; }
.reading { max-width: 68rem; }
.steps { border-top: 1px solid var(--line); }
.steps article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: .65rem 2.1rem; align-items: baseline; border-bottom: 1px solid var(--line); padding-block: 1.7rem; }
.steps article h2, .steps article h3 { grid-row: span 2; margin: 0; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.steps article p { margin: 0; max-width: 41rem; color: var(--muted); }
.steps article .text-link { grid-column: 2; }
.closing { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.closing h2 { margin: 0; }
.team-band { background: var(--ivory); }
.profile img { width: 100%; max-width: 14rem; aspect-ratio: 1 / 1.1; object-fit: cover; margin-bottom: 1.5rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--ivory); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; column-gap: 2rem; padding-block: 2rem; }
.footer-brand { color: var(--petrol); text-decoration: none; font: 1.7rem var(--serif); }
.footer-inner p { margin: .12rem 0 .6rem; color: var(--muted); }
.footer-inner nav { display: flex; gap: .45rem 1.2rem; flex-wrap: wrap; align-content: center; font-size: .94rem; }

@media (max-width: 59rem) {
  .wrap { width: min(100% - 3rem, 82rem); }
  .header-inner { padding-block: .9rem; }
  .brand { flex-basis: 11rem; }
  .hero { min-height: 30rem; }
  .hero-visual { min-height: 25rem; }
}

@media (max-width: 47rem) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .brand { flex-basis: auto; width: 10.5rem; }
  .primary-nav { justify-content: start; }
  .primary-nav a { font-size: .87rem; }
  .hero { grid-template-columns: 1fr; padding-top: .6rem; min-height: 0; }
  .hero-copy { padding-inline-end: 0; }
  .hero-visual { min-height: clamp(13rem, 60vw, 22rem); }
  .section-intro, .feature-inner, .steps article { display: block; }
  .section-intro h2, .feature h2, .steps article h2, .steps article h3 { margin-bottom: .6rem; }
  .grid.three, .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps article .text-link { margin-top: .5rem; }
}

@media (max-width: 34rem) {
  .wrap { width: calc(100% - 2rem); }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .primary-nav a:last-child { padding-inline: .5rem; }
}
