:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-hover: #f4f4f5;
  --text: #18181b;
  --text-secondary: #3f3f46;
  --muted: #71717a;
  --muted-dim: #a1a1aa;
  --border: #e4e4e7;
  --border-hover: #d4d4d8;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-light: #eef2ff;
  --max-width: 920px;
  --radius: 16px;
  --radius-sm: 10px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    monospace;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-2);
  text-decoration: none;
}

a:focus,
button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-block;
  z-index: 1000;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Header ── */

header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

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

.brand img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.brand-label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-label-accent {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

/* ── Main ── */

main {
  display: block;
  padding: 64px 0 80px;
}

section[id] {
  scroll-margin-top: 90px;
}

/* ── Hero ── */

.hero {
  padding: 24px 0 48px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 24px;
  max-width: 18ch;
}

h1 .accent-text {
  color: var(--accent);
}

.hero-lead {
  color: var(--text-secondary);
  max-width: 60ch;
  font-size: 1.15rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 32px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 44px;
  transition: background-color var(--transition),
    border-color var(--transition), color var(--transition);
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.button-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.button-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--text);
}

/* ── Sections ── */

.section {
  margin-bottom: 64px;
}

.section-header {
  margin-bottom: 32px;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin-top: 12px;
}

/* ── Editorial items ── */

h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.editorial-grid {
  border-bottom: 1px solid var(--border);
}

.editorial-item {
  border-top: 1px solid var(--border);
  padding: 24px 0 28px;
}

.editorial-item p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.editorial-item p:last-child {
  margin-bottom: 0;
}

.editorial-item .muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Grids ── */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
}

/* ── Meta list ── */

.meta-list {
  list-style: none;
  margin-top: 24px;
}

.meta-list li {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.meta-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.meta-list li strong {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.meta-list li span {
  color: var(--text-secondary);
}

/* ── Note ── */

.note {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── Contact ── */

.contact-list {
  list-style: none;
  margin-top: 20px;
}

.contact-list li {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-list li strong {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--mono);
}

.contact-list a {
  font-weight: 500;
  color: var(--text);
}

.contact-list a:hover {
  color: var(--accent);
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted-dim);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted-dim);
}

footer a:hover {
  color: var(--muted);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  header {
    position: static;
    background: var(--bg);
  }
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  main {
    padding: 40px 0 56px;
  }

  .section {
    margin-bottom: 48px;
  }

  .card {
    padding: 22px;
  }

  h1 {
    font-size: 2rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
  }
}

/* Legal pages */

.legal-page .page-header {
  margin-bottom: 40px;
}

.legal-page .page-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 10px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: none;
}

.legal-page .lead {
  color: var(--muted);
  max-width: 68ch;
  font-size: 1.1rem;
  line-height: 1.55;
}

.legal-page h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-bottom: 12px;
}

.legal-page main p,
.legal-page main ul {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-page main ul {
  padding-left: 22px;
}

.legal-page main li {
  margin-bottom: 6px;
}

.legal-page .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 16px;
}

.legal-page .card:last-of-type {
  margin-bottom: 24px;
}

.legal-page .muted {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .legal-page .card {
    padding: 22px 18px;
  }
}
