@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #efede8;
  --paper-2: #f5f4f0;
  --ink: #222120;
  --muted: #74716b;
  --rule: rgba(0, 0, 0, .14);
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.5 "EB Garamond", Garamond, "Times New Roman", serif;
  font-kerning: normal; font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, p, figure { margin: 0; }

.small {
  font-weight: 500; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  font-variant-numeric: lining-nums;
}
.muted { color: var(--muted); }

/* ---------- top bar */
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding: 18px var(--gutter) 14px; background: rgba(239, 237, 232, .94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.mark { font-weight: 500; font-size: 15px; letter-spacing: .42em; margin-right: -.42em; }
.bar nav { display: flex; gap: clamp(14px, 3vw, 34px); flex-wrap: wrap; }
.bar nav a, .cover-nav a {
  font-weight: 500; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.bar nav a[aria-current="page"], .bar nav a:hover, .cover-nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- cover */
.home { background: var(--paper-2); }
.cover { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); min-height: 100vh; min-height: 100svh; }
.cover-text {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px var(--gutter) 40px; min-width: 0;
}
.cover-text .small { color: var(--muted); }
.cover-title h1 {
  font-weight: 500; font-size: clamp(40px, 5.4vw, 78px); line-height: 1;
  letter-spacing: .2em; margin-right: -.2em;
}
.author { font-size: clamp(18px, 1.6vw, 22px); margin-top: 14px; }
.announcement { margin-top: 18px; font-size: 15px; font-style: italic; letter-spacing: .08em; }
.lede { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.32; max-width: 22em; }
.intro { margin: 40px 0; max-width: 26em; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; }
.intro p + p { margin-top: .8em; }
.cover-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.cover-image { display: flex; align-items: center; justify-content: center; padding: 32px clamp(20px, 4vw, 56px); background: #231f20; }
.cover-image img { width: auto; max-width: 100%; max-height: calc(100svh - 64px); object-fit: contain; }

@media (max-width: 820px) {
  .cover { grid-template-columns: 1fr; }
  .cover-image { order: -1; height: auto; padding: 18px; }
  .cover-image img { width: auto; max-height: 72svh; }
  .cover-text { padding-top: 32px; gap: 40px; }
  .intro { margin: 0; }
}

/* ---------- sequences */
.seq { max-width: min(1100px, calc((100vh - 150px) * 1.416 + 2 * var(--gutter))); margin: 0 auto; padding: 56px var(--gutter) 40px; }
.seq-nb { max-width: min(900px, calc((100vh - 150px) * 1.333 + 2 * var(--gutter))); }
.seq-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.spread { margin: 0 0 clamp(56px, 9vw, 120px); }
.spread .open {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(0,0,0,.07), 0 6px 18px rgba(0,0,0,.07);
}
.spread .open img { width: 100%; }
.spread figcaption {
  margin-top: 14px; text-align: center; color: var(--muted);
  font-size: 13px; letter-spacing: .08em; font-variant-numeric: lining-nums;
}

/* ---------- about */
.about { max-width: 1180px; margin: 0 auto; padding: 72px var(--gutter) 40px; }
.row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(32px, 6vw, 96px);
  padding: 0 0 72px; margin-bottom: 72px; border-bottom: 1px solid var(--rule);
}
.text p { max-width: 34em; }
.text p + p { margin-top: .75em; }
.facts p { font-variant-numeric: lining-nums; }
.col-l .small { color: var(--muted); padding-top: 6px; }
.name { font-weight: 400; font-size: 27px; line-height: 1.2; }

.objects { padding-bottom: 72px; margin-bottom: 72px; border-bottom: 1px solid var(--rule); }
.objects h2 { color: var(--muted); margin-bottom: 48px; }
.pair { display: flex; justify-content: center; align-items: flex-start; gap: clamp(36px, 8vw, 110px); flex-wrap: wrap; }
.obj > a { height: 361px; display: flex; align-items: flex-end; }
.obj img { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 22px rgba(0,0,0,.08); }
.book-obj img { width: 255px; }
.nb-obj img { width: 180px; outline: 1px solid var(--rule); }
.obj figcaption { margin-top: 18px; display: flex; flex-direction: column; font-size: 16px; line-height: 1.4; max-width: 255px; font-variant-numeric: lining-nums; }
.obj figcaption .muted { margin-top: 8px; font-size: 14.5px; }
.obj figcaption .companion { margin-top: 12px; font-size: 14.5px; }
.note { margin-top: 44px; font-style: italic; font-size: 15px; color: var(--muted); text-align: center; }

.contact { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 48px; align-items: end; padding-bottom: 40px; }
.contact-text p { margin-top: 18px; }
.contact .links { margin-top: 28px; }
.contact .links a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }

