:root {
  --ink: #111111;
  --graphite: #2a2a28;
  --mid: #70706b;
  --line: #cfcfca;
  --paper: #ecece6;
  --white: #fafaf8;
  --serif: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color: var(--ink); background: var(--paper); }
body { margin: 0; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 10px 14px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.masthead {
  display: flex;
  min-height: 82px;
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 13px; font-size: 10px; font-weight: 650; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.brand small { display: block; margin-top: 3px; color: var(--mid); font-size: 7px; letter-spacing: .2em; }
.monogram { display: grid; width: 44px; height: 44px; border: 1px solid var(--ink); place-items: center; font-family: var(--serif); font-size: 12px; letter-spacing: -.08em; }
.masthead > p, .eyebrow { margin: 0; color: var(--mid); font-size: 8px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
main { width: min(1240px, calc(100% - 56px)); margin: 46px auto 80px; }
.loading-state, .error-state { min-height: 65vh; display: grid; align-content: center; justify-items: start; }
.loading-state span { color: var(--mid); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.loading-state p, .error-state h1 { max-width: 700px; margin: 18px 0; font-family: var(--serif); font-size: clamp(2.7rem, 7vw, 6.5rem); font-weight: 400; letter-spacing: -.05em; line-height: .92; }
.error-state > p:not(.eyebrow) { max-width: 470px; color: var(--mid); line-height: 1.6; }
.error-state a { margin-top: 22px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-underline-offset: 4px; }
.ticket { overflow: hidden; background: var(--white); box-shadow: 0 30px 90px rgba(17,17,17,.12); }
.ticket-hero { display: grid; min-height: 340px; grid-template-columns: 1.22fr .78fr; border-bottom: 1px solid var(--line); }
.ticket-hero-copy { padding: clamp(38px, 6vw, 76px); align-self: end; }
.ticket-status-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.status-pill { padding: 8px 10px; border: 1px solid var(--line); font-size: 8px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.ticket h1 { max-width: 760px; margin: 48px 0 0; font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 7.3rem); font-weight: 400; letter-spacing: -.06em; line-height: .88; }
.event-series { margin: 18px 0 0; color: var(--mid); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.event-art { min-height: 340px; margin: 0; overflow: hidden; background: #d6d6d1; }
.event-art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.93); }
.ticket-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); }
.guest-panel { padding: clamp(38px, 6vw, 76px); }
.guest-panel > h2 { margin: 23px 0 0; font-family: var(--serif); font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.firm { margin: 13px 0 0; color: var(--mid); font-size: 13px; }
.event-details { margin: 55px 0 0; border-top: 1px solid var(--line); }
.event-details > div { display: grid; min-height: 72px; padding: 18px 0; border-bottom: 1px solid var(--line); grid-template-columns: 90px 1fr; gap: 20px; }
.event-details dt, .ticket-ledger span { color: var(--mid); font-size: 8px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.event-details dd { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.event-details dd small { display: block; margin-top: 5px; color: var(--mid); font-family: var(--sans); font-size: 9px; letter-spacing: .03em; }
.ticket-ledger { display: grid; margin-top: 48px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ticket-ledger > div { min-height: 98px; padding: 17px 18px 15px 0; }
.ticket-ledger > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.ticket-ledger strong { display: block; margin-top: 22px; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.guest-list { margin-top: 44px; }
.guest-list ul { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.guest-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 18px; }
.pass-panel { padding: clamp(38px, 5vw, 64px); color: var(--white); background: var(--ink); }
.pass-panel .eyebrow { color: #aaa9a4; }
.qr-frame { margin-top: 30px; padding: 20px; background: var(--white); }
.qr-frame img { display: block; width: 100%; height: auto; }
.pass-panel h2 { max-width: 320px; margin: 34px 0 0; font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 3.8rem); font-weight: 400; letter-spacing: -.04em; line-height: .95; }
.pass-panel > p:not(.eyebrow):not(.action-status) { max-width: 340px; color: #bdbdb7; font-size: 12px; line-height: 1.65; }
.pass-actions { display: flex; margin-top: 32px; gap: 10px; }
.pass-actions button { min-height: 44px; padding: 0 16px; border: 1px solid #686863; color: var(--white); background: transparent; cursor: pointer; font-size: 8px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.pass-actions button:hover, .pass-actions button:focus-visible { color: var(--ink); background: var(--white); }
.action-status { min-height: 1.4em; margin: 13px 0 0; color: #bdbdb7; font-size: 10px; }
.ticket-footer { display: flex; padding: 23px clamp(30px, 5vw, 64px); border-top: 1px solid var(--line); color: var(--mid); justify-content: space-between; gap: 30px; font-size: 9px; line-height: 1.55; }
.ticket-footer p { margin: 0; }
.ticket-footer a { text-underline-offset: 3px; }

@media (max-width: 760px) {
  .masthead { width: calc(100% - 32px); }
  .masthead > p { display: none; }
  main { width: calc(100% - 20px); margin: 10px auto 42px; }
  .ticket-hero { min-height: 0; grid-template-columns: 1fr; }
  .event-art { height: 190px; min-height: 0; grid-row: 1; }
  .ticket-hero-copy { padding: 32px 24px 36px; }
  .ticket h1 { margin-top: 34px; font-size: clamp(3.1rem, 15vw, 5.3rem); }
  .ticket-body { grid-template-columns: 1fr; }
  .guest-panel { padding: 38px 24px 46px; }
  .event-details { margin-top: 42px; }
  .event-details > div { grid-template-columns: 68px 1fr; }
  .ticket-ledger { grid-template-columns: repeat(2, 1fr); }
  .ticket-ledger > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .ticket-ledger > div:nth-child(4) { border-top: 1px solid var(--line); }
  .pass-panel { padding: 40px 24px 46px; }
  .qr-frame { max-width: 390px; margin-right: auto; margin-left: auto; }
  .ticket-footer { display: grid; padding: 24px; }
}

@media print {
  body { background: #fff; }
  .masthead { width: 100%; }
  main { width: 100%; margin: 18px 0 0; }
  .ticket { box-shadow: none; }
  .pass-actions, .action-status { display: none; }
  .ticket-hero { min-height: 260px; }
  .event-art { min-height: 260px; }
}
