:root {
  --paper: #ffffff;
  --ink: #0d0d0d;
  --mute: #8a8a8a;
  --line: #e6e6e6;
  --accent: #7d1626; /* the maroon from D.01 */
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --text: "Newsreader", Georgia, serif;
  --col: 680px;
  --wide: 1280px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

/* ── top bar ── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 15px;
}
.bar a { text-decoration: none; }
.bar-name { font-size: 28px; line-height: 1; }
/* ── go to ↓ ── */
.goto { position: relative; }
.goto-btn {
  display: flex; align-items: center; gap: 8px;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  font-size: 16px;
  color: var(--ink);
  background: none; border: 0; padding: 6px 0; cursor: pointer;
}
.goto-arrow { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.goto-btn:hover .goto-arrow { transform: translateY(3px); }
.goto.open .goto-arrow { transform: rotate(180deg); }
.goto-menu {
  position: absolute; right: 0; top: calc(100% + 12px);
  min-width: 240px;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.2,1), visibility 0s linear .4s;
}
.goto.open .goto-menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.2,1), visibility 0s;
}
.goto-menu a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 20px;
  font-size: 26px; line-height: 1;
  border-bottom: 1px solid var(--line);
  transition: background .2s, color .2s, padding .3s;
}
.goto-menu a:last-child { border-bottom: 0; }
.goto-menu a span { font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.goto-menu a:hover { background: var(--ink); color: var(--paper); padding-left: 28px; }
.goto-menu a:hover span { color: var(--paper); }

/* ── sections ── */
.section {
  padding: 18vh 24px 6vh;
  border-top: 1px solid var(--line);
}
.head {
  max-width: var(--wide);
  margin: 0 auto 72px;
}
.num {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.head h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(56px, 11vw, 148px);
  line-height: .9;
  letter-spacing: -.005em;
}
.sub {
  margin-top: 18px;
  font-style: italic;
  font-size: 22px;
  color: var(--mute);
}
.line {
  margin-top: 36px;
  max-width: 720px;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.4;
}
#book { padding-top: 22vh; border-top: 0; }
.ask {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.ask:hover { color: var(--accent); border-color: var(--accent); }

/* ── book ── */
.prose {
  max-width: var(--wide);
  margin: 0 auto;
}
.prose > * { max-width: 680px; }
.prose p + p { margin-top: 1.1em; }
.prose .lead { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.3; }
.prose .quote {
  margin-top: 2.2em;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
  font-style: italic;
}

.books {
  list-style: none;
  max-width: var(--wide);
  margin: 96px auto 0;
  border-top: 1px solid var(--ink);
}
.books .row {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 22px 10px;
  border-bottom: 1px solid var(--ink);
}
.b-num { font-family: var(--display); font-size: 22px; color: var(--accent); }
.b-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1;
}
.b-meta { font-style: italic; white-space: nowrap; }

.read-wrap { max-width: var(--wide); margin: 88px auto 0; }
.read {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 26px 28px;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(24px, 3.2vw, 40px); line-height: 1;
  text-decoration: none;
  transition: background .2s;
}
.read .b-meta { font-family: var(--text); text-transform: none; font-size: 18px; }
.read:hover { background: var(--accent); }
.req { margin-top: 18px; font-style: italic; color: var(--mute); }
.req a { color: var(--ink); }

/* ── works: paintings 2-up, drawings 3-up ── */
.works {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 72px 40px;
}
#drawings .works { grid-template-columns: repeat(4, 1fr); gap: 48px 24px; }
#drawings .works img { aspect-ratio: 1; }
.works figure { margin: 0; }
.works a { display: block; }
.works img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #f5f5f5;
  transition: opacity .2s;
}
.works a:hover img { opacity: .85; }
.works figcaption {
  margin-top: 14px;
  font-size: 17px;
  display: flex; gap: 14px; align-items: baseline;
}
.works figcaption b {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .08em;
  font-size: 13px;
  color: var(--accent);
}