@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; padding-bottom: 56px; margin-bottom: 56px; }
  .contact { grid-template-columns: 1fr; }
  .obj > a { height: auto; }
  .about { padding-top: 48px; }
}

/* ---------- footer */
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 28px var(--gutter) 36px; border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--muted); font-variant-numeric: lining-nums;
}

/* ---------- viewer */
.viewer {
  position: fixed; inset: 0; z-index: 20; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 24px 76px;
}
.viewer[hidden] { display: none; }
.vframe { max-width: 100%; max-height: 100%; display: flex; min-height: 0; }
.vframe img {
  max-width: 100%; max-height: calc(100vh - 100px); max-height: calc(100svh - 100px);
  width: auto; height: auto; object-fit: contain;
  box-shadow: 0 1px 2px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.08);
}
.vframe.single {
  width: 100%; overflow: hidden; display: block;
  box-shadow: 0 1px 2px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.08);
}
.vframe.single img {
  width: 200%; max-width: none; max-height: none; box-shadow: none;
  transform: translateX(var(--shift, 0%)); transition: transform .25s ease;
}
.vbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  display: flex; align-items: center; justify-content: center; gap: 28px; color: var(--muted);
}
.vbar button {
  font: inherit; color: var(--muted); background: none; border: 0; padding: 8px 10px; cursor: pointer;
  font-size: 20px;
}
.vbar button:hover, .vbar button:focus-visible { color: var(--ink); }
.vbar .close { position: absolute; right: var(--gutter); font-weight: 500; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.vpage { min-width: 6em; text-align: center; font-size: 14px; letter-spacing: .08em; font-variant-numeric: lining-nums; }
body.locked { overflow: hidden; }

@media (max-width: 700px) {
  .bar { padding: 14px var(--gutter) 10px; row-gap: 8px; }
  .mark { font-size: 13px; }
  .bar nav { gap: 14px; flex-wrap: nowrap; }
  .bar nav a { font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
  .seq { padding-top: 36px; }
  .seq-head { margin-bottom: 36px; }
  .viewer { padding: 56px 16px 72px; }
  .vbar .close { position: fixed; top: 14px; right: 16px; }
  .vbar { gap: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .viewer img { transition: opacity .18s ease; }
}

.lede-stack .lede { font-size: clamp(19px, 1.6vw, 23px); }
.lede-stack .lede + .lede { margin-top: .7em; }

/* ---------- book orders ---------- */
.order-main { max-width: 1120px; margin: 0 auto; padding: clamp(48px, 7vw, 90px) var(--gutter) 80px; }
.order-kicker { color: var(--muted); margin-bottom: 20px; }
.order-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.order-image { margin: 0; }
.order-image img { width: 100%; max-width: 380px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 22px rgba(0,0,0,.08); }
.order-image figcaption { color: var(--muted); margin-top: 15px; font-size: 14px; }
.order-copy h1 { font-weight: 400; font-size: clamp(42px, 5.5vw, 72px); line-height: 1.03; letter-spacing: .08em; }
.order-copy .order-author { font-size: 22px; margin: 12px 0 8px; }
.order-forthcoming { margin-bottom: 30px; color: var(--muted); font-style: italic; font-size: 19px; }
.order-copy p { max-width: 32em; }
.order-copy p + p { margin-top: 15px; }
.order-specs { margin: 30px 0; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.order-specs p { font-size: 16px; }
.order-status { padding: 24px 0; }
.order-status .small { display: block; margin-bottom: 12px; }
.order-status p { font-size: 19px; }
.order-contact { display: inline-block; margin-top: 20px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.jotform-slot { margin-top: 24px; }
@media (max-width: 820px) { .order-grid { grid-template-columns: 1fr; } .order-image img { max-width: 300px; } }
@media (max-width: 700px) { .cover-nav { gap: 16px; } .bar nav { flex-wrap: wrap; } }
