/* Sober directory — Gothic Victorian: aged parchment, ink-black & aubergine, oxblood and antique gold, ornate serif */
:root {
  --paper: #efe7d8;
  --paper-2: #f7f1e4;
  --paper-3: #e4dac6;
  --line: #cfc2a6;
  --line-strong: #a8987a;
  --ink: #1f1a22;
  --ink-2: #4a4048;
  --ink-3: #7a6f74;
  --night: #1f1a22;
  --night-2: #2c2331;
  --aubergine: #3d2a3f;
  --oxblood: #6e1f2a;
  --oxblood-2: #8a2a37;
  --oxblood-soft: #efdcdc;
  --gold: #a9853a;
  --gold-2: #c9a45a;
  --gold-soft: #f0e6cc;
  --moss: #3f5a45;
  --moss-soft: #dfe6dc;
  --slate: #3f4b63;
  --slate-soft: #dfe3ea;
  --plum: #5b3a63;
  --plum-soft: #e8dfea;
  --cream: #f7f1e4;
  --radius: 4px;
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --shadow: 0 1px 2px rgba(31,26,34,.08), 0 10px 28px rgba(31,26,34,.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.5), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(110,31,42,.06), transparent 50%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.015) 0 1px, transparent 1px 3px);
  font: 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--oxblood); text-decoration: underline; text-decoration-color: rgba(110,31,42,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--oxblood); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.45rem; }
h4 { font-family: var(--font-body); font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); font-weight: 700; margin-bottom: .9em; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.accent { color: var(--oxblood); font-style: italic; }
.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--gold); font-weight: 700; margin-bottom: 1.2em; }
.eyebrow::before { content: "— "; } .eyebrow::after { content: " —"; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.ornament { font-size: 2rem; color: var(--gold); line-height: 1; margin: 6px 0 18px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--oxblood); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* heading rule: short gold line */
.section > h2::after, .section-head h2::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 12px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

/* header — ink black with gold rule */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: var(--cream); border-bottom: 1px solid var(--gold); box-shadow: 0 1px 0 rgba(201,164,90,.25), 0 4px 0 var(--night); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); opacity: .5; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border: 1.5px solid var(--gold-2); transform: rotate(45deg); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 7px; background: var(--oxblood-2); }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; }
.logo-text b { font-weight: 700; color: var(--gold-2); font-style: italic; }
.logo-text .tld { color: rgba(239,231,216,.55); font-weight: 400; font-size: .85em; }
.logo-text.big { font-size: 1.7rem; margin-bottom: .4em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(239,231,216,.85); font-weight: 600; font-size: .95rem; text-decoration: none; letter-spacing: .02em; }
.nav-links a:hover { color: var(--gold-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-body); text-decoration: none; transition: background .15s ease, border-color .15s, color .15s; white-space: nowrap; letter-spacing: .03em; }
.btn-accent { background: var(--oxblood); color: var(--cream) !important; border-color: #4f151e; box-shadow: inset 0 0 0 1px rgba(201,164,90,.35), inset 0 -2px 0 rgba(0,0,0,.25); }
.btn-accent:hover { background: var(--oxblood-2); }
.btn-outline { border-color: var(--gold); color: var(--ink) !important; background: transparent; }
.btn-outline:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink) !important; background: var(--paper-2); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn.block { display: flex; width: 100%; }
.site-header .btn-accent { background: transparent; border-color: var(--gold-2); color: var(--gold-2) !important; box-shadow: none; }
.site-header .btn-accent:hover { background: var(--gold-2); color: var(--night) !important; }

