/* ============================================
   ME & CO — locked brand system
   ============================================ */

:root {
  --blush: #FCC4B4;
  --charcoal: #2F2E2E;
  --gold: #C8A878;
  --cream: #F8F2EA;
  --paper: #FBF6EF;
  --warm-brown: #7a4530;
  --gold-text: #7F5F30; /* deeper gold for small text on light grounds (WCAG AA) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   SECTION 1 — HERO (blush)
   ============================================ */
.hero {
  min-height: 100vh;
  background: var(--blush);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 60px; /* top clears the sticky header */
  text-align: center;
  position: relative;
}

.hero .eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 40px;
}

.hero .wordmark {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 7vw, 64px);
  letter-spacing: 0.42em;
  color: var(--charcoal);
  margin-left: 0.21em; /* compensate for trailing spacing */
  margin-bottom: 32px;
  white-space: nowrap;
}

.hero .rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
  opacity: 0.7;
}

.hero .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--charcoal);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero .subtitle {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  max-width: 320px;
  margin-bottom: 24px;
}

.hero .opening {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-top: 8px;
}

.hero .cta {
  display: inline-block;
  margin-top: 36px;
  padding: 16px 36px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--charcoal);
  text-decoration: none;
  transition: all 0.2s;
}

.hero .cta:hover {
  letter-spacing: 0.36em;
}

/* Subtle scroll indicator */
.hero::after {
  content: "";
  position: absolute;
  bottom: 40px;
  left: 50%;
  width: 1px;
  height: 24px;
  background: var(--charcoal);
  opacity: 0.3;
}

/* ============================================
   SECTION 2 — THE PROMISE (cream)
   ============================================ */
.promise {
  background: var(--cream);
  padding: 80px 24px;
  text-align: center;
}

.promise-inner {
  max-width: 540px;
  margin: 0 auto;
}

.promise p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.6;
  color: var(--charcoal);
  letter-spacing: 0.005em;
}

/* ============================================
   SECTION 3 — SIGNUP (blush)
   ============================================ */
.signup {
  background: var(--blush);
  padding: 120px 24px;
  text-align: center;
}

.signup-inner {
  max-width: 480px;
  margin: 0 auto;
}

.signup h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 44px);
  color: var(--charcoal);
  margin-bottom: 18px;
  line-height: 1.2;
}

.signup .sub {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 36px;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 460px;
  text-align: left;
}

.benefits li {
  padding: 22px 0;
  border-bottom: 1px solid rgba(47, 46, 46, 0.18);
}

.benefits li:first-child {
  border-top: 1px solid rgba(47, 46, 46, 0.18);
}

.benefit-title {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 6px;
}

.benefit-detail {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.join-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--charcoal);
  margin-bottom: 36px;
  line-height: 1.4;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 380px;
  margin: 0 auto;
}

.signup-form input {
  width: 100%;
  padding: 16px 18px;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--charcoal);
  letter-spacing: 0.01em;
  outline: none;
  transition: border-color 0.2s;
}

.signup-form input::placeholder {
  color: var(--charcoal);
  opacity: 0.8;
}

.signup-form input:focus {
  border-bottom-color: var(--warm-brown);
}

.signup-form button {
  margin-top: 24px;
  padding: 16px 32px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blush);
  background: var(--charcoal);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.signup-form button:hover {
  background: #1f1e1e;
  letter-spacing: 0.36em;
}

.signup-form button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0 4px 0;
  cursor: pointer;
}

.consent-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--charcoal);
  cursor: pointer;
}

.consent-line span {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.5;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.contact-choice {
  padding: 8px 0 4px 0;
}

.contact-choice-label {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--charcoal);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.contact-radios {
  display: flex;
  gap: 32px;
  align-items: center;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-right: 8px;
}

.radio-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--charcoal);
  cursor: pointer;
  margin: 0;
}

.radio-option span {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.form-message {
  margin-top: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--charcoal);
  min-height: 1em;
  opacity: 0;
  transition: opacity 0.4s;
}

