/* The Praetorian Press. A gallery for daily reporting. */

/* To use the licensed reference faces (Lanya Beige, Dx Grafik), put the .woff2 files in /fonts
   and uncomment these; the stacks below already list them first.
@font-face { font-family: "Lanya Beige"; src: url("/fonts/LanyaBeige.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Dx Grafik"; src: url("/fonts/DxGrafik.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
*/

:root {
  --wall: #ecedeb;
  --paper: #f7f7f5;
  --stone: #c9cac6;
  --ash: #5d5e5a;
  --graphite: #2b2b2a;
  --ink: #111111;
  --clay: #b4532f;
  --clay-text: #9c4424;
  --fired: #d98a63;
  --line: rgba(17, 17, 17, .14);

  --display: "Lanya Beige", "Gloock", Georgia, serif;
  --ital: "Lanya Beige Italic", "Petrona", Georgia, serif;
  --sans: "Dx Grafik", "Hanken Grotesk", system-ui, sans-serif;

  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hang-shadow: 0 34px 44px -26px rgba(17, 17, 17, .5), 0 3px 6px -2px rgba(17, 17, 17, .18);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ash) var(--wall); }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--clay); color: #fff; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
em { font-family: var(--ital); font-style: italic; font-weight: 800; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- top bar ---------- */
.bar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gut);
}
.is-home .bar { position: absolute; inset: 0 0 auto 0; }
.mark { display: flex; align-items: baseline; gap: .32em; text-decoration: none; line-height: 1; white-space: nowrap; }
.mark__the { font: 500 .78rem/1 var(--sans); letter-spacing: .02em; align-self: center; color: var(--ash); }
.mark__word { font: 400 clamp(1.35rem, 2.2vw, 1.7rem)/1 var(--display); letter-spacing: -.01em; }
.mark__ital { font: italic 800 clamp(1.35rem, 2.2vw, 1.7rem)/1 var(--ital); color: var(--clay); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); font-size: .92rem; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--clay-text); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 0;
  background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn .ico { transition: transform .45s var(--ease); }
.btn:hover { background: var(--clay); }
.btn:hover .ico { transform: translateX(4px); }
.btn--clay { background: var(--clay); }
.btn--clay:hover { background: var(--ink); }
.btn--light { background: var(--wall); color: var(--ink); }
.btn--light:hover { background: var(--fired); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.link .ico { transition: transform .45s var(--ease); }
.link:hover { color: var(--clay-text); }
.link:hover .ico { transform: translateX(4px); }
.sample { display: inline-block; padding: 1px 7px; border: 1px solid var(--clay); color: var(--clay-text); font-size: .72rem; font-weight: 600; line-height: 1.5; }

/* ---------- frames and wall labels ---------- */
.frame { display: block; background: var(--ink); padding: clamp(6px, .7vw, 10px); box-shadow: var(--hang-shadow); }
.frame__mat { display: block; background: var(--paper); padding: 11%; }
.frame__mat--dark { background: var(--graphite); }
.print { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.label { display: grid; gap: 6px; }
.label__maker { font-weight: 600; font-size: .8rem; }
.label__title { font: 400 1.28rem/1.18 var(--display); letter-spacing: -.005em; }
.label__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.label__title a:hover { background-size: 100% 1px; }
.label__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--ash); font-size: .8rem; }
.label__no { font-size: .74rem; color: var(--ash); font-variant-numeric: tabular-nums; }
.label .btn { margin-top: 12px; justify-self: start; }