/* hero — night sky with gold text */
.hero { padding: clamp(64px, 9vw, 120px) 0 56px; position: relative; color: var(--cream); background: var(--night); background-image: radial-gradient(ellipse at 70% 20%, rgba(110,31,42,.55), transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(61,42,63,.8), transparent 55%), repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 3px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201,164,90,.35); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(201,164,90,.18); pointer-events: none; }
.hero h1 { color: var(--cream); max-width: 15ch; }
.hero .accent { color: var(--gold-2); }
.hero .lede { color: rgba(239,231,216,.85); }
.hero .eyebrow { color: var(--gold-2); }
.hero .btn-outline { border-color: var(--gold-2); color: var(--paper-2) !important; }
.hero .btn-outline:hover { background: rgba(201,164,90,.15); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid rgba(201,164,90,.4); padding-top: 22px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--gold-2); }
.hero-stats span { color: rgba(239,231,216,.6); font-size: .85rem; margin-top: 6px; }
.hero .ornament { color: var(--gold-2); }

/* sections */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* filters */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; background: var(--paper-2); border: 1px solid var(--line-strong); outline: 1px solid var(--line); outline-offset: 4px; border-radius: var(--radius); padding: 18px; margin: 22px 0 30px; box-shadow: var(--shadow); }
.filter { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; }
.filter label { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3); font-weight: 700; }
select, input, textarea { width: 100%; background: #fffdf8; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 12px; font: inherit; font-size: 1rem; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--oxblood); box-shadow: 0 0 0 3px rgba(110,31,42,.15); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a4048' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card { position: relative; background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: border-color .15s, transform .12s; }
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card-showcased { border: 1px solid var(--gold); background: var(--paper-2); grid-column: 1 / -1; }
.card-showcased::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--gold); opacity: .6; pointer-events: none; }
.card-showcased::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(169,133,58,.10), transparent 40%, transparent 60%, rgba(110,31,42,.08)); pointer-events: none; }
.card-showcased .card-body { padding: 32px; }
@media (min-width: 900px) { .card-showcased .card-summary { max-width: 70ch; font-size: 1.08rem; } }
.showcase-tag { position: absolute; top: 18px; right: 18px; background: var(--night); color: var(--gold-2); font-family: var(--font-body); font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .2em; padding: 6px 12px; border: 1px solid var(--gold); z-index: 1; }
.showcase-tag.inline { position: static; display: inline-block; margin-bottom: 14px; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; position: relative; z-index: 1; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-right: 130px; }
.card h3 { margin: 0; font-size: 1.9rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--oxblood); }
.card-meta { color: var(--ink-3); font-size: .92rem; margin-top: -6px; font-style: italic; }
.card-summary { color: var(--ink-2); margin: 0; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; white-space: nowrap; color: var(--oxblood); }
.price small { color: var(--ink-3); font-size: .85rem; font-weight: 400; margin-left: 2px; font-family: var(--font-body); }
.price.big { font-size: 2.8rem; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font-size: .76rem; font-weight: 700; padding: 4px 11px; border-radius: 2px; background: var(--paper-3); color: var(--ink-2); border: 1px solid var(--line-strong); letter-spacing: .04em; }
.badge-men { color: var(--slate); background: var(--slate-soft); border-color: rgba(63,75,99,.35); }
.badge-women { color: var(--plum); background: var(--plum-soft); border-color: rgba(91,58,99,.35); }
.badge-coed { color: var(--moss); background: var(--moss-soft); border-color: rgba(63,90,69,.35); }
.badge-mat { color: var(--moss); background: var(--moss-soft); border-color: rgba(63,90,69,.35); }
.badge-dim { color: var(--ink-3); }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-2); background: var(--paper-2); }
.grow-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 32px; padding: 28px 32px; border-radius: var(--radius); background: var(--night); color: var(--cream); border: 1px solid var(--gold); position: relative; }
.grow-cta::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201,164,90,.35); pointer-events: none; }
.grow-cta h3 { margin-bottom: 4px; color: var(--cream); }
.grow-cta p { margin: 0; color: rgba(239,231,216,.7); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step { background: var(--paper-2); border: 1px solid var(--line-strong); border-top: 3px solid var(--oxblood); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step .num { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 14px; position: relative; line-height: 1; }
.step .num::before { content: ""; position: absolute; inset: 5px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.step h3 { margin-top: 4px; }
.step p { color: var(--ink-2); margin: 0; }

/* faq */
.faq details { border-top: 1px solid var(--line-strong); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "✦"; color: var(--gold); font-size: 1rem; line-height: 1.6; }
.faq details[open] summary::after { content: "✧"; }
.faq p { color: var(--ink-2); margin: 0 0 18px; max-width: 70ch; }

/* listing page */
.crumbs { color: var(--ink-3); font-size: .9rem; margin-bottom: 22px; font-style: italic; }
.crumbs span { margin: 0 6px; }
.listing-head { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; margin-bottom: 36px; }
.listing-loc { color: var(--ink-2); font-size: 1.15rem; margin: -6px 0 16px; font-style: italic; }
.listing-cta { background: var(--night); color: var(--cream); border: 1px solid var(--gold); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 92px; box-shadow: var(--shadow); }
.listing-cta::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(201,164,90,.4); pointer-events: none; }
.listing-cta .price { color: var(--gold-2); }
.listing-cta .price small, .listing-cta .muted { color: rgba(239,231,216,.65); }
.listing-cta .btn { margin-top: 4px; }
.listing-cta .btn-accent { border-color: var(--gold); }
.listing-cta .btn-outline, .listing-cta .btn-ghost { border-color: var(--gold-2); color: var(--paper-2) !important; background: transparent; }
.listing-cta a { color: var(--gold-2); }
.addr { font-size: .92rem; color: rgba(239,231,216,.8); margin-top: 8px; line-height: 1.5; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 36px; }
.photos img { border-radius: 2px; aspect-ratio: 4/3; object-fit: cover; width: 100%; border: 1px solid var(--line-strong); padding: 6px; background: var(--paper-2); box-shadow: var(--shadow); }
.listing-grid { display: grid; grid-template-columns: 1fr 320px; gap: 36px; }
.listing-main p { color: var(--ink-2); font-size: 1.08rem; max-width: 66ch; }
.listing-main h2 { margin-top: 1.2em; }
.listing-main h2:first-child { margin-top: 0; }
.listing-main p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.4em; float: left; line-height: .8; padding: 6px 10px 0 0; color: var(--oxblood); font-weight: 700; }
.callout { border-left: 3px solid var(--gold); background: var(--gold-soft); padding: 14px 18px; color: var(--ink-2); margin: 8px 0 22px; }
.listing-side h3 { font-family: var(--font-body); font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); margin: 24px 0 10px; }
.listing-side h3:first-child { margin-top: 0; }
.kv { list-style: none; padding: 0; margin: 0; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--line-strong); font-size: .97rem; }
.kv b { color: var(--oxblood); white-space: nowrap; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 5px 0 5px 26px; position: relative; color: var(--ink-2); font-size: .97rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--moss); font-weight: 700; }
.checks.rules li::before { content: "✦"; color: var(--gold); font-size: .8em; top: 8px; }

