/* Hallmark · shape: Narrative Workflow (kept) · genre: playful · theme: Overprint (by request) · redesign: full
 * hero: poster over a one-pass photograph, the app beside it · nav: ink slab · footer: mast · imagery: screenshots 4 (running app) + library photo 1 · signature: a logged gig printed as a two-pass ticket · overprint: black stock in GigMe's colours, passes periwinkle and lavender on screen
 * axes: dark/grotesk-heavy/cool · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R (the app's two accents sit close in hue, so the crossing prints pale rather than a third colour), kept because the brief is the app's palette */
/* waive 2a: no gradient fills; the only linear-gradient is the photograph's scrim, which the theme allows */
@import url("./tokens.css");
@import url("./base.css");

/* ------------------------------------------------------------ type */
h1, h2, h3 { font-weight: var(--display-weight); text-transform: uppercase; line-height: 1.0; }
h1 { font-size: clamp(3rem, 6.4vw, 6.75rem); max-width: 11ch; }
h2 { font-size: clamp(2.25rem, 4.6vw, 4.75rem); max-width: 15ch; }
h3 { font-size: var(--text-title); line-height: 1.05; }
.figure { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 0.88; font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-display); }
.lead { color: var(--color-ink-2); }
.caption { font-size: var(--text-sm); color: var(--color-muted); }
section { padding-block: var(--section-gap-s); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-tooltip); padding: var(--space-xs) var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; }
.skip:focus-visible { top: var(--space-md); }

/* ------------------------------------------------------------ passes and controls */
.pass-1 { background: var(--color-accent); color: var(--color-accent-ink); mix-blend-mode: var(--blend); }
.pass-2 { background: var(--color-accent-2); color: var(--color-accent-2-ink); mix-blend-mode: var(--blend); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--space-sm) var(--space-lg); border: 0; border-radius: 0; font: 600 var(--text-sm)/1 var(--font-outlier); text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn--sm { min-height: 40px; padding: var(--space-xs) var(--space-md); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); }
.btn--primary:active { background: color-mix(in oklab, var(--color-accent-2) 78%, var(--color-accent-ink)); }
.btn--secondary { box-shadow: inset 0 0 0 2px var(--color-ink); color: var(--color-ink); }
.btn--secondary:hover { background: var(--color-ink); color: var(--color-accent-ink); }
.btn--secondary:active { background: var(--color-ink-2); color: var(--color-accent-ink); }
.btn--ink { box-shadow: inset 0 0 0 2px var(--color-accent-ink); color: var(--color-accent-ink); }
.btn--ink:hover { background: var(--color-accent-ink); color: var(--color-ink); }
.btn--ink:active { background: var(--color-ink-2); color: var(--color-accent-ink); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ------------------------------------------------------------ nav: ink slab */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-slab); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__in { display: flex; align-items: center; gap: var(--space-xl); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; color: var(--color-ink); }
.brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.brand__name { font: var(--display-weight) 1.375rem/1 var(--font-display); letter-spacing: var(--tracking-display); }
.brand__name b { font-weight: inherit; color: var(--color-accent-2); }
.eq { display: inline-flex; align-items: flex-end; gap: var(--space-2xs); height: 18px; }
.eq i { display: block; width: 4px; background: var(--color-accent); }
.eq i:nth-child(1) { height: 7px; } .eq i:nth-child(2) { height: 13px; } .eq i:nth-child(3) { height: 18px; } .eq i:nth-child(4) { height: 10px; }
.nav__links { display: flex; gap: var(--space-lg); margin-left: auto; }
.nav__links a { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); text-decoration: none; padding-block: var(--space-xs); }
.nav__links a:hover { color: var(--color-ink); text-decoration: underline 2px var(--color-accent); text-underline-offset: 0.3em; }
.nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ------------------------------------------------------------ hero: poster over the photograph */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: calc(100svh - 64px); padding-block: var(--space-2xl); border-bottom: var(--rule-bar) solid var(--color-ink); }
.hero__photo { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero__photo > img { object-position: 50% 35%; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: center; }
.hero__text { display: grid; gap: var(--space-lg); justify-items: start; }
.hero__text .lead { max-width: 30ch; color: var(--color-ink); }
.hero__note { font-size: var(--text-sm); color: var(--color-ink-2); }
.phone { margin: 0; aspect-ratio: 390 / 844; box-shadow: 0 0 0 var(--rule-bar) var(--color-ink); }
.phone > img { object-position: top; }
.hero__phone { justify-self: end; height: min(620px, calc(100svh - 200px)); width: auto; }

/* ------------------------------------------------------------ the ticket (signature) */
.ticket-section__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: center; }
.ticket-section__text { display: grid; gap: var(--space-lg); align-content: center; }
.ticket { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 0; min-height: 380px; }
.ticket__main { grid-column: 1 / 10; grid-row: 1; display: flex; flex-direction: column; padding: var(--space-xl) calc(100% / 9 + var(--space-lg)) var(--space-xl) var(--space-xl); }
.ticket__stub { grid-column: 9 / 13; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-xl) var(--space-lg) var(--space-xl) calc(25% + var(--space-md)); }
.ticket__venue { font-size: var(--text-sm); font-weight: 600; }
.ticket__act { margin-top: auto; font: var(--display-weight) clamp(2.25rem, 4.2vw, 4.25rem)/1 var(--font-display); letter-spacing: var(--tracking-display); text-transform: uppercase; overflow-wrap: break-word; min-width: 0; }
.ticket__facts { display: flex; gap: var(--space-2xl); margin: var(--space-lg) 0 0; padding-top: var(--space-md); border-top: var(--rule-bar) solid var(--color-accent-ink); }
.ticket__facts dt { font-size: var(--text-xs); font-weight: 600; }
.ticket__facts dd { margin: var(--space-2xs) 0 0; font-size: clamp(2rem, 3.2vw, 3.25rem); }
.ticket__pts { font-size: clamp(2.5rem, 4.4vw, 4.5rem); }
.ticket__kind { font-size: var(--text-sm); font-weight: 600; max-width: 10ch; }
.ticket .caption { grid-column: 1 / -1; grid-row: 2; margin-top: var(--space-sm); }

