@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Variable.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3efe6;
  --bg-warm: #eee8dc;
  --paper: #faf8f3;
  --ink: #2a2723;
  --muted: #6b665e;
  --line: #ddd6c8;
  --sage: #5d6a54;
  --btn: #2a2723;
  --btn-text: #faf8f3;
  --radius: 12px;
  --max: 1120px;
  --narrow: 680px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sage);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(var(--narrow), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.35rem 0 1.25rem;
}

.logo {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1.35rem;
}

.nav a {
  font-size: 0.82rem;
  font-weight: 450;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

/* Hero */

.hero {
  padding: 3.25rem 0 4.5rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}

.hero h1 {
  margin: 0 auto 1rem;
  max-width: 16ch;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.35rem, 6.4vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lede {
  margin: 0 auto 2.25rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.cover {
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 40px -24px rgba(42, 39, 35, 0.35);
}

.cover img {
  width: 100%;
}

.hero-meta {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: #3a3530;
  color: var(--btn-text);
}

.btn:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

/* Sections */

.section {
  padding: 4.25rem 0;
}

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

.section-head {
  margin: 0 0 2rem;
}

.section-head h2,
.page-title {
  margin: 0 0 0.5rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem 1rem;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-warm);
}

.gallery figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Included */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.feature {
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Buy */

.buy {
  text-align: center;
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0;
}

.buy .price {
  margin: 0 0 0.15rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3.4rem, 8vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.buy .price span {
  font-size: 0.42em;
  letter-spacing: 0;
  color: var(--muted);
}

.buy-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.buy-note {
  margin: 1.15rem auto 0;
  max-width: 28rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.buy-note a {
  color: var(--muted);
}

/* Custom */

.custom-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.custom-card h2 {
  margin: 0 0 0.7rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.custom-card p {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.custom-visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-warm);
}

.custom-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* FAQ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 0;
  font-weight: 500;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "–";
}

.faq summary:hover {
  color: var(--sage);
}

.faq .answer {
  padding: 0 0 1.2rem;
  color: var(--muted);
  max-width: 46rem;
}

.faq .answer p {
  margin: 0 0 0.75rem;
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  padding: 2.75rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: baseline;
}

.footer-brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-note {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Inner pages */

.page {
  padding: 2.5rem 0 4.5rem;
}

.page h1 {
  margin: 0 0 0.35rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.page .sub {
  margin: 0 0 2.25rem;
  color: var(--muted);
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose p {
  margin: 0 0 0.9rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.3rem;
}

.thanks {
  text-align: center;
  padding: 4.5rem 0 5.5rem;
}

.thanks h1 {
  margin: 0 auto 0.85rem;
  max-width: 16ch;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.thanks p {
  margin: 0 auto 1rem;
  max-width: 34rem;
  color: var(--muted);
}

.thanks .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Responsive */

@media (max-width: 860px) {
  .gallery,
  .features,
  .custom-card {
    grid-template-columns: 1fr 1fr;
  }

  .custom-card {
    gap: 1.5rem;
  }

  .custom-visual {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 600px) {
  .wrap,
  .wrap-narrow,
  .site-header {
    width: min(var(--max), calc(100% - 1.6rem));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding-top: 1.1rem;
  }

  .hero {
    padding-top: 2.25rem;
  }

  .gallery,
  .features,
  .custom-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section {
    padding: 3.1rem 0;
  }
}

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