/* Samsara Tulum 1.0.0 · brand stylesheet.
   Every rule is scoped to sm-* / .samsara classes so the application-owned
   checkout injected at the ticket slot keeps its own structure.
   Contrast (WCAG 2.x, measured): ink on sand 15.04, ink on ice 16.86,
   bone on brand-deep 6.21, brand on ice 4.88, brand-deep on sand 6.21,
   clay on ink 8.52, muted on ink 9.36, moss on sand 8.11. Bone on brand
   (4.35) is used only for large display text. */

@font-face { font-family: "Cardo"; src: url("/_site-assets/font-cardo-regular") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("/_site-assets/font-cardo-bold") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("/_site-assets/font-cardo-italic") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --brand: #B0502A;
  --brand-deep: #8C3E1F;
  --sand: #F3E9DF;
  --ice: #FAF7F2;
  --ink: #1C1512;
  --moss: #2F4A3A;
  --clay: #E9A27C;
  --muted-dark: #C9B8A8;
  --muted-light: #5C4B42;
  --serif: "Cardo", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --measure: 62ch;
  --radius: 18px;
}

.samsara-body { margin: 0; background: var(--ink); color: var(--sand); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; overflow-x: clip; }
.samsara, .sm-header, .sm-footer, .sm-dialog { box-sizing: border-box; }
.samsara *, .samsara *::before, .samsara *::after,
.sm-header *, .sm-footer *, .sm-dialog *, .sm-dialog *::before, .sm-dialog *::after { box-sizing: border-box; }
.samsara img, .sm-header img, .sm-footer img, .sm-dialog img { display: block; max-width: 100%; height: auto; }
:where(.samsara, .sm-header, .sm-footer, .sm-dialog) a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.samsara :is(a, button):focus-visible, .sm-header a:focus-visible, .sm-footer a:focus-visible, .sm-dialog :is(a, button):focus-visible, .sm-skip:focus-visible {
  outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px;
}
.samsara :is(h1, h2, h3), .sm-dialog h2, .sm-footer h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
.samsara p, .sm-dialog p, .sm-footer p { margin: 0; text-wrap: pretty; }
.sm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sm-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--sand); color: var(--ink); font: 600 .95rem/1 var(--sans); text-decoration: none; }
.sm-skip:focus { top: 12px; }

/* Buttons */
.sm-button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .8rem 1.5rem; border: 1px solid transparent; border-radius: 999px; font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.sm-button--light { background: var(--sand); color: var(--ink); }
.sm-button--light:hover { background: var(--ice); }
.sm-button--ghost { border-color: rgb(243 233 223 / .6); color: var(--sand); }
.sm-button--ghost:hover { border-color: var(--sand); background: rgb(243 233 223 / .1); }
.sm-button--outline { border-color: currentColor; }
.sm-button--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--sand); }

/* Header */
.sm-header { position: absolute; inset: 0 0 auto; z-index: 20; color: var(--sand); }
.sm-header__inner { display: flex; align-items: center; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 14px var(--gutter); }
.sm-header__brand { flex: none; border-radius: 50%; }
.sm-header__brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px rgb(243 233 223 / .35); }
.sm-header__nav { display: none; }
.sm-header__nav ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sm-header__nav a, .sm-header__lang, .sm-header__portal { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font: 500 .95rem/1 var(--sans); text-decoration: none; }
.sm-header__nav a:hover, .sm-header__lang:hover { background: rgb(243 233 223 / .12); }
.sm-header__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.sm-header__portal { border: 1px solid rgb(243 233 223 / .55); }
.sm-header__portal:hover { background: var(--sand); color: var(--ink); }
@media (min-width: 900px) { .sm-header__nav { display: block; margin-left: 24px; } }