/* ---------- home: the room ---------- */
.room {
  position: relative; min-height: max(600px, min(92svh, 900px));
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; gap: 40px clamp(32px, 5vw, 80px);
  padding: 130px var(--gut) 136px;
  background: var(--wall); isolation: isolate;
}
/* the gallery floor */
.room::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: var(--stone); z-index: -1; }
.room__wall { min-width: 0; padding-bottom: 8px; }
.room__title { font: 400 clamp(2.7rem, 5.4vw, 5.6rem)/.98 var(--display); letter-spacing: -.025em; max-width: 13ch; }
.room__title a { text-decoration: none; }
.room__title a:hover { color: var(--clay-text); }
.room__dek { margin-top: 26px; max-width: 44ch; font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.5; color: var(--graphite); }
.room__show { display: flex; align-items: flex-end; justify-content: flex-end; gap: clamp(20px, 2.4vw, 36px); }
.room__frame { flex: 0 1 clamp(240px, 24vw, 360px); min-width: 0; }
.room__label {
  flex: 0 0 260px; padding: 22px 22px 24px; background: var(--paper);
  box-shadow: 0 1px 0 rgba(17,17,17,.06), 0 24px 40px -28px rgba(17, 17, 17, .45);
}
.room__now { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .78rem; font-weight: 600; color: var(--clay-text); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 0 rgba(180, 83, 47, .5); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(180, 83, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(180, 83, 47, 0); } }
.room__label .label__title { font-size: 1.15rem; }

/* entrance: one authored moment, content already visible without JS */
.js .room__title, .js .room__dek, .js .room__show { animation: rise 1.4s var(--ease) both; }
.js .room__dek { animation-delay: .12s; }
.js .room__show { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } }

/* ---------- home: the hall (recent pieces hung on a wall) ---------- */
.hall { position: relative; padding: clamp(72px, 10vh, 120px) 0 0; background: var(--wall); }
.hall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: var(--stone); z-index: 0; }
.hall__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px 32px; padding: 0 var(--gut); }
.hall__title { font: 400 clamp(2.2rem, 4.4vw, 4rem)/1 var(--display); letter-spacing: -.02em; }
.hall__title em { color: var(--clay); }
.hang {
  position: relative; z-index: 1;
  display: flex; gap: clamp(40px, 6vw, 96px); align-items: flex-start;
  padding: 64px max(var(--gut), calc(50vw - 170px)) 150px var(--gut);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  perspective: 1500px; scrollbar-width: thin;
}
.hang:focus-visible { outline-offset: -6px; }
.work--hung { flex: 0 0 clamp(230px, 24vw, 340px); scroll-snap-align: center; transform-style: preserve-3d; }
.work--hung > * { transform: rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)); transition: transform .5s var(--ease); }
.work--hung .label { margin-top: 26px; }
.hang__end {
  flex: 0 0 220px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  font: 400 1.6rem/1.1 var(--display); text-decoration: none; scroll-snap-align: center;
}
.hang__end:hover { color: var(--clay-text); }

