:root {
  --paper: #f1eee7;
  --paper-deep: #e6e0d5;
  --ink: #11110f;
  --muted: #67635b;
  --line: rgba(17, 17, 15, 0.18);
  --lime: #c7ff36;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.manual-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
}

.manual-skip:focus {
  transform: none;
}

.announcement {
  padding: 11px 24px;
  background: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.manual-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(241, 238, 231, 0.9);
  backdrop-filter: blur(14px);
}

.manual-nav__brand img {
  display: block;
  width: 150px;
  height: auto;
  filter: invert(1);
}

.manual-nav__links {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
}

.manual-nav__links a {
  font-size: 12px;
  text-decoration: none;
}

.checkout-return {
  margin: 0;
  padding: 16px clamp(20px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
  font-size: 13px;
  text-align: center;
}

.manual-section {
  padding: clamp(76px, 11vw, 150px) clamp(20px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
}

.manual-wrap {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.manual-eyebrow {
  margin: 0 0 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.manual-display {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 8.8vw, 132px);
  font-weight: 400;
  letter-spacing: -0.062em;
  line-height: 0.88;
}

.manual-lead {
  max-width: 630px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.55;
}

.manual-hero {
  display: grid;
  min-height: calc(100vh - 115px);
  place-items: center;
}

.manual-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(50px, 9vw, 140px);
}

.manual-hero__copy .manual-display {
  max-width: 9ch;
}

.manual-primary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.manual-book {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  aspect-ratio: 148 / 210;
  transform: rotate(2deg);
}

.manual-book::before {
  position: absolute;
  inset: 3% -5% -4% 5%;
  content: "";
  background: rgba(17, 17, 15, 0.2);
  filter: blur(24px);
}

.manual-book img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  box-shadow: 0 28px 60px rgba(17, 17, 15, 0.22);
}

.mission {
  background: var(--ink);
  color: var(--paper);
}

.mission__grid,
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(46px, 10vw, 150px);
}

.mission__count {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(68px, 11vw, 158px);
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.mission__goal {
  margin: 18px 0 0;
  color: rgba(241, 238, 231, 0.58);
  font-size: 13px;
}

.mission .manual-lead {
  color: rgba(241, 238, 231, 0.68);
}

.statement {
  max-width: 15ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.decision-list {
  display: grid;
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.decision-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
}

.decision-list strong {
  color: var(--ink);
  font-weight: 650;
}

.contents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contents-card {
  min-height: 260px;
  padding: 34px;
  background: var(--paper);
}

.contents-card span {
  display: block;
  margin-bottom: 70px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.contents-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 400;
}

.excerpt {
  background: #fffdf8;
}

.excerpt + .excerpt {
  background: var(--paper-deep);
}

.excerpt__question {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 100px);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.96;
}

.answer-panel {
  display: grid;
  gap: 28px;
  align-content: start;
  padding-top: 12px;
}

.answer-panel__answer {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.45;
}

.answer-panel__rule {
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.answer-panel__rule small {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.answer-panel__rule p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.safety-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: safety;
}

.safety-list li {
  position: relative;
  min-height: 70px;
  padding: 8px 0 22px 58px;
  border-bottom: 1px solid var(--line);
  counter-increment: safety;
  font-size: 18px;
  line-height: 1.45;
}

.safety-list li::before {
  position: absolute;
  top: 6px;
  left: 0;
  content: counter(safety, decimal-leading-zero);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.edition-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.26);
}

.edition-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
}

.edition-card__units {
  margin: 12px 0 0;
  color: var(--muted);
}

.edition-card__price {
  margin: auto 0 18px;
  font-family: var(--serif);
  font-size: 58px;
  letter-spacing: -0.04em;
}

.edition-card button {
  min-height: 50px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.edition-card button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.checkout-dialog {
  width: min(calc(100% - 32px), 560px);
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.checkout-dialog::backdrop {
  background: rgba(17, 17, 15, 0.68);
  backdrop-filter: blur(8px);
}

.checkout-dialog__form {
  position: relative;
  padding: clamp(28px, 6vw, 48px);
}

.checkout-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 62px);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.checkout-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
}

.checkout-dialog__edition {
  margin: 14px 0 30px;
  color: var(--muted);
}

.checkout-dialog fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-dialog legend {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}

.checkout-dialog label {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.checkout-dialog__timing,
.checkout-dialog__error {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.checkout-dialog__timing {
  margin: 24px 0 0;
}

.checkout-dialog__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.checkout-dialog__policies a {
  color: var(--muted);
  font-size: 11px;
}

.checkout-dialog__error {
  min-height: 21px;
  margin: 18px 0 0;
  color: #8b2424;
}

.checkout-dialog__continue {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.checkout-dialog__continue:disabled {
  cursor: wait;
  opacity: 0.58;
}

.preorder-note {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.preorder-policies,
.manual-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.preorder-policies {
  margin-top: 22px;
}

.preorder-policies a {
  color: var(--muted);
  font-size: 12px;
}

.manifesto {
  background: var(--lime);
}

.manifesto .statement {
  max-width: 18ch;
}

.manual-footer {
  padding: 42px clamp(20px, 7vw, 110px);
  background: var(--ink);
  color: var(--paper);
}

.manual-footer__inner {
  display: flex;
  width: min(100%, 1240px);
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  gap: 28px;
}

.manual-footer img {
  display: block;
  width: 145px;
  height: auto;
}

.manual-footer a {
  color: rgba(241, 238, 231, 0.72);
  font-size: 12px;
}

.manual-footer__links {
  justify-content: flex-end;
}

:focus-visible {
  outline: 3px solid #426900;
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .manual-nav__links a:not(:last-child) {
    display: none;
  }

  .manual-hero__grid,
  .mission__grid,
  .split {
    grid-template-columns: 1fr;
  }

  .manual-hero {
    min-height: auto;
  }

  .manual-book {
    width: min(78vw, 360px);
  }

  .contents-grid,
  .edition-grid {
    grid-template-columns: 1fr;
  }

  .contents-card,
  .edition-card {
    min-height: auto;
  }

  .contents-card span {
    margin-bottom: 40px;
  }

  .edition-card__price {
    margin-top: 52px;
  }

  .manual-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .manual-footer__links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
