@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/HTxwL3I-JCGChYJ8VI-L6OO_au7B46r2z3bWuQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/HTxwL3I-JCGChYJ8VI-L6OO_au7B47b1z3bWuQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/static/fonts/HTxwL3I-JCGChYJ8VI-L6OO_au7B45L0z3bWuQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Courier Prime';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/u-4n0q2lgwslOqpF_6gQ8kELawRZWMf6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/u-450q2lgwslOqpF_6gQ8kELawFpWg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/u-4k0q2lgwslOqpF_6gQ8kELY7pMT-Dfqw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik Dirt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/DtVmJxC7WLEj1uIXEWAdilss6w.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --paper: #f1eae0;
  --ink: #171514;
  --red: #8f191f;
  --line: #a09082;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, sans-serif;
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #ad3637; outline-offset: 4px; }
h1, h2, .wordmark, .feature strong {
  font-family: Impact, 'Arial Black', system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.06;
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); margin: 0 0 .25em; }
h2 { font-size: clamp(1.35rem, 3vw, 2.25rem); margin: 0 0 .6em; }
h3 { margin: 0; }
button, input, select, textarea { font: inherit; }
button, .secondary {
  display: inline-block;
  padding: .58rem .88rem;
  border: 1px solid var(--red);
  background: var(--red);
  color: white;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}