/* tilt on hover (set by site.js) */
.work .frame, .room__frame { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.work:hover .frame { box-shadow: 0 44px 54px -30px rgba(17,17,17,.55), 0 4px 8px -2px rgba(17,17,17,.2); }

/* ---------- home: rooms ---------- */
.rooms { padding: clamp(72px, 12vh, 140px) var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 32px; background: var(--paper); }
.rooms__title { font: 400 clamp(2.2rem, 4.4vw, 4rem)/1 var(--display); letter-spacing: -.02em; }
.rooms__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rooms__list a {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px;
  padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .5s var(--ease), color .3s var(--ease);
}
.rooms__name { font: 400 clamp(1.7rem, 3vw, 2.6rem)/1.05 var(--display); letter-spacing: -.015em; }
.rooms__n { font-variant-numeric: tabular-nums; color: var(--ash); font-size: .9rem; }
.rooms__list a:hover { padding-left: 18px; color: var(--clay-text); }

/* ---------- statement (dark room) ---------- */
.statement {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: center;
  padding: clamp(80px, 14vh, 160px) var(--gut); background: var(--ink); color: var(--wall);
}
.statement__frame, .about__frame { margin: 0; max-width: 380px; }
.statement__frame .frame__mat, .about__frame .frame__mat { box-shadow: 0 0 0 clamp(6px, .7vw, 10px) #000, 0 40px 60px -30px rgba(0,0,0,.8); }
.statement__frame figcaption, .about__frame figcaption { margin-top: 18px; font-size: .8rem; color: #a6a7a3; }
.statement__title { font: 400 clamp(2rem, 3.8vw, 3.6rem)/1.06 var(--display); letter-spacing: -.02em; max-width: 20ch; }
.statement__title em { color: var(--fired); }
.statement__copy p { margin: 28px 0 32px; max-width: 54ch; color: #c4c5c1; font-size: 1.08rem; }

/* ---------- subscribe ---------- */
.invite { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px 72px; align-items: end; padding: clamp(80px, 13vh, 150px) var(--gut); }
.invite__title { font: 400 clamp(2.4rem, 5vw, 4.8rem)/1 var(--display); letter-spacing: -.025em; }
.invite__title em { color: var(--clay); }
.invite__text { margin-top: 22px; max-width: 46ch; color: var(--graphite); }
.invite__label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.invite__field { display: flex; gap: 0; box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper); }
.invite__field input { flex: 1; min-width: 0; padding: 0 18px; min-height: 56px; border: 0; background: transparent; font-size: 1.05rem; }
.invite__field input::placeholder { color: #7a7b77; }
.invite__field input:focus { outline: none; }
.invite__field:focus-within { box-shadow: inset 0 0 0 2px var(--clay); }
.invite__field .btn { min-height: 56px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--wall); padding: 56px var(--gut) 40px; }
.foot__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.foot__name { font: 400 clamp(2.6rem, 7vw, 6rem)/.95 var(--display); letter-spacing: -.03em; }
.foot__name em { color: var(--fired); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { color: var(--fired); }
.foot__small { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(236, 237, 235, .16); color: #a6a7a3; font-size: .82rem; }

/* ---------- page heads ---------- */
.page-head { padding: clamp(48px, 9vh, 110px) var(--gut) 32px; }
.page-head__title { font: 400 clamp(3rem, 8vw, 6rem)/.95 var(--display); letter-spacing: -.03em; }
.page-head__title em { color: var(--clay); }
.page-head__text { margin-top: 22px; max-width: 52ch; font-size: 1.1rem; color: var(--graphite); }
.page-head__text a { color: var(--clay-text); }

/* ---------- collection ---------- */
.tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; margin-top: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border: 0; background: transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; font-weight: 500;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); min-width: min(320px, 100%); }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--clay); }
.search input { border: 0; background: transparent; flex: 1; min-width: 0; min-height: 42px; }
.search input:focus { outline: none; }
.collection { padding: 24px var(--gut) clamp(80px, 12vh, 140px); }
.month + .month { margin-top: 88px; }
.month__name { display: flex; align-items: center; gap: 20px; font: 400 1.6rem/1 var(--display); margin-bottom: 44px; }
.month__name::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 72px clamp(28px, 4vw, 64px); }
.grid .label { margin-top: 24px; }
.empty { padding: 40px 0; font-size: 1.1rem; color: var(--ash); }

