@font-face {
  font-family: Fraunces;
  src: url("/assets/fraunces.woff2") format("woff2");
  font-weight: 600 750;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f5e9;
  --green: #253929;
  --body: #435448;
  --clay: #a23f2c;
  --line: #d7d9c7;
  --leaf: #dce5ce;
  --serif: Fraunces, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--green);
  font: 400 1rem/1.6 var(--sans);
}

a { color: inherit; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 5px;
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }

.shell { width: min(100% - 3.5rem, 72rem); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 3;
  inset: .5rem auto auto .5rem;
  background: var(--green);
  color: white;
  transform: translateY(-200%);
  padding: .6rem 1rem;
}

.skip:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); }

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner { min-height: 4.7rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .63rem;
  flex-shrink: 0;
  color: var(--green);
  font: 700 1.42rem/1 var(--serif);
  letter-spacing: -.045em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  transform: rotate(-20deg);
}

.brand-mark::before, .brand-mark::after {
  position: absolute;
  inset: .02rem auto auto .52rem;
  width: .8rem;
  height: 1.25rem;
  border-radius: 90% 0 90% 0;
  background: #6d8355;
  content: "";
}

.brand-mark::after {
  inset: .53rem auto auto .08rem;
  width: .59rem;
  height: .81rem;
  transform: rotate(-82deg);
  background: #a55639;
}

nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.3rem); }

nav a, .footer a:not(.wordmark) {
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

nav a { white-space: nowrap; }

nav a:hover, .footer a:not(.wordmark):hover { text-decoration: underline; text-underline-offset: .22em; }

.language {
  padding: .37rem .8rem;
  border: 1px solid #b8c3ad;
  border-radius: 2rem;
}

.currency-field { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 700; }

.currency-field select {
  appearance: none;
  padding: .42rem 1.65rem .42rem .7rem;
  border: 1px solid #b8c3ad;
  border-radius: 2rem;
  color: var(--green);
  background-color: #f3f1e3;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: .26rem .26rem;
  background-position: calc(100% - .82rem) 53%, calc(100% - .56rem) 53%;
  background-repeat: no-repeat;
  font: inherit;
  cursor: pointer;
}

.currency-field select:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }

.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: clamp(2.4rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(3rem, 5.4vw, 5rem) clamp(3.2rem, 6.5vw, 6rem);
}

.audience {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  margin: 0 0 1.05rem;
  font-weight: 700;
  font-size: .93rem;
}

.audience span {
  width: .78rem;
  height: .78rem;
  border-radius: 100% 0;
  background: #b0523c;
  transform: rotate(12deg);
}

h1, h2, p, figure { margin: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.06em;
}

h1 { font-size: clamp(3.1rem, 6.1vw, 5.65rem); line-height: .98; }

h1 em {
  display: block;
  margin-top: .08em;
  color: var(--clay);
  font-size: .83em;
  font-style: normal;
  font-weight: 650;
  letter-spacing: -.054em;
}

.intro {
  max-width: 29rem;
  margin-top: 1.38rem;
  color: var(--body);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
}

.purchase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1rem;
  margin-top: 1.55rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.12rem;
  padding: .65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .57rem;
  font: 700 .975rem/1.2 var(--sans);
  text-decoration: none;
  text-align: center;
}

