:root {
  color-scheme: dark;
  --ink: #080a0f;
  --ink-2: #0b0e15;
  --panel: #10141d;
  --panel-2: #151b26;
  --border: #232b38;
  --border-strong: #354052;
  --text: #f4efe4;
  --text-soft: #ded8cb;
  --muted: #9aa3b2;
  --muted-2: #6f7887;
  --gold: #e8b45a;
  --gold-bright: #f5d08a;
  --gold-deep: #b9852f;
  --gold-soft: rgba(232, 180, 90, 0.12);
  --mint: #5eead4;
  --mint-soft: rgba(94, 234, 212, 0.1);
  --green: #4ade80;
  --red: #f87171;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 18px;
  --max: 1120px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(232, 180, 90, 0.09), transparent 65%),
    radial-gradient(700px 420px at 92% 4%, rgba(94, 234, 212, 0.05), transparent 70%),
    var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(232, 180, 90, 0.32);
  color: #fff;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 600;
  padding: 10px 14px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  text-decoration: none;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--text);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 14px rgba(232, 180, 90, 0.28));
}

.brand-word em {
  color: var(--gold);
  font-style: normal;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
}

.site-header nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-header nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-header nav .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(232, 180, 90, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 180, 90, 0.2), rgba(232, 180, 90, 0.08));
  color: var(--gold-bright);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header nav .nav-cta:hover {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(232, 180, 90, 0.28), rgba(232, 180, 90, 0.12));
  color: #fff3d4;
}

/* ── Language switch ────────────────────────────────────────────────────── */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(16, 20, 29, 0.7);
  flex: none;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.16s ease, color 0.16s ease;
}

.lang-switch a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  background: var(--gold-soft);
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(232, 180, 90, 0.28);
}

/* ── Page shell ─────────────────────────────────────────────────────────── */

.page {
  position: relative;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.page::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 24px;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-soft);
}

h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 68ch;
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.72;
}

.updated {
  margin: 0 0 38px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.content-block {
  padding: 28px 0 10px;
  border-top: 1px solid var(--border);
}

.content-block p,
.content-block li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.82;
}

.content-block p {
  margin: 0 0 14px;
}

.content-block ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.content-block li {
  margin-bottom: 8px;
}

.content-block li::marker {
  color: var(--gold-deep);
}

.content-block strong {
  color: var(--text);
  font-weight: 600;
}

.content-block a {
  color: var(--gold-bright);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #171006;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(232, 180, 90, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  color: #171006;
  text-decoration: none;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ── Contact ────────────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 38px 0 46px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel-2), var(--panel) 62%);
}

.contact-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 180, 90, 0.14), transparent 68%);
  pointer-events: none;
}

.contact-card h2 {
  margin-top: 8px;
  font-size: 21px;
}

.contact-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.contact-card .btn {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-label {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

/* ── Status ─────────────────────────────────────────────────────────────── */

.status-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 34px 0 20px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--panel-2), var(--panel));
}

.status-hero strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.status-hero span:not(.status-dot) {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.status-dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.12), 0 0 18px rgba(74, 222, 128, 0.4);
}

.status-hero.is-bad .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(248, 113, 113, 0.12), 0 0 18px rgba(248, 113, 113, 0.4);
}

.status-list {
  overflow: hidden;
  margin: 0 0 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 20, 29, 0.55);
}

.status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.status-list div:last-child {
  border-bottom: 0;
}

.status-list span {
  color: var(--muted);
}

.status-list strong {
  color: var(--mint);
  font-weight: 600;
  text-align: right;
}

.status-hero.is-bad + .status-list strong {
  color: var(--red);
}

.muted {
  color: var(--muted-2);
  font-size: 14px;
}

.muted a {
  color: var(--gold);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 52px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 13px;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
}

.site-footer strong {
  color: var(--text-soft);
  font-weight: 600;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
}

.site-footer nav a {
  color: var(--muted);
}

.site-footer nav a:hover {
  color: var(--gold-bright);
}

.site-footer p {
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 18px;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  .site-header nav {
    gap: 14px 18px;
    font-size: 13px;
  }

  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .page {
    padding-top: 46px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 18px 18px 16px;
  }

  .site-header::after {
    left: 18px;
    right: 18px;
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 29px;
    height: 29px;
  }

  .page {
    padding: 38px 18px 72px;
  }

  .page::before {
    left: 18px;
    top: 22px;
    width: 46px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .lead {
    font-size: 16px;
  }

  .contact-grid {
    margin: 30px 0 36px;
  }

  .status-list div {
    padding: 14px 16px;
  }

  .site-footer {
    padding: 30px 18px 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