/* forms */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.form h2 { margin: 22px 0 0; font-size: 1.6rem; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink-2); }
.form label.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--oxblood); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.showcase-box { background: var(--night); color: var(--cream); border: 1px solid var(--gold); border-radius: var(--radius); padding: 26px; position: relative; }
.showcase-box::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(201,164,90,.4); pointer-events: none; }
.showcase-box h2 { border: 0; padding: 0; margin: 0 0 8px; color: var(--gold-2); }
.showcase-box label.check { color: rgba(239,231,216,.85); }
.form button[type=submit] { align-self: flex-start; }

/* prose / resources */
.prose p, .prose li { color: var(--ink-2); font-size: 1.08rem; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.resource-list { display: grid; gap: 12px; margin: 24px 0 40px; }
.resource { display: flex; flex-direction: column; gap: 2px; background: var(--paper-2); border: 1px solid var(--line-strong); border-left: 3px solid var(--oxblood); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.resource:hover { border-color: var(--gold); border-left-color: var(--oxblood); }
.resource b { font-family: var(--font-display); font-size: 1.25rem; }
.resource span { color: var(--ink-2); font-size: .92rem; }

/* footer — ink black */
.site-footer { margin-top: 48px; padding: 56px 0 24px; background: var(--night); color: var(--cream); border-top: 1px solid var(--gold); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--gold); opacity: .4; }
.site-footer .muted { color: rgba(239,231,216,.65); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: var(--gold-2); }
.footer-grid a { display: block; color: rgba(239,231,216,.8); margin-bottom: 8px; font-size: .95rem; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-2); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(201,164,90,.3); }

