:root {
  --bg: #fff7f5;
  --card: #ffffff;
  --ink: #2b1d20;
  --muted: #7a6469;
  --accent: #e0475b;
  --accent-dark: #c2364a;
  --accent-soft: #ffe6e9;
  --border: #f1dcdc;
  --ok: #2a9d6d;
  --ok-soft: #e3f6ee;
  --bad: #b3261e;
  --live: #d97706;
  --live-soft: #fff1dc;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(120, 40, 50, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; margin-top: 1.5rem; }
h3 { font-size: 1.1rem; }
p { margin: .4rem 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-bottom: 3rem; }

.site-header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 1rem; }
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.nav nav { display: flex; align-items: center; gap: .25rem 1rem; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a { text-decoration: none; color: var(--ink); padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav nav a.active { border-color: var(--accent); }
form.inline { display: inline; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }

.site-footer { border-top: 1px solid var(--border); padding: 1rem 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 2px solid var(--accent);
  padding: .65rem 1.2rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  cursor: pointer; font-size: 1rem; line-height: 1.2; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: .45rem .9rem; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--accent-dark); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: #fdecea; }
.btn.liked { background: var(--accent-dark); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.narrow { max-width: 560px; margin: 1.5rem auto; }
.narrow.card { padding: 1.75rem; }
.narrow h1 { margin-bottom: 1rem; }

.flash { margin: 1rem 0; padding: .8rem 1rem; border-radius: 10px; border: 1px solid; }
.flash.success { background: var(--ok-soft); border-color: #bfe8d3; color: #14532d; }
.flash.error { background: #fdecea; border-color: #f5c2bd; color: #7f1d1d; }
.notice { margin: 1rem 0; padding: .8rem 1rem; border-radius: 10px; background: var(--live-soft); border: 1px solid #fcd9a6; color: #7c3f00; }

.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.grow { flex: 1 1 200px; }
.short { flex: 0 0 120px; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], textarea {
  font: inherit; padding: .6rem .75rem; border: 1px solid #d9c4c6; border-radius: 10px; background: #fff; width: 100%;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: .75rem auto 1.5rem; }
.cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0 2.5rem; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.step .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .95rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.event-card h3 a { color: inherit; text-decoration: none; }
.event-card.attending { border-color: var(--ok); }
.date-chip { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: .85rem; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .6rem; }
.desc { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spots { font-weight: 600; font-size: .9rem; }
.actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .75rem; }
.actions form { margin: 0; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.page-head h1, .page-head h2 { margin: 0; }
.pill { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: .3rem .8rem; font-weight: 600; font-size: .9rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #eee5e6; color: var(--muted); text-transform: capitalize; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.live { background: var(--live-soft); color: var(--live); }
.tag.bad { background: #fdecea; color: var(--bad); }

.event-head { margin-top: 1.5rem; }
.locked { text-align: center; margin-top: 1.5rem; padding: 2.5rem 1.25rem; }

.people .person { display: flex; flex-direction: column; gap: .5rem; scroll-margin-top: 80px; }
.person.chose-like { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.person.chose-maybe { border-color: var(--live); box-shadow: 0 0 0 3px var(--live-soft); }
.person.chose-no { opacity: .55; }
.choice-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn.choice.sel-like { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.choice.sel-maybe { background: var(--live); border-color: var(--live); color: #fff; }
.btn.choice.sel-no { background: var(--muted); border-color: var(--muted); color: #fff; }
.cal-links { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.table-badge { display: inline-block; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; margin-left: .4rem; vertical-align: middle; }
.table-badge.big { font-size: 1rem; padding: .35rem .9rem; margin-left: 0; }
.radio-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.radio-row .check { font-weight: 500; color: var(--ink); }
.table-input { width: 70px; padding: .35rem .5rem; border: 1px solid #d9c4c6; border-radius: 8px; font: inherit; }
.group-row td { background: var(--accent-soft); font-weight: 700; }
.legend { margin: 1rem 0; padding: .9rem 1.1rem; font-size: .95rem; }
.legend p { margin: .25rem 0; }
.photos-row { display: flex; gap: .5rem; }
.photos-row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--accent-soft); }
.photos-row img + img { max-width: 40%; }
.no-photo { width: 100%; aspect-ratio: 1; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-size: 4rem; font-weight: 800; }
.label-text { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.person .bio { color: var(--muted); font-size: .95rem; flex: 1; white-space: pre-line; }

.photos { display: flex; gap: 1rem; flex-wrap: wrap; }
.photo-slot { display: flex; flex-direction: column; gap: .4rem; width: 160px; }
.photo-slot img, .photo-slot .placeholder { width: 160px; height: 160px; object-fit: cover; border-radius: 12px; }
.placeholder { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; text-align: center; padding: .5rem; font-size: .9rem; }
label.file { cursor: pointer; color: var(--accent-dark); font-weight: 600; }
label.file input { font-size: .8rem; font-weight: 400; }
label.check { flex-direction: row; align-items: center; gap: .4rem; font-weight: 500; color: var(--muted); }

.ticket-card { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0 2rem; }
.ticket-card h2 { margin-top: 0; }
.price { font-size: 2rem; font-weight: 800; color: var(--accent-dark); }

.list { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-direction: column; gap: .5rem; }
.list li { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: .75rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.two-col { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.4fr); gap: 1.5rem; margin-top: 1rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); font-size: .95rem; }
.table th { background: var(--accent-soft); font-size: .85rem; }
.thumb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.mail { margin-top: .75rem; padding: .75rem 1rem; }
.mail summary { cursor: pointer; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.mail pre { white-space: pre-wrap; background: #fbf3f3; padding: 1rem; border-radius: 10px; font-size: .9rem; margin-top: .75rem; }
.error-text { color: var(--bad); }

/* brand + event types */
.brand { display: inline-flex; align-items: center; gap: .45rem; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 800; font-size: 1rem; }
.brand-tag { font-weight: 500; color: var(--muted); font-size: .85rem; margin-left: .1rem; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.chips .date-chip { margin-bottom: 0; }
.kind-badge { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; font-size: .8rem; padding: .25rem .6rem; border-radius: 999px; }
.kinds { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin: -.5rem 0 1.5rem; }
.kind-chip { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: .4rem .9rem; font-weight: 600; font-size: .95rem; }
select { font: inherit; padding: .6rem .75rem; border: 1px solid #d9c4c6; border-radius: 10px; background: #fff; width: 100%; }

/* voice + layout touches */
.lead-sub { font-size: 1rem; color: var(--muted); margin-top: -.5rem; }
.why { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; padding: 1.75rem; }
.why h2 { margin-top: 0; }
.why p { margin: .5rem 0; }

/* connections history */
.night { margin-bottom: 1.25rem; }
.night h2 { margin: .2rem 0 .1rem; font-size: 1.15rem; }
.night .list { margin-top: .75rem; }
.night .list li { background: #fdf7f7; }
.night .tag { margin-left: .4rem; }
.empty { text-align: center; padding: 2.25rem 1.25rem; }
.empty p { margin-bottom: 1rem; }

/* four-way intent choices */
.btn.choice.sel-professional { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.btn.choice.sel-friend { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.choice.sel-date { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.person.chose-professional { border-color: #3b82f6; box-shadow: 0 0 0 3px #e3edfd; }
.person.chose-friend { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.person.chose-date { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tag.note { background: transparent; border: 1px dashed var(--border); color: var(--muted); font-weight: 500; text-transform: none; }

/* Phone night. People pick in a dim bar, one-handed, often a little merry, so the
   choice buttons get a comfortable tap target rather than the compact desktop one. */
@media (hover: none), (max-width: 640px) {
  .btn.small.choice { padding: .7rem 1rem; font-size: .95rem; }
  .choice-row { gap: .5rem; }
  .btn.small { padding: .6rem 1rem; }
  .nav nav a { padding: .45rem 0; }
}

@media (max-width: 520px) {
  /* The tagline wraps under the wordmark on a phone and costs a line of height. */
  .brand-tag { display: none; }
  .nav { min-height: 52px; }
  .nav nav { gap: .25rem .8rem; font-size: .95rem; }
}
