@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

/* Katarina & Trevor — component styles. Every value comes from tokens.css. */

html, body { background: var(--ground); color: var(--text); }
body { font-family: var(--font-serif); font-size: 16px; line-height: 1.65; margin: 0; }
.kt-root { font-family: var(--font-serif); color: var(--text); }
.kt-caps { text-transform: uppercase; }
.kt-script { font-family: var(--font-script); font-weight: 400; }
:where(.kt-root) *:focus-visible,
.kt-btn:focus-visible, .kt-input:focus-visible, .kt-choice input:focus-visible + span,
.kt-chip:focus-visible, .kt-drop:focus-within {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { .kt-root *, .kt-btn { transition: none !important; } }

/* ---------- Button ---------- */
.kt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-serif); font-size: 14px; font-weight: 700; line-height: 1.2;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: var(--space-3) var(--space-5); min-height: 44px;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.kt-btn[disabled] { opacity: .45; cursor: not-allowed; }
.kt-btn-primary { background: var(--brand); color: var(--on-brand); }
.kt-btn-primary:hover:not([disabled]) { background: var(--brand-hover); }
.kt-btn-secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.kt-btn-secondary:hover:not([disabled]) { background: var(--french-blue-wash); }
.kt-btn-quiet { background: transparent; color: var(--text-muted); padding-inline: var(--space-2); }
.kt-btn-quiet:hover:not([disabled]) { color: var(--brand); }
.kt-btn-sm { min-height: 36px; padding: var(--space-2) var(--space-4); font-size: 12px; }
.kt-btn-block { width: 100%; }

/* ---------- Link ---------- */
.kt-link { color: var(--link); font-style: italic; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.kt-link:hover { text-decoration-thickness: 2px; }

/* ---------- PageTitle ---------- */
.kt-title { text-align: center; display: grid; justify-items: center; gap: var(--space-3); }
.kt-title-xl { gap: var(--space-4); }
.kt-title-eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.kt-title-script { font-family: var(--font-script); font-size: 48px; line-height: 1.35; padding-top: .15em; color: var(--text); margin: 0; font-weight: 400; text-wrap: balance; }
.kt-title-md .kt-title-script { font-size: 34px; }
.kt-title-xl .kt-title-script { font-size: 64px; line-height: 1.3; padding-top: .25em; }
.kt-title-rule { width: 48px; height: 1px; background: var(--brass); border: 0; margin: 0; }
.kt-title-sub { font-size: 16px; color: var(--text-muted); margin: 0; max-width: 34em; }
@media (max-width: 480px) {
  .kt-title-script { font-size: 38px; }
  .kt-title-xl .kt-title-script { font-size: 48px; }
  .kt-title-md .kt-title-script { font-size: 28px; }
}

/* ---------- Card ---------- */
.kt-card { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-5); display: grid; gap: var(--space-3); min-width: 0; }
.kt-card-flat { box-shadow: none; border: 1px solid var(--rule); }
.kt-card-eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.kt-card-title { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 0; color: var(--text); text-wrap: balance; }
.kt-card-body { margin: 0; }
.kt-card-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-2); }

/* ---------- GateChip ---------- */
.kt-chip { display: inline-flex; align-items: center; gap: var(--space-1); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px var(--space-3); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); background: var(--surface); font-weight: 700; }
.kt-chip-k { border-color: var(--raspberry-deep); color: var(--raspberry-deep); }
.kt-chip-t { border-color: var(--brand); color: var(--link); }
.kt-chip-solid { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* ---------- Field ---------- */
.kt-field { display: grid; gap: var(--space-2); min-width: 0; }
.kt-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.kt-label .kt-opt { letter-spacing: .06em; text-transform: none; color: var(--text-muted); font-style: italic; }
.kt-input { font-family: var(--font-serif); font-size: 16px; line-height: 1.4; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-3); min-height: 44px; width: 100%; box-sizing: border-box; }
.kt-input::placeholder { color: var(--text-muted); opacity: 1; font-style: italic; }
textarea.kt-input { min-height: 112px; resize: vertical; }
select.kt-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.kt-field-error .kt-input { border-color: var(--danger); border-width: 2px; }
.kt-hint { font-size: 14px; color: var(--text-muted); margin: 0; }
.kt-error { font-size: 14px; color: var(--danger); margin: 0; font-weight: 700; }

/* ---------- ChoiceGroup ---------- */
.kt-choices { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-2); min-width: 0; }
.kt-choices legend { padding: 0; margin-bottom: var(--space-2); }
.kt-choices-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.kt-choice { position: relative; display: inline-flex; }
.kt-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kt-choice span { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: var(--space-2) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font-size: 15px; cursor: pointer; }
.kt-choice input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.kt-choice input:checked + span::before { content: "✓"; font-size: 13px; }