/* responsive */
@media (max-width: 900px) {
  .listing-head, .listing-grid { grid-template-columns: 1fr; }
  .listing-cta { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-top { flex-direction: column; padding-right: 0; }
  .card-showcased .showcase-tag { position: static; align-self: flex-start; margin: 0 0 4px; }
  .card-showcased .card-body { padding: 24px; }
  .hero-stats { gap: 24px; }
  .hero::before, .hero::after { inset: 8px; }
}

/* =====================================================================
   EFFECTS
   ===================================================================== */

/* page transitions (browsers that support cross-document view transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .28s ease-in both; }
::view-transition-new(root) { animation: vtIn .42s ease-out both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* paper grain that shifts slowly */
.grain { position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.4s steps(4) infinite; }
@keyframes grainShift { 0% { transform: translate(0,0); } 25% { transform: translate(-2%,1%); } 50% { transform: translate(1%,-2%); } 75% { transform: translate(-1%,-1%); } 100% { transform: translate(2%,2%); } }

/* candlelight flicker on the gold */
.hero .accent, .logo-text b, .hero-stats b, .listing-cta .price, .showcase-tag, .site-footer h4 { animation: candle 3.4s ease-in-out infinite; }
@keyframes candle { 0%,100% { filter: brightness(1); } 23% { filter: brightness(1.12); } 41% { filter: brightness(.96); } 62% { filter: brightness(1.08); } 80% { filter: brightness(1.02); } }
.hero::before { animation: frameGlow 4.2s ease-in-out infinite; }
@keyframes frameGlow { 0%,100% { box-shadow: 0 0 0 rgba(201,164,90,0); } 50% { box-shadow: 0 0 28px rgba(201,164,90,.18), inset 0 0 28px rgba(201,164,90,.08); } }

/* hero atmosphere: parallax, fog, dust motes, lantern, rain */
.hero { isolation: isolate; }
.hero-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero .wrap { position: relative; z-index: 2; }
.hero::before, .hero::after { z-index: 1; }
.parallax { position: absolute; inset: -30% 0 -10%; background:
  radial-gradient(ellipse at 70% 30%, rgba(110,31,42,.5), transparent 55%),
  radial-gradient(ellipse at 15% 85%, rgba(61,42,63,.75), transparent 55%),
  radial-gradient(circle at 50% 120%, rgba(201,164,90,.12), transparent 45%); will-change: transform; }
.fog { position: absolute; left: -20%; right: -20%; height: 60%; bottom: -10%; opacity: .5; filter: blur(30px);
  background: radial-gradient(ellipse at 30% 60%, rgba(239,231,216,.10), transparent 60%), radial-gradient(ellipse at 70% 70%, rgba(239,231,216,.08), transparent 60%);
  animation: fogDrift 28s ease-in-out infinite alternate; }
.fog-b { animation-duration: 40s; animation-delay: -12s; bottom: 5%; opacity: .35; }
@keyframes fogDrift { from { transform: translateX(-4%) scaleY(1); } to { transform: translateX(6%) scaleY(1.15); } }
.motes { position: absolute; inset: 0; }
.motes i { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #e2c273; opacity: 0; box-shadow: 0 0 6px 1px rgba(226,194,115,.6);
  animation: mote var(--d) linear infinite; animation-delay: var(--t); }
@keyframes mote { 0% { transform: translate(0,0); opacity: 0; } 10% { opacity: .8; } 50% { transform: translate(18px,-50vh); opacity: .5; } 90% { opacity: .6; } 100% { transform: translate(-12px,-105%); opacity: 0; } }
.lantern { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(circle 320px at var(--lx,50%) var(--ly,40%), rgba(255,214,150,.22), rgba(255,190,110,.06) 45%, transparent 70%); }
.hero.lit .lantern { opacity: 1; }
.rain { display: none; position: absolute; inset: 0; opacity: .35; background: repeating-linear-gradient(105deg, transparent 0 18px, rgba(239,231,216,.12) 18px 19px, transparent 19px 30px); background-size: 40px 300px; animation: rainFall .6s linear infinite; }
.fx-rain .rain { display: block; }
@keyframes rainFall { to { background-position: -20px 300px; } }

/* headline inks itself in; the town name flickers like gaslight */
.ink-reveal { clip-path: inset(0 100% 0 0); animation: ink 1.6s cubic-bezier(.7,0,.2,1) .2s forwards; }
@keyframes ink { to { clip-path: inset(0 -2% 0 0); } }
.gaslight { animation: candle 3.4s ease-in-out infinite, gaslight 7s linear infinite; text-shadow: 0 0 18px rgba(201,164,90,.35); }
@keyframes gaslight { 0%,96%,100% { opacity: 1; } 97% { opacity: .55; } 98% { opacity: 1; } 99% { opacity: .75; } }

/* scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease var(--delay,0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--delay,0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.section > h2::after, .section-head h2::after { transform: scaleX(0); transform-origin: left; transition: transform 1.1s ease .3s; }
[data-reveal].is-in > h2::after, [data-reveal].is-in .section-head h2::after { transform: scaleX(1); }
.listing-main p:first-of-type::first-letter { animation: dropcap 1.2s ease .3s both; }
@keyframes dropcap { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; } }

/* cards: tilt + a gold sheen that follows the cursor */
[data-tilt] { transition: transform .18s ease, border-color .15s; transform-style: preserve-3d; }
[data-tilt]::before { z-index: 2; }
[data-tilt] .card-body::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle 260px at var(--gx,50%) var(--gy,50%), rgba(201,164,90,.16), transparent 70%); }
[data-tilt]:hover .card-body::after { opacity: 1; }


