/* ==========================================================================
   The Other Speeches: site styles
   Colours and fonts live in the :root block below, change them once, and
   they change everywhere.
   ========================================================================== */

:root {
  --bone: #F3EEE6;
  --parchment: #EAE3D6;
  --green: #2B3626;
  --green-card: #344030;
  --green-line: #4A5A44;
  --wine: #6B2A33;
  --stone: #9A9082;
  --stone-light: #CFC6B8;
  --line: #CBBFA9;
  --field-line: #B9AE99;
  --text-soft: #3E4A38;
  --text-muted: #4A5443;
  --on-green: #E6DFD2;
  --on-green-soft: #D9D2C4;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 56px;
  --section-pad: 120px;
}

@media (max-width: 760px) {
  :root { --gutter: 24px; --section-pad: 80px; }
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--green);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--wine); }
a:hover { color: var(--green); }
em { font-style: italic; }

[id] { scroll-margin-top: 16px; }
#what-you-get, #enquire { scroll-margin-top: 0; }

:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 3px;
}
.on-green :focus-visible, .site-footer :focus-visible {
  outline-color: var(--stone-light);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--green);
  color: var(--bone);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--bone); }

/* ---------- Shared pieces ---------- */
.wrap {
  max-width: 1328px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--narrow { max-width: 1216px; margin: 0 auto; }

.rule {
  width: 72px;
  height: 2px;
  background: var(--stone);
  margin-bottom: 36px;
}
.on-green .rule { background: var(--stone-light); }

.serif { font-family: var(--serif); font-weight: 400; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  background: var(--green);
  color: var(--bone);
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--wine); color: var(--bone); }
.btn--bone { background: var(--bone); color: var(--green); }
.btn--bone:hover { background: var(--parchment); color: var(--wine); }

.btn--outline {
  min-height: 48px;
  padding: 0 26px;
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 15px;
}
.btn--outline:hover { background: var(--green); color: var(--bone); }

.body-text {
  margin: 0;
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-soft);
}
.on-green .body-text { color: var(--on-green); }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--green); }
.wordmark em, .accent { color: var(--wine); }

@media (max-width: 560px) {
  .wordmark { font-size: 28px; }
  .nav .btn--outline { min-height: 44px; padding: 0 20px; font-size: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 120px;
}
.hero__copy { flex: 1 1 520px; min-width: 0; }
.hero .rule { margin-bottom: 40px; }
.hero h1 {
  font-size: clamp(46px, 7.2vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero h1 span { display: block; }
.hero h1 .accent { margin-top: 12px; font-style: italic; }
.hero__lede {
  margin: 40px 0 0;
  max-width: 520px;
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-soft);
}
.hero__cta { margin-top: 44px; }

.arch {
  flex: 1 1 420px;
  min-width: 0;
  position: relative;
  height: 660px;
  border-radius: 260px 260px 6px 6px;
  background: #DDD3C2;
  border: 1px solid var(--line);
  overflow: hidden;
}
.arch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}

@media (max-width: 760px) {
  .hero { gap: 48px; padding-top: 24px; padding-bottom: 80px; }
  .arch { flex-basis: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 200px 200px 6px 6px; }
}

/* ---------- The speeches ---------- */
.speeches { background: var(--parchment); padding: var(--section-pad) var(--gutter); }
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
}
.split__lead { flex: 1 1 420px; min-width: 0; }
.split__body { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }

.speeches h2 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.speeches h2 span { display: block; }
.speeches h2 .accent { margin-top: 10px; font-style: italic; }

.question {
  margin: 6px 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.3;
  color: var(--green);
}
.split__body .btn-row { margin-top: 14px; }

/* ---------- What you get ---------- */
.get {
  background: var(--green);
  color: var(--bone);
  padding: var(--section-pad) var(--gutter);
}
.get .split__lead { flex-basis: 380px; }
.get .split__body { flex-basis: 520px; }
.get h2 {
  font-size: clamp(46px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.get__label {
  margin-top: 56px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  line-height: 1.1;
  color: var(--bone);
}
.eyebrow {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--stone-light);
}
.pull {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  color: var(--bone);
}

.included { margin-top: 112px; }
.included h3 {
  margin-bottom: 40px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  color: var(--bone);
}
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  flex: 1 1 340px;
  min-width: 0;
  padding: 36px 32px 40px;
  background: var(--green-card);
  border: 1px solid var(--green-line);
  border-radius: 4px;
}
.card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  color: var(--stone-light);
}
.card__title {
  margin: 22px 0 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bone);
}
.card__text {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-green-soft);
}
.included .btn-row { margin-top: 56px; }
.footnote {
  margin: 56px 0 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.7;
  color: #CFC8BA;
}

@media (max-width: 760px) {
  .included { margin-top: 72px; }
  .get__label { margin-top: 40px; }
  .card { padding: 28px 24px 32px; }
}

