:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --accent: #0f172a;
  --accent-ink: #ffffff;
  --radius: 14px;
  --maxw: 920px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.7; }

main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); font-weight: 600; margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 12px; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
  align-items: flex-start;
  padding: 16px 0 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.lede a { color: var(--ink); font-weight: 500; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.hero-photo {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.monogram {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--ink);
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

/* Desktop hero: side-by-side */
@media (min-width: 720px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 32px 0 64px;
  }
  .hero-text { flex: 1; }
  .hero-photo { width: 180px; height: 180px; }
}

/* ---------- Sections ---------- */
section + section {
  padding-top: 40px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  opacity: 1;
}
.card-media {
  width: 100%;
  height: 160px;
  background: #f1f5f9;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-media--logo {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
}
.card-media--logo img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.card-body { padding: 22px; }
.card p { color: var(--ink-soft); margin-bottom: 14px; }
.card .arrow { color: var(--ink); font-weight: 500; font-size: 0.95rem; }

/* ---------- Socials ---------- */
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-list a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
}
.social-list a:hover { background: #f1f5f9; opacity: 1; }

/* ---------- Form ---------- */
.guest-intro {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 20px;
}

#guest-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.92rem;
  font-weight: 500;
}
.req { color: #dc2626; }
.optional { color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; }

.field input,
.field textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field.invalid input,
.field.invalid textarea {
  border-color: #dc2626;
}

#submit-btn {
  justify-self: start;
  margin-top: 4px;
}
#submit-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  min-height: 1.2em;
}
.form-status.success { color: #15803d; }
.form-status.error { color: #dc2626; }

.form-success {
  padding: 18px 20px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: #065f46;
  max-width: 560px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer a { color: var(--ink-soft); }