/* buttons: ripple + emboss */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,.3); }
.ripple { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255,255,255,.45); pointer-events: none; animation: ripple .65s ease-out forwards; }
@keyframes ripple { to { transform: scale(30); opacity: 0; } }

/* ink trail */
.ink-trail { position: fixed; inset: 0; pointer-events: none; z-index: 998; }
.ink-trail i { position: absolute; width: var(--r); height: var(--r); margin: calc(var(--r) / -2) 0 0 calc(var(--r) / -2); border-radius: 50%; background: rgba(31,26,34,.28); animation: inkFade .9s ease-out forwards; }
[data-theme="night"] .ink-trail i { background: rgba(201,164,90,.35); }
@keyframes inkFade { from { transform: scale(1); opacity: 1; } to { transform: scale(.2); opacity: 0; } }

/* night-mode lamp toggle */
.theme-toggle { background: transparent; border: 1px solid rgba(201,164,90,.5); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--gold-2); transition: border-color .2s, box-shadow .3s; }
.theme-toggle:hover { border-color: var(--gold-2); box-shadow: 0 0 14px rgba(201,164,90,.35); }
.lamp-icon { position: relative; width: 14px; height: 18px; }
.lamp-icon::before { content: ""; position: absolute; left: 3px; right: 3px; bottom: 0; height: 7px; background: var(--gold-2); border-radius: 2px 2px 3px 3px; }
.lamp-icon i { position: absolute; left: 4px; top: 0; width: 6px; height: 10px; border-radius: 50% 50% 40% 40%; background: var(--gold-2); opacity: .35; transform-origin: 50% 100%; transition: opacity .4s, box-shadow .4s; }
[data-theme="night"] .lamp-icon i { opacity: 1; background: #ffd27a; box-shadow: 0 0 10px 3px rgba(255,210,122,.6); animation: flame 1.4s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scaleX(1) rotate(-3deg); } to { transform: scaleX(.85) rotate(4deg) translateY(-1px); } }

/* night mode: candle-lit palette */
html { transition: background-color .6s; }
[data-theme="night"] {
  --paper: #171319; --paper-2: #1f1a22; --paper-3: #282129;
  --line: #3a3140; --line-strong: #5a4b4e;
  --ink: #efe7d8; --ink-2: #cdbfae; --ink-3: #9d8f86;
  --night: #0f0c11; --gold-soft: #2c2519; --oxblood-soft: #2c1417;
  --moss-soft: #1e2a20; --slate-soft: #1e2430; --plum-soft: #2a1f2d;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 30px rgba(0,0,0,.45);
}
[data-theme="night"] body { background-image: radial-gradient(ellipse at 50% 0%, rgba(201,164,90,.10), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(110,31,42,.18), transparent 50%); }
[data-theme="night"] h1, [data-theme="night"] h2, [data-theme="night"] h3 { color: var(--ink); }
[data-theme="night"] .hero h1, [data-theme="night"] .grow-cta h3, [data-theme="night"] .showcase-box h2 { color: var(--cream); }
[data-theme="night"] .card h3 a { color: #efe7d8; }
[data-theme="night"] .price, [data-theme="night"] .kv b, [data-theme="night"] a { color: var(--gold-2); }
[data-theme="night"] .btn-outline { border-color: var(--gold-2); color: var(--ink) !important; }
[data-theme="night"] select, [data-theme="night"] input, [data-theme="night"] textarea { background: #120f14; color: var(--ink); border-color: var(--line-strong); }
[data-theme="night"] .grain { opacity: .08; mix-blend-mode: screen; }
[data-theme="night"] .callout { background: var(--gold-soft); }
[data-theme="night"] .badge { background: var(--paper-3); }
[data-theme="night"] .card-showcased::after { background: linear-gradient(135deg, rgba(201,164,90,.14), transparent 40%, transparent 60%, rgba(110,31,42,.25)); }
[data-theme="night"] .step { border-color: var(--line-strong); }
[data-theme="night"] .leaflet-tile-pane { filter: invert(.9) hue-rotate(180deg) sepia(.3) saturate(.5) brightness(.85); }
[data-theme="night"] .leaflet-control-attribution { background: rgba(31,26,34,.85); }
/* the switch itself: lamps come up like gas being lit */
.theme-switching body { animation: lampUp .9s ease; }
@keyframes lampUp { 0% { filter: brightness(.35) sepia(.4); } 40% { filter: brightness(1.15) sepia(.2); } 60% { filter: brightness(.9); } 100% { filter: none; } }
body, .card, .site-header, .site-footer, .filters, .step, .listing-cta, .grow-cta { transition: background-color .6s ease, color .6s ease, border-color .6s ease; }

/* map */
.map-wrap { margin-top: 36px; }
.map-wrap h3 { font-family: var(--font-body); font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); margin-bottom: 12px; }
.map { height: 380px; border: 1px solid var(--line-strong); outline: 1px solid var(--line); outline-offset: 4px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-3); }
.leaflet-container { font-family: var(--font-body); background: var(--paper-3); }
.leaflet-tile-pane { filter: sepia(.55) saturate(.55) contrast(.92) brightness(1.02); }
.leaflet-control-attribution { background: rgba(247,241,228,.85); color: var(--ink-3); font-size: 10px; }
.leaflet-popup-content-wrapper { border-radius: 4px; background: var(--paper-2); color: var(--ink); border: 1px solid var(--gold); box-shadow: var(--shadow); }
.leaflet-popup-tip { background: var(--paper-2); }
.leaflet-popup-content b { font-family: var(--font-display); font-size: 1.2rem; }
.pin span { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translateY(-60px) scale(0); background: var(--oxblood); border: 2px solid var(--gold-2); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.pin span::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--gold-2); }
.pin.drop span { animation: pinDrop .7s cubic-bezier(.3,1.5,.5,1) forwards; }
@keyframes pinDrop { 0% { transform: rotate(-45deg) translateY(-60px) scale(0); opacity: 0; } 100% { transform: rotate(-45deg) translateY(0) scale(1); opacity: 1; } }