/* ── sound ── */
.embeds {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px;
}
.embeds iframe { width: 100%; border: 0; border-radius: 12px; }
.links { display: flex; gap: 28px; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.links a { text-decoration: none; border-bottom: 2px solid var(--ink); }

/* ── projects ── */
.cards {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 40px;
}
.card { display: block; text-decoration: none; }
.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--ink);
}
.shot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: opacity .6s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.shot .alt { opacity: 0; }
.card:hover .shot img { transform: scale(1.03); }
.card:hover .shot .alt { opacity: 1; }
.card h3 {
  margin-top: 20px;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1;
}
.card p { margin-top: 10px; font-size: 17px; line-height: 1.5; }
.card .url {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  border-bottom: 2px solid var(--ink);
  transition: color .2s, border-color .2s;
}
.card:hover .url { color: var(--accent); border-color: var(--accent); }

/* ── contact ── */
.contact { padding-bottom: 22vh; }
.mail {
  display: block;
  max-width: var(--wide);
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(36px, 7.4vw, 96px);
  line-height: 1;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.mail:hover { color: var(--accent); }

.foot {
  display: flex; justify-content: space-between;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  color: var(--mute);
}
.foot a { text-decoration: none; }

/* ── phone ── */
@media (max-width: 1000px) and (min-width: 641px) {
  .cards { grid-template-columns: 1fr 1fr; }
  #drawings .works { grid-template-columns: repeat(2, 1fr); }
  .archive { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .bar { padding: 12px 16px; font-size: 13px; }
  .goto-menu { min-width: 220px; }
  .section, .foot { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 12vh; }
  .head { margin-bottom: 48px; }
  .works, #drawings .works { grid-template-columns: 1fr; gap: 56px; }
  .cards { grid-template-columns: 1fr; gap: 56px; }
  .books .row { grid-template-columns: 44px 1fr; }
  .read { padding: 22px 18px; }
}

/* ── soft reveal (added by main.js; off for reduced motion) ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── archive (see all) ── */
.see-wrap { max-width: var(--wide); margin: 88px auto 0; }
.see-all {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 26px;
  background: none; color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .06em;
  font-size: 20px; cursor: pointer;
  transition: background .2s, color .2s;
}
.see-all:hover { background: var(--ink); color: var(--paper); }
.see-all svg { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.see-all[aria-expanded="true"] svg { transform: rotate(180deg); }
.archive {
  max-width: var(--wide);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.archive[hidden] { display: none; }
.archive a { display: block; aspect-ratio: 1; background: #f3f3f3; overflow: hidden; }
.archive img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.archive a:hover img { transform: scale(1.05); }

/* ── lightbox ── */
.lb {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.97);
  opacity: 0; transition: opacity .25s ease;
}
.lb.on { opacity: 1; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: calc(100vw - 160px); text-align: left; }
.lb img { display: block; max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; margin: 0 auto; }
.lb figcaption { margin-top: 14px; display: flex; gap: 14px; align-items: baseline; font-size: 17px; }
.lb figcaption b { font-family: var(--display); font-weight: 400; letter-spacing: .08em; font-size: 13px; color: var(--accent); }
.lb button {
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font-family: var(--display); font-size: 34px; line-height: 1; padding: 16px;
  transition: color .2s;
}
.lb button:hover { color: var(--accent); }
.lb-x { position: absolute; top: 10px; right: 14px; font-size: 44px !important; }
.lb-prev, .lb-next { flex: 0 0 auto; }

@media (max-width: 640px) {
  .archive { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .see-all { font-size: 17px; padding: 16px 20px; }
  .lb figure { max-width: 100vw; padding: 0 12px; }
  .lb-prev, .lb-next { position: absolute; bottom: 10px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb img { max-height: calc(100vh - 170px); }
}

/* ── synopsis toggle ── */
.syn-btn { width: 100%; border: 0; cursor: pointer; text-align: left; }
.syn-btn svg { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.syn-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.syn-wrap + .prose { margin-top: 48px; }
.syn-wrap + .prose + .read-wrap { margin-top: 24px; }
.prose[hidden] { display: none; }
