@font-face {
  font-family: Unbounded;
  src: url('/assets/fonts/Unbounded-ru.woff') format('woff');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #19110d;
  --glow: #483023;
  --panel: #231912;
  --raised: #302117;
  --text: #fff0d8;
  --muted: #d8bfa9;
  --line: #654936;
  --accent: #ffd1a0;
  --button: #ffca95;
  --button-text: #291506;
  --error: #ffb7a7;
}
:root[data-theme="light"] {
  color-scheme: light;
  --background: #f7eee4;
  --glow: #f2d5bd;
  --panel: #fff9f1;
  --raised: #f7e9db;
  --text: #2e1c12;
  --muted: #644a3a;
  --line: #c4a88e;
  --accent: #814010;
  --button: #864411;
  --button-text: #fff8ed;
  --error: #a32a21;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(12px, 3vw, 32px);
  color: var(--text);
  background: radial-gradient(ellipse at top, var(--glow), transparent 64%), var(--background);
  font: 400 1rem/1.55 system-ui, sans-serif;
}
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-header {
  max-width: 64rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem .75rem;
  padding: .25rem clamp(.65rem, 3vw, 1.2rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.site-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}
.site-header a:hover, .site-header a:focus-visible { color: var(--accent); }
.site-header nav { display: flex; gap: clamp(.6rem, 3vw, 1.25rem); }
.brand { gap: .5rem; font-weight: 750; }
.brand img { filter: brightness(0) invert(1); }
[data-theme="light"] .brand img { filter: brightness(.25); }
.account-card {
  max-width: 42rem;
  margin: clamp(22px, 5vw, 64px) auto 2rem;
  padding: clamp(16px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}
h1 { margin: 0 0 .5rem; font: 700 clamp(1.48rem, 4.9vw, 2.2rem)/1.25 Unbounded, system-ui, sans-serif; overflow-wrap: anywhere; }
h2 { margin: 0 0 .65rem; font-size: 1.15rem; }
p { margin: 0; }
.account-intro p, li span { color: var(--muted); }
.account-intro .eyebrow { margin-bottom: .4rem; color: var(--accent); }
.instructions, .account-actions { margin-top: 1.5rem; }
.instructions ol { margin: 0; padding-left: 1.75rem; }
.instructions li { padding: .75rem 0 .75rem .35rem; }
.instructions li + li { border-top: 1px solid var(--line); }
.instructions li::marker { color: var(--accent); font-weight: 700; }
li strong, li span { display: block; }
code { font: 600 .95em/1.4 ui-monospace, monospace; color: var(--accent); overflow-wrap: anywhere; }
.server-address, .account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .75rem;
}
.server-address { margin-top: .6rem; }
.server-address code { padding: .4rem .55rem; border-radius: 7px; background: var(--raised); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.primary { background: var(--button); color: var(--button-text); border-color: transparent; }
.secondary { background: var(--raised); color: var(--text); }
.button:hover { border-color: var(--accent); }
.account-foot { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .45rem; }
.account-foot a { display: inline-flex; align-items: center; min-height: 44px; }
.confirmation, .account-error { margin-top: 1.25rem; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.confirmation p { margin-bottom: .8rem; }
.account-error { color: var(--error); }
@media (max-width: 360px) {
  .site-header nav { gap: .55rem; }
  .site-header a { font-size: .9rem; }
}
