:root {
  color-scheme: light;
  --bg: #f4f2ec;
  --surface: #fffefa;
  --surface-2: #f0eee6;
  --ink: #18201f;
  --muted: #68716c;
  --line: #ded9ce;
  --line-strong: #c9c1b3;
  --sidebar: #111a19;
  --teal: #1f6f68;
  --teal-dark: #124d48;
  --blue: #285c91;
  --amber: #b36d1a;
  --green: #33794f;
  --shadow: 0 18px 44px rgba(18, 28, 27, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(22, 31, 29, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22, 31, 29, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.artifact-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.artifact-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: var(--sidebar);
  color: #f7f3ea;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  background: #e8fff8;
  color: #0d4842;
  font-weight: 950;
}

.brand span,
.side-card span,
.muted {
  color: #aebbb6;
}

.side-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  margin-bottom: 22px;
}

.artifact-nav {
  display: grid;
  gap: 8px;
}

.artifact-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #dce4df;
  text-decoration: none;
}

.artifact-nav a:hover {
  background: #1b2725;
}

.artifact-main {
  width: min(1180px, 100%);
  padding: 30px;
}

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

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  font-size: 1.05rem;
}

p,
li {
  color: #4f5a56;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero-card,
.panel,
.note,
.script-box,
.stat-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(22px, 4vw, 34px);
  border-left: 5px solid var(--teal);
}

.stat-card {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 20px;
}

.stat-card strong {
  font-size: 2.4rem;
}

.section {
  margin-top: 30px;
}

.section > h2 {
  margin-bottom: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.panel,
.note,
.script-box {
  padding: 18px;
}

.panel h3,
.note h3,
.script-box h3 {
  margin-bottom: 10px;
}

.note {
  border-left: 5px solid var(--amber);
  background: #fff7e9;
}

.script-box {
  background: #fcfaf4;
}

.check-list {
  display: grid;
  gap: 0;
}

.check-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.check-row:last-child {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 3px 9px;
  background: #ece9df;
  color: #31423e;
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

.pill.green {
  background: #dff0e5;
  color: var(--green);
}

.pill.blue {
  background: #e1ebf6;
  color: var(--blue);
}

.pill.amber {
  background: #fff4df;
  color: #7f4a0c;
}

blockquote {
  margin: 16px 0;
  padding: 16px 18px;
  border-left: 5px solid var(--teal);
  background: #e8efe9;
  color: #243d38;
  font-size: 1.08rem;
  line-height: 1.55;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface-2);
  color: #23413c;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #3f4f4b;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  color: #4f5a56;
}

@media (max-width: 980px) {
  .artifact-shell,
  .hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .artifact-sidebar {
    position: static;
    height: auto;
  }

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

@media (max-width: 680px) {
  .artifact-main,
  .artifact-sidebar {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
  }

  .artifact-nav,
  .grid {
    grid-template-columns: 1fr;
  }
}
