:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #1d1c1a;
  --muted: #5e5a53;
  --line: #e2ded5;
  --accent: #2f6b4f;
  --accent-ink: #ffffff;
  --accent-soft: #e4eee8;
  --shadow: 0 1px 2px rgba(29, 28, 26, .06), 0 8px 24px rgba(29, 28, 26, .06);
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --surface: #1f1f1d;
    --ink: #eeebe4;
    --muted: #a9a49a;
    --line: #34332f;
    --accent: #7cc4a0;
    --accent-ink: #10231a;
    --accent-soft: #1e3329;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 420px) { .top nav { gap: 14px; } .top nav a { font-size: 14px; } }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.015em; line-height: 1.15; }

.hero { padding: 88px 24px 56px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); max-width: 15ch; margin: 0 0 20px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { filter: brightness(1.05); }
@media (max-width: 600px) { .hero { padding: 48px 16px 32px; } }

.section { padding: 48px 24px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .section { padding: 36px 16px; } }
.section-h { font-size: 30px; margin: 0 0 28px; }
.section-h.small { font-size: 24px; margin: 48px 0 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease; }
.card:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-blank { display: grid; place-items: center; height: 100%; font-family: var(--serif); font-size: 22px; color: var(--muted); padding: 24px; text-align: center; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 24px; margin: 0 0 8px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-body p { margin: 0 0 12px; }
.meta { font-size: 13px; color: var(--muted); }
.card-role { font-size: 15px; color: var(--muted); border-left: 3px solid var(--accent-soft); padding-left: 12px; }
.more { margin-top: auto; font-weight: 600; text-decoration: none; }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 16px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }

.contact-links { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.contact-links li { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.contact-links .kind { width: 80px; color: var(--muted); font-size: 14px; }
.contact-links a { font-size: 19px; font-weight: 600; word-break: break-all; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }

/* Project page */
.project { padding-top: 32px; padding-bottom: 48px; }
.back { margin: 0 0 32px; font-size: 15px; }
.back a { text-decoration: none; }
.project h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 14px; max-width: 22ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px 40px; margin: 0 0 36px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.facts dd { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { background: var(--accent-soft); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 14px; }

.shot { margin: 0; }
.shot.lead { margin: 0 0 40px; }
.shot-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: zoom-in; box-shadow: var(--shadow); }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px 24px; align-items: start; }
.shot.phone .shot-btn { max-width: 240px; margin: 0 auto; border-radius: 22px; }
.shot.phone figcaption { text-align: center; }

.note { margin: 48px 0 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 18px 22px; max-width: 68ch; }
.note p { margin: 0 0 8px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.plain { list-style: none; padding: 0; margin: 8px 0 0; }
.next { margin: 48px 0 0; font-weight: 600; }
.next a { text-decoration: none; }

dialog#viewer { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1440px); max-height: 94vh; overflow: visible; }
dialog#viewer::backdrop { background: rgba(10, 10, 10, .82); }
dialog#viewer img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 10px; }
dialog#viewer.phone img { max-height: 86vh; }
.viewer-cap { color: #eee; text-align: center; font-size: 15px; margin: 10px 0 0; }
.viewer-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
@media (max-width: 600px) { .viewer-close { top: 6px; right: 6px; } }
