/* ============================================
   ENVELOPE ESCAPES — Landing Page Styles
   Palette: Antique Cream + Midnight Blue
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #FFFDF5;
  --cream-dark: #F0EBE0;
  --ink: #0F2847;
  --ink-light: #1B3A5F;
  --ink-faint: rgba(15, 40, 71, 0.1);
  --ink-subtle: rgba(15, 40, 71, 0.2);
  --ink-muted: rgba(15, 40, 71, 0.5);
  --accent-red: #8B3A3A;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --mono: 'Courier Prime', 'Courier New', Courier, monospace;
  --max-width: 860px;
  --margin-xl: 120px;
  --margin-lg: 80px;
  --margin-md: 48px;
  --margin-sm: 24px;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  line-height: 1.7;
  min-height: 100vh;
}

::selection {
  background: var(--ink);
  color: var(--cream);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3.6rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--margin-sm);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

p {
  max-width: 38em;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* --- Layout --- */
.page-wrapper {
  position: relative;
  overflow: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-md);
}

section {
  padding: var(--margin-xl) 0;
}

/* --- Decorative Stamp Motifs (margins) --- */
.stamp-motif {
  position: absolute;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.stamp-motif img {
  display: block;
  width: 180px;
  height: auto;
}

.stamp-motif--top-right {
  top: 180px;
  right: 40px;
  transform: rotate(-18deg);
}

.stamp-motif--left-mid {
  top: 55%;
  left: 24px;
  transform: rotate(22deg);
}

.stamp-motif--right-bottom {
  bottom: 320px;
  right: 60px;
  transform: rotate(-12deg);
}

.stamp-motif--left-bottom {
  bottom: 80px;
  left: 30px;
  transform: rotate(28deg);
}

.stamp-motif--top-left {
  top: 420px;
  left: 65px;
  transform: rotate(-25deg);
}

.stamp-motif--right-mid-top {
  top: 780px;
  right: 55px;
  transform: rotate(15deg);
}

.stamp-motif--left-mid-lower {
  top: 1380px;
  left: 50px;
  transform: rotate(-8deg);
}

.stamp-motif--right-mid-lower {
  top: 1420px;
  right: 80px;
  transform: rotate(20deg);
}

.stamp-motif--right-mid-lower-close {
  top: 1560px;
  right: 65px;
  transform: rotate(-14deg);
}

.stamp-motif--left-bottom-upper {
  bottom: 520px;
  left: 60px;
  transform: rotate(18deg);
}

.stamp-motif--right-bottom-lower {
  bottom: 200px;
  right: 70px;
  transform: rotate(-22deg);
}

/* --- Decorative Stationery Frames --- */
.stationery-frame {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border: 2px solid var(--ink-subtle);
  background: var(--cream);
  overflow: hidden;
}

.stationery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.stationery-frame--letter {
  width: 340px;
  height: 440px;
  top: 850px;
  left: -60px;
  transform: rotate(-4deg);
}

.stationery-frame--postcard {
  width: 400px;
  height: 285px;
  top: 1680px;
  right: -140px;
  transform: rotate(6deg);
  object-fit: contain;
  border: none;
  background: transparent;
}

.stationery-frame--photo {
  width: 280px;
  height: 210px;
  bottom: 680px;
  left: -40px;
  transform: rotate(-7deg);
}

.stationery-frame--art-rotated {
  width: 400px;
  top: 3200px;
  right: -200px;
  transform: rotate(-90deg);
  transform-origin: center center;
  border: none;
  background: transparent;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.cta-banner p {
  max-width: none;
  margin: 0;
}

.cta-banner a {
  color: var(--cream);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.cta-banner a:hover {
  opacity: 0.8;
}

/* --- Header / Nav --- */
.site-header {
  padding: 24px 0;
  border-bottom: 2px solid var(--ink-faint);
  overflow: visible;
}

.site-header .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 128px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header__logo-img {
  width: 88px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: -60px;
  align-self: flex-start;
}

.site-header__logo-text {
  line-height: 1;
  align-self: center;
}

.site-header__nav {
  display: flex;
  align-items: center;
}

.site-header__nav > a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  margin-left: 32px;
  opacity: 0.75;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.site-header__nav > a:hover {
  opacity: 1;
}

.site-header__sub {
  display: flex;
  align-items: center;
  background: var(--ink-light);
  border-radius: 3px;
  padding: 4px 10px;
  margin-left: 32px;
  transition: background 0.2s ease;
}

.site-header__sub:hover {
  background: var(--ink);
}

.site-header__sub a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cream);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 1;
  margin-left: 0;
}

/* --- Hamburger Button (hidden on desktop) --- */
.site-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.site-header__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header__hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.site-header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  padding: 0;
  text-align: center;
  position: relative;
  min-height: calc(100vh - 120px); /* Adjusting for banner + header height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero__overline {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: var(--margin-sm);
  margin-top: var(--margin-lg);
}

.hero h1 {
  margin-bottom: 16px;
}

.hero__subhead {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  opacity: 0.75;
  margin-bottom: var(--margin-lg);
}

/* Hero image frame — looks like a laid-out photo */
.hero__image-frame {
  max-width: 600px;
  width: 90%; /* Responsive width */
  margin: 0 auto;
  padding: 16px;
  background: var(--cream);
  position: relative;
  overflow: visible; /* Allow collage to overflow centered */
}

.hero__image-frame::before {
  content: 'Current Monthly Kit — March 2026';
  position: absolute;
  top: -28px;
  left: 0;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
}

.hero__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.3;
}