/* ---------- a piece ---------- */
.piece__head {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: end;
  padding: clamp(40px, 7vh, 90px) var(--gut) clamp(48px, 8vh, 96px);
}
.piece__frame { max-width: 380px; }
.piece__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .86rem; color: var(--ash); }
.piece__meta a { color: var(--clay-text); font-weight: 600; text-decoration: none; }
.piece__meta a:hover { text-decoration: underline; }
.piece__title { margin-top: 22px; font: 400 clamp(2.5rem, 5.4vw, 5.2rem)/1 var(--display); letter-spacing: -.025em; max-width: 17ch; }
.piece__dek { margin-top: 24px; max-width: 48ch; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--graphite); }
.piece__by { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-weight: 500; }
.piece__by a { text-decoration: none; box-shadow: inset 0 -1.5px 0 var(--clay); }
.piece__no { color: var(--ash); font-size: .82rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.piece__body { background: var(--paper); padding: clamp(48px, 8vh, 96px) var(--gut); }
.piece__body > * { max-width: 760px; margin-left: auto; margin-right: auto; }

.prose { font-size: 1.125rem; line-height: 1.72; color: #1d1d1c; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.1em; font: 400 1.9rem/1.12 var(--display); letter-spacing: -.012em; }
.prose h3 { margin-top: 1.8em; font-size: 1.2rem; font-weight: 650; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--clay-text); text-decoration-color: rgba(156, 68, 36, .4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--clay); }
.prose blockquote { margin: 2em 0; padding: 0 0 0 1.4em; position: relative; }
.prose blockquote::before { content: ""; position: absolute; left: 0; top: .45em; width: .55em; height: .55em; background: var(--clay); }
.prose blockquote p { font: italic 600 clamp(1.4rem, 2.2vw, 1.75rem)/1.3 var(--ital); color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 12px; font-style: normal; font-size: .9rem; color: var(--ash); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose .lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.prose__fig img { width: 100%; }
.prose__fig figcaption { margin-top: 10px; font-size: .85rem; color: var(--ash); }
.todo { background: #f3d9cc; padding: 2px 6px; }
.sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ash); }
.sources h2 { font: 600 .85rem/1 var(--sans); color: var(--ink); margin-bottom: 10px; }
.sources a { color: var(--clay-text); }
.piece__tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--wall); }
.pager__link { display: grid; gap: 10px; padding: clamp(32px, 6vh, 56px) var(--gut); text-decoration: none; transition: background-color .4s var(--ease); }
.pager__link--next { text-align: right; box-shadow: inset 1px 0 0 rgba(236, 237, 235, .16); }
.pager__link:hover { background: var(--clay); }
.pager__dir { font-size: .8rem; font-weight: 600; color: #a6a7a3; }
.pager__link:hover .pager__dir { color: var(--wall); }
.pager__title { font: 400 clamp(1.25rem, 2.2vw, 1.9rem)/1.12 var(--display); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); padding: clamp(48px, 9vh, 110px) var(--gut); align-items: start; }
.about__frame .frame__mat { box-shadow: 0 0 0 clamp(6px, .7vw, 10px) var(--ink), var(--hang-shadow); }
.about__frame figcaption { color: var(--ash); }
.about__title { font: 400 clamp(3rem, 7vw, 6rem)/.95 var(--display); letter-spacing: -.03em; }
.about__title em { color: var(--clay); }
.about__role { margin: 18px 0 40px; color: var(--ash); font-weight: 500; }
.about .prose { max-width: 62ch; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .room { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 110px; padding-bottom: 72px; }
  .room::after { height: 72px; }
  .room__show { justify-content: flex-start; flex-wrap: wrap; }
  .room__frame { flex-basis: min(62vw, 300px); }
  .rooms, .statement, .invite, .about, .piece__head { grid-template-columns: 1fr; }
  .statement__frame { max-width: 240px; }
  .about__frame, .piece__frame { max-width: 260px; }
  .foot__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bar { flex-wrap: wrap; gap: 10px 20px; padding-top: 16px; }
  .nav { width: 100%; justify-content: space-between; font-size: .9rem; }
  .room { padding-top: 120px; }
  .room__label { flex: 1 1 100%; }
  .hang { padding-left: var(--gut); padding-right: var(--gut); }
  .work--hung { flex-basis: 74vw; }
  .invite__field { flex-direction: column; box-shadow: none; background: transparent; gap: 10px; }
  .invite__field input { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper); }
  .invite__field .btn { justify-content: space-between; }
  .pager { grid-template-columns: 1fr; }
  .pager__link--next { box-shadow: inset 0 1px 0 rgba(236, 237, 235, .16); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
