/* =========================================================
   Chateau Markham Towns — Groundbreaking Event RSVP
   ========================================================= */

:root {
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #707070;
  --line: #d8d8d8;
  --line-soft: #ececec;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --sky: #cde0ea;
  --sky-2: #e8eff3;
  --accent: #0a0a0a;
  --error: #b00020;
  --success: #1f7a3a;

  --radius: 2px;
  --radius-card: 4px;

  --max: 480px;
  --gutter: 28px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* The HTML `hidden` attribute must beat layout rules below (display:flex etc.) */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--ink-soft); }

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

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  background: var(--bg);
}

/* ---------- HERO ---------- */
.hero {
  padding: 56px var(--gutter) 44px;
  text-align: center;
  background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky) 100%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 22px;
  color: var(--ink);
}

.wordmark {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.04em;
  font-size: 52px;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}

.wordmark-sub {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  font-weight: 500;
  margin: 8px 0 0;
}

.hero-divider {
  width: 100%;
  height: 0;
  margin: 36px 0 28px;
}

.event-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.event-date {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 28px;
  line-height: 1.8;
}

.event-address {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 32px;
  line-height: 1.7;
}

.muted { color: var(--muted); }

.hero-cta { display: inline-block; min-width: 180px; }

/* ---------- BUTTON ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  border-radius: var(--radius);
}

.btn:hover {
  background: var(--ink);
  color: #fff;
}

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

.btn-block {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 13px;
}

.btn[disabled], .btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  background: transparent;
  color: var(--ink);
}

/* ---------- HERO IMAGE ---------- */
.hero-image {
  position: relative;
  width: 100%;
  background: var(--sky);
  margin: 0;
  padding: 0;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
/* soft feather where page-sky meets image-sky (top) */
.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, var(--sky) 0%, rgba(205, 224, 234, 0) 100%);
  pointer-events: none;
  z-index: 1;
}
/* soft fade from image-bottom into white body */
.hero-image::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bg) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- INVITATION COPY ---------- */
.invitation,
.invitation-closer {
  padding: 28px var(--gutter) 8px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  background: var(--bg);
}

.invitation p { margin: 0 0 22px; }
.invitation p:last-child { margin: 0; }

.invitation-closer {
  padding-top: 32px;
  padding-bottom: 16px;
}

/* ---------- EVENT CARD ---------- */
.event-card {
  margin: 28px var(--gutter);
  padding: 32px 24px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-align: center;
  border-radius: var(--radius-card);
}

.event-card-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
}

.event-card-title-sub {
  margin-top: 28px;
}

.event-card-line {
  font-size: 14px;
  margin: 0 0 4px;
}

/* ---------- RSVP SECTION ---------- */
.rsvp-section {
  padding: 40px var(--gutter) 32px;
  background: var(--bg-soft);
  margin-top: 24px;
  scroll-margin-top: 16px;
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  text-align: center;
}

.section-sub {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 26px;
}

/* ---------- FORM ---------- */
.rsvp-form { display: flex; flex-direction: column; gap: 14px; }

.form-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 420px) {
  .form-row.two { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; }

.field label,
.label-like {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
  color: var(--ink-soft);
}

.req { color: var(--error); }

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field select {
  font: inherit;
  font-size: 15px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.12s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23333' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.field input:focus,
.field select:focus {
  border-color: var(--ink);
}

.field.has-error input,
.field.has-error select {
  border-color: var(--error);
}

.field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
}

/* Radio + checkbox */
.radio-row {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 10px 0;
}

.radio,
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
}

.radio input,
.checkbox input {
  margin: 2px 0 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}

.checkbox {
  color: var(--ink-soft);
  font-size: 12px;
  padding: 4px 0;
}

/* Form messages */
.form-message {
  margin: 6px 0 0;
  font-size: 13px;
  min-height: 18px;
  text-align: center;
}
.form-message.is-error { color: var(--error); }
.form-message.is-success { color: var(--success); }

/* Thank you */
.thank-you {
  text-align: center;
  padding: 24px 0 8px;
}
.thank-you h2 {
  font-size: 22px;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.thank-you p {
  font-size: 14px;
  margin: 0 0 12px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-soft);
  padding: 36px var(--gutter) 40px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

.footer-brand {
  font-weight: 600;
  letter-spacing: 0.32em;
  font-size: 14px;
  margin: 0 0 16px;
}

.footer-line {
  font-size: 14px;
  margin: 4px 0;
}

.footer-line a { text-decoration: none; }
.footer-line a:hover { text-decoration: underline; }

.footer-socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 18px 0 14px;
  color: var(--ink);
}
.footer-socials a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}

.footer-platform {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 14px 0 18px;
}
.footer-platform a { text-decoration: none; }

.footer-copy {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0;
}

.footer-small a { color: var(--muted); }

/* ---------- LARGE SCREENS ---------- */
@media (min-width: 720px) {
  :root { --max: 560px; --gutter: 40px; }
  .wordmark { font-size: 68px; }
  .event-title { font-size: 40px; }
}