.button-primary { background: var(--green); color: #fffaf0; }
.button-primary:is(:hover, :focus-visible):not(:disabled) { background: #405742; }
.button-primary:disabled { background: #e4e7d7; border-color: #cbd4bd; color: #3d4c3d; }
.button-outline { border-color: #adb8a5; }
.button-outline:hover { background: #e8ecdd; }

.price { white-space: nowrap; font-weight: 700; font-size: 1.15rem; }
.price small { font-size: .67em; }
.checkout-note { margin-top: .63rem; max-width: 27rem; color: var(--body); font-size: .875rem; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  gap: 1.55rem;
  isolation: isolate;
  padding: 2.55rem 1.2rem 1.15rem;
  min-width: 0;
}

.hero-art::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid #d1dcc1;
  border-radius: 50% 50% 1.5rem 1.5rem / 34% 34% 1.5rem 1.5rem;
  background: radial-gradient(ellipse at 54% 3%, #edf1da, #dce6cf 72%);
  content: "";
}

.book {
  width: min(84%, 23.3rem);
  overflow: hidden;
  color: #313c26;
  background: #fff0bf;
  border-left: .45rem solid #b25b37;
  border-radius: .28rem .55rem .55rem .28rem;
  box-shadow: .28rem .32rem 0 #f6eed9, .55rem .67rem 0 #8a7849, .9rem 1.22rem 1.55rem #35422d39;
  transform: rotate(4deg);
  text-decoration: none;
}

.book-title {
  display: grid;
  padding: .75rem .5rem .63rem;
  text-align: center;
  font: 700 clamp(1.1rem, 2.14vw, 1.67rem)/1.06 var(--serif);
  letter-spacing: -.045em;
}

.book-title span { margin-top: .13em; color: var(--clay); font-size: .84em; }
.hero-art figcaption { color: var(--body); font-size: .88rem; text-align: center; }

h2 { font-size: clamp(1.95rem, 4.2vw, 3.4rem); line-height: 1.05; }

.inside {
  padding-block: clamp(3rem, 5.6vw, 5rem);
  background: #f0ecdc;
  border-block: 1px solid #e1decd;
}

.section-intro { margin-bottom: 1.85rem; }
.section-intro p { margin-top: .65rem; color: var(--body); font-size: 1.05rem; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.catalog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid #d8d9c7;
  border-radius: 1.15rem;
  background: #fbf8ee;
}

.catalog-image {
  display: grid;
  place-items: center;
  border-radius: .68rem;
  overflow: hidden;
  background: var(--leaf);
}
.catalog-image img { width: 100%; height: clamp(11rem, 23vw, 16rem); object-fit: contain; }
.catalog-copy { display: flex; flex-direction: column; flex: 1; padding-top: 1rem; }
.catalog-copy .product-category { color: var(--clay); font-size: .9rem; font-weight: 700; }
.catalog-copy h3 { margin: .28rem 0 .54rem; font: 700 clamp(1.55rem, 2.2vw, 1.95rem)/1.12 var(--serif); letter-spacing: -.04em; }
.catalog-copy > p { color: var(--body); }
.catalog-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem; padding-top: 1rem; margin-top: auto; }
.home-sample { margin-block: clamp(3rem, 6vw, 5.5rem); }
.home-sample .sample-callout { width: min(100%, 52rem); }
.back-row { padding-top: 1.4rem; }
.back-row a { color: var(--body); font-weight: 700; text-underline-offset: .25em; }
.product-hero { padding-top: clamp(1.5rem, 3vw, 3rem); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2.4vw, 1.75rem); }

.sample-card {
  min-width: 0;
  padding: clamp(.7rem, 2.5vw, 1.55rem);
  border-radius: 1rem;
}

.sample-yellow { background: #f5e2ad; }
.sample-green { background: #dbe6cd; }
.sample-pink { background: #efdad1; }

.sample-paper {
  position: relative;
  margin-inline: auto;
  padding: .75rem;
  max-width: 16rem;
  background: #fffdf8;
  border-radius: .25rem;
  box-shadow: 0 .2rem .65rem #27342626;
}

.sample-paper img { aspect-ratio: 1 / .9; width: 100%; height: auto; object-fit: cover; }

.sample-label {
  position: absolute;
  inset: auto .75rem .75rem auto;
  padding: .1rem .47rem;
  background: #fffdf3;
  border: 1px solid #d8d9cc;
  border-radius: .3rem;
  color: var(--body);
  font-size: .78rem;
}

.sample-card figcaption { margin-top: .9rem; line-height: 1.24; text-align: center; }
.sample-card strong { display: block; font-size: clamp(.92rem, 2vw, 1.07rem); }
.sample-card figcaption > span { display: block; margin-top: .21rem; color: var(--body); font-size: .86rem; }

.details {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(1.6rem, 6vw, 5rem);
  margin-block: clamp(3rem, 6vw, 5.5rem);
}

.sample-callout {
  padding: clamp(1.4rem, 4vw, 2.75rem);
  border: 1px solid #d0dbc0;
  border-radius: 1rem 1rem 3rem 1rem;
  background: var(--leaf);
  scroll-margin-top: 1rem;
}

.sample-callout h2, .formats h2 { font-size: clamp(1.8rem, 3.25vw, 2.45rem); }
.sample-callout p { margin-top: .68rem; color: var(--body); }
.sample-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }

.button-sample { min-height: 2.7rem; background: #f6f8ec; border-color: #a2b394; }
.button-sample:hover { background: #fffdf7; border-color: var(--green); }

.formats ul { margin: .85rem 0 0; padding-inline-start: 1.2rem; color: var(--body); }
.formats li + li { margin-top: .47rem; }
.formats li::marker { color: var(--clay); }

.faq { display: grid; grid-template-columns: 1fr 1.55fr; gap: 1.5rem 3.8rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.faq h2 { font-size: clamp(1.85rem, 3.3vw, 2.55rem); }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { padding: .8rem 0; font-weight: 700; cursor: pointer; }
details p { padding: 0 .7rem 1rem 1rem; color: var(--body); }

.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.5rem; }
.footer-inner p { color: var(--body); font-size: .88rem; }

@media (max-width: 53rem) {
  .hero { gap: 1.6rem; }
  .hero-art { padding: 1.65rem .75rem .9rem; gap: 1.2rem; }
  .book { width: 88%; }
}

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 4rem; }
  .hero, .details, .faq { grid-template-columns: 1fr; }
  .hero { gap: 1.85rem; padding-block: 2.35rem 2.8rem; }
  .hero-art { padding: 1.8rem .9rem 1rem; }
  .book { width: min(78%, 18rem); }
  .book-title { font-size: clamp(1.06rem, 4.1vw, 1.48rem); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample-card:last-child { grid-column: 1 / -1; width: calc((100% - .75rem) / 2); justify-self: center; }
  .sample-paper { padding: .42rem; }
  .sample-label { display: none; }
  .faq { gap: 1rem; }
  .footer-inner { flex-wrap: wrap; padding-block: 1.25rem; }
  .footer-inner p { order: 1; width: 100%; }
}

@media (max-width: 44rem) {
  .header-inner { flex-direction: column; align-items: stretch; gap: .45rem; padding-block: .85rem .45rem; }
  .header-inner .wordmark { align-self: flex-start; }
  nav { flex-wrap: wrap; justify-content: space-between; column-gap: .7rem; row-gap: .25rem; }
  nav a, .currency-field select { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .currency-field label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
}

@media (max-width: 35rem) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .sample-card:last-child { width: auto; grid-column: auto; justify-self: stretch; }
  .sample-paper { max-width: 20rem; }
  .hero-copy { min-width: 0; }
  h1 { font-size: clamp(2.5rem, 10vw, 3.1rem); overflow-wrap: break-word; }
}
.formats:only-child { grid-column: 1 / -1; }
.sample-product { display: inline-block; margin-top: 1rem; font-weight: 700; text-underline-offset: .2em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.printed-pages .sample-paper img { aspect-ratio: 210 / 297; object-fit: contain; }
