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

:root {
  --bg: #ede7dc;            /* тёплый лён / известняк */
  --bg-deep: #dfd6c7;
  --glow: rgba(255, 252, 245, 0.72);
  --card: rgba(255, 253, 249, 0.90);
  --ink: #241c15;
  --ink-soft: #66584a;
  --accent: #5e3e27;        /* глубокий орех */
  --accent-hover: #4b301d;
  --accent-ink: #fffaf3;
  --line: rgba(36, 28, 21, 0.11);
  --shadow: 0 20px 56px rgba(40, 28, 16, 0.10), 0 2px 10px rgba(40, 28, 16, 0.05);
}

/* Тёмная тема: матовый эспрессо / графит. auto — по системе, light/dark — выбор человека (theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1714;
    --bg-deep: #110e0c;
    --glow: rgba(186, 140, 92, 0.09);
    --card: rgba(31, 26, 22, 0.88);
    --ink: #f0e7da;
    --ink-soft: #a89986;
    --accent: #c9945d;
    --accent-hover: #d7a570;
    --accent-ink: #1a120b;
    --line: rgba(240, 231, 218, 0.11);
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.50), 0 2px 10px rgba(0, 0, 0, 0.30);
  }
}
:root[data-theme="dark"] {
  --bg: #1b1714;
  --bg-deep: #110e0c;
  --glow: rgba(186, 140, 92, 0.09);
  --card: rgba(31, 26, 22, 0.88);
  --ink: #f0e7da;
  --ink-soft: #a89986;
  --accent: #c9945d;
  --accent-hover: #d7a570;
  --accent-ink: #1a120b;
  --line: rgba(240, 231, 218, 0.11);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.50), 0 2px 10px rgba(0, 0, 0, 0.30);
}

* { 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 28px;
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    url("grain.svg"),
    radial-gradient(ellipse 80% 60% at 50% 30%, var(--glow) 0%, transparent 72%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 320px 320px, cover, cover;
  background-attachment: fixed;
}

.card {
  width: 100%;
  max-width: 500px;
  padding: 48px 36px 40px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.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: 0.98rem;
  letter-spacing: 0.04em;
}
.tagline:empty { display: none; }

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

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 11px;
  font-size: 0.98rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.contact svg {
  flex: none;
  width: 20px;
  height: 20px;
  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 {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.contact:focus-visible, .theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg {
  width: 19px;
  height: 19px;
  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: 780px;
  text-align: center;
  padding: 6px 12px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}
.footer:empty { display: none; }
.footer a { color: inherit; text-underline-offset: 3px; }
.footer p + p { margin-top: 4px; }

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