/* Same identity as cv.ethereum.kz ("Ops sheet"): charcoal or cool paper,
   steel-cyan accent, Red Hat type. Red Hat has no Cyrillic, so Russian
   text is set in Manrope. */
@font-face {
  font-family: 'Red Hat Text';
  src: url('fonts/redhat-text-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: 'Red Hat Display';
  src: url('fonts/redhat-display-latin.woff2') format('woff2');
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Latin half of Manrope, used only inside Russian text so ".kz" and
   punctuation match the Cyrillic around them. */
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #111315;
  --side: #181B1F;
  --line: #2A2F36;
  --line-strong: #3A414A;
  --text: #ECEEF0;
  --text-2: #C5CBD2;
  --muted: #9BA3AD;
  --accent: #6FC3DF;
  --accent-hover: #A5DDEE;

  --body: 'Red Hat Text', 'Manrope', system-ui, sans-serif;
  --display: 'Red Hat Display', 'Manrope', system-ui, sans-serif;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F5F7F9;
  --side: #E9EDF1;
  --line: #D3D9DF;
  --line-strong: #B9C1CA;
  --text: #14191E;
  --text-2: #37404A;
  --muted: #56606B;
  --accent: #17607C;
  --accent-hover: #0F4A61;
  color-scheme: light;
}
/* Without JS there is no data-theme, so the system preference decides. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #F5F7F9;
    --side: #E9EDF1;
    --line: #D3D9DF;
    --line-strong: #B9C1CA;
    --text: #14191E;
    --text-2: #37404A;
    --muted: #56606B;
    --accent: #17607C;
    --accent-hover: #0F4A61;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

p { margin: 0; }


/* Without JS: no mailto on the button and no theme switching, the address shows instead. */
:root:not([data-theme]) #mail-btn,
:root:not([data-theme]) .theme-toggle { display: none; }


/* Top bar */
.bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }
.theme-toggle svg { width: 18px; height: 18px; }

/* Show the icon of the theme you would switch to. */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }


/* Sale block: one centred column, the domain name is the only loud thing. */
.sale {
  align-self: center;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
  text-align: center;
}

.domain {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 14vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

/* Russian text sets fully in Manrope, so punctuation matches the Cyrillic letters. */
[lang="ru"] { font-family: 'Manrope', system-ui, sans-serif; }

.langs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem 3rem;
  margin-top: 1.5rem;
}

.status {
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent);
}

.pitch {
  margin-top: 0.6rem;
  text-wrap: balance;
  color: var(--text-2);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  gap: 0.35em;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}

.address {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.address:empty { display: none; }

.notes {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.notes span { display: block; }
.notes li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.notes li:last-child { border-bottom: 1px solid var(--line); }


@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