/* Hero / flyer */
.sm-hero { position: relative; isolation: isolate; color: var(--sand); background-color: var(--brand-deep); background-image: linear-gradient(180deg, rgb(28 21 18 / .35), rgb(28 21 18 / .35) 70%, rgb(28 21 18 / .7)), url("/_site-assets/image-bg-vertical"); background-size: cover; background-position: center; }
.sm-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: url("/_site-assets/image-grain"); background-size: 240px; opacity: .22; mix-blend-mode: overlay; pointer-events: none; }
.sm-hero__inner { display: grid; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 96px var(--gutter) 56px; }
.sm-hero__copy { display: grid; gap: 14px; align-content: start; max-width: 640px; }
.sm-hero__mark { width: min(220px, 58vw); margin: 0 0 8px; }
.sm-hero__title { font-size: clamp(2.9rem, 12vw, 6.6rem); letter-spacing: .005em; }
.sm-hero__artist { font: 400 clamp(1.45rem, 4.6vw, 2.1rem)/1.2 var(--serif); }
.sm-hero__anniversary { font: italic 400 clamp(1.25rem, 3.6vw, 1.6rem)/1.25 var(--serif); color: var(--clay); }
.sm-hero__facts { display: grid; gap: 2px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 1.08rem; font-weight: 600; }
.sm-hero__lead { max-width: 52ch; font-size: 1.05rem; }
.sm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sm-hero__photo { margin: 0; justify-self: center; width: min(100%, 440px); }
.sm-hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: 0 0 0 1px rgb(243 233 223 / .3), 0 30px 80px rgb(0 0 0 / .4); }
@media (min-width: 960px) {
  .sm-hero { background-image: linear-gradient(90deg, rgb(28 21 18 / .45), rgb(28 21 18 / .2) 60%, rgb(28 21 18 / .35)), url("/_site-assets/image-bg-horizontal"); }
  .sm-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; min-height: min(100svh, 920px); padding-top: 112px; }
  .sm-hero__photo { justify-self: end; }
}

/* Octave */
.sm-octave { background: var(--sand); color: var(--ink); }
.sm-octave__inner { display: grid; gap: 32px; max-width: 1180px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--gutter); }
.sm-octave__photo { margin: 0; }
.sm-octave__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.sm-octave__copy { display: grid; gap: 18px; align-content: start; max-width: var(--measure); }
.sm-octave__copy h2 { font-size: clamp(2.1rem, 6vw, 3.6rem); color: var(--brand-deep); }
.sm-octave__copy h3 { margin-top: 10px; font-size: 1.5rem; }
.sm-tour { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(28 21 18 / .18); }
.sm-tour li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid rgb(28 21 18 / .18); }
.sm-tour time { font-weight: 600; font-variant-numeric: tabular-nums; }
.sm-tour .is-here { color: var(--brand-deep); font-weight: 600; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.sm-chip { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 8px 16px; border: 1px solid rgb(28 21 18 / .35); border-radius: 999px; font-size: .95rem; font-weight: 500; text-decoration: none; }
.sm-chip:hover { background: var(--ink); border-color: var(--ink); color: var(--sand); }
@media (min-width: 900px) { .sm-octave__inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: 64px; } }

