:root {
  --ink: #243c3a;
  --ink-soft: #5d6966;
  --paper: #fbf8f4;
  --petal: #f7efe9;
  --rose: #9f6d62;
  --rose-dark: #744d48;
  --gold: #d8b86a;
  --sage: #b9c7b4;
  --line: rgba(36, 60, 58, 0.14);
  --shadow: 0 24px 70px rgba(87, 61, 50, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(145deg, var(--paper), #edf2ec);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.system-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.system-hero,
.system-section,
.demo-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.system-hero {
  padding: clamp(32px, 6vw, 76px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
}

h1 {
  max-width: 820px;
  font-size: clamp(44px, 8vw, 96px);
}

h2 {
  font-size: clamp(32px, 5vw, 58px);
}

h3 {
  margin: 0;
  font-size: 22px;
}

p {
  color: var(--ink-soft);
}

.system-hero p:last-child {
  max-width: 650px;
  font-size: 18px;
}

.system-section {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 44px);
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
}

.section-title span {
  color: var(--rose-dark);
  font-family: "Playfair Display", serif;
  font-size: 32px;
}

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

.swatch-grid article {
  min-height: 166px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 244, 0.5);
  border-radius: var(--radius);
}

.swatch-grid span {
  display: block;
  height: 82px;
  background: var(--color);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(36, 60, 58, 0.1);
}

.swatch-grid p {
  margin: 12px 0 2px;
  color: var(--ink);
  font-weight: 800;
}

code {
  color: var(--ink-soft);
}

.type-demo {
  max-width: 760px;
}

.type-demo p:last-child {
  font-size: 18px;
}

.component-grid {
  grid-template-columns: 0.85fr 1fr;
}

.demo-card {
  padding: 24px;
}

.demo-card.pale {
  background: rgba(247, 239, 233, 0.72);
}

.pill {
  display: inline-flex;
  margin-bottom: 52px;
  padding: 7px 10px;
  color: var(--ink);
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

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

.button-ghost {
  color: var(--ink);
  background: #fff;
}

label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
}

@media (max-width: 760px) {
  .swatch-grid,
  .component-grid {
    grid-template-columns: 1fr;
  }
}
