/* ==================================================================== *
 * Buzzed Arts — "Cobalt Rooms" system (Kura never overwrites this file).
 * Remixed from the measured peerspace.com design system:
 *   flat surfaces (2px radius, no shadows), hairline rules, wide type
 *   contrast, mono micro-labels, color rooms, typographic indexes.
 * Colors/type come from tokens.css so the Design tab still drives them.
 * ==================================================================== */

/* ---- non-contract tokens (safe here; tokens.css gets overwritten) ---- */
:root {
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ink: var(--color-fg);
  --paper: var(--color-bg);
  --cobalt: var(--color-primary);
  --red: var(--color-accent);
  --amber: #f4a11f;
  --amber-soft: #fff2d6;

  --wrap: 1440px;
  --sec: 112px;          /* measured section rhythm */
  --sec-tight: 72px;
  --gut: 20px;
  --rule-a: 0.18;
  --rv-x: 18px;
  --rv-dur: 0.7s;
  --ease: cubic-bezier(.22,1,.36,1);
  --nav-h: 72px;

  --step-mega: clamp(3.4rem, 2rem + 7vw, 9.4rem);
  --step-h1: clamp(2.6rem, 1.6rem + 4vw, var(--text-h1));
  --step-h2: clamp(1.9rem, 1.3rem + 2.4vw, var(--text-h2));
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
:where(svg) { width: 1.15em; height: 1.15em; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
::selection { background: var(--amber); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { left: 12px !important; top: 12px; z-index: 200; background: #fff; padding: 10px 16px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
p { max-width: 68ch; }

/* ---- layout primitives ---- */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 80px); }
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: var(--sec-tight); }
.sec--paper { background: var(--paper); }
.sec--surface { background: var(--color-surface); }
.sec--cobalt { background: var(--cobalt); color: #fff; }
.sec--ink { background: var(--ink); color: #fff; }
.sec--cobalt h1, .sec--cobalt h2, .sec--cobalt h3, .sec--ink h1, .sec--ink h2, .sec--ink h3 { color: #fff; }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; }
.rule { height: 1px; background: currentColor; opacity: var(--rule-a); }
.lead { font-size: 1.125rem; color: var(--color-muted); max-width: 54ch; }
.sec--cobalt .lead, .sec--ink .lead { color: rgba(255,255,255,.82); }

/* section heading block */
.head { max-width: 62ch; }
.head__k { display: block; color: var(--red); margin-bottom: 14px; }
.sec--cobalt .head__k, .sec--ink .head__k { color: var(--amber); }
.head h1, .head h2 { font-size: var(--step-h2); }
.head .lead { margin-top: 16px; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lead { margin-inline: auto; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem; padding: 13px 22px; border: 1.5px solid transparent;
  border-radius: var(--btn-primary-radius); cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }
.btn--cta { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn--cta:hover { background: var(--btn-primary-hover-bg); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--w { background: #fff; color: var(--ink); }
.btn--cobalt { background: var(--cobalt); color: #fff; }
.btn--cobalt:hover { background: var(--color-primary-hover); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.sec--cobalt .btn--ghost, .sec--ink .btn--ghost, .band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.sec--cobalt .btn--ghost:hover, .sec--ink .btn--ghost:hover, .band .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--color-border); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.pill--amber { background: var(--amber-soft); border-color: transparent; color: #7a4d00; }
.pill--ink { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); color: #fff; }
.pill svg { width: 13px; height: 13px; }

/* ---- top bar + nav ---- */
.topbar { background: var(--ink); color: rgba(255,255,255,.72); border-bottom: 1px solid rgba(255,255,255,.1); }
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 34px; flex-wrap: wrap; text-align: center; }
.topbar b { color: #fff; }
.topbar a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
.topbar a:hover { border-color: var(--amber); }

.site-header { position: sticky; top: 0; z-index: 60; background: var(--ink); color: #fff; }
.nav { display: flex; align-items: center; gap: 22px; min-height: var(--nav-h); }
.nav__logo img { height: 26px; filter: brightness(0) invert(1); }
.nav__links { display: flex; gap: 22px; margin-left: auto; min-width: 0; }
.nav__links a { opacity: .88; font-size: .95rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"] { box-shadow: 0 2px 0 var(--amber); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; background: 0; border: 1px solid rgba(255,255,255,.35); color: #fff; cursor: pointer; }
.nav__drawer { display: none; }
.nav__drawer[data-open="true"] { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid rgba(255,255,255,.14); padding: 8px clamp(20px,4vw,80px) 22px; }
.nav__drawer a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.nav__drawer .btn { width: 100%; margin-top: 18px; }

/* ---- hero: photo + floating search + headline band below ---- */
.hero__media { position: relative; height: 64vh; max-height: 660px; overflow: hidden; background: var(--color-surface); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.search { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(1080px, 92%); background: #fff; display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; border: 1px solid var(--color-border); }
.search__f { padding: 15px 20px; border-right: 1px solid var(--color-border); min-width: 0; }
.search__f .mono { color: var(--color-muted); font-size: .68rem; display: block; margin-bottom: 3px; }
.search__f span { display: block; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search .btn { border-radius: 0; padding-inline: 26px; height: 100%; }

.band { background: var(--cobalt); color: #fff; padding-block: 44px 40px; position: relative; }
.band--ink { background: var(--ink); }
.band h1 { font-size: var(--step-h1); max-width: 16ch; color: #fff; }
.band .lead { color: rgba(255,255,255,.85); margin-top: 18px; }
.band__cap { position: absolute; right: clamp(20px,4vw,80px); bottom: 40px; text-align: right; color: rgba(255,255,255,.85); }
.band__cap b { display: block; font-family: var(--font-body); font-size: .85rem; text-transform: none; letter-spacing: 0; margin-bottom: 2px; }
.band .btn-row { margin-top: 26px; }
.band__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.band__facts .pill { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.band__facts .pill svg { color: var(--amber); }

.crumb { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.crumb a:hover { color: #fff; }

/* ---- typographic index + paired figure ---- */
.index { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.index__list { display: flex; flex-wrap: wrap; gap: 8px 26px; max-width: 56ch; margin-top: 40px; }
.index__list button { background: 0; border: 0; padding: 4px 0; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--color-muted); transition: color .18s; }
.index__list button:hover, .index__list button[aria-pressed="true"] { color: var(--ink); }
.sec--cobalt .index__list button, .sec--ink .index__list button { color: rgba(255,255,255,.55); }
.sec--cobalt .index__list button:hover, .sec--cobalt .index__list button[aria-pressed="true"],
.sec--ink .index__list button:hover, .sec--ink .index__list button[aria-pressed="true"] { color: #fff; }

.figure { position: relative; }
.figure img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; background: var(--color-surface); }
.figure__v { position: absolute; right: -26px; top: 0; writing-mode: vertical-rl; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; opacity: .6; }
.figure__v--b { top: auto; bottom: 0; }

/* ---- mega statement ---- */
.mega h2 { font-size: var(--step-mega); }
.mega .lead { margin-top: 44px; font-size: 1.2rem; max-width: 52ch; }

/* ---- place list (cities) ---- */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; margin-top: 52px; }
.place { display: flex; align-items: baseline; gap: 8px; width: 100%; background: 0; border: 0; padding: 22px 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.15;
  color: rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.2); transition: color .18s; }
.place:hover, .place[aria-pressed="true"] { color: #fff; }
.place sup { font-family: var(--font-mono); font-size: .68rem; opacity: .7; }
.place__meta { margin-left: auto; font-family: var(--font-mono); font-size: .7rem; opacity: .6; }

/* ---- rail (horizontal carousel) ---- */
.rail { display: flex; gap: var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-top: 48px; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 25%, transparent); }
.card { flex: 0 0 300px; scroll-snap-align: start; }
.card img { width: 100%; aspect-ratio: 3/3.4; object-fit: cover; background: var(--color-surface); transition: opacity .25s; }
.card:hover img { opacity: .92; }
.card .mono { color: var(--red); margin: 14px 0 6px; display: block; }
.sec--cobalt .card .mono, .sec--ink .card .mono { color: var(--amber); }
.card h3 { font-size: 1.2rem; margin-bottom: 5px; }
.card p { font-size: .88rem; color: var(--color-muted); }
.sec--cobalt .card p, .sec--ink .card p { color: rgba(255,255,255,.7); }
.card__price { margin-top: 8px; font-family: var(--font-display); font-weight: 700; }
.card__price span { font-family: var(--font-body); font-weight: 400; font-size: .82rem; color: var(--color-muted); }

/* grid variant of the same card (listing pages) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 36px var(--gut); margin-top: 48px; }
.grid .card { flex: none; }

/* ---- numbered list ---- */
.steps { margin-top: 36px; }
.steps li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, currentColor calc(var(--rule-a) * 100%), transparent); }
.steps b { font-family: var(--font-display); font-weight: 800; min-width: 34px; color: var(--red); }
.sec--cobalt .steps b, .sec--ink .steps b { color: var(--amber); }
.steps strong { display: block; font-weight: 600; }
.steps span { opacity: .72; font-size: .95rem; }

/* ---- split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }

/* ---- keyword cloud ---- */
.cloud { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 36px; max-width: 72ch; }
.cloud a { font-size: 1.15rem; color: var(--color-muted); border-bottom: 1px solid transparent; }
.cloud a:hover { color: var(--ink); border-bottom-color: var(--red); }

/* ---- masonry gallery ---- */
.masonry { columns: 4 250px; column-gap: var(--gut); margin-top: 44px; }
.masonry figure { break-inside: avoid; margin-bottom: var(--gut); position: relative; background: var(--color-surface); }
.masonry img { width: 100%; }
.masonry figcaption { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--color-muted); padding: 10px 2px 0; }
.masonry figure.is-hidden { display: none; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.filter button { padding: 9px 16px; border: 1px solid var(--color-border); background: transparent; cursor: pointer; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; transition: all .2s; }
.filter button:hover { border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- event detail ---- */
.event { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: start; }
.event__art img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--color-surface); }
.event__thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 12px; }
.event__thumbs img { aspect-ratio: 1/1; object-fit: cover; }
.booking { position: sticky; top: calc(var(--nav-h) + 16px); border: 1px solid var(--color-border); background: #fff; padding: 26px; }
.booking__price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.booking__price span { font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--color-muted); }
.booking__facts { margin: 20px 0; border-top: 1px solid var(--color-border); }
.booking__facts li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--color-border); }
.booking__facts svg { width: 18px; height: 18px; color: var(--cobalt); margin-top: 2px; }
.booking__facts b { display: block; font-weight: 600; }
.booking__facts span { display: block; font-size: .85rem; color: var(--color-muted); }
.booking .btn { width: 100%; }
.booking__note { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--color-border); font-size: .85rem; color: var(--color-muted); }
.booking__note b { color: var(--ink); }
.stock { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--color-muted); }
.stock i { width: 7px; height: 7px; border-radius: 50%; background: #22a06b; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 14px; }
.prose h3 { margin: 34px 0 14px; font-size: 1.4rem; }
.map { border: 1px solid var(--color-border); margin-top: 8px; }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---- accordion ---- */
.acc { max-width: 860px; border-top: 1px solid var(--color-border); margin-top: 36px; }
.acc details { border-bottom: 1px solid var(--color-border); }
.acc summary { list-style: none; cursor: pointer; padding: 22px 42px 22px 0; position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -6px; border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(45deg); transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: rotate(-135deg); }
.acc__body { padding: 0 42px 24px 0; color: var(--color-muted); }
.acc__body a { color: var(--cobalt); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---- forms ---- */
.form { border: 1px solid var(--color-border); background: #fff; padding: clamp(24px,3vw,38px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
.field .req { color: var(--red); }
.field input, .field textarea, .field select { padding: 12px 14px; border: 1px solid var(--color-border); background: var(--paper); width: 100%; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cobalt); }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--color-muted); margin-top: 10px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 180px; margin: 0; }
.inline-form input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.inline-form input::placeholder { color: rgba(255,255,255,.5); }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: 88px 30px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer img { height: 26px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.site-footer h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; font-weight: 400; margin-bottom: 16px; color: #fff; }
.site-footer a { display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.site-footer__bot { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; opacity: .65; }

/* ---- reveal (progressive enhancement: visible unless JS opts in) ---- */
.reveal { opacity: 1; }
html.reveal-on .reveal { opacity: 0; transform: translateX(calc(-1 * var(--rv-x))); transition: opacity var(--rv-dur) var(--ease), transform var(--rv-dur) var(--ease); }
html.reveal-on .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.reveal-on .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav > .btn { display: none; }
  .nav__burger { display: block; }
  .site-header { position: relative; }
}
@media (max-width: 960px) {
  :root { --sec: 72px; --sec-tight: 52px; }
  .index, .places, .split, .event, .site-footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .figure__v { display: none; }
  .booking { position: static; }
  .hero__media { height: auto; max-height: none; overflow: visible; }
  .hero__media img { height: 42vh; }
  .search { position: relative; left: auto; top: auto; transform: none; width: auto; margin: -30px clamp(20px,4vw,80px) 0; grid-template-columns: 1fr; z-index: 2; }
  .search__f { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .search .btn { width: 100%; padding: 15px; }
  .band__cap { position: static; text-align: left; margin-top: 20px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .masonry { columns: 2 140px; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; }
}
