/* All the Tokens We Have Left
   Editorial pages: the book, press and inquiries, and the not-found page.
   Shared type and shell tokens come from site.css. */

.editorial-page {
  --ed-edge: clamp(23px, 6vw, 104px);
  --ed-ink: #172132;
  --ed-paper: #eeeee8;
  background: var(--ed-paper);
  color: var(--ed-ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
.editorial-page * { box-sizing: border-box; }
.editorial-page :is(h1, h2, p, figure, dl, dd, ul, blockquote) { margin: 0; }
.editorial-page :is(h1, h2) { font: 400 clamp(48px, 5vw, 80px)/.98 var(--serif); letter-spacing: var(--track-heading); }
.editorial-page h1 { font-size: clamp(76px, 8.4vw, 152px); line-height: .91; letter-spacing: var(--track-display); }
.editorial-page a { color: inherit; text-decoration: none; }
.editorial-page :is(a, button, summary):focus-visible { outline: 2px solid #9e742d; outline-offset: 5px; }
.editorial-page img { display: block; }

.ed-action, .ed-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 17px; font: 600 13px/1.3 var(--sans); }
.ed-action { border: 1px solid currentColor; padding: 2px 20px; }
.ed-link { border-bottom: 1px solid currentColor; min-height: 34px; }
.ed-action:hover, .ed-link:hover, .press-mail:hover { opacity: .72; }
.ed-group { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ed-meta { font: 600 12px/1.5 var(--sans); }

/* The book */
.ed-book-hero { display: grid; grid-template-columns: 46% 54%; min-height: clamp(600px, 53vw, 810px); }
.ed-book-hero > div { padding: clamp(35px, 4.7vw, 80px) 4vw clamp(45px, 5vw, 84px) var(--ed-edge); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 40px; }
.ed-book-hero h1 { font-size: clamp(67px, 8.2vw, 128px); }
.ed-book-hero .ed-meta { margin-bottom: auto; }
.ed-book-hero figure { position: relative; overflow: hidden; background: #060918; }
.ed-book-hero figure img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.ed-synopsis { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 1.15fr); gap: 11%; padding: clamp(70px, 8vw, 127px) var(--ed-edge); background: #111c2c; color: #f2f1eb; }
.ed-synopsis h2 { font-size: clamp(54px, 6.15vw, 96px); }
.ed-synopsis p { font: clamp(21px, 1.86vw, 30px)/1.44 var(--serif); max-width: 36ch; }
.ed-synopsis p + p { margin-top: 1em; }
.ed-synopsis .ed-group { margin-top: 28px; }
.ed-facts { display: grid; gap: 0; margin-top: 44px !important; max-width: 36em; border-top: 1px solid #f2f1eb40; }
.ed-facts div { display: grid; grid-template-columns: 34% 1fr; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2f1eb40; }
.ed-facts dt { font: 600 11px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #b9c4d6; }
.ed-facts dd { font: 17px/1.4 var(--serif); }
.ed-facts a { border-bottom: 1px solid currentColor; }
.ed-book-scene { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(330px, 34vw, 535px); display: flex; align-items: flex-end; padding: clamp(30px, 4.4vw, 74px) var(--ed-edge); color: #f6f6f2; background: #060b1b; }
.ed-book-scene img { position: absolute; z-index: -2; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center 40%; }
.ed-book-scene::before { position: absolute; content: ""; z-index: -1; inset: 0; background: linear-gradient(0deg, #050d1ce8, transparent 78%); }
.ed-book-scene p { font: clamp(20px, 2.1vw, 33px)/1.35 var(--serif); max-width: 41ch; }
.ed-book-scene .ed-link { margin-top: 14px; }

/* Press and inquiries */
.ed-press { --ed-paper: #f0ebe2; --ed-ink: #28221f; }
.ed-press-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6%; align-items: end; padding: clamp(45px, 5vw, 84px) var(--ed-edge) clamp(55px, 6vw, 100px); min-height: 600px; }
.ed-press-top h1 { font-size: clamp(72px, 9.6vw, 150px); }
.ed-press-top .ed-intro { font: clamp(21px, 1.8vw, 29px)/1.42 var(--serif); margin: 24px 0; max-width: 31ch; }
.ed-press-photo { height: clamp(340px, 33vw, 530px); max-width: 460px; width: 100%; position: relative; justify-self: end; }
.ed-press-photo::before { content: ""; position: absolute; right: 10%; top: -3.6%; width: 94%; height: 97%; border: 1px solid #b4a595; }
.ed-press-photo img { width: 100%; height: 100%; position: relative; object-fit: cover; object-position: center 56%; }
.ed-press-block { padding: clamp(60px, 7vw, 114px) var(--ed-edge); display: grid; grid-template-columns: .85fr 1.3fr; gap: 10%; border-top: 1px solid #bdb0a2; }
.ed-press-block h2 { font-size: clamp(43px, 4.2vw, 71px); }
.ed-press-block.dark { background: #251f20; color: #f4efe7; border-top: none; }
.ed-press-block p { font: clamp(20px, 1.65vw, 26px)/1.45 var(--serif); max-width: 41ch; }
.ed-press-block p + p { margin-top: 14px; }
.ed-press-list { padding: 0; list-style: none; margin-top: 22px !important; }
.ed-press-list li { border-top: 1px solid #a899835c; }
.ed-press-list li:last-child { border-bottom: 1px solid #a899835c; }
.ed-press-list a { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 50px; font-size: 14px; }
.ed-press-list a:hover, .press-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.ed-press-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 15px; margin-top: 24px !important; }
.ed-press-grid dt { font: 600 12px/1.5 var(--sans); color: #6d5d4e; }
.ed-press-grid dd { font: clamp(14px, 1.08vw, 17px)/1.6 var(--sans); overflow-wrap: anywhere; }
.ed-press-block p.ed-caution { margin-top: 28px; padding-top: 18px; border-top: 1px solid #bdb0a2; font: 14px/1.55 var(--sans); max-width: 60ch; color: #5b4d41; }
.ed-copy-details { margin-top: 24px; border-block: 1px solid #a8998380; }
.ed-copy-details summary { display: flex; cursor: pointer; align-items: center; justify-content: space-between; padding: 14px 0; font-size: 14px; list-style: none; }
.ed-copy-details summary::-webkit-details-marker { display: none; }
.ed-copy-details summary::after { content: "+"; font-size: 20px; }
.ed-copy-details[open] summary::after { content: "\2212"; }
.ed-copy-details p { font: 15px/1.5 var(--sans); padding-bottom: 12px; max-width: 62ch; }
.ed-copy-details p + p { margin-top: 0; }
.ed-copy-details .ed-copy-label { font: 600 11px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #cdbfae; padding: 10px 0 6px; }
.ed-copy-details .ed-copy-text { font: 15px/1.5 var(--sans); padding-bottom: 12px; }
.ed-copy-details code { display: block; font: 13px/1.6 var(--mono); overflow-wrap: anywhere; padding-bottom: 12px; }
.ed-copy-details button { color: inherit; font: 600 12px var(--sans); background: transparent; border: 1px solid currentColor; border-radius: 0; padding: 9px 12px; margin-bottom: 16px; cursor: pointer; }
.ed-copy-details button:hover { opacity: .72; }
.ed-copy-status { min-height: 1.5em; font: 12px/1.5 var(--sans) !important; padding: 0 0 12px !important; }

/* Not found */
.ed-lost { background: #090e19; color: #f1f2ed; }
.ed-lost-frame { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(650px, 60vw, 930px); padding: clamp(70px, 8vw, 130px) var(--ed-edge); }
.ed-lost-frame img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); object-position: 65% 45%; }
.ed-lost-frame::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #050b18fa 3%, #050b18b8 33%, #050b1826 67%), linear-gradient(0deg, #080e1a88, transparent 40%); }
.ed-lost-frame h1 { font-size: clamp(68px, 8.8vw, 147px); margin: 25px 0; }
.ed-lost-frame p:not(.ed-meta) { margin: 10px 0 32px; font: 23px/1.4 var(--serif); }

@media (max-width: 760px) {
  .editorial-page h1 br, .editorial-page h2 br { display: none; }
  .ed-book-hero { display: flex; flex-direction: column-reverse; min-height: 0; }
  .ed-book-hero figure { height: 320px; }
  .ed-book-hero > div { gap: 22px; }
  .ed-synopsis, .ed-press-block { grid-template-columns: 1fr; gap: 30px; }
  .ed-book-scene { min-height: 415px; }
  .ed-press-top { grid-template-columns: 1fr; gap: 36px; align-items: start; min-height: 0; }
  .ed-press-photo { height: 300px; width: 82%; justify-self: end; }
  .ed-press-grid { grid-template-columns: 1fr; gap: 16px; }
  .ed-lost-frame { min-height: 690px; }
  .ed-lost-frame img { object-position: 40% center; }
  .ed-lost-frame::before { background: linear-gradient(90deg, #050b18de, #050b182b), linear-gradient(0deg, #080e1a77, transparent); }
}
