:root {
  --ink: #172b2b;
  --ink-soft: #405451;
  --forest: #173f3a;
  --forest-2: #24564e;
  --paper: #f7f3ea;
  --paper-deep: #ede6d8;
  --white: #fffdf8;
  --copper: #bc5c38;
  --copper-deep: #914128;
  --sage: #9db39e;
  --sky: #b7d2d1;
  --line: rgba(23, 43, 43, .16);
  --shadow: 0 14px 36px rgba(23, 43, 43, .09);
  --radius: 20px;
  --radius-small: 12px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: clamp(2.2rem, 6vw, 4.9rem); font-weight: 620; }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); font-weight: 620; }
h3 { font-size: 1.35rem; }
code { background: var(--paper-deep); border-radius: 5px; padding: .1em .35em; }

.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .7rem 1rem; background: var(--white); }
.skip-link:focus { top: 1rem; }
.site-header {
  min-height: 70px; padding: .85rem max(1.25rem, calc((100vw - var(--content)) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--forest); color: #f9f4e9;
}
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 650; text-decoration: none; letter-spacing: -.02em; }
.brand small { color: #c7d7d2; font-weight: 500; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35);
  border-radius: 50% 50% 50% 12%; color: #fff; font-family: Georgia, serif; font-size: 1.2rem;
}
.header-meta { display: flex; align-items: center; gap: 1rem; }
.environment { border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: .25rem .6rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; }
.quiet-link { color: #f5eee1; font-size: .88rem; }
.page-shell { max-width: var(--content); min-height: calc(100vh - 150px); margin: 0 auto; padding: clamp(2rem, 5vw, 5rem) 1.25rem 6rem; }
.site-footer { max-width: var(--content); margin: 0 auto; border-top: 1px solid var(--line); padding: 1.5rem 1.25rem 2rem; display: flex; justify-content: space-between; color: var(--ink-soft); font-size: .8rem; }

.messages { position: fixed; z-index: 20; top: 82px; right: 1.25rem; display: grid; gap: .5rem; max-width: 380px; }
.message { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--forest-2); border-radius: 10px; padding: .8rem 1rem; box-shadow: var(--shadow); }
.message.error { border-left-color: #a4372c; }
.message.success { border-left-color: #3e7d57; }

.feed-intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.feed-intro h1 { max-width: 900px; margin: .35rem 0 1rem; }
.feed-intro p { max-width: 680px; color: var(--ink-soft); font-size: 1.1rem; }
.eyebrow, .section-kicker { display: block; color: var(--copper-deep); font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.profile-switcher { min-width: 180px; }
.profile-switcher label { display: block; margin-bottom: .35rem; font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; }
.profile-switcher select { width: 100%; }
.context-row { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.25rem; }
.context-row > a { margin-left: auto; color: var(--ink-soft); font-size: .88rem; }
.context-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .72rem; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; }
.demo-note { margin: 0 0 3.8rem; padding: .75rem 1rem; border-left: 3px solid var(--copper); background: rgba(255,255,255,.42); color: var(--ink-soft); font-size: .85rem; }
.discovery-section { margin-bottom: 4.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.2rem; }
.section-heading h2 { margin: .25rem 0 0; }
.section-heading > p { max-width: 360px; margin-bottom: .25rem; color: var(--ink-soft); font-size: .9rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.discovery-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid rgba(23,43,43,.1); border-radius: var(--radius); box-shadow: 0 7px 20px rgba(23,43,43,.055); transition: transform .2s ease, box-shadow .2s ease; }
.discovery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-visual, .detail-visual { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #355e58, #172b2b); text-decoration: none; }
.card-visual { min-height: 155px; display: flex; align-items: end; justify-content: space-between; padding: 1rem; }
.card-visual::before, .detail-visual::before { content: ""; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.24); border-radius: 50% 45% 55% 30%; right: -85px; top: -90px; transform: rotate(22deg); }
.card-visual::after, .detail-visual::after { content: ""; position: absolute; width: 130px; height: 130px; border: 1px solid rgba(255,255,255,.18); border-radius: 40% 60%; left: -40px; bottom: -75px; }
.kind-screening { background: linear-gradient(135deg, #733e39, #242b38); }
.kind-heritage_event, .kind-special_opening { background: linear-gradient(135deg, #7b6135, #2d403a); }
.kind-festival { background: linear-gradient(135deg, #9d5836, #304e48); }
.kind-exhibition { background: linear-gradient(135deg, #436072, #303846); }
.kind-performance { background: linear-gradient(135deg, #74445c, #2d3640); }
.kind-permanent_place { background: linear-gradient(135deg, #446746, #243934); }
.kind-activity { background: linear-gradient(135deg, #466d67, #785637); }
.fixture-badge { position: absolute; top: .8rem; left: .8rem; z-index: 1; padding: .28rem .5rem; border: 1px solid rgba(255,255,255,.38); border-radius: 99px; background: rgba(23,43,43,.28); backdrop-filter: blur(5px); font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.visual-mark { font-family: Georgia, serif; font-size: 2.8rem; line-height: 1; color: rgba(255,255,255,.9); }
.kind-label { position: relative; z-index: 1; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.05rem 1.1rem 1rem; }
.card-meta { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .55rem; color: var(--copper-deep); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card-body h3 { margin-bottom: .65rem; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.summary { color: var(--ink-soft); font-size: .91rem; }
.why { margin-top: auto; padding-top: .9rem; color: var(--ink-soft); font-size: .82rem; }
.why span { color: var(--copper); margin-right: .25rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .8rem; }
.price { font-weight: 700; font-size: .82rem; }
.quick-actions { display: flex; gap: .35rem; }
.quick-actions form, .reaction-list form { margin: 0; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--forest); }
.icon-button:hover, .icon-button.selected { border-color: var(--copper); background: #f4ded2; color: var(--copper-deep); }

.page-title { margin-bottom: 2.5rem; }
.page-title h1 { margin: .5rem 0 .8rem; }
.page-title p { max-width: 700px; color: var(--ink-soft); font-size: 1.1rem; }
.narrow { max-width: 760px; }
.back-link { display: inline-block; margin-bottom: 1.4rem; color: var(--ink-soft); font-size: .88rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.detail-visual { min-height: 280px; border-radius: var(--radius); display: flex; align-items: end; justify-content: space-between; padding: 1.5rem; }
.detail-visual .visual-mark { font-size: 5rem; }
.detail-title { padding: 2rem 0 1rem; }
.detail-title h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin: .5rem 0 1rem; }
.lede { color: var(--ink-soft); font-size: 1.25rem; max-width: 760px; }
.why-panel { margin: 1.2rem 0 3rem; padding: 1.6rem; background: #e5ece5; border-radius: var(--radius); }
.why-panel h2 { margin: .45rem 0 1rem; font-size: 1.5rem; }
details summary { cursor: pointer; color: var(--forest-2); font-weight: 650; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0; }
.score-grid > div { padding: .7rem; background: rgba(255,255,255,.58); border-radius: 9px; }
.score-grid dt { color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; }
.score-grid dd { margin: 0; font-weight: 750; font-size: 1.15rem; }
.score-total { background: var(--forest) !important; color: white; }
.score-total dt { color: #d9e4df; }
.prose-section { max-width: 760px; margin-bottom: 3rem; }
.prose-section p { color: var(--ink-soft); font-size: 1.03rem; }
.provenance-panel { border-top: 1px solid var(--line); padding-top: 1.5rem; color: var(--ink-soft); font-size: .88rem; }
.provenance-panel h2 { color: var(--ink); font-size: 1.2rem; }
.provenance-panel dl div { display: grid; grid-template-columns: 90px 1fr; }
.provenance-panel dt { font-weight: 700; }
.provenance-panel dd { margin: 0; }
.detail-aside { position: sticky; top: 1.5rem; display: grid; gap: 1rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); box-shadow: 0 8px 24px rgba(23,43,43,.05); }
.fact-panel dl { margin-top: 0; }
.fact-panel dl > div { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.fact-panel dt { color: var(--ink-soft); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.fact-panel dd { margin: .2rem 0 0; }
.action-panel h2 { font-size: 1.25rem; }
.reaction-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .68rem 1rem; border: 1px solid transparent; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background .15s ease, color .15s ease; }
.button.primary { background: var(--copper); color: white; }
.button.primary:hover { background: var(--copper-deep); }
.button.secondary { border-color: var(--line); background: var(--paper); color: var(--forest); }
.button.secondary.selected { border-color: var(--copper); background: #f4ded2; color: var(--copper-deep); }
.button.ghost { border-color: transparent; background: transparent; color: var(--ink-soft); }
.button.ghost.selected { background: var(--paper-deep); color: var(--ink); }
.button.full { width: 100%; }
.fine-print { margin: .7rem 0 0; color: var(--ink-soft); font-size: .75rem; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.split-section h2 { font-size: 1.4rem; }
.simple-list { display: grid; gap: .7rem; }
.simple-item { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); text-decoration: none; }
.simple-item small { display: block; margin-top: .2rem; color: var(--ink-soft); }
.reminder-item { cursor: default; }
.text-button { border: 0; background: transparent; color: var(--copper-deep); text-decoration: underline; }
.empty-state { text-align: center; margin: 3rem auto; }
.empty-state.compact { margin: 0; padding: 1.2rem; border: 1px dashed var(--line); border-radius: var(--radius-small); color: var(--ink-soft); }
.success-mark { width: 64px; height: 64px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: #dceadc; color: #2d6a45; font-size: 1.8rem; }

.editor-form { max-width: 920px; }
.editor-form fieldset { margin: 0 0 2.5rem; padding: 0; border: 0; }
.editor-form legend { margin-bottom: 1rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.fieldset-intro { margin: -.5rem 0 1.2rem; color: var(--ink-soft); }
.form-grid { display: grid; gap: 1rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.field { min-width: 0; }
.field > label { display: block; margin-bottom: .35rem; font-size: .84rem; font-weight: 700; }
.field input:not([type=checkbox]), .field select, .field textarea, .profile-switcher select {
  width: 100%; min-height: 46px; border: 1px solid #adb9b4; border-radius: 9px; background: #fff; color: var(--ink); padding: .65rem .75rem;
}
.field textarea { min-height: 105px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .profile-switcher select:focus { outline: 3px solid rgba(188,92,56,.2); border-color: var(--copper); }
.field small { display: block; margin-top: .3rem; color: var(--ink-soft); font-size: .75rem; }
.field .errorlist, .form-errors { color: #922f27; font-size: .82rem; }
.full-span { grid-column: 1 / -1; }
.checkbox-field { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .45rem .6rem; }
.checkbox-field label { margin: 0; }
.checkbox-field small, .checkbox-field .errorlist { grid-column: 2; }
.interest-group { margin: 1.3rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.interest-group h2 { font-size: 1rem; text-transform: capitalize; }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
.interest-field { display: grid; grid-template-columns: minmax(0, 1fr) 145px; align-items: center; gap: .7rem; }
.interest-field label { margin: 0; }
.form-actions { display: flex; align-items: center; gap: .6rem; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.info-box { margin: 1.3rem 0; padding: 1rem; background: #e5ece5; border-radius: var(--radius-small); }
.info-box p { margin: .25rem 0 0; color: var(--ink-soft); font-size: .88rem; }

.mobile-nav { display: none; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 70px; }
  .site-header { min-height: 62px; }
  .brand { font-size: .93rem; }
  .brand-mark { width: 34px; height: 34px; }
  .desktop-only { display: none; }
  .page-shell { padding: 2.2rem 1rem 4rem; }
  .feed-intro { grid-template-columns: 1fr; align-items: start; gap: .8rem; }
  .feed-intro h1 { font-size: 2.55rem; }
  .feed-intro p { font-size: 1rem; }
  .profile-switcher { width: 100%; }
  .context-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem .5rem; }
  .context-row, .card-grid { scrollbar-width: none; }
  .context-row::-webkit-scrollbar, .card-grid::-webkit-scrollbar { display: none; }
  .context-chip { flex: 0 0 auto; }
  .context-row > a { flex: 0 0 auto; }
  .demo-note { margin-bottom: 2.7rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .35rem; }
  .section-heading h2 { font-size: 1.9rem; }
  .card-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -1rem; padding: 0 1rem 1rem; }
  .discovery-card { min-width: min(85vw, 340px); scroll-snap-align: start; }
  .icon-button { width: 44px; height: 44px; }
  .discovery-section { margin-bottom: 3rem; }
  .detail-visual { min-height: 210px; }
  .detail-aside { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .form-grid.two, .interest-grid { grid-template-columns: 1fr; }
  .interest-field { grid-template-columns: minmax(0, 1fr) 135px; }
  .site-footer { display: none; }
  .mobile-nav { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 68px; background: rgba(23,43,43,.98); color: white; border-top: 1px solid rgba(255,255,255,.16); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .1rem; color: #cbd9d5; font-size: .68rem; text-decoration: none; }
  .mobile-nav a span { font-size: 1.1rem; }
  .mobile-nav a[aria-current=page] { color: white; background: rgba(255,255,255,.08); }
  .messages { left: 1rem; right: 1rem; top: 72px; }
}

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