:root {
  --paper: #ffffff;
  --snow: #ffffff;
  --ink: #141414;
  --mist: #4a4a4a;
  --line: #e6e6e6;
  --beam: #141414;
  --beam-hover: #000000;
  --on-beam: #ffffff;
  --danger: #b42318;
  --ok: #0f7a4a;
  --ring: #141414;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 4.2vw, 3.5rem);
  --lh-tight: 1.12;
  --lh-head: 1.25;
  --lh-body: 1.65;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --radius-ctrl: 6px;
  --wrap: 72rem;
  --nav-h: 4rem;
}

html.dark {
  --paper: #111111;
  --snow: #111111;
  --ink: #f4f4f4;
  --mist: #b0b0b0;
  --line: #2c2c2c;
  --beam: #f4f4f4;
  --beam-hover: #ffffff;
  --on-beam: #111111;
  --danger: #f97066;
  --ok: #3dd68c;
  --ring: #f4f4f4;
}

html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.font-display { font-family: Syne, Outfit, ui-sans-serif, sans-serif; }

.skip {
  position: absolute;
  left: var(--space-4);
  top: -3rem;
  z-index: 50;
  background: var(--beam);
  color: var(--on-beam);
  padding: var(--space-2) var(--space-4);
}
.skip:focus { top: var(--space-2); }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .wrap { width: min(100% - 4rem, var(--wrap)); }
}

.site-nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  font-family: Syne, Outfit, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.mark { width: 1.75rem; height: 1.75rem; color: var(--ink); }
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-link {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}
.nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--ink);
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  border-radius: var(--radius-ctrl);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }
::selection { background: var(--ink); color: var(--paper); }
input, textarea { caret-color: var(--ink); }
.menu-btn { display: inline-flex; }
html.dark .theme-moon { display: none; }
html:not(.dark) .theme-sun { display: none; }
[x-cloak] { display: none !important; }
.flush-top { padding-top: 0; }
@media (min-width: 768px) {
  .menu-btn { display: none; }
}

.mobile-panel {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: var(--space-4) 0 var(--space-6);
}
.mobile-panel.open { display: block; }
@media (min-width: 768px) {
  .mobile-panel { display: none !important; }
}
.mobile-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-6);
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-ctrl);
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--beam);
  color: var(--on-beam);
  border-color: var(--beam);
}
.btn-primary:hover { background: var(--beam-hover); border-color: var(--beam-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.hero {
  display: grid;
  gap: var(--space-8);
  padding: var(--space-6) 0 var(--space-10);
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-12);
    align-items: center;
    padding: var(--space-8) 0 var(--space-12);
  }
}
.hero h1 {
  font-family: Syne, Outfit, sans-serif;
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
  max-width: 16ch;
}
.hero .lead {
  margin: 0 0 var(--space-8);
  max-width: 34ch;
  font-size: var(--fs-lead);
  color: var(--mist);
  line-height: 1.45;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-visual {
  margin: 0;
  aspect-ratio: 16 / 10;
  max-height: 16rem;
  overflow: hidden;
  background: var(--line);
}
@media (min-width: 1024px) {
  .hero-visual {
    aspect-ratio: auto;
    max-height: none;
    height: min(32rem, calc(100svh - var(--nav-h) - 6rem));
  }
}
.photo img,
.hero-visual img,
.frame img,
.bleed img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual img { object-position: 70% 45%; }

.section { padding: var(--space-16) 0; }
@media (min-width: 768px) {
  .section { padding: var(--space-24) 0; }
}
.section h2,
.close h2 {
  font-family: Syne, Outfit, sans-serif;
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: var(--lh-head);
  margin: 0 0 var(--space-4);
}
.section .intro,
.close p {
  margin: 0 0 var(--space-10);
  max-width: 42ch;
  color: var(--mist);
}

.defs { border-top: 1px solid var(--line); }
.def {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .def {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--space-8);
    padding: var(--space-8) 0;
    align-items: baseline;
  }
}
.def h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-family: Syne, Outfit, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.def p { margin: 0; max-width: 52ch; color: var(--mist); }

.tiles {
  display: grid;
  border-top: 1px solid var(--line);
}
.tile {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--line);
}
.tile h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-family: Syne, Outfit, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.tile p { margin: 0; max-width: 36ch; color: var(--mist); }
@media (min-width: 768px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
  .tile {
    padding: var(--space-10);
  }
  .tile:nth-child(odd) {
    padding-left: 0;
    padding-right: var(--space-10);
    border-right: 1px solid var(--line);
  }
  .tile:nth-child(even) {
    padding-right: 0;
    padding-left: var(--space-10);
  }
}

.bleed {
  margin: 0;
  background: var(--paper);
}
.bleed picture, .bleed img { display: block; width: 100%; height: min(62vw, 26rem); object-fit: cover; }
.caption {
  width: min(100% - 2rem, var(--wrap));
  margin: var(--space-4) auto 0;
  color: var(--mist);
  font-size: var(--fs-sm);
}

.close {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .close { padding: var(--space-24) 0; }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-8) 0;
  font-size: var(--fs-sm);
  color: var(--mist);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  justify-content: space-between;
  align-items: center;
}
.footer-row a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.footer-row a:hover { color: var(--ink); }
.footer-row p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: 0;
}

.field { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.field label { font-weight: 500; }
.field .req { color: var(--mist); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  background: var(--snow);
  color: var(--ink);
  font: inherit;
  border-radius: var(--radius-ctrl);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  border-color: var(--ink);
}
.field .err { color: var(--danger); font-size: var(--fs-sm); margin: 0; }
.field .err:empty { display: none; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.alert {
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-ctrl);
}
.alert-ok { color: var(--ok); border-color: var(--ok); }
.alert-bad { color: var(--danger); border-color: var(--danger); }

.page-head { padding: var(--space-10) 0 var(--space-6); }
.page-head h1 {
  font-family: Syne, Outfit, sans-serif;
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  max-width: 18ch;
}
.page-head p { margin: 0; max-width: 42ch; color: var(--mist); font-size: var(--fs-lead); }

.split {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: var(--space-16); }
}
.frame { overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; margin: 0; }
.need-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-8);
}
.need-list h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-h3);
  font-family: Syne, Outfit, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.need-list p { margin: 0; color: var(--mist); max-width: 42ch; }

.aside-title,
.section h2.aside-title {
  font-family: Syne, Outfit, sans-serif;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: var(--lh-head);
  margin: 0 0 var(--space-4);
}
.aside-note {
  margin: var(--space-6) 0 0;
  color: var(--mist);
  font-size: var(--fs-sm);
  max-width: 36ch;
}
.mail-direct {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}
.mail-direct:hover { opacity: 0.7; }

.prose { max-width: 62ch; }
.prose p { margin: 0 0 var(--space-4); color: var(--mist); }
.prose a { color: var(--ink); }
.prose h2 {
  font-family: Syne, Outfit, sans-serif;
  font-size: var(--fs-h3);
  font-weight: 700;
  margin: var(--space-10) 0 var(--space-3);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:active { transform: none; }
}

@media (max-width: 540px) {
  .hero-visual { max-height: 14rem; }
  .page-head h1,
  .hero h1 { max-width: none; }
}