/* Lineup */
.sm-lineup { background: var(--ink); color: var(--sand); }
.sm-lineup__inner { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--gutter); }
.sm-lineup h2 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
.sm-lineup__intro { max-width: var(--measure); margin-top: 14px !important; color: var(--muted-dark); }
.sm-lineup__list { display: grid; gap: 0; margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid rgb(243 233 223 / .2); }
.sm-artist { border-bottom: 1px solid rgb(243 233 223 / .2); }
.sm-artist__button { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; width: 100%; min-height: 64px; padding: 16px 4px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sm-artist__name { font: 400 clamp(1.8rem, 6vw, 3rem)/1.1 var(--serif); }
.sm-artist--headliner .sm-artist__name { font-size: clamp(2.8rem, 11vw, 6rem); color: var(--clay); }
.sm-artist__meta { color: var(--muted-dark); font-size: .95rem; font-variant-numeric: tabular-nums; }
.sm-artist__button:hover .sm-artist__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.sm-lineup__note { margin-top: 18px !important; color: var(--muted-dark); font-size: .92rem; }

/* Phases */
.sm-phases { background: var(--ice); color: var(--ink); }
.sm-phases__inner { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; padding: clamp(56px, 9vw, 112px) var(--gutter); }
.sm-phases h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--brand-deep); }
.sm-phases__inner > p { max-width: var(--measure); }
.sm-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sm-table th, .sm-table td { padding: 14px 12px; border-bottom: 1px solid rgb(28 21 18 / .14); text-align: left; vertical-align: top; }
.sm-table thead th { font-size: .9rem; font-weight: 600; color: var(--muted-light); border-bottom-color: rgb(28 21 18 / .35); }
.sm-table tbody th { font: 400 1.35rem/1.2 var(--serif); }
.sm-price { font-weight: 700; white-space: nowrap; }
.sm-table .is-free th, .sm-table .is-free .sm-price { color: var(--brand-deep); }
.sm-phases__note { color: var(--muted-light); font-size: .95rem; }
@media (max-width: 639px) {
  .sm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sm-table, .sm-table tbody, .sm-table tr, .sm-table th, .sm-table td { display: block; }
  .sm-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid rgb(28 21 18 / .14); }
  .sm-table th, .sm-table td { padding: 0; border: 0; }
  .sm-table td:last-child { grid-column: 1 / -1; color: var(--muted-light); font-size: .95rem; }
}

/* Registration (the application injects its checkout at the slot) */
.sm-register { position: relative; background: linear-gradient(180deg, var(--brand-deep) 0, #4A2414 220px, var(--ink) 520px); color: var(--sand); padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(48px, 7vw, 96px); scroll-margin-top: 12px; }
.sm-register__intro { display: grid; gap: 12px; max-width: 1180px; margin: 0 auto 28px; }
.sm-register__intro h2 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
.sm-register__intro p { max-width: var(--measure); }
.sm-register__note { color: var(--muted-dark); }
.sm-register__fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; max-width: 1180px; margin: 0 auto !important; padding: 22px; border: 1px solid rgb(243 233 223 / .25); border-radius: var(--radius); }
.sm-register:has(.ticket-purchase-shell) .sm-register__fallback { display: none; }

/* Info: dress code and getting there */
.sm-info { background: var(--sand); color: var(--ink); }
.sm-info__inner { display: grid; gap: 40px; max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.sm-info__block { display: grid; gap: 14px; align-content: start; max-width: var(--measure); }
.sm-info__block h2 { font-size: clamp(2rem, 5vw, 3rem); color: var(--brand-deep); }
@media (min-width: 900px) { .sm-info__inner { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* FAQ */
.sm-faq { background: var(--ice); color: var(--ink); }
.sm-faq__inner { max-width: 880px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.sm-faq h2 { margin-bottom: 24px; font-size: clamp(2rem, 5vw, 3rem); color: var(--brand-deep); }
.sm-faq__item { border-bottom: 1px solid rgb(28 21 18 / .16); }
.sm-faq__item:first-of-type { border-top: 1px solid rgb(28 21 18 / .16); }
.sm-faq__item h3 { font: inherit; }
.sm-faq__trigger { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 14px 2px; border: 0; background: none; color: inherit; font: 600 1.05rem/1.35 var(--sans); text-align: left; cursor: pointer; }
.sm-faq__icon { position: relative; flex: none; width: 18px; height: 18px; }
.sm-faq__icon::before, .sm-faq__icon::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--brand-deep); transition: transform .2s ease; }
.sm-faq__icon::after { transform: rotate(90deg); }
.sm-faq__trigger[aria-expanded="true"] .sm-faq__icon::after { transform: rotate(0deg); }
.sm-faq__panel { padding: 0 2px 18px; max-width: var(--measure); }
.sm-faq__panel[hidden] { display: none; }

/* Guest list page */
.sm-hero--guest .sm-hero__inner--single { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-bottom: 72px; }
.sm-guest__rules { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 1.2em; }
.sm-guest__alt { background: var(--sand); color: var(--ink); }
.sm-guest__alt-inner { display: grid; gap: 14px; max-width: 1280px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.sm-guest__alt h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); color: var(--brand-deep); }

/* Footer */
.sm-footer { background: var(--ink); color: var(--sand); border-top: 1px solid rgb(243 233 223 / .14); }
.sm-footer__inner { display: grid; gap: 22px; max-width: 1180px; margin: 0 auto; padding: 48px var(--gutter) 40px; }
.sm-footer__title { font-size: 1.6rem; }
.sm-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; margin: 0; padding: 0; list-style: none; }
.sm-partner--samsara img { width: 84px; height: 84px; border-radius: 50%; }
.sm-partner--varuna img { width: 132px; }
.sm-partner--fam img { width: 76px; mix-blend-mode: screen; }
.sm-footer__notice { max-width: 80ch; color: var(--muted-dark); font-size: .9rem; }
.sm-footer__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted-dark); font-size: .9rem; }
.sm-footer__meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sand); }

