:root {
  color-scheme: light;
  --bg: #f4efe7;
  --paper: rgba(255, 252, 247, 0.74);
  --ink: #191512;
  --muted: #6f665d;
  --line: rgba(25, 21, 18, 0.12);
  --accent: #b44f30;
  --accent-dark: #8e3a20;
  --shadow: 0 30px 80px rgba(38, 24, 16, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(180, 79, 48, 0.16), transparent 26%),
    radial-gradient(circle at right center, rgba(33, 82, 61, 0.1), transparent 24%),
    var(--bg);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #1f1a16;
  color: #fff8ef;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.05rem;
}

.brand__name,
.kicker,
.card__eyebrow,
.panel__label,
.status__eyebrow,
.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.brand__name {
  letter-spacing: 0.08em;
  font-weight: 700;
}

.eyebrow,
.kicker,
.card__eyebrow,
.panel__label,
.status__eyebrow {
  color: var(--muted);
}

.hero,
.card,
.panel,
.status {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  padding: 48px;
  border-radius: 32px;
}

.hero h1,
.card h2,
.panel h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 600;
}

.hero h1 {
  max-width: 12ch;
  margin-top: 10px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.lede {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.command-preview {
  overflow-x: auto;
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(25, 21, 18, 0.92);
  color: #f8efe2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.command-preview code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.96rem;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button--primary:hover {
  background: var(--accent-dark);
}

.button--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.content {
  display: grid;
  gap: 24px;
}

.grid,
.three-up {
  display: grid;
  gap: 24px;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.panel,
.status {
  padding: 28px;
  border-radius: 24px;
}

.card h2,
.panel h3 {
  margin-top: 10px;
  font-size: 1.7rem;
}

.card p,
.panel p,
.status__list {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.status__list {
  padding-left: 18px;
}

code {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.94em;
}

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

  .hero {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .hero h1 {
    max-width: none;
  }
}
