/* ---------- Foundations ---------- */
:root {
  --cream: #FBF6EF;
  --cream-deep: #F1E9DD;
  --ink: #3B362F;
  --ink-soft: #6B6258;
  --terracotta: #CB8569;
  --terracotta-deep: #B96E50;
  --sage: #94A88B;
  --rose: #D7A9A2;
  --gold: #E2C9A4;
  --border: #E7DCCB;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

h1, h2, h3, .wordmark {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(203, 133, 105, 0.35);
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}

.email-input {
  flex: 1 1 240px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 22px;
  outline-offset: 2px;
}

.email-input:focus {
  border-color: var(--terracotta);
  outline: 2px solid rgba(203, 133, 105, 0.25);
}

.email-input::placeholder { color: #B7AC9D; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0.8;
  margin: 0;
}

.form-message {
  font-size: 0.9rem;
  color: var(--terracotta-deep);
  min-height: 1.4em;
  margin: 8px 0 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 246, 239, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.wordmark {
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark.small { font-size: 1.15rem; }

.site-nav { display: flex; gap: 28px; }

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--terracotta-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 48px 112px;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(480px, 1.18fr);
  align-items: center;
  gap: clamp(54px, 8vw, 118px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(3.35rem, 5.4vw, 5.35rem);
  line-height: 0.96;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.045em;
}

.hero-sub {
  max-width: 390px;
  margin: 28px 0 32px;
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 25px;
  font-family: var(--serif);
  font-size: 0.9rem;
}

.button-envelope {
  position: relative;
  width: 15px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 1px;
}

.button-envelope::before,
.button-envelope::after {
  position: absolute;
  top: 1px;
  width: 8px;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.92);
}

.button-envelope::before {
  left: 0;
  transform: rotate(34deg);
  transform-origin: left center;
}

.button-envelope::after {
  right: 0;
  transform: rotate(-34deg);
  transform-origin: right center;
}

.hero-still-life {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
}

.paper-note {
  position: relative;
  z-index: 2;
  width: min(100%, 445px);
  min-height: 405px;
  margin-left: 16px;
  padding: 108px 66px 64px 84px;
  color: #312d29;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.58), transparent 35%),
    #f8f3eb;
  border: 1px solid rgba(144, 125, 103, 0.1);
  border-radius: 4px 26px 5px 4px;
  box-shadow:
    0 25px 34px rgba(77, 61, 45, 0.14),
    0 5px 10px rgba(77, 61, 45, 0.08);
  transform: rotate(-1.1deg);
}

.paper-note::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 14px;
  height: 8px;
  content: "";
  background: rgba(81, 66, 51, 0.08);
  filter: blur(7px);
  border-radius: 50%;
}

.paper-tape {
  position: absolute;
  z-index: 3;
  top: -22px;
  left: 50%;
  width: 114px;
  height: 48px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 16% 82%, rgba(98, 78, 57, 0.08)),
    rgba(207, 190, 167, 0.76);
  box-shadow: 0 2px 3px rgba(61, 49, 38, 0.08);
  transform: translateX(-50%) rotate(-4deg);
  clip-path: polygon(1% 9%, 97% 0, 100% 88%, 3% 100%);
}

.paper-quote-mark {
  position: absolute;
  top: 57px;
  left: 53px;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: #8a7462;
}

.paper-note blockquote {
  margin: 0;
}

.paper-note blockquote p {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -0.03em;
  color: #312d29;
}

.paper-note blockquote footer {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4f4942;
}

.paper-note cite {
  font-style: italic;
}

.paperclip {
  position: absolute;
  right: 22px;
  bottom: -19px;
  width: 17px;
  height: 62px;
  border: 2px solid #8b847c;
  border-radius: 13px;
  box-shadow: inset 1px 0 rgba(255, 255, 255, 0.7);
  transform: rotate(13deg);
}

.paperclip::before {
  position: absolute;
  top: 5px;
  left: 3px;
  width: 7px;
  height: 46px;
  content: "";
  border: 2px solid #aaa29a;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.pressed-flower {
  position: absolute;
  z-index: 1;
  right: -36px;
  bottom: -20px;
  width: 145px;
  height: auto;
  filter: drop-shadow(3px 7px 5px rgba(75, 61, 47, 0.14));
  transform: rotate(4deg);
}

/* ---------- About / cards ---------- */
#about, #newsletter { scroll-margin-top: 92px; }

.about { padding: 40px 0 100px; }

.about h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 52px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(59, 54, 47, 0.08);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p { margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Newsletter (inline) ---------- */
.newsletter {
  background: var(--cream-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.newsletter-inner {
  max-width: 620px;
  text-align: center;
}

.newsletter h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: 14px;
}

.newsletter-copy p { font-size: 1.02rem; }

.newsletter .signup-form { justify-content: center; margin-top: 28px; }
.newsletter .form-note { text-align: center; }
.newsletter .form-message { text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 56px 0 64px;
}

.site-footer .tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 6px 0 18px;
}

.site-footer .copyright {
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0.7;
  margin: 0;
}

/* ---------- Newsletter popup modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 54, 47, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-visible { opacity: 1; }

.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  background: var(--cream);
  border-radius: 26px;
  max-width: 440px;
  width: 100%;
  padding: 44px 38px 38px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(59, 54, 47, 0.25);
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.modal-overlay.is-visible .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-deco { width: 64px; margin: 0 auto 18px; }

.modal h2 { font-size: 1.6rem; margin-bottom: 12px; }

.modal p { font-size: 0.97rem; }

.modal .signup-form { justify-content: center; }
.modal .form-note { text-align: center; }
.modal .form-message { text-align: center; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--cream-deep);
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: minmax(270px, 0.8fr) minmax(390px, 1.2fr);
    gap: 38px;
    padding-inline: 32px;
  }

  .paper-note {
    min-height: 370px;
    padding: 98px 52px 56px 66px;
  }

  .paper-note blockquote p {
    font-size: 2.2rem;
  }

  .pressed-flower {
    right: -14px;
    width: 118px;
  }
}

@media (max-width: 600px) {
  .site-header .wrap {
    height: auto;
    padding: 12px 24px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    font-size: 0.88rem;
    padding-bottom: 4px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 72px;
    padding: 58px 24px 92px;
  }
  .hero h1 {
    font-size: clamp(3.4rem, 17vw, 4.55rem);
  }
  .hero-sub {
    max-width: 340px;
    margin: 24px 0 28px;
  }
  .hero-still-life {
    min-height: 385px;
    padding-right: 22px;
  }
  .paper-note {
    width: calc(100% - 28px);
    min-height: 350px;
    margin-left: 0;
    padding: 88px 42px 50px 50px;
  }
  .paper-quote-mark {
    top: 47px;
    left: 31px;
    font-size: 3.5rem;
  }
  .paper-note blockquote p {
    font-size: clamp(2rem, 9vw, 2.45rem);
  }
  .paper-note blockquote footer {
    font-size: 0.86rem;
  }
  .paperclip {
    right: 16px;
  }
  .pressed-flower {
    right: -10px;
    bottom: -18px;
    width: 102px;
  }
  .signup-form { flex-direction: column; }
  .signup-form .btn { width: 100%; }
  .email-input { flex: none; width: 100%; padding: 11px 18px; font-size: 0.9rem; }
}
