@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-normal-400.woff') format('woff');
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-normal-600.woff') format('woff');
  font-style: normal; font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-normal-500.woff') format('woff');
  font-style: normal; font-weight: 500; font-display: swap;
}
:root {
  --espresso: #3e2723;
  --dark: #281815;
  --butter: #ffedab;
  --paper: #faf1dc;
  --plum-ink: #2b2027;
  --soft-cyan: #b0c9c7;
  --dusty-pink: #dfb9cb;
  --soft-rule: #785768;
  --cherry: #44222d;
  --powder: #bfd1d3;
  --blue-ink: #202f37;
  --rose-paper: #d7a8b3;
  --warm-butter: #f4e5ad;
  --ink: #362633;
  --cream: #fff2d3;
  --blush: #eebbb3;
  --sans: 'DM Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --gutter: clamp(20px, 5.3vw, 85px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--espresso); color: var(--cream); font: 400 1rem/1.55 var(--sans); }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a, button { color: inherit; }
a { text-underline-offset: .25em; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1440px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.skip:focus { position: fixed; top: 8px; left: 8px; padding: 10px 14px; z-index: 9; background: var(--paper); color: var(--espresso); }
header { background: var(--dark); border-bottom: 1px solid #6b5047; }
.mast, nav { display: flex; align-items: center; }
.mast { min-height: 54px; justify-content: space-between; gap: 14px; }
.label, .mast-label {
  font: 500 .825rem/1.45 var(--mono);
  letter-spacing: .06em; text-transform: uppercase;
}
.mast-brand { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.mast-brand img { width: 100px; height: auto; }
.mast-label { color: var(--cream); }
nav { gap: clamp(18px, 3vw, 45px); }
nav a, footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; }
.hero { background: var(--cherry); color: var(--cream); }
.hero-inner { width: min(100%, 1520px); display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; }
.hero-art { grid-column: 2; grid-row: 1; height: clamp(335px, 48vw, 675px); }
.hero-art .room-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-copy { grid-column: 1; grid-row: 1; width: fit-content; margin-inline: auto; padding: clamp(24px, 3vw, 52px); }
.genre { color: #e5c0c9; margin-bottom: clamp(14px, 1.45vw, 22px); }
.tagline { color: var(--butter); font-size: clamp(2.05rem, 3.85vw, 3.65rem); letter-spacing: -.05em; line-height: 1.07; }
.byline { font-size: .875rem; margin-top: 14px; color: #e5d4c4; }
.byline a { font-weight: 400; text-decoration-color: #9c7971; }
#story { background: var(--powder); color: var(--blue-ink); }
.story-inner { display: grid; grid-template-columns: minmax(0, 1.09fr) minmax(0, .9fr); align-items: center; gap: clamp(28px, 5vw, 74px); padding-block: clamp(26px, 3vw, 46px); }
.story-copy { max-width: 44rem; }
.story-copy .label { color: #3f5261; margin-bottom: 13px; }
.lede { max-width: 30ch; font-size: clamp(1.35rem, 1.95vw, 1.85rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.23; text-wrap: balance; }
.story-copy p:last-child { margin-top: 14px; font-size: clamp(1rem, 1.05vw, 1.1rem); line-height: 1.62; max-width: 56ch; color: #2d404a; }
.story-still {
  display: block; position: relative; width: min(97%, 435px); justify-self: center; cursor: zoom-in;
  padding: clamp(9px, .9vw, 14px);
  border: 2px solid #b7b1b3; border-radius: 14px 5px;
  background: linear-gradient(135deg, #ac788a, #d5a3ad 25%, #995f74 65%, #c796a2);
  box-shadow: inset 0 0 0 1px #6d5359, inset 0 0 0 3px #ddbdc4, 0 6px 14px #21141959;
  transform: rotate(-1.2deg);
}
.story-still::after {
  content: ''; position: absolute; inset: 5px; border: 1px solid #f3d5d9;
  border-bottom-color: #835d69; border-right-color: #835d69;
  border-radius: 8px 2px; pointer-events: none;
}
.story-still img { border: 1px solid #624650; border-radius: 4px 1px; width: 100%; aspect-ratio: 1.62; height: auto; object-fit: cover; object-position: 50% 59%; }
.world { background: #302030; color: #fcf0dd; padding-block: clamp(24px, 2.6vw, 40px) clamp(26px, 3vw, 44px); }
.world-head { display: flex; justify-content: space-between; gap: 12px 24px; align-items: baseline; margin-bottom: clamp(19px, 2vw, 32px); }
.world-head h2, .writer-profile h3 { font-size: clamp(1.5rem, 1.95vw, 1.9rem); font-weight: 400; line-height: 1.15; letter-spacing: -.033em; }
.world-head p { font-size: .94rem; color: var(--soft-cyan); }
.collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 34px); }
.collection { min-width: 0; border-top: 1px solid var(--soft-rule); }
#high-life .collection-name { color: #e9c3d2; }
#canal-country .collection-name { color: #c9dddb; }
#after-dark .collection-name { color: #f0dfae; }
.collection-name { font-size: clamp(1.06rem, 1.2vw, 1.17rem); font-weight: 600; line-height: 1.2; letter-spacing: -.038em; padding-block: 13px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: clamp(4px, .45vw, 8px); }
.gallery a { display: block; overflow: hidden; cursor: zoom-in; background: var(--plum-ink); aspect-ratio: 1.18; }
.gallery a:first-child { grid-column: 1 / -1; aspect-ratio: 1.55; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
#high-life .gallery a:first-child img { object-position: 50% 32%; }
#canal-country .gallery a:first-child img { object-position: 50% 29%; }
#after-dark .gallery a:first-child img { object-position: 50% 39%; }
@media (hover: hover) { .gallery a:hover img { transform: scale(1.035); } }
.credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); color: var(--ink); }
.credits section { padding-block: clamp(24px, 3vw, 44px); }
#sample { background: var(--rose-paper); padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2)) clamp(22px, 3.5vw, 56px); }
#writer { background: var(--warm-butter); padding-inline: clamp(22px, 3.5vw, 56px) max(var(--gutter), calc((100vw - 1440px) / 2)); }
.credits .label { color: #4e3342; margin-bottom: 16px; }
.sample-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 18px; }
.sample-heading .label { margin: 0; }
.sample-heading a { font-size: .875rem; }
.sample-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(8px, 1.2vw, 19px); }
.sample-pages a { display: block; cursor: zoom-in; box-shadow: 0 3px 12px #21141945; }
.sample-pages img { display: block; width: 100%; height: auto; }
.writer-profile h3 { font-size: clamp(1.35rem, 1.7vw, 1.7rem); }
.writer-profile p { margin-top: 10px; max-width: 44ch; }
.writer-profile { display: grid; grid-template-columns: minmax(90px, min(35%, 180px)) minmax(0, 1fr); align-items: center; gap: clamp(16px, 2vw, 30px); }
.writer-profile>img { width: 100%; height: auto; }
footer { border-top: 1px solid #70524a; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 10px; }
footer small { font-size: .88rem; }
dialog { color: var(--cream); background: var(--dark); border: 0; padding: 12px; width: min(94vw, 1180px); max-width: 97vw; max-height: 96dvh; overflow: auto; }
dialog::backdrop { background: rgb(19 11 9 / .9); }
.viewer-tools, .viewer-controls { display: flex; align-items: center; gap: 16px; }
.viewer-tools { justify-content: flex-end; }
.viewer-controls { justify-content: center; }
dialog button { border: none; background: transparent; text-decoration: underline; text-underline-offset: 4px; padding: 10px 12px; }
.viewer-image img { width: 100%; height: 73dvh; object-fit: contain; }
.viewer-image { touch-action: pan-y; }
@media (max-width: 780px) {
  .story-inner { gap: 22px; }
}
@media (max-width: 620px) {
  .mast-brand { justify-content: center; gap: 10px; }
  .mast-brand img { width: 86px; }
  .mast-label { font-size: .75rem; }
  .mast { flex-direction: column; gap: 2px; padding-top: 8px; }
  nav { width: 100%; justify-content: space-between; gap: 9px; }
  .mast { min-height: 47px; }
  nav a { font-size: .91rem; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
  .hero-art { width: 100%; height: auto; }
  .hero-art .room-photo { height: auto; }
  .hero-copy { width: calc(100% - var(--gutter) * 2); margin-inline: auto; padding: 20px 0 23px; }
  .genre { font-size: .75rem; letter-spacing: .025em; margin-bottom: 12px; }
  .tagline { font-size: clamp(1.9rem, 8vw, 2.35rem); }
  .byline { margin-top: 10px; font-size: .85rem; }
  .story-inner, .credits, .collections { grid-template-columns: minmax(0, 1fr); }
  .story-inner { padding-block: 25px; gap: 19px; }
  .story-copy p:last-child { font-size: 1rem; margin-top: 12px; }
  .story-still img { aspect-ratio: 1.78; }
  .world-head { display: block; margin-bottom: 20px; }
  .world-head p { margin-top: 7px; font-size: .88rem; }
  .collections { gap: 28px; }
  .collection-name { font-size: 1.1rem; }
  .gallery { grid-template-columns: 1.23fr 1fr 1fr; grid-template-rows: repeat(2, auto); }
  .gallery a, .gallery a:first-child { aspect-ratio: .98; }
  .gallery a:first-child { grid-column: auto; grid-row: 1 / 3; aspect-ratio: auto; min-height: 0; position: relative; }
  .gallery a:first-child img { position: absolute; inset: 0; }
  .credits section { padding-block: 24px; }
  #sample, #writer { padding-inline: var(--gutter); }
  .credits .label { margin-bottom: 12px; }
  .sample-heading .label { margin: 0; }
  .viewer-image img { height: 65dvh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