/* ---------- Notice ---------- */
.kt-notice { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); border: 1px solid currentColor; background: var(--surface); min-width: 0; }
.kt-notice-mark { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; border: 1.5px solid currentColor; margin-top: 2px; }
.kt-notice-title { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.kt-notice-body { font-size: 15px; color: var(--text); margin: 0; }
.kt-notice-info { color: var(--info); background: var(--french-blue-wash); border-color: transparent; }
.kt-notice-success { color: var(--success); }
.kt-notice-warning { color: var(--warning); }
.kt-notice-danger { color: var(--danger); }

/* ---------- DetailList ---------- */
.kt-details { display: grid; grid-template-columns: minmax(7em, max-content) 1fr; gap: var(--space-3) var(--space-5); margin: 0; }
.kt-details dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); padding-top: 4px; }
.kt-details dd { margin: 0; min-width: 0; }
.kt-details-stack { grid-template-columns: 1fr; gap: var(--space-1); }
.kt-details-stack dd + dt { margin-top: var(--space-3); }
@media (max-width: 420px) { .kt-details { grid-template-columns: 1fr; gap: var(--space-1); } .kt-details dd + dt { margin-top: var(--space-3); } }

/* ---------- Timeline ---------- */
.kt-timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.kt-tl-item { display: grid; grid-template-columns: 5.5em 18px 1fr; gap: 0 var(--space-4); min-width: 0; }
.kt-tl-time { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; padding-top: 1px; white-space: nowrap; }
.kt-tl-track { position: relative; display: flex; justify-content: center; }
.kt-tl-track::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.kt-tl-item:first-child .kt-tl-track::before { top: 9px; }
.kt-tl-item:last-child .kt-tl-track::before { bottom: auto; height: 9px; }
.kt-tl-dot { position: relative; width: 11px; height: 11px; margin-top: 6px; border-radius: 50%; background: var(--ground); border: 1.5px solid var(--brass); box-sizing: border-box; }
.kt-tl-now .kt-tl-dot { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--french-blue-wash); }
.kt-tl-past { opacity: .6; }
.kt-tl-content { padding-bottom: var(--space-6); min-width: 0; }
.kt-tl-item:last-child .kt-tl-content { padding-bottom: 0; }
.kt-tl-title { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.4; }
.kt-tl-room { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin: 2px 0 0; }
.kt-tl-note { font-size: 15px; margin: var(--space-2) 0 0; }
.kt-tl-badge { display: inline-block; margin-left: var(--space-2); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-brand); background: var(--brand); padding: 1px 8px; border-radius: var(--radius-pill); vertical-align: 2px; font-weight: 700; }
@media (max-width: 420px) { .kt-tl-item { grid-template-columns: 4.6em 14px 1fr; gap: 0 var(--space-3); } }