/* ------------------------------------------------------------ steps as numbered bills */
.how h2 { margin-bottom: var(--space-xl); }
.bills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: var(--rule-bar) solid var(--color-ink); }
.bill { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-xl) var(--space-xl) 0; overflow: hidden; mix-blend-mode: normal; }
.bill__n { font-size: clamp(4.5rem, 8vw, 8rem); margin-bottom: var(--space-sm); }
.bill p:not(.bill__n) { font-size: var(--text-md); max-width: 30ch; }
.bill__shot { margin: var(--space-lg) 0 0; aspect-ratio: 390 / 560; box-shadow: 0 0 0 var(--rule-bar) var(--color-accent-ink); }
.bill__shot > img { object-position: top; }

/* ------------------------------------------------------------ figures as a bill */
.liga__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-xl); }
.figures { isolation: isolate; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: var(--rule-bar) solid var(--color-ink); }
.fig { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl); min-height: 260px; padding: var(--space-xl); }
.fig__n { font-size: clamp(4rem, 8.5vw, 8.5rem); }
.fig__l { font-size: var(--text-md); font-weight: 600; max-width: 22ch; }
.fig--a { grid-column: 1 / 8; grid-row: 1; padding-right: calc(100% / 7 + var(--space-xl)); }
.fig--b { grid-column: 7 / 13; grid-row: 1; padding-left: calc(100% / 6 + var(--space-xl)); }
.fig--c { grid-column: 1 / 6; grid-row: 2; padding-right: calc(100% / 5 + var(--space-xl)); }
.fig--d { grid-column: 5 / 13; grid-row: 2; padding-left: calc(100% / 8 + var(--space-xl)); }