/* reduced motion: strip the ambient stuff, keep content visible */
@media (prefers-reduced-motion: reduce) {
  .grain, .motes, .fog, .rain, .ink-trail, .lantern { display: none; }
  .ink-reveal { clip-path: none; animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}
@media (max-width: 640px) { .theme-toggle { width: 36px; height: 36px; } .map { height: 280px; } }
[data-theme="night"] .badge-men { color: #9db7d8; } [data-theme="night"] .badge-women { color: #c9a6d3; }
[data-theme="night"] .badge-coed, [data-theme="night"] .badge-mat { color: #9fc7a8; } [data-theme="night"] .badge-dim { color: var(--ink-3); }
.fx-no-motes .motes, .fx-no-fog .fog, .fx-no-lantern .lantern, .fx-no-inkTrail .ink-trail { display: none; }

/* ===== showpieces: embers ===== */

.embers { position: absolute; inset: 0; }
.embers i { position: absolute; left: var(--x); bottom: -6px; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #ffd9a0, #ff8a3d 55%, #c9431f); box-shadow: 0 0 8px 2px rgba(255,138,61,.55); opacity: 0;
  animation: ember var(--d) ease-out infinite; animation-delay: var(--t); }
@keyframes ember { 0% { transform: translate(0,0) scale(1); opacity: 0; } 8% { opacity: 1; } 45% { transform: translate(var(--w),-40vh) scale(.9); opacity: .9; } 75% { opacity: .5; } 100% { transform: translate(calc(var(--w) * -0.6),-90vh) scale(.3); opacity: 0; } }

.fx-no-embers .embers { display: none; }
@media (prefers-reduced-motion: reduce) { .embers { display: none; } }
@media (max-width: 640px) { .embers i:nth-child(n+8) { display: none; } .motes i:nth-child(n+10) { display: none; } }

/* ===== guide (SLE startup guide) ===== */
.nav-guide { color: var(--gold-2) !important; }
.guide-line { margin: -18px 0 36px; font-size: .95rem; }
.guide-line a { color: var(--gold-2); text-decoration-color: rgba(201,164,90,.4); }
.guide-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 32px; padding: 30px 34px; border-radius: var(--radius); background: var(--night); color: var(--cream); border: 1px solid var(--gold); position: relative; }
.guide-band::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201,164,90,.35); pointer-events: none; }
.guide-band h3 { color: var(--cream); font-size: 1.7rem; margin-bottom: 6px; }
.guide-band .eyebrow { color: var(--gold-2); margin-bottom: .6em; }
.guide-band p { margin: 0; max-width: 60ch; }
.guide-band .muted { color: rgba(239,231,216,.75); }
.guide-side { margin-top: 28px; padding: 20px; border: 1px solid var(--gold); background: var(--gold-soft); position: relative; }
.guide-side::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(169,133,58,.4); pointer-events: none; }
.guide-side h3 { font-family: var(--font-display) !important; font-size: 1.3rem !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--ink) !important; margin: 0 0 6px !important; }
.guide-side p { color: var(--ink-2); font-size: .95rem; margin-bottom: 12px; }
[data-theme="night"] .guide-side { background: var(--gold-soft); }
.callout a { color: var(--oxblood); }

