@font-face {
  font-family: 'FARPLANE Ticket';
  src: url('/assets/farplane-night-ticket.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

.project-feature .night-ticket {
  --ticket-gold: #c3a06e;
  --ticket-cream: #f0ddb0;
  position: relative;
  isolation: isolate;
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 1.65rem auto 0;
  padding: clamp(18px, 3vw, 28px) 13%;
  border: 1px solid var(--ticket-gold);
  border-radius: 13px;
  box-shadow: inset 0 0 0 4px #211529, inset 0 0 0 5px #43b8c18a, 0 8px 18px #0004;
  background: radial-gradient(ellipse at 48% 40%, #452252, #35163f 57%, #1d1323);
  color: var(--ticket-cream);
  font-family: Georgia, serif;
  text-align: center;
  text-decoration: none;
  scroll-margin-top: 19vh;
  transition: filter .2s ease;
}

.night-ticket::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  content: '';
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E") center / 140px;
  opacity: .18;
  mix-blend-mode: soft-light;
}

.night-ticket__ornament {
  position: absolute;
  inset-block: 6px;
  width: 24%;
  pointer-events: none;
  background: url('/assets/farplane-night-ticket-ornament.svg') left center / 100% 100% no-repeat;
}

.night-ticket__ornament--left { left: 6px; }
.night-ticket__ornament--right { right: 6px; transform: scaleX(-1); }

.night-ticket__heading, .night-ticket__action {
  position: relative;
  display: block;
  color: var(--ticket-cream);
  font-size: clamp(.62rem, 1.38vw, .77rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .16em;
}

.night-ticket__heading::before, .night-ticket__heading::after {
  color: var(--ticket-gold);
  content: '✦';
  margin-inline: .55em;
}

.night-ticket__title {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: .31em auto .29em;
  color: #43b8c1;
  font: italic 700 clamp(1.85rem, 4.85vw, 3.75rem)/.84 'FARPLANE Ticket', Georgia, serif;
  letter-spacing: -.055em;
  -webkit-text-stroke: .019em var(--ticket-cream);
  paint-order: stroke fill;
  text-shadow: .045em .05em #141114, .061em .073em #82684b;
  transform: rotate(-5deg);
}

.night-ticket__title > span { display: block; }
.night-ticket__title > span + span { font-size: 1.13em; }
.night-ticket__action {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: .5em .65em 0;
  border-top: 1px solid #c3a06e94;
}
.night-ticket__arrow {
  display: inline-block;
  width: .82em;
  height: .82em;
  margin-inline-start: .22em;
  vertical-align: -.04em;
}
.night-ticket:focus-visible { outline: 2px solid #74e1e2; outline-offset: 4px; }

@media (hover: hover) {
  .night-ticket:hover { filter: brightness(1.18); }
}
@media (max-width: 700px) {
  .night-ticket__title { font-size: clamp(1.7rem, 9.2vw, 3.35rem); }
}
@media (prefers-reduced-motion: reduce) {
  .project-feature .night-ticket { transition: none; }
}