/* ------------------------------------------------------------ the listing as a ruled table */
.compare-section h2 { margin-bottom: var(--space-xl); }
.compare { width: 100%; border-collapse: collapse; border-top: var(--rule-bar) solid var(--color-ink); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.compare thead th { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.compare thead .compare__on { background: var(--color-accent); color: var(--color-accent-ink); }
.compare tbody th { font-weight: 600; color: var(--color-ink); width: 30%; }
.compare tbody td { color: var(--color-muted); }
.compare tbody td:last-child { color: var(--color-ink); font-weight: 600; }

/* ------------------------------------------------------------ install */
.install h2 { margin-bottom: var(--space-xl); }
.install__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.install__cell { display: grid; gap: var(--space-sm); align-content: start; padding-top: var(--space-lg); border-top: var(--rule-bar) solid var(--color-ink); }
.install__cell p { color: var(--color-ink-2); max-width: 30ch; }

/* ------------------------------------------------------------ band: one pass field */
.band { mix-blend-mode: normal; padding-block: var(--section-gap); }
.band__in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-xl); }
.band h2 { font-size: clamp(2.75rem, 6.8vw, 7rem); max-width: 12ch; color: var(--color-accent-2-ink); }
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--texture-opacity); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 -4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 200px; }

/* ------------------------------------------------------------ footer: mast */
.foot { background: var(--color-slab); border-top: var(--rule-bar) solid var(--color-ink); padding-block: var(--space-2xl) var(--space-xl); }
.foot__mark { font: var(--display-weight) clamp(4.5rem, 17vw, 15rem)/0.8 var(--font-display); letter-spacing: -0.03em; text-transform: uppercase; color: var(--color-ink); margin-bottom: var(--space-xl); overflow-wrap: break-word; min-width: 0; }
.foot__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap-columns); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__cols nav { display: grid; gap: var(--space-xs); align-content: start; }
.foot a { color: var(--color-ink-2); text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.foot__cols nav a { white-space: nowrap; text-decoration: none; font-size: var(--text-sm); font-weight: 600; padding-block: var(--space-3xs); justify-self: start; }
.foot__cols nav a:hover, .foot__small a:hover { color: var(--color-ink); text-decoration: underline 2px var(--color-accent); text-underline-offset: 0.3em; }
.foot a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.foot__small { display: grid; gap: var(--space-xs); align-content: start; font-size: var(--text-xs); color: var(--color-muted); }

/* ------------------------------------------------------------ smaller screens */
@media (max-width: 60rem) {
  .nav__links { display: none; }
  .nav__in .btn { margin-left: auto; }
  .hero { min-height: 0; }
  .hero__grid, .ticket-section__grid, .liga__head { grid-template-columns: minmax(0, 1fr); }
  .hero__scrim { background: var(--scrim-low); }
  .hero__phone { justify-self: start; height: 460px; margin-top: var(--space-lg); }
  .bills, .install__grid { grid-template-columns: minmax(0, 1fr); }
  .bill { padding-bottom: 0; }
  .bill__shot { aspect-ratio: 390 / 420; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .fig--a, .fig--b, .fig--c, .fig--d { grid-column: 1; grid-row: auto; padding: var(--space-xl); min-height: 200px; }
  .foot__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__small { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .ticket { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ticket__main, .ticket__stub { grid-column: 1; padding: var(--space-lg); }
  .ticket__stub { grid-row: 2; flex-direction: row; align-items: flex-end; gap: var(--space-md); }
  .ticket .caption { grid-row: 3; }
  .ticket__facts { gap: var(--space-xl); }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .compare tbody th, .compare td { border: 0; padding: var(--space-2xs) 0; width: auto; }
  .compare td::before { content: attr(data-label) ": "; color: var(--color-muted); font-weight: 400; }
  .band__in { align-items: flex-start; }
}
