/* No. 5 Envelope — waitlist page */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500&family=DM+Sans:wght@400;500;600&display=swap");

:root {
  --cream: #f5efe3;
  --cream-soft: #efe4d2;
  --terracotta: #c98f63;
  --ink: #2c2015;
  --ink-soft: #3a2a1c;
  --body-text: #4a3f33;
  --line: #e0d3bd;
  --input-border: #d9c9ac;
  --link: #8a5a3a;
  --link-hover: #6e4630;
  --footer-text: #e9dfcd;
  --footer-text-soft: #c7b89c;
  --white: #fff;

  --font-serif: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

.wrap {
  padding-left: 56px;
  padding-right: 56px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 56px;
  background: var(--cream);
  flex-wrap: wrap;
  gap: 16px;
}

.nav-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--link);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.hero-copy {
  background: var(--terracotta);
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.hero-copy-ring {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 260px;
  height: 260px;
  opacity: 0.25;
}

.hero-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-copy h1 {
  font-size: 32px;
  line-height: 1.25;
  color: #2c2015;
}

.hero-price {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-cta-line {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-media {
  position: relative;
  background: var(--cream-soft);
  min-height: 420px;
  min-width: 0;
  overflow: hidden;
}

/* Envelope placeholder — no product photography exists yet.
   Swap for a real flat-lay photo of the envelope, postcards, and
   stamps before launch. */
.envelope {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78%;
  max-width: 420px;
  aspect-ratio: 16 / 11;
  top: 0;
  bottom: 0;
}

.envelope-body {
  position: absolute;
  inset: 0;
  background: var(--terracotta);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62%;
  background: var(--ink-soft);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.5;
}

.envelope-seal {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--white);
  transform: translate(-50%, -50%);
}

.envelope-stamp {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 46px;
  height: 56px;
  background: var(--white);
  border: 2px dashed rgba(255, 255, 255, 0.85);
}

/* Section headers (heading + intro copy, two columns) */
.section {
  padding: 100px 56px;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 36px;
}

.section-head p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
}

/* What's in it */
.contents {
  background: var(--cream);
}

.contents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.contents-item {
  background: var(--cream);
  padding: 44px 36px;
}

.contents-item h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.contents-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-text);
}

/* Artist */
.artist {
  background: var(--cream-soft);
  padding-top: 90px;
}

.artist-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.artist-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.artist-gallery figcaption {
  font-size: 14px;
  margin-top: 12px;
  color: var(--body-text);
}

/* Quote */
.quote {
  padding: 110px 56px;
  background: var(--terracotta);
  text-align: center;
}

.quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
}

/* Closing */
.closing {
  background: var(--cream);
  text-align: center;
}

.closing h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.closing > p.closing-copy {
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 40px;
  color: var(--body-text);
}

.closing-cta-line {
  font-size: 14px;
  font-weight: 600;
  color: var(--body-text);
  margin: 0 0 16px;
}

/* Forms */
.form-block {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-copy .form-block {
  margin-top: 8px;
}

.closing .form-block {
  max-width: 440px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--footer-text);
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer .nav-mark {
  color: var(--footer-text);
  font-size: 20px;
}

.footer-contact {
  font-size: 14px;
  color: var(--footer-text-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.footer-contact a {
  color: var(--footer-text);
}

/* MailerLite field wrapper (vendor CSS handles input/button skins) */
.ml-field-group {
  flex: 1;
  min-width: 180px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 280px;
    order: -1;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .contents-grid,
  .artist-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wrap,
  .nav,
  .hero-copy,
  .section,
  .quote,
  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .section-head h2,
  .closing h2 {
    font-size: 26px;
  }

  .quote p {
    font-size: 21px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }
}