/* --- Hero Collage Image --- */
.hero__collage-img {
  width: 120%;
  height: auto;
  display: block;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* --- Divider — postmark style --- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: var(--margin-md) 0;
  opacity: 0.5;
}

.divider__line {
  flex: 1;
  height: 1.5px;
  background: var(--ink);
}

.divider__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Anatomy Section --- */
.anatomy {
  position: relative;
}

.anatomy__intro {
  text-align: center;
  margin-bottom: var(--margin-lg);
}

.anatomy__intro p {
  margin: 12px auto 0;
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
  font-family: var(--serif);
}

.anatomy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--margin-md);
  max-width: 640px;
  margin: 0 auto;
}

.anatomy__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}

.anatomy__item-icon {
  width: 56px;
  height: 56px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.anatomy__item-icon svg {
  opacity: 0.8;
}

.anatomy__item h3 {
  font-family: var(--serif);
}

.anatomy__item p {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.65;
}

.anatomy__item-number {
  font-family: var(--serif);
  font-size: 0.7rem;
  opacity: 0.45;
  display: block;
  margin-bottom: 4px;
}

/* --- How It Works --- */
.how-it-works {
  background: var(--cream-dark);
  border-top: 2px solid var(--ink-subtle);
  border-bottom: 2px solid var(--ink-subtle);
}

.how-it-works__intro {
  text-align: center;
  margin-bottom: var(--margin-lg);
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--margin-md);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.how-it-works__step-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  opacity: 0.18;
  margin-bottom: 8px;
}

.how-it-works__steps h3 {
  font-size: 1.05rem;
}

.how-it-works__steps p {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 8px auto 0;
  max-width: 200px;
}

/* --- Pricing / Subscribe --- */
.pricing {
  text-align: center;
}

.pricing__intro {
  margin-bottom: var(--margin-lg);
}

.pricing__intro p {
  margin: 12px auto 0;
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
  font-family: var(--serif);
}

.pricing__card {
  max-width: 400px;
  margin: 0 auto;
  border: 2px dotted var(--ink);
  padding: var(--margin-md);
  position: relative;
  background: var(--cream);
}

