/* Заглушки «Мастерской дефектолога» (этап 2): главная, 404, 50x.
   Статика для Nginx, без JS и внешних запросов. Цвета и шрифты — docs/design/tokens.md. */

@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('nunito-400.woff') format('woff'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('nunito-700.woff') format('woff'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('nunito-800.woff') format('woff'); }
@font-face { font-family: 'Marck Script'; font-weight: 400; font-display: swap; src: url('marck-script-400.woff') format('woff'); }

:root {
  --bg: #FDF9F0; --fg: #2F3B33; --heading: #3E5945; --text-2: #4F6656; --muted: #586D5F;
  --sun: #FCEFD5; --primary: #3E5945; --primary-hover: #2F4535; --primary-fg: #FFFFFF;
  --outline: #3E5945; --outline-bg: #FFFFFF; --outline-hover: #F4F7F1;
  --slogan: #8A6424; --border: #E7DFCF; --footer: #F3EBDA; --ring: #3E5945;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1F2B24; --fg: #FDF9F0; --heading: #FDF9F0; --text-2: #C9D2C4; --muted: #B5C1B0;
    --sun: rgba(253, 249, 240, .06); --primary: #F3C6A6; --primary-hover: #F7D5BD; --primary-fg: #2F3B33;
    --outline: rgba(253, 249, 240, .7); --outline-bg: transparent; --outline-hover: rgba(253, 249, 240, .08);
    --slogan: #F3C6A6; --border: #3A4A3F; --footer: #18221C; --ring: #F3C6A6;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg); font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--heading); text-underline-offset: 3px; }
h1, p { margin: 0; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 640px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

main { flex: 1; position: relative; overflow: hidden; display: grid; place-items: center; padding-block: calc(32px + env(safe-area-inset-top, 0px)) 40px; }
main::before { content: ""; position: absolute; z-index: -1; width: 640px; aspect-ratio: 1; border-radius: 50%; background: var(--sun); left: 50%; top: -180px; transform: translateX(-50%); }
main { isolation: isolate; }

.inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.logo { width: 200px; height: 200px; }
.sprout { width: 44px; height: auto; }
.slogan { font-family: 'Marck Script', 'Segoe Script', cursive; font-size: 26px; line-height: 1.2; color: var(--slogan); }
h1 { font-size: 28px; line-height: 1.2; font-weight: 800; color: var(--heading); text-wrap: balance; }
.lead { font-size: 17px; color: var(--text-2); max-width: 34em; }
.note { font-size: 15px; color: var(--muted); }

.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; margin-top: 4px; }
.btn { flex: 1 1 220px; max-width: 280px; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 16.5px; text-decoration: none; transition: background-color .15s; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--outline-bg); color: var(--heading); box-shadow: inset 0 0 0 1.5px var(--outline); }
.btn-outline:hover { background: var(--outline-hover); }

footer { background: var(--footer); padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); font-size: 13.5px; color: var(--muted); }
footer .wrap { max-width: 1000px; display: flex; flex-direction: column; gap: 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--fg); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .logo { width: 260px; height: 260px; }
  h1 { font-size: 36px; }
  .slogan { font-size: 30px; }
  main::before { width: 760px; top: -220px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