.secondary { background: transparent; color: inherit; border-color: currentColor; }
button:hover, .secondary:hover { filter: brightness(1.2); }
header, footer { padding: .85rem clamp(1rem, 5vw, 5rem); }
header, header nav, .admin-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; }
header .wordmark { font-size: 1.45rem; text-decoration: none; }
header nav a { font-weight: 750; text-decoration: none; }
header nav a[aria-current] { border-bottom: 3px solid var(--red); }
footer { background: var(--ink); color: var(--paper); display: flex; gap: 1.4rem; }
.wrap { max-width: 91rem; margin: auto; padding: clamp(1rem, 4vw, 3rem); }
.hero {
  min-height: clamp(28rem, 53vw, 44rem);
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.slides, .slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slides { z-index: -2; }
.slides img { object-fit: cover; object-position: center 45%; filter: grayscale(100%) contrast(1.14); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#171514ef,#17151427); z-index: -1; }
.hero-copy { padding: clamp(1rem, 6vw, 6rem); }
.hero h1 { font-size: clamp(4rem, 14vw, 12rem); max-width: 6ch; text-shadow: .045em .04em 0 #571417; transform: rotate(-3deg); }
.hero p { font-family: 'Courier New', monospace; font-weight: bold; }
.slide-controls { position: absolute; right: 1rem; bottom: 1rem; display: flex; gap: .35rem; }
.slide-controls button { background: var(--ink); border-color: var(--paper); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.public .features:has(.feature) { grid-template-columns: 1.2fr 1fr; }
.feature {
  display: block;
  aspect-ratio: 1.5;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.feature img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.feature strong { position: absolute; left: .7rem; bottom: .7rem; padding: .44rem .65rem; background: var(--red); font-size: clamp(1.2rem, 4vw, 3.3rem); }
.feature em { display: block; font: italic .66em Georgia, serif; text-transform: none; }
.bookline { border-bottom: 1px solid var(--line); padding: .6rem 0; margin: 0 0 1.3rem; }
.bookline a { font-weight: bold; }
.stripe { background: var(--red); padding: .5rem .75rem; color: var(--paper); }
.posts, .gallery, .media-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.posts article { border-bottom: 1px solid var(--line); padding-bottom: .7rem; }
.posts time { font-size: .82rem; }
.posts img, .media-grid img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.gallery figure { margin: 0; }
.cover { width: 100%; max-height: 66vh; object-fit: contain; margin: 1rem 0; }
.reading { max-width: 75ch; }
.prose { font: 1.15rem/1.75 Georgia, serif; white-space: pre-wrap; }
.backoffice { display: grid; grid-template-columns: 15rem minmax(0,1fr); min-height: 100vh; }
.sidebar { background: var(--ink); color: var(--paper); padding: 1.4rem 0; }
.sidebar .wordmark { font-size: 2.7rem; display: inline-block; margin: 0 1.4rem; padding-bottom: .2em; border-bottom: .12em solid var(--red); transform: rotate(-7deg); text-decoration: none; }
.sidebar p, .sidebar form { margin-left: 1.4rem; }
.sidebar nav a { display: block; padding: .72rem 1.4rem; font-weight: 750; text-decoration: none; }
.sidebar nav a[aria-current] { background: var(--red); }
.admin-main { padding: clamp(1rem,3vw,3rem); min-width: 0; }
.admin-header { border-bottom: 2px solid var(--ink); padding-bottom: .75rem; margin-bottom: 1rem; }
.admin-header h1 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); }
.panel { border: 1px solid var(--line); padding: 1rem; margin-bottom: 1rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1rem; }
.media-grid a { text-decoration: none; }
.media-grid span { display: block; padding: .3rem .2rem; overflow-wrap: anywhere; }
label { display: block; font-weight: 700; margin: .65rem 0; }
input:not([type=checkbox]), select, textarea {
  display: block; width: 100%; min-width: 0; padding: .5rem;
  border: 1px solid var(--line); background: #fffaf3; color: var(--ink);
}
textarea { resize: vertical; }
form > button { margin: .3rem .2rem .3rem 0; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tabs a { border: 1px solid var(--line); padding: .35rem .65rem; text-decoration: none; }
.tabs a[aria-current] { background: var(--red); color: white; }
.slide-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .7rem; align-items: end; }
.slide-row > div { margin-bottom: .65rem; }
.article-list { list-style: none; padding: 0; margin: .5rem 0; }
.article-list li { display: flex; justify-content: space-between; gap: .7rem; border-bottom: 1px solid var(--line); padding: .35rem 0; }
.status { border-left: 4px solid var(--red); padding: .5rem; background: #fffaf3; }
.totals strong { display: block; font-size: 2.8rem; line-height: 1.12; }
.timeline { display: grid; gap: .25rem; max-height: 17rem; overflow: auto; }
.timeline > div { display: grid; gap: .5rem; grid-template-columns: minmax(0,1fr) 9rem; }
meter { width: 100%; accent-color: var(--red); }
meter::-webkit-meter-optimum-value { background: var(--red); }
meter::-moz-meter-bar { background: var(--red); }
.login { grid-column: 1/-1; width: min(100% - 2rem, 28rem); margin: 12vh auto auto; }

@media (max-width: 760px) {
  .backoffice { display: block; }
  .sidebar { padding: .8rem; }
  .sidebar .wordmark { font-size: 1.6rem; margin: 0; }
  .sidebar .wordmark br { display: none; }
  .sidebar p, .sidebar form { margin-left: 0; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar nav a { padding: .4rem .55rem; }
  .features, .public .features:has(.feature), .split { grid-template-columns: 1fr; }
  .posts, .gallery, .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .slide-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .posts, .gallery { grid-template-columns: 1fr; }
}

.trend { display: block; width: 100%; max-height: 15rem; }
.chart-dates { display: flex; justify-content: space-between; font-size: .85rem; }
.admin-main details { margin-top: .6rem; }


/* Photographs sit on charcoal. Reading and editing surfaces share a warm grey. */
:root { --paper:#eeeae5; --ink:#211f1e; --red:#b73718; --line:#bcb6ae; }
body { background:var(--paper); }
h1,h2,.admin-header h1 { font:italic 400 clamp(2rem,4vw,3.6rem)/1.1 Georgia,serif; text-transform:none; }
h2 { font-size:clamp(1.6rem,3vw,2.6rem); }
.public > header,.stage { background:#171717; color:#faf6ef; }
.wordmark img { width:clamp(8rem,16vw,13rem); }
.mobile-nav { display:none; }
.stage .slides { position:relative; inset:auto; height:auto; z-index:auto; }
.stage .slides img { position:static; width:100%; height:min(54vw,68vh); object-fit:contain; filter:none; }
.stage .slide-controls { position:static; align-items:center; justify-content:center; padding:.7rem 3vw; }
.slide-controls button { border:0; background:transparent; color:white; }
.thumbs { display:flex; overflow-x:auto; gap:.45rem; min-width:0; }
.thumbs button { flex:none; width:clamp(3.5rem,8vw,7rem); padding:0 0 4px; border-bottom:3px solid transparent; }
.thumbs button[aria-pressed=true] { border-color:#ff6439; }
.thumbs img { width:100%; aspect-ratio:16/9; object-fit:cover; }
.homepage-editorial { max-width:72rem; padding-block:2rem 4rem; }
.film-title { margin:1.8rem 0 .2rem; }
.film-title a,.bookline a { text-decoration:none; }
.credit { font-size:.8rem; letter-spacing:.09em; margin:0 0 2rem; }
.stripe { background:none; color:inherit; padding:.55rem 0; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.sidebar { background:#e4dfd8; color:var(--ink); border-right:1px solid var(--line); }
.sidebar .wordmark { border:0; transform:none; }
.sidebar .wordmark img,.login-signature { width:9rem; filter:brightness(0); }
.sidebar nav a[aria-current] { background:#d6cfc7; border-left:4px solid var(--red); }
.panel,.admin-header { border-color:var(--line); }
.media-layout,.analytics-breakdown { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(15rem,1fr); gap:1.25rem; }
.media-browser { padding:1.3rem; background:#202020; color:#f8f5ef; min-width:0; }
.media-toolbar,.media-filters { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; margin-bottom:1rem; }
.action { background:var(--red); color:white; padding:.5rem .8rem; text-decoration:none; }
.media-grid { grid-template-columns:repeat(auto-fit,minmax(min(11rem,100%),1fr)); }
.media-grid a[aria-current] img { outline:3px solid #ff7149; outline-offset:-3px; }
.media-browser h2 { margin-top:2rem; }
.sequence li { padding:.4rem; border-bottom:1px solid #555; }
.sequence small { float:right; }
.photo-inspector { padding:0 .6rem; }
.photo-inspector .cover { max-height:13rem; }
.section-ranks li { align-items:center; }
.section-ranks meter { max-width:45%; }
@media(max-width:760px) {
  .media-layout,.analytics-breakdown { grid-template-columns:minmax(0,1fr); }
  .public header .desktop-nav { display:none; }
  .mobile-nav { display:block; position:relative; }
  .mobile-nav summary { cursor:pointer; }
  .mobile-nav nav { position:absolute; z-index:3; right:0; display:grid; min-width:10rem; padding:1rem; background:#171717; }
  .stage .slide-controls { padding-inline:.25rem; }
  .stage .slide-controls > button { padding:.6rem; }
  .sidebar nav a[aria-current] { border:0; box-shadow:inset 0 -3px var(--red); }
}

.gallery-return { display:none; }
.slide-editor { padding:0; list-style:none; counter-reset:slide; }
.slide-editor li { counter-increment:slide; display:grid; grid-template-columns:auto 6rem 1fr 9rem; align-items:center; gap:1rem; padding:1rem 0; border-bottom:1px solid var(--line); }
.slide-editor li::before { content:counter(slide,decimal-leading-zero); font-variant-numeric:tabular-nums; }
.slide-editor img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.slide-editor button:disabled { opacity:.4; cursor:default; }
@media(max-width:760px) {
  .media-layout:not(.editing) .photo-inspector,.media-layout.editing .media-browser { display:none; }
  .gallery-return { display:inline-block; padding:.75rem 0; }
  .slide-editor li { grid-template-columns:auto 5rem minmax(0,1fr); }
  .slide-editor li > form { grid-column:2/-1; }
}

.public > header { padding-block:.55rem; }
.public header nav a { font-size:.9rem; font-weight:550; }
.stage .slides { touch-action:pan-y pinch-zoom; }
.photo-caption,.stage .slide-controls { max-width:76rem; margin:auto; }
.photo-caption { display:flex; gap:.8rem; align-items:baseline; padding:1rem 3vw .3rem; font-size:.86rem; }
.photo-caption [data-index] { font-variant-numeric:tabular-nums; color:#c5beb8; white-space:nowrap; }
.photo-caption a { margin-left:auto; text-decoration:none; }
.slide-controls button { min-height:44px; }
.film-entry,.journal-index a { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.film-entry { padding:1rem 0 1.75rem; }
.film-title { margin:0; font-size:clamp(2.5rem,6vw,5.75rem); }
.film-entry .credit { margin:.7rem 0 0; }
.film-link { font-size:2rem; padding:.4rem; text-decoration:none; }
.bookline { padding:1rem 0; border-block:1px solid var(--line); }
.journal-index a { padding:1rem 0; border-top:1px solid var(--line); text-decoration:none; }
.journal-index time { color:#625c56; font-size:.85rem; }
.journal-index strong { flex:1; font:400 clamp(1.25rem,3vw,2rem)/1.25 Georgia,serif; }
.journal-index a:hover strong,.photo-caption a:hover { text-decoration:underline; }
@media(max-width:760px) {
  .photo-caption { flex-wrap:wrap; font-size:.8rem; }
  .public > header .wordmark img { width:9rem; }
  .mobile-nav summary { padding:.75rem; }
  .journal-index a { display:grid; grid-template-columns:1fr auto; gap:.25rem; }
  .journal-index time { grid-column:1/-1; }
}
