:root {
  color-scheme: dark;
  --background: #090c0e;
  --surface: #121719;
  --surface-strong: #192023;
  --text: #f7f5ef;
  --muted: #bac0bf;
  --gold: #e8bb70;
  --line: #343b3d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }
a:hover { color: #ffdfa2; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 3px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(9, 12, 14, .96);
}

.site-header-inner,
.container,
.site-footer-inner {
  width: min(100% - 40px, 900px);
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.brand-mark { color: var(--gold); margin-right: .5rem; }

.nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--gold); }

.container { padding-block: 52px 88px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .17em; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.35; letter-spacing: .025em; }
h2 { margin: 0 0 12px; font-size: 1.14rem; line-height: 1.5; }
p { margin: 0; }

.intro { max-width: 760px; margin-top: 20px; color: var(--muted); font-size: 1rem; }
.date { margin-top: 22px; color: var(--muted); font-size: .88rem; }

.panel {
  margin-top: 32px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(150deg, var(--surface-strong), var(--surface));
}

.section + .section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.section p { overflow-wrap: anywhere; }
.section h2 { color: var(--gold); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.card {
  display: block;
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.card:hover { border-color: var(--gold); background: var(--surface-strong); }
.card-title { display: block; color: var(--gold); font-size: 1.12rem; font-weight: 700; }
.card-description { display: block; margin-top: 14px; color: var(--muted); font-size: .91rem; }

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 18px;
  border-radius: 10px;
  background: var(--gold);
  color: #16120b;
  font-weight: 700;
  text-decoration: none;
}
.contact-link:hover { background: #ffdfa2; color: #16120b; }
.muted { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 26px; color: var(--muted); font-size: .84rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

@media (max-width: 680px) {
  .site-header-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; padding-block: 14px; }
  .nav { gap: 4px 14px; }
  .container { padding-block: 42px 72px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
}