.form-message.visible { opacity: 1; }
.form-message.error { color: #8a3a3a; font-style: normal; font-family: 'Raleway', sans-serif; font-size: 13px; }

/* ============================================
   SECTION 3 — VENUES (paper/cream)
   ============================================ */
.venues {
  background: var(--cream);
  padding: 100px 24px 100px;
  text-align: center;
}

.venues .eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 80px;
}

.venue {
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid rgba(47,46,46,.12);
}

.venue:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.venue:last-of-type {
  padding-bottom: 48px;
}

.venue h1,
.venue h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 34px;
  color: var(--charcoal);
  margin: 0 0 22px;
  line-height: 1.2;
}

.venue p {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--charcoal);
  max-width: 500px;
  margin: 0 auto 14px;
  letter-spacing: 0.01em;
}

.venue p em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
}

.venue p.venue-access {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 400;
}

.venue p.venue-access.venue-glance {
  margin-top: 10px;
  font-size: 11px;
}

.venues-nudge {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  margin-top: 14px;
}

.venue .venue-cta {
  display: inline-block;
  margin-top: 22px;
  padding: 15px 34px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--blush);
  background: var(--charcoal);
  text-decoration: none;
  transition: all 0.2s;
}

.venue .venue-cta:hover {
  letter-spacing: 0.34em;
  background: #1f1e1e;
}

/* Paragraph measure: no block of body text wider than 680px */
p { max-width: 680px; }

.venue p.venue-close {
  margin-top: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--charcoal);
}

.venues-close {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--charcoal);
  margin-top: 40px;
  line-height: 1.4;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Divider between venues */
.venue:not(:last-of-type)::after {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 60px auto 0;
}

/* ============================================
   SECTION 5 — FOOTER (charcoal)
   ============================================ */
.footer {
  background: var(--charcoal);
  color: var(--blush);
  padding: 90px 24px 60px;
  text-align: center;
}

.footer-address {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--blush);
}

.footer-opening {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 50px;
}

.footer-links {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--blush);
  margin-bottom: 50px;
}

.footer-links a {
  color: var(--blush);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 0.7; }
.footer-links .sep {
  margin: 0 20px;
  opacity: 0.4;
}

.footer-links .ig-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: var(--blush);
  transition: opacity 0.2s;
}

.footer-links .ig-icon:hover {
  opacity: 0.7;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--blush);
  opacity: 0.9;
  margin-bottom: 36px;
}

.footer-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 36px;
  opacity: 0.5;
}

.footer-copyright {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blush);
  opacity: 0.7;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 640px) {
  .hero { padding: 88px 20px 40px; }
  .promise, .signup, .venues { padding: 80px 20px; }
  .footer { padding: 70px 20px 50px; }
  .footer-links .sep { display: block; margin: 12px 0; }
  .venue { margin-bottom: 60px; }
  .venue h1, .venue h3 { font-size: 30px; }
  .venue p { font-size: 14px; }
}

/* ============================================
   THE DIARY — weekly programme
   ============================================ */