/* ---------- Enquiry ---------- */
.enquire { background: var(--bone); padding: var(--section-pad) var(--gutter); }
.enquire .split { gap: 72px; }
.enquire .split__lead { flex-basis: 380px; }
.enquire h2 {
  font-size: clamp(42px, 5.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.enquire h2 em { color: var(--wine); }
.enquire__intro { margin: 36px 0 0; max-width: 460px; }

.form {
  flex: 1 1 520px;
  min-width: 0;
  background: var(--parchment);
  border-radius: 6px;
  padding: 48px 44px;
}
@media (max-width: 760px) {
  .form { padding: 32px 22px; }
}
.form__row { display: flex; flex-wrap: wrap; gap: 24px; }
.form__row > .field { flex: 1 1 220px; min-width: 0; }
.field { margin-top: 24px; }
.form__row .field { margin-top: 0; }

.form label.label, .form legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}
.form legend { margin-bottom: 6px; }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--bone);
  border: 1px solid var(--field-line);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--green);
}
.form input[type="date"] {
  display: block;
  min-width: 0;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}
.form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}
.form input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.form input[type="date"]::-webkit-datetime-edit { padding: 0; }
.form textarea {
  height: auto;
  padding: 14px 16px;
  line-height: 1.6;
  resize: vertical;
}
.form input:focus-visible, .form textarea:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 1px;
  border-color: var(--wine);
}
.form fieldset { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.fieldset--tight .choices { gap: 4px 28px; }
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
  color: var(--green);
  cursor: pointer;
}
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.help { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.form .btn-row { margin-top: 32px; }
.form .btn { padding: 0 38px; }

/* Honeypot: hidden from people, visible to spam bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); padding: 72px var(--gutter); color: var(--stone-light); }
.site-footer__inner {
  max-width: 1216px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
.logo-stack {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--bone);
  text-decoration: none;
}
.logo-stack:hover { color: var(--bone); }
.logo-stack span { display: block; }
.logo-stack .o { font-style: italic; color: var(--stone-light); }

.monogram {
  display: flex;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 120px;
  line-height: 1;
  color: var(--bone);
}
.monogram .o { font-style: italic; position: relative; z-index: 2; }
.monogram .s { margin-left: -30px; position: relative; z-index: 1; color: var(--stone-light); }

.site-footer__meta { display: flex; flex-direction: column; gap: 20px; }
.site-footer__note {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-light);
}
.social { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; margin: 0 0 0 -10px; padding: 0; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--bone);
  transition: color .2s ease, transform .2s ease;
}
.social a:hover { color: var(--stone-light); transform: translateY(-2px); }
.social svg { display: block; width: 24px; height: 24px; }

@media (max-width: 560px) {
  .logo-stack { font-size: 56px; }
  .monogram { font-size: 96px; }
  .monogram .s { margin-left: -24px; }
}

/* ---------- Simple pages (thanks, 404) ---------- */
.simple {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 96px;
}
.simple h1 {
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.simple h1 .accent { font-style: italic; }
.simple h1.compact { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.015em; }
.simple p { margin: 32px 0 0; max-width: 520px; }
.simple .btn { margin-top: 40px; align-self: flex-start; }
.simple p + p { margin-top: 20px; }
.simple .signoff { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.2; color: var(--wine); }

/* ---------- Phone tweaks (kept last so they win) ---------- */
@media (max-width: 760px) {
  .split, .enquire .split { gap: 40px; }
}

/* ---------- Wedding date calendar (built by assets/js/date-picker.js) ---------- */
.date-wrap { position: relative; }
.date-wrap input[type="text"] { padding-right: 56px; }
.date-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--green);
  cursor: pointer;
  transition: color .2s ease;
}
.date-toggle:hover, .date-toggle[aria-expanded="true"] { color: var(--wine); }

.cal {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 296px;
  max-width: 360px;
  padding: 18px 16px 14px;
  background: var(--bone);
  border: 1px solid var(--field-line);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(43, 54, 38, 0.18);
}
.cal[hidden] { display: none; }
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.cal__title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--green);
  text-align: center;
}
.cal__title em { color: var(--wine); }
.cal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--green);
  cursor: pointer;
  transition: background-color .2s ease;
}
.cal__nav:hover:not(:disabled) { background: var(--parchment); }
.cal__nav:disabled { opacity: 0.35; cursor: not-allowed; }
.cal__nav:focus-visible, .cal__day:focus-visible { outline: 3px solid var(--wine); outline-offset: 1px; }

.cal__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal__table th {
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
.cal__table td { padding: 1px; text-align: center; }
.cal__day {
  width: 100%;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--green);
  cursor: pointer;
  transition: background-color .15s ease;
}
.cal__day:hover:not(:disabled) { background: var(--parchment); }
.cal__day.is-today { border-color: var(--wine); }
.cal__day[aria-pressed="true"] { background: var(--green); color: var(--bone); }
.cal__day:disabled { color: var(--stone); opacity: 0.55; cursor: not-allowed; }

@media (max-width: 760px) {
  .cal { max-width: none; }
}