/* ---------- RoomMap ---------- */
.kt-map { display: grid; gap: var(--space-3); min-width: 0; }
.kt-map svg { width: 100%; height: auto; display: block; max-width: 100%; }
.kt-map .r { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.kt-map .r-on { fill: var(--french-blue-wash); stroke: var(--brand); stroke-width: 2; }
.kt-map .r-minor { fill: var(--surface-sunk); stroke: var(--rule); }
.kt-map .lbl { font-family: var(--font-serif); font-size: 17px; fill: var(--text-muted); }
.kt-map .lbl-on { fill: var(--text); font-weight: 700; }
.kt-map .lbl-minor { font-size: 13px; }
.kt-map .step circle { fill: var(--surface); stroke: var(--brass); stroke-width: 1.5; }
.kt-map .step text { font-family: var(--font-serif); font-size: 14px; font-weight: 700; fill: var(--brass-deep); }
.kt-map .stage { fill: none; stroke: var(--rule); stroke-dasharray: 2 3; }
.kt-map-key { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 14px; color: var(--text-muted); margin: 0; padding: 0; list-style: none; }
.kt-map-key b { color: var(--text); font-variant-numeric: tabular-nums; }
.kt-map-note { font-size: 12px; color: var(--text-muted); margin: 0; font-style: italic; }

/* ---------- BoardingPass ---------- */
.kt-pass { --notch: 13px; position: relative; display: grid; grid-template-columns: 1fr; background: var(--surface); color: var(--ink); border-radius: var(--radius-ticket); box-shadow: var(--shadow-card); overflow: hidden; max-width: 420px; width: 100%; font-family: var(--font-serif); }
.kt-pass-band { background: var(--french-blue); color: var(--on-french-blue); padding: var(--space-3) var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.kt-pass-carrier { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; }
.kt-pass-band .kt-pass-flight { font-family: var(--font-mono); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.kt-pass-main { padding: var(--space-5); display: grid; gap: var(--space-4); }
.kt-pass-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: var(--space-3); }
.kt-pass-code { font-family: var(--font-mono); font-size: 34px; font-weight: 700; line-height: 1; color: var(--text); letter-spacing: .02em; }
.kt-pass-city { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.kt-pass-route > div:last-child { text-align: right; }
.kt-pass-plane { color: var(--brass); padding-bottom: 18px; }
.kt-pass-plane svg { display: block; width: 44px; height: 12px; }
.kt-pass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); margin: 0; }
.kt-pass-grid div { min-width: 0; }
.kt-pass-grid dt, .kt-pass-lbl { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.kt-pass-grid dd { margin: 2px 0 0; font-family: var(--font-mono); font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: .03em; overflow-wrap: anywhere; }
.kt-pass-grid .kt-pass-big dd { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.1; }
.kt-pass-name { font-family: var(--font-mono); font-weight: 700; font-size: 18px; letter-spacing: .04em; color: var(--ink); overflow-wrap: anywhere; margin-top: 2px; }
.kt-pass-dest { font-family: var(--font-script); font-size: 30px; line-height: 1.4; color: var(--text); margin: var(--space-2) 0 0; }
.kt-pass-perf { position: relative; height: 0; border-top: 2px dotted var(--brass); margin: 0 var(--notch); }
.kt-pass-perf::before, .kt-pass-perf::after { content: ""; position: absolute; top: calc(-1 * var(--notch) - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%; background: var(--ground); }
.kt-pass-perf::before { left: calc(-2 * var(--notch)); }
.kt-pass-perf::after { right: calc(-2 * var(--notch)); }
.kt-pass-stub { padding: var(--space-5); display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: center; background: var(--surface); }
.kt-pass-qr { width: 112px; height: 112px; background: var(--qr-ground); color: var(--qr-ink); padding: 6px; border-radius: var(--radius-sm); display: grid; place-items: center; box-sizing: border-box; }
.kt-pass-qr svg, .kt-pass-qr img { width: 100%; height: 100%; display: block; }
.kt-pass-qr-empty { border: 1px dashed var(--border); background: var(--surface-sunk); color: var(--text-muted); font-size: 11px; text-align: center; letter-spacing: .1em; text-transform: uppercase; }
.kt-pass-remark { font-size: 14px; font-style: italic; color: var(--text); margin: var(--space-1) 0 0; }
.kt-pass-crest { width: 26px; height: auto; opacity: .95; }

/* ---------- TableHeader ---------- */
.kt-table { display: grid; justify-items: center; text-align: center; gap: var(--space-2); }
.kt-table-num { font-family: var(--font-serif); font-size: 96px; line-height: 1; font-weight: 400; color: var(--brass-deep); font-variant-numeric: lining-nums tabular-nums; }
.kt-table-frame { display: grid; place-items: center; width: 168px; height: 168px; border: 1px solid var(--brass); border-radius: 50%; outline: 1px solid var(--brass); outline-offset: 5px; margin-bottom: var(--space-4); }
.kt-table-dest { font-family: var(--font-script); font-size: 44px; line-height: 1.35; color: var(--text); margin: var(--space-3) 0 0; }
.kt-table-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; align-items: center; color: var(--text-muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.kt-table-story { max-width: 34em; margin: var(--space-2) 0 0; font-size: 16px; }

/* ---------- GuestList ---------- */
.kt-guests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); gap: 0 var(--space-5); }
.kt-guests li { padding: var(--space-2) 0; border-bottom: 1px solid var(--rule); font-size: 16px; display: flex; justify-content: space-between; gap: var(--space-2); min-width: 0; }
.kt-guests li.kt-guest-me { color: var(--brand); font-weight: 700; }
.kt-guests small { color: var(--text-muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

/* ---------- PhotoDrop ---------- */
.kt-drop { position: relative; display: grid; justify-items: center; gap: var(--space-2); text-align: center; padding: var(--space-6) var(--space-5); border: 1.5px dashed var(--border); border-radius: var(--radius-md); background: var(--surface-sunk); color: var(--text); cursor: pointer; }
.kt-drop:hover, .kt-drop-over { border-color: var(--brand); background: var(--french-blue-wash); }
.kt-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kt-drop-icon { color: var(--brand); }
.kt-drop-title { font-weight: 700; font-size: 17px; }
.kt-drop-hint { font-size: 14px; color: var(--text-muted); }
.kt-drop-files { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.kt-drop-files li { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 14px; padding: var(--space-2) var(--space-3); background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--rule); min-width: 0; }
.kt-drop-files li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-drop-files .ok { color: var(--success); font-weight: 700; white-space: nowrap; }

/* ---------- Crest ---------- */
.kt-crest { display: block; height: auto; margin-inline: auto; }

/* ---------- Divider ---------- */
.kt-divider { display: flex; align-items: center; gap: var(--space-3); color: var(--brass); margin: 0; }
.kt-divider::before, .kt-divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.kt-divider svg { width: 18px; height: 18px; flex: none; }