.guide-hero { padding: clamp(56px, 8vw, 100px) 0 56px; background: var(--night); color: var(--cream); position: relative; overflow: hidden; }
.guide-hero::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201,164,90,.35); pointer-events: none; }
.guide-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 30%, rgba(110,31,42,.5), transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(61,42,63,.7), transparent 55%); pointer-events: none; }
.guide-hero .wrap { position: relative; z-index: 1; }
.guide-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.guide-hero h1 { color: var(--cream); font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.guide-hero .lede { color: rgba(239,231,216,.85); }
.guide-hero .eyebrow { color: var(--gold-2); }
.guide-hero .btn-outline { border-color: var(--gold-2); color: var(--cream) !important; }
.guide-hero .muted { color: rgba(239,231,216,.6); }
.guide-cover { display: flex; justify-content: center; perspective: 1200px; }
.cover { width: min(300px, 80%); aspect-ratio: 3 / 4.2; background: linear-gradient(160deg, #2c2331, #1f1a22 60%, #17131a); border: 1px solid var(--gold); box-shadow: 14px 18px 40px rgba(0,0,0,.55), inset 0 0 0 6px var(--night), inset 0 0 0 7px rgba(201,164,90,.45); padding: 34px 26px; display: flex; flex-direction: column; justify-content: center; text-align: center; transform: rotateY(-14deg) rotateX(4deg); transition: transform .5s ease; }
.guide-cover:hover .cover { transform: rotateY(-6deg) rotateX(2deg); }
.cover-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); margin: 10px 0; }
.cover-kicker { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); margin: 8px 0; }
.cover-title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--cream); line-height: 1.15; margin: 10px 0; }
.cover-sub { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(239,231,216,.6); margin: 10px 0 8px; line-height: 1.7; }
.cover-brand { font-family: var(--font-display); font-style: italic; color: var(--gold-2); margin-top: 10px; }