.diary{ background:var(--cream); padding:88px 24px; }
.diary-inner{ max-width:680px; margin:0 auto; }
.diary .d-eyebrow{ font-family:'Raleway',sans-serif; font-weight:400; font-size:11px; letter-spacing:.34em; text-transform:uppercase; color:var(--gold-text); text-align:center; }
.diary h1, .diary h2{ font-family:'Raleway',sans-serif; font-weight:200; font-size:clamp(28px,5vw,44px); letter-spacing:.08em; margin:16px 0 10px; color:var(--charcoal); text-align:center; }
.diary .d-sub{ text-align:left; font-size:15px; line-height:1.7; color:var(--charcoal); margin:0 0 48px; }
.d-item{ border-top:1px solid rgba(47,46,46,.14); padding:26px 0; }
.d-item:last-of-type{ border-bottom:1px solid rgba(47,46,46,.14); }
.d-when{ font-family:'Raleway',sans-serif; font-weight:400; font-size:10.5px; letter-spacing:.28em; text-transform:uppercase; color:var(--gold-text); }
.d-name{ font-family:'Raleway',sans-serif; font-weight:300; font-size:21px; letter-spacing:.12em; text-transform:uppercase; color:var(--charcoal); margin:8px 0 8px; }
.d-glance{ font-family:'Raleway',sans-serif; font-weight:400; font-size:10.5px; letter-spacing:.28em; text-transform:uppercase; color:var(--gold-text); margin:0 0 14px; line-height:1.7; }
.d-desc{ font-size:15px; line-height:1.75; color:var(--charcoal); margin:0 0 6px; }
.d-detail{ font-size:13px; line-height:1.7; color:var(--charcoal); }
.d-cta{ display:inline-block; margin-top:14px; padding:11px 24px; font-family:'Raleway',sans-serif; font-weight:400; font-size:10.5px; letter-spacing:.26em; text-transform:uppercase; color:var(--blush); background:var(--charcoal); text-decoration:none; transition:all .2s; }
.d-cta:hover{ letter-spacing:.30em; background:#1f1e1e; }
.d-cta.ghost{ background:transparent; color:var(--charcoal); border:1px solid rgba(47,46,46,.28); margin-left:8px; }
.d-cta.ghost:hover{ border-color:var(--gold); }
.diary .d-close{ text-align:left; margin-top:46px; font-size:16px; color:var(--charcoal); }

/* ============================================
   HOMEPAGE — explore cards
   ============================================ */
.explore {
  background: var(--paper);
  padding: 100px 24px;
}

.explore-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 28px 44px;
  background: var(--cream);
  border: 1px solid rgba(47,46,46,.12);
  color: var(--charcoal);
  text-decoration: none;
  transition: border-color 0.2s;
}

.home-card:hover { border-color: var(--gold); }

.home-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 34px;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.home-card p {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.home-card .card-link {
  margin-top: auto;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: letter-spacing 0.2s;
}

.home-card:hover .card-link { letter-spacing: 0.32em; }

@media (max-width: 640px) {
  .explore { padding: 80px 20px; }
  .explore-grid { grid-template-columns: 1fr; }
  .home-card h2 { font-size: 30px; }
}

/* ============================================
   PHOTOGRAPHY
   Layouts key off :has(), so if a photo fails to load and its
   figure is removed, the section falls back to its text-only layout.
   ============================================ */
.hero {
  background:
    linear-gradient(rgba(252,196,180,.82), rgba(252,196,180,.82)),
    url('/images/hero-bead-bottles.webp') center / cover no-repeat,
    var(--blush);
}

.media { margin: 0; overflow: hidden; background: var(--cream); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Homepage cards: photo across the top of each card */
.home-card:has(> .card-media) { padding-top: 0; overflow: hidden; }
.home-card .card-media { width: calc(100% + 56px); margin: 0 -28px 40px; aspect-ratio: 4 / 3; }

/* /bead-bar: photo under the heading */
.venue .venue-media { aspect-ratio: 3 / 2; margin: 0 auto 32px; }

/* /parties: gallery in a row, one column per photo */
.p-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; max-width: 880px; margin: 10px auto 30px; }
.p-gallery:not(:has(img)) { display: none; }
.p-gallery .media { aspect-ratio: 4 / 5; }
.p-gallery .media:only-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }

/* Sessions with a photo beside the text */
.diary-inner:has(.d-media) { max-width: 920px; }
.d-item:has(> .d-media) { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.d-item .d-media { aspect-ratio: 4 / 5; }

@media (max-width: 720px) {
  .p-gallery { grid-auto-flow: row; grid-template-columns: 1fr; }
  .p-gallery .media { aspect-ratio: 4 / 3; }
  .d-item:has(> .d-media) { grid-template-columns: 1fr; gap: 22px; }
  .d-item .d-media { aspect-ratio: 4 / 3; }
}

/* ============================================
   GIFT CARDS — homepage banner
   ============================================ */
.gift-banner {
  background: var(--blush);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 32px;
  text-align: center;
}
.gift-banner p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.4;
  color: var(--charcoal);
}
.gift-banner .d-cta { margin-top: 0; white-space: nowrap; }

@media (max-width: 640px) {
  .gift-banner { flex-direction: column; padding: 32px 20px; }
  .gift-banner p { font-size: 19px; }
}
