:root {
  --paper: #f5eee4;
  --paper-light: #fbf7f1;
  --espresso: #29150c;
  --brown: #431e1b;
  --bronze: #765f50;
  --stone: #ded2c3;
  --rule: rgba(67, 30, 27, 0.22);
  --serif: "Cormorant Garamond", Iowan Old Style, Baskerville, Georgia, serif;
  --sans: "DM Sans", Helvetica Neue, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--espresso);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  color: var(--paper-light);
  background: var(--brown);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper-light);
  background: var(--brown);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100%, 1440px);
  min-height: 100svh;
  margin: 0 auto;
  padding-inline: clamp(32px, 5vw, 72px);
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nayeway-mark {
  font: 500 1.28rem / 1 var(--serif);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.2vw, 46px);
  font-size: 0.75rem;
  font-weight: 400;
}

.site-nav a {
  padding-block: 5px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: currentColor;
}

.site-nav span {
  padding: 13px 18px;
  color: var(--paper-light);
  background: var(--brown);
}

.launch {
  min-height: calc(100svh - 88px);
  display: grid;
  grid-template-columns: minmax(440px, 0.94fr) minmax(380px, 0.76fr);
  gap: clamp(60px, 8vw, 128px);
  align-items: center;
  padding: clamp(44px, 7vh, 76px) 2.5vw clamp(72px, 9vh, 108px);
}

.launch__copy {
  max-width: 610px;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--bronze);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 0;
  font: 300 clamp(5.2rem, 7.1vw, 7.2rem) / 0.84 var(--serif);
  letter-spacing: -0.045em;
}

.launch__line {
  margin: 24px 0 0;
  font: 300 clamp(1.75rem, 2.4vw, 2.35rem) / 1.05 var(--serif);
}

.description {
  max-width: 540px;
  margin: 22px 0 0;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.55;
}

