:root {
  --paper: #f1ece1;
  --paper-2: #e4dccb;
  --ink: #1c1814;
  --muted: #5a5348;
  --rule: #cfc4ae;
  --olive: #3f4a32;
  --olive-2: #2a3222;
  --grass: #8a7a4a;
  --plate: #1c1814;
  --pad: clamp(1.1rem, 4.2vw, 3.2rem);
  --col: 70rem;
  --display: "Fraunces", "Iowan Old Style", serif;
  --body: "Source Serif 4", Georgia, serif;
  --ui: "Karla", "Avenir Next", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  caret-color: transparent;
}
input, textarea, select, [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
  caret-color: auto;
}
::selection { background: #c9d0b4; color: var(--ink); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-underline-offset: 0.16em; }
a:hover { color: var(--grass); }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }

.wrap {
  width: min(var(--col), calc(100% - 2 * var(--pad)));
  margin-left: auto;
  margin-right: auto;
}

.spine {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem var(--pad);
  background: var(--olive-2);
  color: #e8dfc8;
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.spine span:last-child { letter-spacing: 0.12em; font-weight: 500; }

.mast {
  padding: 1.35rem var(--pad) 1.15rem;
  border-bottom: 3px solid var(--olive-2);
  display: grid;
  gap: 0.85rem;
}
.word {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 0.2rem;
}
.word strong {
  font-family: var(--display);
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.word small {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mast nav a { color: var(--ink); text-decoration: none; }
.mast nav a[aria-current="page"],
.mast nav a:hover { color: var(--olive); }

.hero {
  position: relative;
  min-height: 78vh;
}
.hero img {
  width: 100%;
  height: 78vh;
  min-height: 24rem;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}
.hero-copy {
  position: absolute;
  left: var(--pad);
  bottom: var(--pad);
  max-width: 34rem;
  padding: 1.35rem 1.45rem 1.4rem;
  background: rgba(241, 236, 225, 0.94);
  border-left: 6px solid var(--olive);
}
.kicker {
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 0.55rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 0.65rem;
}
.lede { color: var(--muted); font-size: 1.05rem; }
.more {
  display: inline-flex;
  margin-top: 1rem;
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--olive);
  padding-bottom: 0.1rem;
  width: max-content;
}
.more:hover { color: var(--olive); }

.folio {
  padding: 2.6rem 0 1.4rem;
}
.folio h2 {
  font-size: 1.85rem;
  margin-bottom: 1.3rem;
}
.card {
  display: grid;
  grid-template-columns: 4.6rem 0.4fr 1fr;
  gap: 0 1.1rem;
  align-items: stretch;
  margin-bottom: 0.85rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.85rem;
}
.card .num {
  font-family: var(--display);
  font-size: 2.1rem;
  color: var(--olive);
  line-height: 1;
  padding-top: 0.2rem;
}
.card img {
  width: 100%;
  height: 100%;
  min-height: 8.5rem;
  max-height: 11rem;
  object-fit: cover;
}
.card h3 {
  font-size: 1.55rem;
  margin: 0.1rem 0 0.4rem;
}
.card p { color: var(--muted); }

.essay { padding: 2.5rem 0 3rem; }
.essay h1 { font-size: clamp(2rem, 4.2vw, 2.85rem); margin: 0.2rem 0 1rem; }
.essay .lead { font-size: 1.14rem; color: var(--muted); margin-bottom: 1.35rem; }
.essay img.wide {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  margin: 0 0 1.5rem;
}
.essay .copy { max-width: 42rem; }

.also { padding: 0 0 2.6rem; }
.also-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.also a {
  display: block;
  padding: 0.95rem 1rem;
  background: var(--paper-2);
  text-decoration: none;
  color: inherit;
  border-top: 3px solid var(--olive);
}
.also strong { display: block; font-family: var(--display); font-weight: 500; margin-top: 0.2rem; }

.site-foot {
  padding: 1.5rem 0 5.6rem;
  border-top: 3px solid var(--olive-2);
  font-family: var(--ui);
  font-size: 0.76rem;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0.7rem;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--olive); }
.site-foot p { color: var(--muted); }

.cookie {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.95rem var(--pad) 1.15rem;
  background: var(--plate);
  color: var(--paper);
}
.cookie.is-on { display: block; }
.cookie-inner {
  width: min(var(--col), 100%);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie p { margin: 0; max-width: 42rem; font-size: 0.88rem; }
.cookie a { color: #d4c6a4; }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie button {
  border: 1px solid transparent;
  padding: 0.45rem 0.85rem;
  background: var(--olive);
  color: #fff;
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 700;
}
.cookie button[data-cookie="essential"] {
  background: transparent;
  border-color: #8a7a6c;
  color: var(--paper);
}

.js [data-rise] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-rise].is-in,
[data-rise] { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero img { height: 22rem; min-height: 18rem; }
  .hero-copy { position: static; max-width: none; border-left: none; border-top: 6px solid var(--olive); }
  .card { grid-template-columns: 3.2rem 1fr; }
  .card img { grid-column: 1 / -1; max-height: 14rem; min-height: 12rem; }
  .also-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
}