.chapters { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.chapters li { display: flex; gap: 16px; padding: 22px; background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.chapters .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); line-height: 1; min-width: 40px; }
.chapters h3 { font-size: 1.25rem; margin-bottom: 4px; }
.chapters p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.guide-buy { padding: 34px; border: 1px solid var(--gold); background: var(--paper-2); position: relative; text-align: center; box-shadow: var(--shadow); }
.guide-buy::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(169,133,58,.45); pointer-events: none; }
.guide-buy .lede { margin-inline: auto; }
.guide-buy .btn { margin: 6px 0 10px; }
.notify { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-strong); text-align: left; }
.notify .btn { align-self: flex-start; }
@media (max-width: 900px) { .guide-hero-grid { grid-template-columns: 1fr; } .guide-cover { order: -1; } .cover { width: 220px; transform: none; } }
@media (max-width: 640px) { .nav-guide { display: none; } }

/* launch state (city with no listings yet) */
.empty.launch { text-align: left; padding: 40px 36px; border-style: solid; border-color: var(--gold); background: var(--night); color: var(--cream); position: relative; }
.empty.launch::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201,164,90,.35); pointer-events: none; }
.empty.launch h3 { color: var(--cream); font-size: 1.6rem; margin-bottom: 10px; }
.empty.launch p { color: rgba(239,231,216,.78); max-width: 70ch; }
.empty.launch p + p { margin-top: 18px; }
.empty.launch b { color: var(--cream); display: block; margin-bottom: 10px; }
.empty.launch a:not(.btn) { color: var(--gold-2, #c9a45a); }

/* SEO/local context + network footer */
.local-context { max-width: 78ch; }
.footer-network { padding-top: 18px; border-top: 1px solid rgba(201,164,90,.18); line-height: 1.9; }
.footer-network a { color: var(--gold-2, #c9a45a); margin: 0 2px; }
