/* Заглушка бренда: одна страница, без внешних шрифтов, счётчиков и запросов за пределы сайта. */

:root {
  --wood: #c9a77c;          /* светлый дуб */
  --wood-deep: #a9845a;
  --card: rgba(253, 249, 242, 0.86);
  --ink: #2b2118;
  --ink-soft: #6b5a48;
  --accent: #7a4e2a;
  --accent-ink: #fffaf3;
  --line: rgba(43, 33, 24, 0.14);
  --shadow: 0 18px 50px rgba(43, 28, 12, 0.28);
  --vignette: rgba(60, 38, 16, 0.35);
}

/* Тёмная тема: орех. auto — по настройке системы, light/dark — выбор человека (theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wood: #4a3121;
    --wood-deep: #2e1d12;
    --card: rgba(28, 21, 16, 0.84);
    --ink: #f1e6d6;
    --ink-soft: #bba68c;
    --accent: #d39a62;
    --accent-ink: #1e140c;
    --line: rgba(241, 230, 214, 0.14);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    --vignette: rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme="dark"] {
  --wood: #4a3121;
  --wood-deep: #2e1d12;
  --card: rgba(28, 21, 16, 0.84);
  --ink: #f1e6d6;
  --ink-soft: #bba68c;
  --accent: #d39a62;
  --accent-ink: #1e140c;
  --line: rgba(241, 230, 214, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --vignette: rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 16px 24px;
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  line-height: 1.5;
  background-color: var(--wood);
  background-image:
    radial-gradient(ellipse at 50% 40%, transparent 35%, var(--vignette) 100%),
    url("grain.svg"),
    linear-gradient(170deg, var(--wood) 0%, var(--wood-deep) 100%);
  background-size: cover, 100% 100%, cover;
  background-attachment: fixed;
}

.card {
  width: 100%;
  max-width: 520px;
  padding: 44px 32px 36px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.tagline {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 1rem;
}
.tagline:empty { display: none; }

.contacts {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 1rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.contact svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.contact.mail {
  color: var(--ink);
  border: 1px solid var(--line);
}
.contact.mail:hover { background: var(--line); }
.contact.bot {
  color: var(--accent-ink);
  background: var(--accent);
}
.contact.bot:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.contact:focus-visible, .theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .theme-toggle .icon-sun { display: none; }
  :root[data-theme="auto"] .theme-toggle .icon-moon { display: block; }
}

.footer {
  margin-top: 28px;
  max-width: 720px;
  text-align: center;
  padding: 10px 16px;
  color: var(--ink-soft);
  background: var(--card);
  border-radius: 12px;
  font-size: 0.85rem;
}
.footer:empty { display: none; }
.footer a { color: inherit; }
.footer p + p { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .contact { transition: none; }
}
