*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 var(--fs-body)/1.6 var(--font-ui);
  min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1 { font-size: var(--fs-h1); font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
h3 { font-size: var(--fs-card); font-weight: 800; line-height: 1.25; }
a { color: var(--link); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(62, 101, 83, .18); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: var(--s4); }
.section { padding-block: var(--s6); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.muted { color: var(--ink-soft); font-size: var(--fs-small); font-weight: 600; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s4); top: -60px; background: var(--accent); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: var(--s2); }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* цвета плашек: tone-* задаёт --tone */
.tone-peach { --tone: var(--peach); } .tone-mint { --tone: var(--mint); } .tone-blue { --tone: var(--blue); }
.tone-purple { --tone: var(--purple); } .tone-pink { --tone: var(--pink); } .tone-yellow { --tone: var(--yellow); }

/* текст произведений */
.work-title { font: 600 var(--fs-work-title)/1.15 var(--font-text); letter-spacing: -.01em; }
.poem { font: 400 var(--fs-text)/var(--lh-text) var(--font-text); }
.poem p + p { margin-top: 1.1em; }
.poem .line { display: block; }
.prose { font: 400 var(--fs-text)/var(--lh-text) var(--font-text); max-width: 68ch; }
.prose p + p { margin-top: 1em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
[hidden] { display: none !important; }
