:root {
  --ink: #0a0a09;
  --paper: #f3f1ea;
  --paper-2: #e6e2d7;
  --accent: #9b9a94;
  --charcoal: #252524;
  --hover: #d6d4ce;
  --muted: #706f68;
  --line: rgba(17,17,15,.22);
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1rem; line-height: 1.5; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 3vw; color: var(--paper); background: rgba(10,10,9,.94); backdrop-filter: blur(16px); }
.wordmark { font-family: var(--serif); font-size: 1.4rem; letter-spacing: -.02em; }
.header-right, nav, .language-switch { display: flex; align-items: center; }
.header-right { gap: clamp(1.3rem,4vw,4rem); }
nav { gap: clamp(1rem,3vw,2.5rem); font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; }
nav a, .contact-links a { position: relative; }
nav a::after, .contact-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.2rem; height: 1px; background: currentColor; transition: right .25s ease; }
nav a:hover::after, .contact-links a:hover::after { right: 0; }
.language-switch { gap: .35rem; color: #74736c; font-size: .78rem; letter-spacing: .09em; }
.language-switch button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.language-switch button.active { color: var(--paper); text-decoration: underline; text-underline-offset: .3rem; }
.hero { min-height: calc(100svh - 4.2rem); display: grid; grid-template-columns: 1.05fr .95fr; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-copy { z-index: 2; padding: clamp(4rem,8vw,8rem) 3vw 4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.eyebrow { margin: 0 0 1.2rem; font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
h1,h2,h3,p,figure { margin-top: 0; }
h1 { margin-bottom: 2rem; font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem,5.8vw,6.5rem); line-height: .91; letter-spacing: -.045em; white-space: nowrap; }
.intro { max-width: 34rem; font-size: clamp(1.05rem,1.6vw,1.35rem); line-height: 1.55; color: #bbb9b0; }
.text-link { margin-top: 2rem; padding: .8rem 0; border-bottom: 1px solid #66645d; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; }
.text-link b { margin-left: 3rem; color: var(--accent); font-weight: 400; }
.hero-portrait { position: relative; height: calc(100svh - 4.2rem); margin: 0; overflow: hidden; background: #000; }
.hero-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a0a09 0, transparent 14%), linear-gradient(0deg, rgba(0,0,0,.42), transparent 26%); pointer-events: none; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero-portrait figcaption, .portrait-frame figcaption { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; color: rgba(255,255,255,.68); font-size: .7rem; letter-spacing: .05em; }
.latest { display: grid; grid-template-columns: .25fr 1.1fr .75fr; gap: 2rem; padding: clamp(4rem,8vw,8rem) 3vw; border-bottom: 1px solid var(--line); align-items: end; }
.section-number { font-family: var(--serif); font-size: 3rem; }
.latest h2, .section-head h2, .about h2, footer h2, .cover-wall h2, .book-dialog h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem,7vw,7rem); line-height: .95; letter-spacing: -.045em; }
.latest-copy { max-width: 30rem; font-size: 1.15rem; }
.latest-copy-wrap { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem; align-items: end; }
.latest-cover { padding: 0; border: 0; background: transparent; cursor: pointer; box-shadow: 0 8px 18px rgba(0,0,0,.18); transition: transform .2s ease; }
.latest-cover:hover, .latest-cover:focus-visible { transform: translateY(-4px); }
.latest-cover img { width: 100%; aspect-ratio: .645; object-fit: cover; }
.muted { color: var(--muted); font-size: .9rem; }
.cover-wall { position: relative; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem,8vw,9rem); padding: clamp(6rem,10vw,11rem) 3vw; color: var(--paper); background: var(--charcoal); overflow: hidden; }
.cover-wall-intro { position: sticky; top: 8rem; align-self: start; }
.cover-wall-intro h2 { max-width: 7ch; }
.cover-wall-intro > p:last-child { margin-top: 2rem; color: rgba(255,255,255,.7); }
.cover-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,2.4vw,2.4rem); align-items: start; padding: 8vh 0; }
.cover-tile { --shift: 0px; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; transform: translateY(calc(var(--shift) + (var(--i) % 3) * 2.4rem)); transition: filter .25s ease; box-shadow: 0 25px 45px rgba(0,0,0,.24); }
.cover-tile:nth-child(3n+2) { margin-top: 7rem; }
.cover-tile:nth-child(3n+3) { margin-top: 2rem; }
.cover-tile:hover, .cover-tile:focus-visible { filter: brightness(1.08); }
.cover-tile img { width: 100%; aspect-ratio: .645; object-fit: cover; }
.books { padding: clamp(5rem,9vw,9rem) 3vw; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.filters { display: flex; gap: .55rem; flex-wrap: wrap; justify-content: flex-end; }
.filters button { padding: .55rem .9rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.filters button.active, .filters button:hover { color: var(--paper); background: var(--ink); }
.book-row { display: grid; grid-template-columns: 6rem 1fr 7rem; gap: 1rem; align-items: baseline; padding: 1.2rem 0; border-top: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.book-row:last-child { border-bottom: 1px solid var(--line); }
.book-row:hover { padding-left: 1rem; padding-right: 1rem; background: var(--hover); }
.book-row h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem,2.8vw,2.8rem); line-height: 1.05; }
.book-row h3 button { width: 100%; padding: 0; display: flex; justify-content: space-between; gap: 1rem; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.book-row h3 button span { font-family: var(--sans); font-size: .75em; font-weight: 300; }
.book-row h3 .book-link { width: 100%; display: flex; justify-content: space-between; gap: 1rem; }
.book-row h3 .book-link span { font-family: var(--sans); font-size: .75em; font-weight: 300; }
.year, .kind { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.book-row:hover .year, .book-row:hover .kind { color: var(--ink); }
.book-row[hidden] { display: none; }
.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 75vh; background: var(--paper-2); }
.portrait-frame { min-height: 44rem; position: relative; margin: 0; overflow: hidden; background: #ccc; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; background: #000; }
.portrait-frame figcaption { padding: .25rem .45rem; background: rgba(17,17,15,.65); }
.about-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem,8vw,8rem) clamp(2rem,6vw,7rem); }
.about-copy .lead { margin-top: 3rem; font-size: clamp(1.25rem,2vw,1.75rem); line-height: 1.45; }
.facts { margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.facts div { padding-top: 1rem; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: .4rem 0 0; font-family: var(--serif); font-size: 1.4rem; }
.news { display: grid; grid-template-columns: .25fr .8fr 1.2fr; gap: 2rem; padding: clamp(5rem,9vw,9rem) 3vw; color: var(--paper); background: var(--charcoal); align-items: start; }
.news-heading h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.7rem,5.5vw,6rem); line-height: .96; letter-spacing: -.045em; }
.news-feed { display: grid; gap: clamp(4rem,7vw,7rem); min-width: 0; }
.festival-update { min-width: 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.25); }
.festival-copy { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; margin-bottom: 1.5rem; }
.festival-copy h3 { margin: 0; font-family: var(--serif); font-size: clamp(2rem,3.5vw,3.5rem); font-weight: 400; line-height: 1; }
.festival-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; }
.festival-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #181817; }
.festival-gallery img:first-child { grid-column: span 2; grid-row: span 2; height: 100%; }
.news-card { display: grid; grid-template-columns: minmax(7rem,10rem) 1fr; gap: clamp(1.5rem,3vw,3rem); align-items: center; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.25); }
.news-card > img { width: 100%; box-shadow: 0 18px 35px rgba(0,0,0,.3); }
.news-card h3 { margin-bottom: 1rem; font-family: var(--serif); font-size: clamp(2rem,3.5vw,3.5rem); font-weight: 400; line-height: 1; }
.news-date { color: #aaa89f; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; }
.news-card button { padding: .55rem 0; border: 0; border-bottom: 1px solid currentColor; color: inherit; background: transparent; cursor: pointer; text-transform: uppercase; letter-spacing: .09em; font-size: .76rem; }
footer { position: relative; padding: clamp(5rem,9vw,9rem) 3vw 2rem; color: var(--paper); background: var(--ink); }
footer h2 { max-width: 63rem; }
.contact-links { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 5rem; }
.contact-links a { padding-bottom: .3rem; }
.contact-links span { color: var(--accent); }
.social-links { display: flex; gap: .7rem; margin-top: 2.25rem; }
.social-links a { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #a4a29b; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.social-links a:hover, .social-links a:focus-visible { color: var(--paper); border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.social-links svg { width: 1rem; height: 1rem; fill: currentColor; }
.social-links svg rect, .social-links svg circle:not(.social-dot) { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-links svg .social-dot { fill: currentColor; }
.copyright { margin: 7rem 0 0; color: #77756e; font-size: .75rem; }
.book-dialog { width: min(72rem,calc(100vw - 2rem)); max-height: calc(100svh - 2rem); padding: 0; color: var(--ink); background: var(--paper); border: 0; overflow: auto; }
.book-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.dialog-close { position: fixed; z-index: 3; top: max(1.5rem,calc(50vh - 28rem)); right: max(1.5rem,calc(50vw - 35rem)); width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: white; background: rgba(0,0,0,.62); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dialog-layout { min-height: 42rem; display: grid; grid-template-columns: minmax(17rem,.78fr) 1.22fr; }
.dialog-layout > img { width: 100%; height: 100%; max-height: 50rem; object-fit: cover; background: #ddd; }
.dialog-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem,6vw,7rem); }
.book-dialog h2 { font-size: clamp(2.8rem,5vw,5.8rem); }
.dialog-description { margin: 2rem 0; font-size: 1.08rem; line-height: 1.65; white-space: pre-line; }
blockquote { margin: 1rem 0 2.5rem; padding-left: 1.4rem; border-left: 3px solid var(--accent); }
blockquote p { margin-bottom: .6rem; font-family: var(--serif); font-size: clamp(1.35rem,2.1vw,2rem); line-height: 1.25; }
blockquote cite { color: var(--muted); font-size: .8rem; font-style: normal; text-transform: uppercase; letter-spacing: .07em; }
.dialog-rights { margin: 0 0 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.dialog-rights .rights-label { margin-bottom: .55rem; color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.dialog-rights #dialog-territories { margin-bottom: .65rem; line-height: 1.65; }
.dialog-rights a { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.publisher-link { align-self: flex-start; padding: .65rem 0; border-bottom: 1px solid var(--ink); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 66svh; padding: 5rem 1.2rem 2.5rem; }
  h1 { font-size: clamp(2.65rem,13vw,4.4rem); }
  .hero-portrait { height: 72svh; }
  .hero-portrait::after { background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 35%); }
  .cover-wall { grid-template-columns: 1fr; padding-left: 1.2rem; padding-right: 1.2rem; }
  .cover-wall-intro { position: relative; top: auto; }
  .cover-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
  .cover-tile:nth-child(n) { margin-top: 0; }
  .cover-tile:nth-child(even) { margin-top: 4rem; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-layout > img { max-height: 70svh; object-fit: contain; padding: 2rem; background: var(--paper-2); }
  .dialog-close { position: fixed; top: 1.5rem; right: 1.5rem; }
}
@media (max-width: 760px) {
  .site-header { padding: 1rem 1.2rem; }
  .header-right { gap: 1rem; }
  nav { gap: .85rem; font-size: .72rem; }
  .language-switch { font-size: .7rem; }
  .latest { grid-template-columns: 1fr; padding-left: 1.2rem; padding-right: 1.2rem; }
  .section-number { font-size: 2rem; }
  .books { padding-left: 1.2rem; padding-right: 1.2rem; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 2rem; }
  .filters { justify-content: flex-start; }
  .book-row { grid-template-columns: 3.5rem 1fr; }
  .book-row .kind { grid-column: 2; }
  .about { grid-template-columns: 1fr; }
  .portrait-frame { min-height: 30rem; }
  .about-copy { padding-left: 1.2rem; padding-right: 1.2rem; }
  .facts { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; padding-left: 1.2rem; padding-right: 1.2rem; }
  .news .section-number { display: none; }
  .festival-copy { align-items: flex-start; flex-direction: column; gap: .25rem; }
  footer { padding-left: 1.2rem; padding-right: 1.2rem; }
}
@media (max-width: 520px) {
  .wordmark { font-size: 1.18rem; }
  nav { display: none; }
  .cover-grid { gap: 1rem; }
  .dialog-copy { padding: 2.4rem 1.4rem 3rem; }
  .latest-copy-wrap { grid-template-columns: 3.8rem 1fr; }
  .news-card { grid-template-columns: 6.5rem 1fr; }
  .festival-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .festival-gallery img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .cover-tile { transform: none !important; }
}