.edition {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 22px;
  color: var(--bronze);
  font-size: 0.61rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edition span {
  display: flex;
  align-items: center;
}

.edition span:not(:last-child)::after {
  width: 2px;
  height: 2px;
  margin: 0 12px;
  border-radius: 50%;
  content: "";
  background: currentColor;
}

.purchase {
  display: flex;
  align-items: end;
  gap: 26px;
  margin-top: 34px;
}

.purchase__price {
  min-width: 112px;
  display: grid;
  gap: 2px;
}

.purchase__price span,
.purchase__price small {
  color: var(--bronze);
  font-size: 0.59rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.purchase__price strong {
  font: 300 2.3rem / 1 var(--serif);
}

.purchase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 15px 26px;
  border: 1px solid var(--brown);
  font-size: 0.82rem;
  font-weight: 400;
  transition: color 180ms ease, background 180ms ease;
}

.button--primary {
  color: white;
  background: var(--brown);
}

.button--primary:hover,
.button--primary:focus-visible {
  color: var(--brown);
  background: transparent;
}

.button--secondary:hover,
.button--secondary:focus-visible {
  color: white;
  background: var(--brown);
}

.purchase__note,
.preorder__status {
  max-width: 570px;
  margin: 14px 0 0;
  color: rgba(41, 21, 12, 0.62);
  font-size: 0.67rem;
  line-height: 1.55;
}

.preorder__status:empty {
  display: none;
}

.launch__visual {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  margin: 0;
}

.book-stage {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
  padding: clamp(55px, 6vw, 88px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 42%),
    var(--stone);
}

.book-stage::after {
  position: absolute;
  right: -18%;
  bottom: -22%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  background: rgba(117, 79, 56, 0.12);
  filter: blur(3px);
}

.book-stage__label {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 26px;
  color: rgba(41, 21, 12, 0.62);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.book-object {
  position: relative;
  z-index: 2;
  width: min(100%, 320px);
  perspective: 1200px;
  transform: rotate(-0.7deg);
}

.book-object img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 28px 52px rgba(41, 21, 12, 0.22);
  transform: rotateY(-5deg);
  transform-origin: left center;
}

.book-object__pages {
  position: absolute;
  z-index: 1;
  top: 1.4%;
  right: -4.6%;
  bottom: 1.2%;
  width: 7%;
  border: 1px solid rgba(41, 21, 12, 0.11);
  background: repeating-linear-gradient(0deg, #f0e9dd 0 2px, #d2c6b7 2px 3px);
  transform: skewY(4deg);
}

.book-object::after {
  position: absolute;
  z-index: 0;
  inset: 0.5% -2% -0.5% 1.6%;
  border: 2px solid rgba(41, 21, 12, 0.2);
  content: "";
  transform: rotateY(-5deg);
  transform-origin: left center;
}

.launch__visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  color: var(--bronze);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inside,
.editions {
  padding: clamp(96px, 10vw, 150px) 2.5vw;
  border-top: 1px solid var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(440px, 0.9fr) minmax(280px, 0.4fr);
  gap: clamp(52px, 9vw, 145px);
  align-items: end;
}

.section-heading h2,
.launch-list h2 {
  max-width: 780px;
  margin: 17px 0 0;
  font: 300 clamp(3.8rem, 6vw, 6.2rem) / 0.9 var(--serif);
  letter-spacing: -0.04em;
}

.launch-list__action {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.button--light {
  border-color: var(--paper-light);
  color: var(--espresso);
  background: var(--paper-light);
  cursor: pointer;
}

.button--light:hover,
.button--light:focus-visible {
  color: var(--paper-light);
  background: transparent;
}

.launch-list__action p {
  max-width: 420px;
  margin: 0;
  color: rgba(251, 247, 241, 0.66);
  font-size: 0.68rem;
  line-height: 1.55;
}

.modal-open {
  overflow: hidden;
}

.signup-modal[hidden] {
  display: none;
}

.signup-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  background: rgba(22, 11, 7, 0.58);
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease;
}

.signup-modal.is-open {
  opacity: 1;
}

.signup-modal__panel {
  position: relative;
  width: min(100%, 600px);
  padding: clamp(38px, 6vw, 72px);
  color: var(--espresso);
  background: var(--paper-light);
  box-shadow: 0 34px 100px rgba(22, 11, 7, 0.28);
  transform: translateY(10px);
  transition: transform 180ms ease;
}

.signup-modal.is-open .signup-modal__panel {
  transform: translateY(0);
}

.signup-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 0;
  color: var(--espresso);
  background: transparent;
  cursor: pointer;
  font: 300 1.65rem / 1 var(--serif);
}

.signup-modal h2 {
  max-width: 480px;
  margin: 18px 0 0;
  font: 300 clamp(3.1rem, 6vw, 4.7rem) / 0.92 var(--serif);
  letter-spacing: -0.04em;
}

.signup-modal__copy {
  max-width: 450px;
  margin: 22px 0 30px;
  font-size: 0.88rem;
  line-height: 1.65;
}

.signup-modal .signup label {
  display: block;
  margin-bottom: 9px;
  color: var(--bronze);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.signup-modal .signup__field {
  border-color: var(--rule);
}

.signup-modal .signup input {
  color: var(--espresso);
}

.signup-modal .signup input::placeholder {
  color: rgba(41, 21, 12, 0.42);
}

.signup-modal .signup button {
  color: white;
  background: var(--brown);
  border-left-color: var(--brown);
}

.signup-modal .signup button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.signup__privacy,
.signup-modal .signup__status {
  margin: 10px 0 0;
  color: rgba(41, 21, 12, 0.58);
  font-size: 0.63rem;
  line-height: 1.5;
}

.signup-modal .signup__status {
  min-height: 1.5em;
}

.section-heading > p {
  max-width: 410px;
  margin: 0 0 5px;
  font-size: 0.95rem;
  line-height: 1.65;
}

.inside__lessons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(62px, 7vw, 94px);
  border-block: 1px solid var(--rule);
}

.inside__lessons article {
  min-height: 180px;
  padding: 26px clamp(24px, 3vw, 42px) 34px;
}

.inside__lessons article:not(:last-child) {
  border-right: 1px solid var(--rule);
}

.inside__lessons span,
.edition-option span {
  color: var(--bronze);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inside__lessons h3 {
  max-width: 310px;
  margin: 36px 0 0;
  font: 300 clamp(1.55rem, 2.1vw, 2.05rem) / 1.1 var(--serif);
}

.section-heading--editions {
  grid-template-columns: minmax(390px, 0.75fr) minmax(280px, 0.38fr);
}

.edition-table {
  margin-top: clamp(58px, 7vw, 90px);
  border-top: 1px solid var(--rule);
}

.edition-option {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(260px, 1.2fr) 78px minmax(160px, 0.58fr);
  gap: clamp(22px, 3vw, 50px);
  align-items: center;
  min-height: 112px;
  padding: 20px clamp(12px, 2vw, 28px);
  border-bottom: 1px solid var(--rule);
}

.edition-option--featured {
  background: rgba(255, 255, 255, 0.2);
}

.edition-option h3 {
  margin: 8px 0 0;
  font: 300 clamp(1.55rem, 2vw, 2rem) / 1.08 var(--serif);
}

.edition-option > p {
  margin: 0;
  color: rgba(41, 21, 12, 0.7);
  font-size: 0.78rem;
  line-height: 1.55;
}

.edition-option > strong {
  font: 300 1.85rem / 1 var(--serif);
}

.edition-option > a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border: 1px solid var(--brown);
  font-size: 0.7rem;
  font-weight: 400;
  text-align: center;
  transition: color 180ms ease, background 180ms ease;
}

.edition-option > a:hover,
.edition-option > a:focus-visible {
  color: white;
  background: var(--brown);
}

.edition-table__note {
  margin: 14px 0 0;
  color: rgba(41, 21, 12, 0.6);
  font-size: 0.66rem;
}

.launch-list {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(360px, 0.65fr);
  gap: clamp(56px, 10vw, 150px);
  align-items: end;
  margin: 0 2.5vw clamp(76px, 8vw, 112px);
  padding: clamp(54px, 6.5vw, 88px);
  color: var(--paper-light);
  background: var(--brown);
}

.launch-list .section-label {
  color: rgba(251, 247, 241, 0.66);
}

.launch-list h2 {
  max-width: 570px;
  font-size: clamp(3rem, 4.5vw, 4.8rem);
}

.signup {
  width: 100%;
}

.signup__field {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 54px;
  border: 1px solid rgba(251, 247, 241, 0.5);
}

.signup input {
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  font-size: 0.86rem;
}

.signup input::placeholder {
  color: rgba(251, 247, 241, 0.58);
}

.signup input:focus-visible {
  box-shadow: inset 0 0 0 1px white;
}

.signup button {
  min-width: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid rgba(251, 247, 241, 0.5);
  color: var(--espresso);
  background: var(--paper-light);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 400;
}

.signup__status {
  min-height: 1.5em;
  margin: 9px 0 0;
  color: rgba(251, 247, 241, 0.7);
  font-size: 0.66rem;
}

.site-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--rule);
  color: rgba(41, 21, 12, 0.62);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 1040px) {
  .page-shell {
    padding-inline: 36px;
  }

  .launch {
    grid-template-columns: minmax(390px, 1fr) minmax(330px, 0.74fr);
    gap: 48px;
    padding-inline: 0;
  }

  .book-stage {
    min-height: 530px;
    padding: 54px;
  }

  .inside,
  .editions {
    padding-inline: 0;
  }

  .launch-list {
    margin-inline: 0;
    padding: 56px;
  }

  .edition-option {
    grid-template-columns: minmax(205px, 0.8fr) minmax(220px, 1fr) 65px minmax(145px, 0.6fr);
    gap: 20px;
  }
}

