:root {
  --cream: #FBF7F0;
  --linen: #F3ECDF;
  --line: #E4D9C6;
  --field: #D6C8B0;
  --ink: #2E2A26;
  --muted: #6B6259;
  --sage: #4F5E45;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: var(--sage); }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.band { background: var(--linen); }
.section { padding-top: 96px; padding-bottom: 96px; }

.eyebrow { font-size: 14px; letter-spacing: 0.08em; color: var(--sage); }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; margin: 8px 0 40px; }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; text-decoration: none; font: inherit; cursor: pointer; border: 1.5px solid var(--sage); }
.btn-fill { background: var(--sage); color: var(--cream); }
.btn-fill:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-line { background: transparent; color: var(--sage); }
.btn-line:hover { background: var(--sage); color: var(--cream); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--sage); border-color: var(--sage); color: var(--cream); }

/* header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 48px; height: 48px; border-radius: 50%; background: #EFE6D6; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); overflow: hidden; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav .btn { min-height: 44px; padding: 10px 22px; }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 96px; }
.hero-text { flex: 999 1 520px; min-width: 0; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 76px); line-height: 1.02; margin-top: 16px; }
.hero .es { margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 30px); color: var(--muted); }
.hero .lead { margin-top: 28px; max-width: 540px; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .small { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-art { flex: 1 1 340px; max-width: 460px; aspect-ratio: 4 / 5; background: var(--linen); border-radius: 240px 240px 24px 24px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--muted); font-size: 15px; }

/* tables */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.table-card { background: var(--cream); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.table-card .lang { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.table-card h3 { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.1; }
.rooms { list-style: none; margin: 0; padding: 0; }
.rooms li { border-top: 1px solid var(--line); padding: 14px 0 12px; }
.rooms strong { font-weight: 500; display: block; }
.rooms span { color: var(--muted); font-size: 15px; }
.table-card .btn { align-self: flex-start; margin-top: 8px; }

/* steps */
.steps { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step-num { font-family: var(--serif); font-size: 44px; color: var(--sage); line-height: 1.2; }
.steps h3 { font-size: 19px; font-weight: 500; margin: 4px 0 8px; }

/* prompt */
.prompt { background: var(--sage); color: var(--cream); border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.prompt .eyebrow { color: var(--cream); opacity: 0.85; flex: 1 1 260px; }
.prompt-q { flex: 999 1 440px; }
.prompt-q p:first-child { font-family: var(--serif); font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
.prompt-q p + p { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 26px; opacity: 0.9; }

/* gatherings */
.event { background: var(--cream); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.event .when { font-size: 14px; color: var(--sage); }
.event h3 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; }

/* join */
.join { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.join-text { flex: 1 1 340px; }
.join-text .h2 { margin-bottom: 16px; }
.join-form { flex: 1 1 420px; background: var(--linen); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.join-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.join-form input, .join-form select { font: inherit; padding: 12px 14px; border: 1px solid var(--field); border-radius: 12px; background: var(--cream); min-height: 44px; color: var(--ink); }
.join-form input:focus, .join-form select:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.join-form .btn { justify-content: center; margin-top: 6px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.site-footer .brand-name { font-size: 22px; color: var(--ink); }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .table-card, .join-form { padding: 28px; }
  .prompt { padding: 36px 28px; }
}

/* room page */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 8px; }
.crumbs a { text-decoration: none; }
.room-head { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.room-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6vw, 64px); line-height: 1.05; margin-top: 6px; }
.room-head .desc { margin-top: 10px; max-width: 560px; color: var(--muted); }
.room-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 96px; }
.room-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.room-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
.week { background: var(--sage); color: var(--cream); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.week .eyebrow { color: var(--cream); opacity: 0.85; }
.week .q { font-family: var(--serif); font-size: 32px; line-height: 1.2; }
.week textarea { font: inherit; border: 0; border-radius: 14px; padding: 14px; min-height: 88px; resize: vertical; background: var(--cream); color: var(--ink); }
.week .btn { align-self: flex-start; background: var(--cream); color: var(--sage); border-color: var(--cream); }
.week .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { font: inherit; font-size: 15px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--field); background: transparent; color: var(--ink); cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.thread { background: var(--linen); border-radius: 20px; padding: 24px 28px; display: flex; gap: 16px; text-decoration: none; color: var(--ink); }
.thread:hover { background: #EDE3D2; color: var(--ink); }
.avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #D9E0D2; color: var(--sage); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.thread h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.2; }
.thread .meta { font-size: 14px; color: var(--muted); margin-top: 6px; }
.tag { display: inline-block; font-size: 12px; letter-spacing: 0.06em; color: var(--sage); border: 1px solid #C9D2C0; border-radius: 999px; padding: 2px 10px; margin-right: 8px; }
.side-card { background: var(--linen); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.side-card h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.side-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.side-card li a { text-decoration: none; }
.side-card .here { font-weight: 500; color: var(--ink); }
.faces { display: flex; }
.faces .avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: 15px; border: 2px solid var(--linen); margin-right: -8px; }

.room-link { display: block; text-decoration: none; color: inherit; }
.room-link:hover strong { color: var(--sage); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--field); border-radius: 12px; background: var(--cream); min-height: 44px; color: var(--ink); }

/* members */
.member-card { background: var(--linen); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.member-card:hover { background: #EDE3D2; color: var(--ink); }
.member-card h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; border: 1px solid #C9D2C0; color: var(--sage); border-radius: 999px; padding: 3px 10px; }
.chip.shared { background: var(--sage); border-color: var(--sage); color: var(--cream); }
.bubble { max-width: 75%; padding: 12px 16px; border-radius: 18px; background: var(--linen); white-space: pre-line; }
.bubble.mine { align-self: flex-end; background: var(--sage); color: var(--cream); }
.bubble .meta { font-size: 12px; opacity: 0.75; margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.gallery img, .gallery video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--linen); display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#list .event, #town .event { background: var(--linen); }
.more { position: relative; }
.more summary { cursor: pointer; list-style: none; color: var(--sage); min-height: 44px; display: flex; align-items: center; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " ▾"; }
.more-menu { position: absolute; right: 0; top: 100%; z-index: 10; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; min-width: 220px; box-shadow: 0 8px 24px rgba(46,42,38,.08); }
.more-menu a { padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.more-menu a:hover { background: var(--linen); }
@media (max-width: 640px) { .more-menu { position: static; box-shadow: none; } }
.req { color: #9A3412; }
.doc { max-width: 780px; padding-bottom: 96px; }
.doc h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 56px); line-height: 1.05; margin: 32px 0 8px; }
.doc h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; font-weight: 500; margin: 24px 0 6px; }
.doc p, .doc li { margin: 0 0 10px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .summary { background: var(--linen); border-radius: 20px; padding: 24px 28px; margin: 24px 0; }
.doc .es { color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #C9D2C0; display: inline-flex; align-items: center; justify-content: center; color: var(--sage); }
.social:hover { background: var(--sage); color: var(--cream); border-color: var(--sage); }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.box > legend { font-size: 15px; padding: 0 6px; }

/* one language at a time */
html:not(.i18n-ready) body { opacity: 0; animation: i18n-show 0s linear 1.2s forwards; }
@keyframes i18n-show { to { opacity: 1; } }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button { font: inherit; font-size: 13px; letter-spacing: .04em; background: transparent; color: var(--ink); border: 0; padding: 6px 12px; min-height: 36px; min-width: 44px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.tag-founder { background: var(--sage); color: var(--cream); border-color: var(--sage); }
html[data-lang="en"] .i-es, html[data-lang="es"] .i-en { display: none !important; }
