/* Shared tokens + shared sections for the layout prototypes. */

:root {
  --paper: #fff7df;
  --ink: #1d1b16;
  --ink-soft: #4a463c;
  --line: rgba(29, 27, 22, 0.18);
  --accent: #e8618c;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --shell: min(1180px, 92vw);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

h1, h2, h3 { font-family: var(--serif); font-weight: 900; margin: 0; line-height: 0.98; letter-spacing: -0.02em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
a { color: inherit; }

.wrap { width: var(--shell); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Prototype switcher ---------- */

.proto-bar {
  position: fixed;
  z-index: 200;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: #1d1b16;
  color: #fff7df;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.proto-bar span {
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0.55;
  text-align: center;
  padding-bottom: 3px;
}
.proto-bar a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  color: inherit;
}
.proto-bar a[aria-current="page"] { background: #fff7df; color: #1d1b16; }

/* ---------- Shared hero ---------- */

.p-hero { padding: clamp(40px, 7vh, 76px) 0 clamp(28px, 5vh, 52px); }
.p-hero h1 {
  font-size: clamp(56px, 10vw, 116px);
  margin-bottom: 14px;
}
.p-hero p {
  font-size: clamp(17px, 2vw, 21px);
  max-width: 30ch;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.p-hero .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
}
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #f8d34d;
  color: #1d1b16;
}
.chip b { font-family: var(--serif); font-size: 17px; }
.chip-quiet {
  background: transparent;
  border-style: dashed;
  border-color: var(--line);
  color: var(--ink-soft);
}

/* ---------- Shared "how to use it" ---------- */

.p-use {
  background: #1d1b16;
  color: #fff7df;
  padding: clamp(56px, 9vh, 104px) 0;
  margin-top: clamp(40px, 8vh, 96px);
}
.p-use .wrap { display: grid; gap: 40px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
.p-use h2 { font-size: clamp(38px, 5vw, 62px); }
.p-use h2 em { color: #f8d34d; }
.p-use .lede { color: rgba(255, 247, 223, 0.72); margin-top: 16px; max-width: 34ch; }

.use-steps { display: grid; gap: 14px; }
.use-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid rgba(255, 247, 223, 0.22);
  border-radius: var(--radius);
}
.use-step > span {
  font-family: var(--mono);
  font-size: 12px;
  padding-top: 3px;
  color: #f8d34d;
}
.use-step strong { display: block; font-size: 18px; margin-bottom: 4px; }
.use-step p { color: rgba(255, 247, 223, 0.72); font-size: 15px; }
.use-step code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(255, 247, 223, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}
.use-note {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 247, 223, 0.6);
  border-top: 1px solid rgba(255, 247, 223, 0.2);
  padding-top: 18px;
}

.p-foot {
  padding: 34px 0 90px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}
.p-foot nav { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 860px) {
  .p-use .wrap { grid-template-columns: minmax(0, 1fr); }
}
