*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fbfaf6;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e4e0d6;
  --field: #fff;
  --mark: #ffe98a;
  --box: #f2efe6;
  --bad: #a3261b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161615;
    --text: #ebe9e3;
    --muted: #9a9892;
    --rule: #2f2e2a;
    --field: #1f1f1d;
    --mark: #5a4d12;
    --box: #1f1e1b;
    --bad: #f08a7e;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin-bottom: 14px; }
.muted { color: var(--muted); }
mark { background: var(--mark); color: var(--text); padding: 0 4px; }

.wide { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.page { max-width: 680px; margin: 0 auto; padding: 0 24px; }

header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 30px 0; font-size: 17px; }
header .name { font-weight: 600; text-decoration: none; font-size: 19px; }
header nav { display: flex; gap: 22px; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover, header nav a[aria-current] { color: var(--text); }

/* home */
.hero { padding-top: 64px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -0.02em; max-width: 900px; margin-bottom: 22px; }
.lede { font-size: clamp(20px, 2.2vw, 24px); max-width: 640px; color: var(--muted); }
.tally { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; font-size: 20px; }

.shots { display: flex; justify-content: center; align-items: flex-start; margin: 64px auto 0; max-width: 1180px; padding: 0 24px; overflow: hidden; padding-bottom: 40px; }
.shots img { width: 36%; min-width: 0; border: 1px solid var(--rule); border-radius: 6px; background: #fff; box-shadow: 0 14px 40px rgba(0,0,0,0.12); }
.shots img:nth-child(1) { transform: rotate(-3deg) translateY(18px); margin-right: -4%; }
.shots img:nth-child(2) { position: relative; z-index: 1; }
.shots img:nth-child(3) { transform: rotate(3deg) translateY(24px); margin-left: -4%; }
.shots-cap { font-size: 15px; color: var(--muted); text-align: center; margin-top: 8px; }

.rows { margin-top: 72px; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--rule); }
.row h2, .door-box h2 { font-size: 30px; line-height: 1.1; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.row img { width: 100%; max-height: 440px; object-fit: cover; object-position: top; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.more { padding: 8px 0 0; }

.door-box { margin: 80px 0 0; background: var(--box); border-radius: 8px; padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.bio { max-width: 640px; padding: 80px 0 16px; font-size: 22px; }
.btn { display: inline-block; margin-top: 8px; padding: 10px 18px; background: var(--text); color: var(--bg); text-decoration: none; border-radius: 4px; font-size: 19px; }
.btn:hover { opacity: 0.85; }

footer { padding: 48px 0 56px; font-size: 16px; color: var(--muted); }
footer a { color: var(--muted); }

/* the form */
form.door label { display: block; font-size: 16px; margin: 0 0 5px; }
form.door input { width: 100%; font: inherit; font-size: 18px; padding: 9px 12px; margin-bottom: 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--field); color: var(--text); }
form.door input:focus { outline: 2px solid var(--text); outline-offset: -1px; }
form.door button { font: inherit; font-size: 18px; padding: 8px 20px; border: 0; border-radius: 4px; background: var(--text); color: var(--bg); cursor: pointer; }
form.door button:disabled { opacity: 0.6; cursor: default; }
#msg { font-size: 16px; margin-top: 12px; min-height: 1.4em; }
#msg.bad { color: var(--bad); }

/* article pages */
.page h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 20px; }
.page h2 { font-size: 26px; font-weight: 600; margin: 56px 0 12px; letter-spacing: -0.01em; }
ul.plain { margin: 0 0 18px 1.1em; }
ul.plain li { margin-bottom: 6px; }
figure { margin: 32px -60px 36px; }
figure img { display: block; width: 100%; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; padding: 0 60px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair figcaption { padding: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 56px 0; }
.page form.door { margin: 28px 0 8px; max-width: 420px; }

@media (max-width: 800px) {
  body { font-size: 18px; }
  header { padding: 20px 0; font-size: 16px; }
  header nav { gap: 14px; }
  .hero { padding-top: 28px; }
  .shots { margin-top: 40px; padding: 0 8px; }
  .shots img { width: 46%; }
  .shots img:nth-child(3) { display: none; }
  .shots img:nth-child(1) { margin-right: -6%; }
  .shots-cap { margin-top: 0; }
  .rows { margin-top: 40px; }
  .row { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .row h2, .door-box h2 { font-size: 26px; }
  .door-box { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; margin-top: 48px; }
  .bio { padding-top: 56px; font-size: 20px; }
  figure { margin: 28px 0 32px; }
  figcaption { padding: 0; }
  .pair { grid-template-columns: 1fr; }
}

/* v5 home */
.hero2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; padding-top: 56px; }
.hero2 h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.03; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 22px; }
.hero2 .lede { margin-bottom: 26px; }
.hero2 .door-box { display: block; margin: 8px 0 0; }
.hero2 .door-box h2 { font-size: 26px; }
.small { font-size: 16px; margin: 4px 0 0; }

.log { margin-top: 96px; max-width: 760px; }
.log h2, .fit h2 { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.log ul { list-style: none; margin-top: 20px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15px; }
.log li { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--rule); }
.log li span:first-child { color: var(--text); }
.log li span:last-child { color: var(--muted); }
.log li span:last-child::before { content: "\2192  "; }

.tomb { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; max-width: 420px; margin: 88px auto 0; padding: 34px 28px 28px; border: 1px solid var(--text); outline: 1px solid var(--text); outline-offset: 5px; text-decoration: none; color: var(--text); }
.tomb:hover .tomb-link { text-decoration: underline; }
.tomb-co { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.tomb-line { font-size: 16px; font-style: italic; color: var(--muted); }
.tomb-buyer { margin: 4px 0; font-size: 24px; font-weight: 600; }
.tomb-buyer .bar { display: inline-block; width: 190px; height: 26px; background: var(--text); vertical-align: middle; }
.tomb-rule { width: 60px; border-top: 1px solid var(--rule); margin: 12px 0 6px; }
.tomb-note { font-size: 17px; }
.tomb-link { font-size: 16px; color: var(--muted); margin-top: 6px; }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 96px; }
.fit h2 { margin-bottom: 14px; }
.closer { margin-top: 18px; font-size: 24px; font-weight: 600; }

@media (max-width: 800px) {
  .hero2 { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .log { margin-top: 64px; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  .tomb { margin-top: 56px; }
  .fit { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
  .closer { font-size: 21px; }
}

.runby { font-size: 16px; color: var(--muted); font-style: italic; margin-top: 14px; }
.rows-head { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; max-width: 760px; margin-bottom: 16px; }
