@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-600.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/assets/newsreader-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f3f1e9;
  --surface: #fbf6ec;
  --ink: #1b201e;
  --muted: #46594f;
  --border: #cfb898;
  --accent: #8b4d28;
  --action: #245540;
  --action-text: #fbf6ec;
  --wash: #f0e6d8;
  --stage: #1b201e;
  --stage-ink: #f6efe2;
  --error: #873a29;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1b201e;
  --surface: #10261f;
  --ink: #faf4e8;
  --muted: #bac9be;
  --border: #526d60;
  --accent: #e5aa80;
  --action: #e3b65d;
  --action-text: #1b201e;
  --wash: #15332b;
  --stage: #091e1a;
  --stage-ink: #faf4e8;
  --error: #f0a496;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 Manrope, sans-serif; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2 { font-family: Newsreader, Georgia, serif; font-weight: 500; line-height: 1.01; letter-spacing: -.027em; }
h1 { font-size: clamp(2.55rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.95rem, 4vw, 2.9rem); }
h3 { font-size: 1.18rem; line-height: 1.3; }
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
main:focus { outline: 0; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
input, textarea, select {
  display: block; width: 100%; min-height: 45px; padding: 10px 12px;
  color: var(--ink); background: var(--paper); border: 1px solid var(--border); border-radius: 5px;
}
textarea { min-height: 7rem; resize: vertical; }
label { display: grid; gap: 4px; font-weight: 700; }
.preferences input, .preferences select { background: var(--surface); }
.skip { position: absolute; top: -6rem; z-index: 2; padding: 12px; background: var(--surface); }
.skip:focus { top: 0; }
.site-header, main, .feedback { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.preferences, .navigation, .actions, .category { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.preferences label { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 400; }
.preferences select { padding: 6px 8px; min-height: 36px; }
.navigation { padding-block: 0 12px; font-size: .9rem; }
.navigation a, .navigation button { padding: 8px 10px; }
.navigation a[aria-current] { background: var(--wash); border-radius: 5px; }
.navigation .identity { margin-left: auto; }
main { padding-block: clamp(24px, 4vw, 48px) 56px; }
.feedback { margin-top: 16px; padding: 12px 15px; border-left: 3px solid var(--accent); background: var(--wash); }
.feedback[data-error] { color: var(--error); border-color: var(--error); }
.stack { display: grid; align-content: start; gap: 16px; min-width: 0; }
.stack.compact { gap: 9px; }
.page-title { display: grid; gap: 10px; max-width: 780px; margin-bottom: 24px; }
.marker { color: var(--accent); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; }
.muted { color: var(--muted); }
.hero { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; background: var(--stage); color: var(--stage-ink); }
.hero-image { background: #e9ceb1; }
.hero-image img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.hero-body { padding: clamp(22px, 4vw, 50px); align-self: center; }
.hero-body h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.hero-body p { max-width: 33ch; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.home-grid { margin-top: 20px; }
.columns, .versions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.card { padding: clamp(16px, 2.5vw, 25px); min-width: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.wash { background: var(--wash); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.span { grid-column: 1 / -1; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 45px; padding: 8px 14px; border: 1px solid var(--action); border-radius: 5px; background: var(--action); color: var(--action-text); font-weight: 700; text-decoration: none; text-align: center; }
.button:hover { color: var(--action-text); filter: brightness(.92); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.button.secondary:hover { color: var(--accent); border-color: var(--accent); }
.button.inline { background: transparent; color: var(--ink); border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.compact-card { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; }
.count { font-size: .84rem; color: var(--muted); font-weight: 700; }
.poster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.poster-grid img { width: 100%; aspect-ratio: 2/3; object-fit: contain; background: var(--wash); border: 1px solid var(--border); border-radius: 6px; }
.poster-grid figcaption { margin-top: 5px; font-size: .78rem; }
.version-picture { width: 100%; max-height: 440px; background: var(--wash); object-fit: contain; border-radius: 5px; }
.status-text { font-size: .88rem; font-weight: 700; color: var(--accent); }
.receipt { overflow-wrap: anywhere; }
.receipt summary { cursor: pointer; font-weight: 700; }
.receipt p { margin-top: 6px; }
.member-list { padding-left: 1.15rem; margin: 0; }
.member-list li { margin-block: 3px; }
.login { max-width: 490px; margin-inline: auto; }
.login h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
@media (max-width: 720px) {
  .site-header, main, .feedback { width: calc(100% - 30px); }
  .hero, .workspace { grid-template-columns: 1fr; }
  .hero-image img { min-height: 0; aspect-ratio: 1.85; }
  .hero-body { padding: 22px 20px 27px; }
  .preferences { gap: 7px; }
  .preferences label { gap: 4px; }
  .header-inner { gap: 9px; }
  .navigation .identity { margin-left: 0; }
}
@media (max-width: 390px) {
  .form-grid { grid-template-columns: 1fr; }
}
