/* Codacolor guides — shared styles.
   Tokens from Areas/Codacolor Studio/brand/codacolor-design-system/DESIGN.md */

:root {
  --ink: #14110d;
  --ink-2: #25201a;
  --muted: #6b6256;
  --line: rgba(20, 17, 13, 0.08);
  --line-soft: rgba(20, 17, 13, 0.055);
  --periwinkle: #5375f6;
  --accent-deep: #3a51d9;
  --accent-soft: #d8e0fc;
  --sky: #e9edfb;
  --deep-sky: #2f4fd6;
  --sand: #f5ecda;
  --deep-sand: #8a6526;
  --shadow-card: 0 12px 32px rgba(20, 17, 13, 0.08);
  --shadow-raised: 0 2px 8px rgba(20, 17, 13, 0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────── */

header.masthead {
  padding: 72px 0 0;
}

.eyebrow {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(34px, 6vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-top: 14px;
}

.lead {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(18px, 3.4vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 18px;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 48px 0;
}

/* ── Steps ──────────────────────────────────────────── */

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  margin-bottom: 44px;
}

.step-num {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--periwinkle);
  background: var(--sky);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

h2 {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(22px, 4vw, 26px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.step p, .block p { margin-top: 12px; }

.step p + p, .block p + p { margin-top: 14px; }

.block {
  margin-bottom: 44px;
}

ul.plain, ol.plain {
  margin-top: 14px;
  padding-left: 22px;
}

ul.plain li, ol.plain li {
  margin-bottom: 10px;
  padding-left: 4px;
}

ul.plain li::marker { color: var(--periwinkle); }
ol.plain li::marker { color: var(--muted); font-family: "Geist Mono", monospace; font-size: 15px; }

strong { font-weight: 600; }

a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 160ms cubic-bezier(0, 0, 0.2, 1);
}

a:hover { border-bottom-color: var(--accent-deep); }

a:focus-visible {
  outline: 2px solid #93a6ff;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Callouts, examples, chips ──────────────────────── */

.example {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 15px;
  background: #fafafa;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 16px;
  color: var(--ink-2);
  overflow-x: auto;
  white-space: nowrap;
}

.note {
  background: var(--sky);
  border-radius: 14px;
  padding: 20px 22px;
  margin-top: 20px;
  font-size: 17px;
}

.note > p:first-child { margin-top: 0; }
.note .formats { margin-top: 12px; }

.example .hl {
  color: var(--accent-deep);
  font-weight: 500;
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 2px 5px;
  margin: 0 -1px;
}

.note .note-label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-sky);
  display: block;
  margin-bottom: 8px;
}

.note p:first-of-type { margin-top: 0; }

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.72em;
  letter-spacing: 0;
  white-space: nowrap;
}

ul.plain ul.nested {
  margin-top: 8px;
  margin-bottom: 4px;
}

ul.plain ul.nested li { margin-bottom: 4px; }
ul.plain ul.nested li::marker { color: var(--muted); }

em { font-style: normal; font-weight: 600; }

.section-head {
  padding-bottom: 4px;
}

.faq { margin-top: 28px; }

.faq .q {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 0;
}

.faq .a { color: var(--muted); margin-top: 8px; }

.faq ul.plain li { color: var(--muted); }

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.formats span {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: var(--shadow-raised);
}

.btn {
  display: inline-block;
  font-family: "Geist", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(180deg, #FF9A4D 0%, #F2730F 100%);
  border: 0;
  border-bottom: 0;
  border-radius: 999px;
  padding: 13px 26px;
  margin-top: 18px;
  box-shadow: var(--shadow-raised);
  transition: filter 160ms cubic-bezier(0, 0, 0.2, 1), transform 160ms cubic-bezier(0, 0, 0.2, 1);
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  border-bottom: 0;
}

/* ── Card list (index page) ─────────────────────────── */

.cards { display: grid; gap: 16px; margin-top: 32px; }

.card {
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 24px 26px;
  box-shadow: var(--shadow-raised);
  color: inherit;
  transition: box-shadow 160ms cubic-bezier(0, 0, 0.2, 1), transform 160ms cubic-bezier(0, 0, 0.2, 1);
}

.card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  border-bottom: 1px solid var(--line-soft);
}

.card h2 { font-size: 21px; }
.card p { color: var(--muted); font-size: 16px; margin-top: 6px; }

/* ── Footer ─────────────────────────────────────────── */

footer {
  margin-top: 24px;
  padding: 32px 0 72px;
  border-top: 1px solid var(--line);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

footer a { border-bottom-color: var(--line); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; }
  .btn:hover, .card:hover { transform: none; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  header.masthead { padding-top: 48px; }
  .step { grid-template-columns: 32px 1fr; gap: 14px; }
  .step-num { width: 28px; height: 28px; font-size: 12px; }
  .example { white-space: normal; }
}