@media (max-width: 780px) {
  .page-shell {
    padding-inline: 22px;
  }

  .site-header {
    min-height: 72px;
  }

  .site-nav a {
    display: none;
  }

  .site-nav span {
    padding: 10px 13px;
    font-size: 0.68rem;
  }

  .launch {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 58px;
    padding: 64px 0 80px;
  }

  .launch__copy {
    max-width: 630px;
  }

  h1 {
    font-size: clamp(5.2rem, 18vw, 7rem);
  }

  .launch__visual {
    max-width: 560px;
    align-self: center;
  }

  .book-stage {
    min-height: 560px;
  }

  .section-heading,
  .section-heading--editions,
  .launch-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .inside,
  .editions {
    padding-block: 84px;
  }

  .inside__lessons {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .inside__lessons article {
    min-height: auto;
    padding-inline: 0;
  }

  .inside__lessons article:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .inside__lessons h3 {
    margin-top: 20px;
  }

  .edition-option {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding-block: 26px;
  }

  .edition-option > p {
    grid-column: 1;
  }

  .edition-option > strong {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .edition-option > a {
    grid-column: 2;
    grid-row: 2;
    min-width: 145px;
  }

  .launch-list {
    padding: 54px 42px;
  }
}

@media (max-width: 540px) {
  .purchase {
    display: grid;
    align-items: start;
  }

  .purchase__actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: space-between;
  }

  .button--secondary {
    justify-content: center;
  }

  .book-stage {
    min-height: 480px;
    padding: 56px 44px 42px;
  }

  .book-object {
    width: min(88%, 290px);
  }

  .launch__visual figcaption {
    flex-direction: column;
    gap: 5px;
  }

  .section-heading h2 {
    font-size: clamp(3.3rem, 15.5vw, 4.8rem);
  }

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

  .edition-option > p,
  .edition-option > strong,
  .edition-option > a {
    grid-column: 1;
    grid-row: auto;
  }

  .launch-list {
    padding: 44px 24px;
  }

  .signup__field {
    grid-template-columns: 1fr;
    border: 0;
  }

  .signup input,
  .signup button {
    min-height: 52px;
    border: 1px solid rgba(251, 247, 241, 0.5);
  }

  .signup button {
    margin-top: 8px;
    border-color: var(--paper-light);
  }

  .site-footer {
    min-height: 100px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .launch__copy,
  .launch__visual {
    opacity: 0;
    transform: translateY(10px);
    animation: enter 650ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

  .launch__visual {
    animation-delay: 90ms;
  }

  @keyframes enter {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