/* Artist dialogs (opened by the application interaction runtime) */
.sm-dialog[hidden] { display: none; }
.sm-dialog { position: fixed; inset: 0; z-index: 40; width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; border: 1px solid rgb(243 233 223 / .22); border-radius: var(--radius); background: var(--ink); color: var(--sand); font-family: var(--sans); line-height: 1.6; box-shadow: 0 30px 100px rgb(0 0 0 / .6); overscroll-behavior: contain; }
.sm-dialog::backdrop { background: rgb(28 21 18 / .78); backdrop-filter: blur(8px); }
.sm-dialog__close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgb(243 233 223 / .4); border-radius: 50%; background: rgb(28 21 18 / .85); color: var(--sand); font: 400 1.7rem/1 var(--sans); cursor: pointer; }
.sm-dialog__close:hover { background: var(--sand); color: var(--ink); }
.sm-dialog__layout { display: grid; }
.sm-dialog__photo { margin: 0; }
.sm-dialog__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; }
.sm-dialog__monogram { display: grid; place-items: center; aspect-ratio: 16 / 7; background: radial-gradient(circle at 50% 50%, var(--brand) 0 34%, var(--brand-deep) 35% 36%, transparent 37%), radial-gradient(ellipse at 20% 0%, #4A2414, var(--ink) 70%); }
.sm-dialog__monogram span { font: 400 clamp(2.2rem, 8vw, 3.6rem)/1 var(--serif); letter-spacing: .08em; color: var(--sand); }
.sm-dialog__copy { display: grid; gap: 14px; padding: 28px 22px 30px; }
.sm-dialog__copy h2 { padding-right: 48px; font-size: clamp(2rem, 6vw, 3rem); color: var(--clay); }
.sm-dialog__role { color: var(--muted-dark); font-size: .95rem; font-variant-numeric: tabular-nums; }
.sm-dialog__links { display: flex; flex-wrap: wrap; gap: 10px; }
.sm-dialog__links a { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 8px 14px; border: 1px solid rgb(243 233 223 / .35); border-radius: 999px; font-size: .95rem; text-decoration: none; }
.sm-dialog__links a:hover { background: var(--sand); color: var(--ink); }
@media (min-width: 760px) {
  .sm-dialog__layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 460px; }
  .sm-dialog__photo img { height: 100%; aspect-ratio: auto; }
  .sm-dialog__monogram { aspect-ratio: auto; min-height: 100%; }
  .sm-dialog__copy { padding: 56px 40px 40px; align-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  .samsara *, .sm-header *, .sm-footer *, .sm-dialog, .sm-dialog * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .sm-button, .sm-chip, .sm-dialog__links a, .sm-header__portal { border: 1px solid CanvasText; }
}
