/* style.css - LimeLogic palette (Brand/LimeLogic_Brand_and_Visual_Direction.md).
   Deep Navy canvas, White text, Lime for actions. Fixed 20px base, nothing under 18px, no
   text-size control on public pages. Colour pairs are contrast-tested in test/smoke.test.js. */

:root {
  --navy: #0D1B2A;
  --navy-card: #0F2235;
  --lime: #A9CC32;
  --white: #FFFFFF;
  --dim: #C9D3DC;
  --line: #5B7590;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; background: var(--lime); color: var(--navy); padding: 0.75rem 1rem; }
.skip:focus { left: 0; top: 0; z-index: 10; }

/* Visible focus everywhere. Never outline:none. */
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.topbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 800; color: var(--lime); letter-spacing: 0.02em; }

main { max-width: 40rem; margin: 0 auto; padding: 1.25rem 1rem 2rem; }

h1 { font-size: 1.6rem; line-height: 1.2; margin: 0.5rem 0; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 0.25rem 0 1rem; }
main:focus { outline: none; }
main:focus-visible { outline: 3px solid var(--lime); }
h1:focus, h2:focus { outline: none; }
h1:focus-visible, h2:focus-visible { outline: 3px solid var(--lime); }

.type-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }

.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 0.75rem 1rem;
  border: 2px solid transparent; border-radius: 12px;
  font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.btn-type { background: var(--navy-card); color: var(--white); border-color: var(--line); justify-content: flex-start; text-align: left; }
.btn-type:hover { border-color: var(--lime); }
.btn-primary, .btn-copy { background: var(--lime); color: var(--navy); }
.btn-copy.is-copied { background: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--dim); }
.btn-wa { background: var(--white); color: var(--navy); }

.steps { margin: 0 0 1.25rem; padding-left: 1.5rem; display: grid; gap: 0.35rem; font-weight: 700; }

.recipe { background: var(--navy-card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: grid; gap: 1rem; }
.recipe-example { border-style: dashed; margin: 1.25rem 0 0; }
.example-label { margin: 0; color: var(--lime); font-weight: 800; letter-spacing: 0.04em; }
.part-label { margin: 0 0 0.25rem; color: var(--dim); font-weight: 700; }
.part-text { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }

.card-status { color: var(--lime); font-weight: 700; margin: 0.5rem 0 0; }
.card-status:empty { display: none; }

.actions { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.status { min-height: 1.5em; margin: 0.75rem 0 0; color: var(--lime); font-weight: 700; }

.wa { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.25rem; }
.wa-prompt { font-weight: 700; margin: 0 0 0.75rem; }

.noscript { background: var(--navy-card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.noscript a { color: var(--lime); }

.footer { text-align: center; padding: 1.5rem 1rem 2rem; color: var(--dim); }
.stamp { color: var(--lime); font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