/* Scalloped stamp border via CSS mask */
.pricing__card::before {
  content: '';
  position: absolute;
  inset: -14px;
  background: var(--ink);
  z-index: -1;
  --s: 16px;
  --r: 8px;
  --h: -8px;
  -webkit-mask:
    radial-gradient(var(--r) at 0 50%, #0000 98%, #000) 0 var(--h) / 100% var(--s) repeat-y,
    radial-gradient(var(--r) at 100% 50%, #0000 98%, #000) 0 var(--h) / 100% var(--s) repeat-y,
    radial-gradient(var(--r) at 50% 0, #0000 98%, #000) var(--h) 0 / var(--s) 100% repeat-x,
    radial-gradient(var(--r) at 50% 100%, #0000 98%, #000) var(--h) 0 / var(--s) 100% repeat-x;
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(var(--r) at 0 50%, #0000 98%, #000) 0 var(--h) / 100% var(--s) repeat-y,
    radial-gradient(var(--r) at 100% 50%, #0000 98%, #000) 0 var(--h) / 100% var(--s) repeat-y,
    radial-gradient(var(--r) at 50% 0, #0000 98%, #000) var(--h) 0 / var(--s) 100% repeat-x,
    radial-gradient(var(--r) at 50% 100%, #0000 98%, #000) var(--h) 0 / var(--s) 100% repeat-x;
  mask-composite: intersect;
}

.pricing__card-name {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 8px;
}

.pricing__card-price {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing__card-price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.5;
}

.pricing__card-period {
  font-size: 0.75rem;
  opacity: 0.55;
  margin-bottom: var(--margin-sm);
}

.pricing__card-features {
  list-style: none;
  margin-bottom: var(--margin-md);
  text-align: left;
}

.pricing__card-features li {
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink-faint);
  opacity: 0.8;
}

.pricing__card-features li::before {
  content: '\2713';
  margin-right: 10px;
  opacity: 0.6;
}

/* Subscribe Button */
.btn-subscribe {
  display: inline-block;
  width: 100%;
  padding: 14px 32px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-subscribe:hover {
  background: transparent;
  color: var(--ink);
}

/* Stripe integration note */
.pricing__stripe-note {
  margin-top: 16px;
  font-size: 0.65rem;
  opacity: 0.3;
  font-style: italic;
}

/* --- Footer --- */
.site-footer {
  padding: var(--margin-md) 0 var(--margin-md);
  border-top: 2px solid var(--ink-subtle);
  text-align: center;
}

.site-footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.6;
  margin-bottom: var(--margin-sm);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: var(--margin-sm);
}

.site-footer__links a {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.site-footer__links a:hover {
  opacity: 1;
}

.site-footer__copy {
  font-size: 0.65rem;
  opacity: 0.4;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.pricing__disclaimer {
  margin-top: var(--margin-sm);
  font-size: 0.75rem;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  opacity: 0.65;
  font-style: italic;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* --- FAQ --- */
.faq {
  background: var(--cream-dark);
  border-top: 2px solid var(--ink-subtle);
  border-bottom: 2px solid var(--ink-subtle);
}

.faq__intro {
  text-align: center;
  margin-bottom: var(--margin-lg);
}

.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--margin-md) var(--margin-lg);
  max-width: 800px;
  margin: 0 auto;
}

.faq__item-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  opacity: 0.18;
  margin-bottom: 8px;
}

.faq__item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.faq__item p {
  font-size: 0.8rem;
  opacity: 0.7;
  max-width: 100%;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  :root {
    --margin-xl: 72px;
    --margin-lg: 56px;
    --margin-md: 32px;
  }

  html {
    font-size: 16px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .container {
    padding: 0 var(--margin-sm);
  }

  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: var(--margin-md);
  }

  .faq__grid {
    grid-template-columns: 1fr;
  }

  .stamp-motif {
    display: none;
  }

  /* Header: logo left, hamburger right */
  .site-header .container {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .site-header__hamburger {
    display: flex;
  }

  /* Nav hidden by default on mobile; shown when .is-open */
  .site-header__nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    padding: 16px 0 8px;
    border-top: 1px solid var(--ink-faint);
    margin-top: 16px;
  }

  .site-header__nav.is-open {
    display: flex;
  }

  .site-header__nav > a {
    margin-left: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--ink-faint);
  }

  .site-header__sub {
    margin-left: 0;
    margin-top: 14px;
    justify-content: center;
    align-self: center;
  }

  .site-header__logo-img {
    width: 64px;
  }

  /* Stationery frames: smaller, more transparent, pushed to edges */
  .stationery-frame img {
    opacity: 0.18;
  }

  .stationery-frame--letter {
    width: 180px;
    height: 233px;
    left: -135px;
  }

  .stationery-frame--postcard {
    width: 200px;
    height: 143px;
    right: -158px;
  }

  .stationery-frame--photo {
    width: 150px;
    height: 113px;
    left: -110px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.1rem;
  }

  .anatomy__item {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .anatomy__item-icon {
    width: 44px;
    height: 44px;
  }
}
