:root {
  --bg: #f6f1e8;
  --bg-2: #efe6d8;
  --ink: #241c16;
  --muted: #5e5348;
  --line: #e0d5c6;
  --green: #1b4334;
  --green-2: #123026;
  --cream: #fbf7f1;
  --photo: #e7f0ea;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header: 4.25rem;
}

/* Same-origin links fade the old page out and the new page in. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: 360ms ease both fade-out;
  }

  ::view-transition-new(root) {
    animation: 360ms ease both fade-in;
  }
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 0.9rem;
  z-index: 5;
}
.skip:focus { top: 0.6rem; }

.wrap { width: var(--wrap); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  height: var(--header);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav { display: flex; gap: 1.25rem; align-items: center; }
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.28em; }
.menu {
  display: none;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  background: var(--cream);
  font: inherit;
  padding: 0 0.9rem;
}

.hero, .band, .close { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero {
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
}
.hero-grid, .split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.kicker, .name {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.name { letter-spacing: 0.04em; text-transform: none; font-size: 1rem; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); max-width: 12ch; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 16ch; }
.lede { margin-top: 1.25rem; max-width: 38rem; font-size: 1.15rem; }
.fact { margin-top: 1rem; color: var(--muted); max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.button, .button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  border: 1px solid var(--green);
  font: inherit;
  cursor: pointer;
}
.button { background: var(--green); color: var(--cream); }
.button:hover { background: var(--green-2); }
.button:active { transform: translateY(1px); }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--bg-2); }

.frame {
  background: var(--photo);
  overflow: hidden;
  min-height: 280px;
}
.frame img {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  object-fit: cover;
  object-position: center 18%;
}
.frame.standing { background: #eef5ed; }
.frame.standing img { object-position: center 8%; }
.frame.work img { height: auto; object-fit: contain; background: var(--bg-2); }

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.path {
  display: grid;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--cream);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.path:hover { transform: translateY(-2px); }
.path img { width: 100%; height: 280px; object-fit: cover; object-position: center 15%; }
.path h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.path p { color: var(--muted); }

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.numbers strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
}
.numbers span { display: block; margin-top: 0.55rem; color: var(--muted); }

.stack { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.prose { display: grid; gap: 0.9rem; max-width: 40rem; }
.prose ul { margin: 0; padding-left: 1.1rem; }
.prose li + li { margin-top: 0.35rem }

.work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}
.work-grid .frame img { height: 100%; min-height: 240px; object-fit: cover; }

.tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.tools span {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 0.45rem 0.7rem;
  font-size: 0.95rem;
}

.quotes { display: grid; gap: 1rem; }
blockquote {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--cream);
  border: 1px solid var(--line);
}
blockquote p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
blockquote footer { margin-top: 0.8rem; color: var(--muted); font-size: 0.95rem; }

.close { background: var(--green); color: var(--cream); }
.close .fact, .close .kicker { color: color-mix(in srgb, var(--cream) 78%, transparent); }
.close .button { background: var(--cream); color: var(--green); border-color: var(--cream); }
.close .button:hover { background: white; }

.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.profiles { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.brief { display: grid; gap: 1rem; max-width: 36rem; }
.field { display: grid; gap: 0.35rem; }
.field span { font-size: 0.95rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.75rem 0.8rem;
  min-height: 48px;
}
textarea { min-height: 10rem; resize: vertical; }
.honeypot { position: absolute; left: -9999px; }
#turnstile { min-height: 72px; }
.error { color: #8a2b1d; min-height: 1.2em; font-size: 0.92rem; }
.error[data-error="form"]:not(:empty) {
  margin: 0 0 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid #8a2b1d;
  background: #f8ebe6;
}
.note {
  margin: 0;
  max-width: 36rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--green);
  background: #e7f3ec;
  color: var(--green-2);
}

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

@media (max-width: 800px) {
  :root { --wrap: min(1120px, calc(100% - 2rem)); }
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
  }
  .menu { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: fixed;
    z-index: 5;
    inset: var(--header) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem;
    gap: 0.25rem;
    overflow: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { min-height: 48px; display: flex; align-items: center; font-size: 1.35rem; }
  .hero-grid, .split, .paths, .numbers, .work-grid { grid-template-columns: 1fr; }
  .hero-copy { order: -1; }
  .button, .button-quiet { width: 100%; }
  .frame img, .path img { height: 62vw; min-height: 240px; }
  .frame.work img { height: auto; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .path:hover, .frame:hover img { transform: none; }
}
