@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cover: #0C2E26;
  --cover-ink: #E7F2EC;
  --cover-quiet: #B7D0C6;
  --paper: #F4F7F5;
  --ink: #14211C;
  --quiet: #3D5248;
  --rule: #C5D5CE;
  --moss: #146B45;
  --stamp: #8C2F2F;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--cover-ink);
  background: var(--cover);
  caret-color: var(--cover);
}
::selection { background: #C9E6D6; color: var(--ink); }
:focus-visible { outline: 2px solid #8FD7B0; outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cover); }
::-webkit-scrollbar-thumb { background: #1E5C4A; border: 2px solid var(--cover); }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  padding: 14px 0;
}
.mast__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rx { width: 28px; height: 28px; display: block; flex: none; }
.mast__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.mast__nav a {
  color: var(--cover-quiet);
  text-decoration: none;
  text-underline-offset: 0.22em;
}
.mast__nav a:hover { color: var(--cover-ink); text-decoration: underline; }

.book { width: min(1120px, calc(100% - 32px)); margin: 0 auto 28px; }
.book--next { margin-bottom: 8px; }
.spread {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items: stretch;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 40px -18px rgb(0 0 0 / 0.45);
  transform-origin: top center;
}
.gutter {
  background:
    linear-gradient(90deg, rgb(12 46 38 / 0.16), transparent 38%, rgb(12 46 38 / 0.28) 50%, transparent 62%, rgb(12 46 38 / 0.12));
}
.leaf { padding: 36px 32px 32px; }
.leaf h1, .leaf h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.leaf h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.lede {
  margin: 0 0 22px;
  max-width: 38rem;
  color: var(--quiet);
}
.facts { margin: 0; display: grid; gap: 14px; }
.facts div { padding-top: 12px; border-top: 1px solid var(--rule); }
.facts dt {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 2px;
}
.facts dd { margin: 0; font-weight: 700; }
.facts a { color: inherit; }
blockquote {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
blockquote p { margin: 0; font-size: 1.05rem; }
blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: var(--quiet);
}

.leaf--ficha h2 { font-size: 1.7rem; }
form label {
  display: block;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--quiet);
}
form input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 4px 0 2px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  border-radius: 0;
}
form input:focus { outline: none; }
form input:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.opt { letter-spacing: 0; text-transform: none; font-size: 13px; }
.row-label {
  margin: 4px 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--quiet);
}
.slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0 0 16px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.fa-slot {
  min-height: 44px;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.fa-slot.is-on {
  background: var(--moss);
  color: #F4FBF7;
}
.fa-slot:disabled { color: #91A79C; cursor: not-allowed; background: #E7EEEA; }
.fa-slot:active:not(:disabled) { transform: scale(0.97); }
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 12px 16px;
  border: 0;
  background: var(--moss);
  color: #F4FBF7;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.stamp:hover { background: #0F5A39; }
.stamp:active { transform: scale(0.985); }
.stamp:disabled { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 18px; }
.actions .stamp { width: auto; padding-inline: 18px; }
.textlink { color: var(--ink); font-weight: 700; text-underline-offset: 0.2em; }
.fine { margin: 10px 0 0; font-size: 14px; color: var(--quiet); }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.note {
  margin: 0 0 14px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.note.is-err { color: var(--stamp); border-color: #E4C4C4; }
.steps { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.steps li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }

.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 36px;
  color: var(--cover-quiet);
  font-size: 14px;
}
.colophon img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}
.colophon a { color: inherit; text-underline-offset: 0.2em; }

.confirm {
  width: min(640px, calc(100% - 32px));
  margin: 12px auto 40px;
  background: var(--paper);
  color: var(--ink);
  padding: 40px 36px;
  box-shadow: 0 22px 40px -18px rgb(0 0 0 / 0.45);
}
.confirm h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.confirm .when { font-size: 1.35rem; font-weight: 700; margin: 0 0 12px; }

@media (prefers-reduced-motion: no-preference) {
  .spread { animation: settle 800ms var(--ease) both; }
  .book--next .spread { animation-delay: 80ms; }
  @keyframes settle {
    from { transform: perspective(1100px) rotateX(8deg); }
    to { transform: none; }
  }
  .fa-slot.is-on { animation: ink 320ms var(--ease); }
  @keyframes ink {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0); }
  }
}

@media (max-width: 860px) {
  .spread { grid-template-columns: 1fr; }
  .gutter { height: 18px; background: linear-gradient(var(--cover), var(--cover)); }
  .leaf { padding: 28px 20px 24px; }
  .pair, .slots { grid-template-columns: 1fr 1fr; }
  .slots { grid-template-columns: repeat(4, 1fr); }
  .mast { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 16px; }
}

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