/* site.css: layout only. Every color, font and corner comes from theme.css. */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
}

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

.skip {
  position: absolute; left: 8px; top: -40px;
  background: var(--ink); color: var(--paper);
  padding: 8px 12px; border-radius: var(--radius); z-index: 10;
}
.skip:focus { top: 8px; }

.page {
  max-width: var(--column);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  padding: 48px 24px 32px;
}

@media (min-width: 520px) {
  .page { margin: 32px auto; min-height: 0; padding: 56px 32px 40px; }
}

[hidden] { display: none !important; }

/* ---------- Header ---------- */

.header { text-align: center; }

.headshot {
  width: 140px; height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  object-fit: cover;
  background: var(--mist);
}

.name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.wordmark,
.label {
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  font-size: 12px;
}

.wordmark { margin: 0 0 20px; font-weight: 500; }

.label {
  color: var(--accent-ink);
  margin: 0 0 12px;
  font-weight: 500;
}

.realtor { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0; color: var(--accent);
  font-size: 11px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.divider--bare::before, .divider--bare::after { display: none; }
.divider--bare { justify-content: center; }

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 28px;
}

/* Event mode: smaller header, event and form right below it. */
:is(.is-event, .is-passed) .headshot { width: 96px; height: 96px; margin-bottom: 14px; }
:is(.is-event, .is-passed) .name { font-size: 26px; }
:is(.is-event, .is-passed) .realtor,
:is(.is-event, .is-passed) .divider--header,
:is(.is-event, .is-passed) .tagline { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--btn-radius);
  border: 1.5px solid var(--btn-secondary-line);
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-ink);
  font: inherit;
  font-size: 13px;
  font-weight: var(--btn-weight);
  text-transform: var(--btn-case);
  letter-spacing: var(--btn-tracking);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--accent); }

.btn--primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  min-height: 56px;
}
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.btn[disabled] { opacity: .6; cursor: progress; }

.actions { display: grid; gap: 12px; margin-bottom: 36px; }
.actions__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions__pair .btn { min-height: 48px; padding: 10px 8px; font-size: 12px; letter-spacing: calc(var(--btn-tracking) * 0.75); white-space: nowrap; }
@media (max-width: 339px) { .actions__pair { grid-template-columns: 1fr; } }

.btn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.btn-row .btn { letter-spacing: 0.02em; text-transform: none; min-height: 48px; }

.text-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  padding: 6px 0;
  background: none; border: 0; color: inherit; cursor: pointer; font-family: inherit;
}
.text-link:hover { color: var(--accent-ink); }

/* ---------- Sections ---------- */

.section { margin: 0 0 40px; }

/* Links */
.links { list-style: none; margin: 0; padding: 0; }
.links li { border-bottom: 1px solid var(--line); }
.links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 10px 0;
  text-decoration: none;
}
.links a:hover .links__title { color: var(--accent-ink); }
.links__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 22px;
}
.links__meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Events list */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.event { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.event__date { text-align: center; }
.event__month { font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }
.event__day {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 34px; line-height: 1.05;
}
.event__title {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 22px; line-height: 1.2; margin: 0 0 4px;
}
.event__when, .event__desc { margin: 0; font-size: 13px; color: var(--muted); }
.seats { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.event__desc { color: var(--ink); margin-bottom: 4px; }

/* Featured event (event link) */
.feature {
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: var(--card-radius);
  padding: 22px 22px 24px;
  margin: 24px 0 28px;
}
.feature__title {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 30px; line-height: 1.15; margin: 0 0 12px;
}
.feature p { margin: 0 0 4px; font-size: 14px; }
.feature__desc { margin-top: 12px !important; color: var(--ink); }

/* Passed-event note */
.note {
  background: var(--mist);
  border-radius: var(--card-radius);
  padding: 18px 20px;
  margin: 24px 0 28px;
}
.note strong { display: block; margin-bottom: 4px; }
.note p { margin: 0; font-size: 14px; }

.keep-posted {
  border: 1px dashed var(--field-line);
  border-radius: var(--card-radius);
  padding: 22px;
  margin: 0 0 32px;
}
.keep-posted h2 {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 24px; line-height: 1.2; margin: 0 0 14px;
}

/* Reviews */
.reviews { text-align: center; }
.reviews__summary { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.stars { letter-spacing: 0.2em; color: var(--ink); }
.reviews__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.review blockquote {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
}
.review.is-clamped blockquote {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review__by { margin: 0; font-size: 11px; letter-spacing: var(--label-tracking); text-transform: uppercase; }
.reviews__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 24px; margin-top: 18px; }

/* About */
.about p { margin: 0; }

/* Guides */
.guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.guide a {
  display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center;
  text-decoration: none; padding: 12px; background: var(--mist); border-radius: var(--card-radius);
}
.guide img { width: 72px; height: 72px; object-fit: cover; border-radius: calc(var(--card-radius) - 4px); }
.guide__title { font-family: var(--font-display); font-size: 20px; margin: 0; }
.guide__price { font-size: 13px; color: var(--accent-ink); margin: 0; }

/* ---------- Form ---------- */

.form-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 32px; line-height: 1.15;
  margin: 0 0 8px;
}
.is-event .form-title { font-size: 26px; }
.form-intro { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

.form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 339px) { .row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* stops iOS zoom on focus */
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }

.hint { margin: -4px 0 0; font-size: 12px; color: var(--muted); }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 12px; line-height: 1.45; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.turnstile { min-height: 65px; }

.form-error { color: var(--error); font-size: 14px; margin: 0; }
.form-error a { font-weight: 600; }

.privacy-line { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* Thank-you */
.thanks {
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: var(--card-radius);
  text-align: center;
  padding: 26px 22px;
  margin-bottom: 20px;
}
.thanks h2 {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 34px; margin: 6px 0 10px;
}
.thanks p { margin: 0 0 4px; }
.thanks .sig { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--accent-ink); margin-top: 12px; }
.after { display: grid; gap: 12px; }
.after p { text-align: center; font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* ---------- Footer ---------- */

.footer { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.footer p { margin: 0 0 4px; }
.footer .brokerage { color: var(--ink); font-weight: 600; font-size: 13px; }
.eho { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0; }
.eho img { width: 28px; height: 28px; }
.footer a { text-underline-offset: 3px; }

/* ---------- Privacy page ---------- */

.prose h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 34px; margin: 0 0 16px; }
.prose h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 15px; }
.prose .back { display: inline-block; margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
