@font-face {
  font-family: Fraunces;
  src: url("./assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 300;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("./assets/fonts/inter.woff2") format("woff2");
  font-weight: 300 400;
  font-display: swap;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("./assets/fonts/frankruhllibre.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-size: 15pt;
  --paper: #f6eee9;
  --ink: rgb(34 34 34 / 56%);
  --copper: #c77f5d;
  --button-ink: #c87f5d;
  --button-bg: #f1d8cc;
  --feature-line: #edddd3;
  --soft-line: rgb(0 0 0 / 8%);
  --gutter: 5rem;
  --section-padding: 8rem;
  --copy-gap: 2.375rem;
  --heading-size: 3.25rem;
  --heading-spacing: -0.1rem;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 1rem / 2.125 Inter, sans-serif;
}

h1, h2, h3, p {
  margin: 0;
  overflow-wrap: break-word;
}

h1, h2, h3, .eyebrow {
  color: var(--copper);
  font: 300 var(--heading-size) / 1.25 Fraunces, Georgia, serif;
  letter-spacing: var(--heading-spacing);
}

.eyebrow {
  font-size: 2rem;
  font-weight: 100;
}

.section-title {
  color: #3b3430;
  font-family: "Frank Ruhl Libre", Georgia, serif;
  text-transform: uppercase;
}

.split, .features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split {
  min-height: 100vh;
}

.split-copy, .feature {
  padding: var(--section-padding) var(--gutter);
}

.split-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--copy-gap);
}

.split-copy > :not(a) {
  width: 100%;
}

.hero .illustration, .story .illustration {
  grid-column: 1;
  grid-row: 1;
}

.illustration {
  position: relative;
  overflow: hidden;
}

.illustration img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-note {
  display: grid;
  justify-items: center;
  padding: var(--section-padding) var(--gutter);
  border-top: 1px solid var(--soft-line);
}

.author-note h2 {
  max-width: 50rem;
}

.story {
  background: #f3e6d6;
}

.feature {
  border-top: 1px solid var(--feature-line);
}

.feature:nth-child(even) {
  box-shadow: inset 1px 0 var(--feature-line);
}

.feature p {
  margin-top: var(--copy-gap);
}

.order {
  background: #f0e2de;
}

.purchase-button, .contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--button-ink);
  background: var(--button-bg);
  text-decoration: none;
  transition: transform 250ms ease, background-color 250ms ease;
}

.purchase-button {
  min-height: 3.5rem;
  max-width: 100%;
  padding: 0.75rem 1.75rem 0.75rem 2.05rem;
  gap: 0.5em;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  text-align: center;
}

.purchase-button svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: calc(0.3rem - 0.125em);
  fill: currentColor;
}

.purchase-button:hover {
  transform: scale(1.0425);
}

.purchase-button:hover, .contact a:hover {
  background: #f7e5dc;
}

a:focus-visible {
  outline: 2px solid #3b3430;
  outline-offset: 4px;
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.375rem;
  min-height: 21rem;
  border-top: 1px solid var(--soft-line);
}

.contact a {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.contact a:hover {
  transform: scale(1.06);
}

.contact svg {
  width: 60%;
  height: 60%;
  fill: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-art img {
    transition: transform 750ms ease, filter 750ms ease;
  }

  .reveal-art.is-pending img {
    transform: scale(1.07375);
    filter: blur(0.36875rem);
  }

  .contact {
    transition: opacity 750ms ease;
  }

  .contact.is-pending:not(:focus-within) {
    opacity: 0;
  }
}

@media (max-width: 1680px) {
  :root {
    font-size: 11pt;
  }
}

@media (max-width: 980px) {
  :root {
    font-size: 9pt;
  }
}

@media (max-width: 736px) {
  :root {
    font-size: 11pt;
    --gutter: 2.5rem;
    --section-padding: 3.5rem;
    --heading-size: 2.75rem;
    --heading-spacing: -0.0875rem;
  }

  .eyebrow {
    font-size: 2.625rem;
  }

  .split, .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .split {
    align-content: center;
  }

  .hero .illustration, .story .illustration {
    grid-row: auto;
  }

  .illustration {
    aspect-ratio: 1;
  }

  .cover {
    aspect-ratio: 1382 / 1409;
  }

  .feature:nth-child(even) {
    border-top: 0;
    box-shadow: inset 0 1px var(--feature-line);
  }

  .contact {
    gap: 1rem;
    min-height: 15.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --copy-gap: 2.078125rem;
  }

  .purchase-button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  :root {
    --gutter: 1.875rem;
    --section-padding: 2.625rem;
    --copy-gap: 1.78125rem;
  }

  .contact {
    gap: 0.75rem;
    min-height: 10.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-button, .contact a {
    transition: none;
  }
}
