/* Локальная палитра афиши. Шрифты и иллюстрации работают без сетевых запросов. */
:root {
  color-scheme: light;
  --page: #faf7ee;
  --paper: #fffdf6;
  --ink: #203c33;
  --muted: #53645b;
  --line: #d6d9c8;
  --accent: #a83c22;
  --green: #235642;
  --light-green: #e6edde;
  --display: "DM Serif Text", Georgia, "Times New Roman", serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-family: var(--body);
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.5; }
main, header.mast, footer { width: min(100% - 2rem, 68rem); margin-inline: auto; }
main { padding-block: 1.5rem 3rem; }
header.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  min-height: 4rem;
  padding-block: .6rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font: bold 1.28rem/1.15 var(--display); text-decoration: none; }
.brand::before {
  content: "";
  flex: 0 0 1.52rem;
  width: 1.52rem;
  height: 1.52rem;
  border-radius: 50%;
  background: radial-gradient(circle at 69% 27%, var(--page) 0 10%, transparent 11%), linear-gradient(153deg, transparent 49%, var(--page) 50% 53%, transparent 54%), var(--accent);
}
.user { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; font-size: .9rem; }
.intro { margin: .6rem 0 1.7rem; }
.eyebrow { margin: 0 0 .4rem; color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 600; letter-spacing: -.027em; text-wrap: balance; }
h1 { max-width: 21ch; font-size: clamp(2.45rem, 6vw, 4.7rem); line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.25rem); line-height: 1.14; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); line-height: 1.22; }
p { margin: .55rem 0; }
a { color: var(--green); text-underline-offset: .18em; }
.link { font-weight: 650; }
.muted, .meta, footer { color: var(--muted); }
.meta { font-size: .91rem; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .4rem; margin: 0 0 1.5rem; padding: .3rem 0; border-block: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .85rem; border-radius: 1.4rem; font-weight: 650; text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--paper); background: var(--green); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); align-items: start; gap: 1.2rem; }
.card, .panel, .signin { border: 1px solid var(--line); border-radius: 1.15rem; background: var(--paper); }
.card { min-width: 0; overflow: clip; }
.content { padding: clamp(1rem, 2.4vw, 1.5rem); }
.content > :first-child, .panel > :first-child, .signin > :first-child { margin-top: 0; }
.content > :last-child, .panel > :last-child, .signin > :last-child { margin-bottom: 0; }
.content, .panel, .signin { overflow-wrap: anywhere; }
.art {
  --poster: #f3c09f;
  --shape: #b75735;
  --motif: #385a42;
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 5.5rem;
  height: clamp(5.5rem, 14vw, 8.2rem);
  padding-inline: 10%;
  place-content: center start;
  color: var(--motif);
  background-color: var(--poster);
  border-bottom: 1px solid var(--line);
  font: bold clamp(2.5rem, 6vw, 4rem)/1 var(--display);
}
.art::before, .art::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.art::before { inset: 0; background: radial-gradient(circle at 74% 28%, var(--shape) 0 1.65rem, transparent 1.7rem); }
.art::after { width: 70%; height: 110%; bottom: -40%; right: -7%; background: var(--motif); border-radius: 68% 35% 0 0; transform: rotate(-13deg); }
.art-2 { --poster: #c5d9df; --shape: #477387; --motif: #304e69; }
.art-2::before { background: repeating-linear-gradient(140deg, transparent 0 1rem, var(--shape) 1.02rem 1.12rem, transparent 1.15rem 1.45rem); left: 57%; }
.art-2::after { right: 20%; width: 23%; height: 140%; border-radius: 6rem 6rem 0 0; transform: rotate(19deg); }
.art-3 { --poster: #f0d582; --shape: #d78646; --motif: #694c32; }
.art-3::before { background: repeating-radial-gradient(circle at 100% 100%, transparent 0 .75rem, var(--shape) .8rem .98rem, transparent 1.03rem 1.55rem); left: 45%; }
.art-3::after { width: 14%; height: 61%; right: 37%; bottom: -9%; border-radius: 5rem 5rem 0 0; transform: rotate(-17deg); }
.art-4 { --poster: #bacab4; --shape: #e9e6bf; --motif: #365744; }
.art-4::after { width: 56%; height: 100%; bottom: -16%; transform: none; border-radius: 0; clip-path: polygon(0 100%, 24% 29%, 43% 70%, 67% 4%, 100% 100%); }
.art-5 { --poster: #ead0d4; --shape: #af6577; --motif: #6c3f52; }
.art-5::after { width: 48%; height: 110%; right: 4%; bottom: -41%; border-radius: 100% 100% 0 0; transform: none; background: repeating-radial-gradient(ellipse at 50% 100%, var(--motif) 0 .5rem, transparent .55rem 1rem); }
.art-6 { --poster: #c8d9cf; --shape: #76a49b; --motif: #2d6864; }
.art-6::before { background: radial-gradient(circle at 73% 28%, var(--shape) 0 2.7rem, transparent 2.75rem); }
.art-6::after { bottom: -50%; right: 0; border-radius: 62% 38% 0 0; transform: rotate(10deg); }
.pills, .vote, .actions, .people { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.pills { margin-block: .65rem; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 1rem; padding: .18rem .65rem; color: var(--green); background: var(--light-green); font-size: .81rem; font-weight: 650; }
.vote, .actions { margin-block: .75rem; }
button, input, select, textarea { max-width: 100%; color: var(--ink); font: inherit; }
button, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { min-height: 44px; border: 1px solid #a5b3a6; border-radius: .65rem; padding: .5rem .75rem; background: var(--paper); }
button { cursor: pointer; font-weight: 650; line-height: 1.3; }
button.selected, button[aria-pressed="true"], .actions .selected, .vote .selected { border-color: var(--green); color: var(--paper); background: var(--green); }
textarea { display: block; width: 100%; min-height: 5rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); }
button:disabled { cursor: default; opacity: .62; }
label { font-weight: 600; }
details { margin-block: .8rem; border-block-start: 1px solid var(--line); }
summary { padding-block: .65rem; min-height: 44px; cursor: pointer; color: var(--green); font-weight: 650; }
details > :last-child { margin-bottom: .5rem; }
.notice { padding: .7rem 1rem; margin-block: .8rem; border-left: .25rem solid #bc8549; border-radius: .25rem .65rem .65rem .25rem; color: #614421; background: #f6ebd1; }
.panel, .signin { margin-block: 1rem; padding: clamp(1rem, 3vw, 1.75rem); }
.signin { max-width: 38rem; margin: clamp(1.2rem, 6vw, 4rem) auto; }
.people { align-items: stretch; margin-block: 1rem; }
.people > * { flex: 1 1 11rem; }
.people button { width: 100%; }
.skip { position: absolute; top: -6rem; left: 1rem; z-index: 2; padding: .6rem 1rem; border-radius: .6rem; background: var(--paper); }
.skip:focus { top: .6rem; }
.button-link { display: inline-flex; align-items: center; min-height: 44px; border-radius: .65rem; padding: .5rem .85rem; background: var(--green); color: var(--paper); text-decoration: none; font-weight: 650; }
.week + .week { margin-top: 2rem; }
.week-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .95rem; }
.group-heading { margin: 1.25rem 0 .65rem; color: var(--muted); font: 700 .84rem/1.4 var(--body); letter-spacing: .04em; }
.facts { display: grid; grid-template-columns: minmax(5.25rem, 30%) 1fr; gap: .35rem .65rem; margin: .25rem 0 .85rem; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.ballot { min-width: 0; margin: 0; border: 0; padding: 0; }
.ballot legend { margin: .25rem 0 .4rem; padding: 0; font-weight: 700; }
.comment-label { display: block; margin-bottom: .25rem; font-size: .86rem; }
.comment-label span { font-weight: 400; }
.comment { width: 100%; }
.responses { padding: 0; margin-block: .75rem; list-style: none; }
.responses li + li { margin-top: .4rem; }
.responses li p { margin: .1rem 0 .3rem; color: var(--muted); white-space: pre-line; }
.week-actions { gap: .7rem 1.5rem; margin: 1.1rem 0 0; }
.week-actions details { margin: 0; border: 0; }
.week-actions details[open] { flex-basis: 100%; }
footer { padding-block: 1rem 2rem; border-top: 1px solid var(--line); font-size: .86rem; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid #925224; outline-offset: 3px; }
@media (hover: hover) {
  a:hover { text-decoration: underline; }
  button:enabled:hover, .tabs a:not([aria-current="page"]):hover { background: var(--light-green); }
  button.selected:enabled:hover, button[aria-pressed="true"]:enabled:hover { background: #184632; }
}
@media (max-width: 38rem) {
  main, header.mast, footer { width: calc(100% - 1.5rem); }
  main { padding-top: 1rem; }
  .intro { margin-bottom: 1.25rem; }
  .tabs { gap: .12rem; }
  .tabs a { padding-inline: .58rem; font-size: .93rem; }
  .cards { gap: .95rem; }
  .vote { gap: .35rem; }
  .vote button { padding-inline: .6rem; }
}
@media (forced-colors: active) {
  .selected, .tabs a[aria-current="page"], button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
