:root {
  --ink: #1c1612;
  --muted: #6b5e53;
  --paper: #f6f0e6;
  --card: #fffaf4;
  --line: #e5d8c8;
  --copper: #8d3d22;
  --copper-soft: #f3e2d4;
  --shadow: 0 18px 40px rgba(60, 36, 18, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 90% -10%, #f8e7d6 0%, transparent 60%),
    var(--paper);
  font: 400 17px/1.6 "Avenir Next", "Segoe UI", sans-serif;
}

a { color: inherit; }

img, svg { max-width: 100%; }

.hx-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 10px;
}

.hx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hx-mark {
  width: 28px;
  height: 28px;
  display: block;
}

.hx-nav {
  display: flex;
  gap: 22px;
}

.hx-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}

.hx-nav a:hover,
.hx-nav a[aria-current="page"] { color: var(--ink); }

.hx-menu { display: none; }

.hx-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding: 54px 0 28px;
}

.hx-kicker {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 { margin: 0 0 18px; font-size: 58px; }

.hx-lead {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 18px;
}

.hx-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.hx-btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--ink);
  color: #fffaf4;
}

.hx-btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hx-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.hx-panel svg { display: block; width: 100%; height: auto; }

.hx-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 10px 0 46px;
}

.hx-stat {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hx-stat b {
  display: block;
  font-family: Palatino, Georgia, serif;
  font-size: 32px;
  font-weight: 500;
}

.hx-stat span { color: var(--muted); font-size: 14px; }

.hx-section { padding: 18px 0 42px; }

.hx-section h2 { margin: 0 0 10px; font-size: 36px; }

.hx-section > p,
.hx-intro { margin: 0 0 22px; color: var(--muted); max-width: 42rem; }

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

.hx-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.hx-card h3 { margin: 8px 0; font-size: 24px; }

.hx-card p { margin: 0; color: var(--muted); }

.hx-place {
  display: block;
  width: 36px;
  height: 36px;
}

.hx-table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

tr:last-child td { border-bottom: 0; }

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

.hx-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.hx-step {
  padding: 8px 8px 0 0;
}

.hx-step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--copper-soft);
  color: var(--copper);
  text-align: center;
  line-height: 32px;
  font-size: 14px;
  margin-bottom: 10px;
}

.hx-step h3 { margin: 0 0 6px; font-size: 22px; }

.hx-step p { margin: 0; color: var(--muted); }

.hx-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

.hx-list { margin: 0; padding-left: 18px; color: var(--muted); }

.hx-list li { margin: 6px 0; }

.hx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.hx-missing {
  min-height: 46vh;
  display: grid;
  align-content: center;
  padding: 40px 0 80px;
}

@media (max-width: 860px) {
  h1 { font-size: 40px; }
  .hx-nav { display: none; }
  .hx-menu { display: block; }
  .hx-menu summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--card);
  }
  .hx-menu summary::-webkit-details-marker { display: none; }
  .hx-menu nav {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .hx-menu nav a { text-decoration: none; }
  .hx-hero,
  .hx-grid,
  .hx-stats,
  .hx-steps,
  .hx-split,
  .hx-foot { grid-template-columns: 1fr; display: grid; }
  .hx-foot { display: grid; }
}
