/* The “Scorpio” Ball — scorpioball.net
   One stylesheet for every page. Colours and type live in the tokens below. */

:root {
  --black: #000000;
  --hairline: #1E232A;
  --rule: #262B33;
  --edge: #5C6672;
  --pewter: #8B93A0;
  --silver: #C8CED6;
  --white: #F2F5F8;
  --tide: #7FAEE0;
  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, serif;
  --sans: 'Jost', 'Avenir Next', 'Century Gothic', sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --chrome: linear-gradient(180deg, #FFFFFF 11%, #EEF2F6 24%, #AEB8C4 40%, #6B7683 48.3%, #2F363F 49.3%, #55606C 55%, #A3AEBB 64%, #EEF2F6 76%, #C9D1DA 86%);
}

/* ---------- Base ---------- */

html {
  background: var(--black);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--silver);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

/* On a page shorter than the screen, the footer still sits at the bottom. */
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

#page > main {
  flex: 1 0 auto;
}

h1,
h2,
p,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--silver);
}

a:hover {
  color: #FFFFFF;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

main:focus {
  outline: none;
}

.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 50;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  color: #000000;
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
  color: #000000;
}

/* ---------- Chrome lettering ---------- */

.chrome {
  background-image: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (forced-colors: active) {
  .chrome {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
  }
}

/* ---------- Header and footer ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 24px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 48px;
  height: 48px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(20px, 3vw, 40px);
}

.nav {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--pewter);
}

.nav:hover,
.nav[aria-current="page"] {
  color: var(--white);
}

/* The footer holds only the links, centred. */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 48px;
  padding: 28px var(--gutter) 44px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--pewter);
}

.site-footer .site-nav {
  justify-content: center;
}

.site-footer--spaced {
  margin-top: clamp(32px, 5vw, 72px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFFFF, #B4BECA);
  color: #000000;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #FFFFFF;
  color: #000000;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: transparent;
  color: var(--silver);
  font-family: inherit;
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  cursor: pointer;
}

.ghost:hover {
  border-color: var(--white);
  color: #FFFFFF;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 20px 72px;
  padding: clamp(44px, 6vw, 88px) 0;
}

/* A band with no heading: whatever it holds is centred. */
.band--solo {
  display: flex;
  justify-content: center;
  text-align: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack--28 {
  gap: 28px;
}

.stack--start {
  align-items: flex-start;
}

/* ---------- Home: hero ---------- */

/* Holds the ripple filters; takes up no room on the page. */
.defs {
  position: absolute;
}

.hero {
  padding: clamp(48px, 7vw, 104px) var(--gutter) 0;
  overflow: hidden;
  overflow: clip;
  text-align: center;
}

/* The name, in chrome lettering. */
.wordmark {
  position: relative;
  padding-bottom: 0.68em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 10vw, 176px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.wordmark h1 {
  font: inherit;
  letter-spacing: inherit;
}

/* The flipped copy that sits in the water under the name. */
.wordmark-water {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  transform: scaleY(-1.2);
  transform-origin: 50% calc(100% - 0.1255em);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0.1375em, transparent 0.72em);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0.1375em, transparent 0.72em);
  filter: url(#sb-ripple);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 720px) {
  .wordmark {
    font-size: 16vw;
  }

  .wordmark-water {
    filter: url(#sb-ripple-sm);
  }
}

@media (forced-colors: active) {
  .wordmark-water {
    display: none;
  }
}

.gate-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* The line under the name, set a little apart from the reflection. */
.tagline {
  margin-top: clamp(40px, 9vw, 132px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 1.25;
  color: var(--silver);
  text-wrap: balance;
}

.hero-action {
  display: flex;
  justify-content: center;
  padding-top: clamp(24px, 3vw, 40px);
}

/* Centred copy on Home and About. Each sentence is its own short block, in
   the brightest text colour, so it reads easily on black. */
.hero-copy,
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  max-width: 26em;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.6;
  color: var(--white);
  text-align: center;
  text-wrap: balance;
}

.hero-copy {
  box-sizing: content-box;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(24px, 3vw, 40px);
}

/* The one line on About that carries the idea. The lower optical size and the
   heavier weight thicken the serif's hairlines so it stays easy to read. */
.pull {
  padding: 0.3em 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: 'opsz' 18;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.25;
}

/* ---------- Inner pages ---------- */

.page-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(32px, 6vw, 88px) 0 clamp(36px, 5vw, 64px);
}

.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 1;
  color: var(--white);
}

.lead {
  max-width: 44ch;
  font-size: clamp(18px, 1.6vw, 21px);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  align-items: start;
  gap: 48px 72px;
  padding-bottom: clamp(56px, 8vw, 112px);
}

/* One centred column under a title: the form on Contact, the text on About. */
.solo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  padding: clamp(32px, 6vw, 88px) 0 clamp(56px, 8vw, 112px);
}

.solo .page-title {
  text-align: center;
}

.solo .form {
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
}

.solo .form-row {
  flex-direction: column;
  text-align: center;
}

/* ---------- Tickets ---------- */

.ticket {
  padding: 1px;
  background: linear-gradient(155deg, #F2F5F8, #6B7683 30%, #1E232A 58%, #AEB8C4);
}

.ticket-face {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--black);
}

.ticket-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ticket-top img {
  display: block;
  width: 64px;
  height: 64px;
}

.ticket-top span {
  font-size: 15px;
  color: var(--pewter);
}

.ticket-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.ticket-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.ticket-price span:first-child {
  color: var(--pewter);
}

.ticket-price span:last-child {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 28;
  font-size: 28px;
  line-height: 1.2;
  color: var(--white);
}

.notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  color: var(--pewter);
}

.checkout-title {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 30;
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.15;
  color: var(--white);
}

/* ---------- Forms ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-group label {
  font-size: 15px;
  color: var(--pewter);
}

.field {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--edge);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.field:focus-visible {
  outline: none;
  border-bottom-color: var(--tide);
  box-shadow: 0 1px 0 0 var(--tide);
}

textarea.field {
  height: auto;
  min-height: 148px;
  padding: 10px 0;
  resize: vertical;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.form-status {
  font-size: 16px;
  color: var(--silver);
}

/* ---------- 21 and over check ---------- */

.gate {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  overflow-y: auto;
  padding: 40px var(--gutter);
  background: var(--black);
  text-align: center;
}

.gate:focus {
  outline: none;
}

.is-21 .gate {
  display: none;
}

.gate-open body {
  overflow: hidden;
}

.gate-main,
.gate-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.gate-logo {
  display: block;
  width: min(280px, 60vw, 36vh);
}

.gate-words {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gate-words p {
  max-width: 40ch;
}

.gate-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.08;
  color: var(--white);
  text-wrap: balance;
}

.gate-title:focus {
  outline: none;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
  padding-top: 8px;
}

/* The two answers: silver for yes, red for no. */
#gate-yes {
  background: linear-gradient(180deg, #F8F8F8, #28211A);
  color: #FFFFFF;
}

#gate-no {
  border: 0;
  background: linear-gradient(180deg, #E4160D, #28211A);
}

#gate-yes:hover,
#gate-no:hover {
  filter: brightness(1.12);
}

/* ---------- Not found ---------- */

.lost {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: clamp(48px, 10vw, 140px) 0 clamp(72px, 12vw, 180px);
}
