/* Marigolds & Onions x Proof of the Pudding: ATP/WTA tournament directors page.
   Tokens and components follow the seasonal landing page (Growth Engine/brand/web-tokens.md). */

@font-face { font-family: "Awesome Serif"; src: url("fonts/AwesomeSerif-MediumExtraTall.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Awesome Serif"; src: url("fonts/AwesomeSerif-MediumExtraTallItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Awesome Serif"; src: url("fonts/AwesomeSerif-LightExtraTall.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --obsidian: #2F3837;
  --laurel: #3F4F4F;
  --marigold: #B37600;
  --caramel: #A27B5A;
  --caramel-dark: #7E5C40;
  --ochre: #CE9B4D;
  --carbon: #1F1F1F;
  --charcoal: #4A4947;
  --sand: #DDD7C9;
  --porcelain: #FAF7F0;
  --page: #1F2524;

  --serif: "Awesome Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "Courier New", monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --gap: 12px;
  --pad: clamp(24px, 4.4vw, 68px);
  --section: clamp(56px, 7.5vw, 104px);
  --max: 1360px;
  --gutter: clamp(12px, 2.4vw, 28px);
  --s-eyebrow: 16px;
  --s-head: 22px;
  --s-body: 28px;
  --s-cta: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--porcelain); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--porcelain); color: var(--carbon); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }

main, .footer { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
main { display: grid; gap: var(--gap); }

.card { background: var(--obsidian); border-radius: var(--radius); position: relative; overflow: hidden; }
.card--laurel { background: var(--laurel); }
.card--sand { background: var(--sand); color: var(--carbon); }

/* Type. Awesome Serif Extra Tall needs line-height of at least 1.07 for stacked lines. */
h1 { font-family: var(--serif); font-size: clamp(50px, 9vw, 136px); line-height: 1.08; letter-spacing: -0.005em; }
h1 em { font-style: italic; color: var(--ochre); padding-right: .12em; }
h2 { font-family: var(--serif); font-size: clamp(40px, 5.6vw, 80px); line-height: 1.1; overflow-wrap: break-word; }
.h2--split { font-size: clamp(36px, 4.6vw, 66px); }
h3 { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); line-height: 1.12; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre); margin-bottom: var(--s-eyebrow); }
.eyebrow--dark { color: var(--caramel-dark); }
.section-head { padding: var(--section) 0 clamp(24px, 3vw, 40px); }
.section-sub { margin-top: var(--s-head); font-size: 18.5px; color: var(--charcoal); max-width: 52ch; }

/* Buttons */
.btn { --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--h); padding: 0 24px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 4px; border: 1px solid transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; white-space: nowrap; }
.btn--sm { --h: 42px; padding: 0 16px; font-size: 13px; }
.btn--primary { background: var(--ochre); color: var(--carbon); }
.btn--primary:hover { background: var(--porcelain); }
.btn--dark { background: var(--obsidian); color: var(--porcelain); }
.btn--dark:hover { background: var(--carbon); }
.btn--ghost { border-color: rgba(250, 247, 240, .55); color: var(--porcelain); background: transparent; }
.btn--ghost:hover { border-color: var(--porcelain); background: rgba(250, 247, 240, .08); }
.btn[disabled] { opacity: .6; cursor: progress; }
.arw { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }

/* Nav and lockup */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav__bar { pointer-events: auto; width: min(100%, var(--max)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(47, 56, 55, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(250, 247, 240, .08); border-radius: 16px; padding: 9px 9px 9px 18px; }
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.lockup img { height: 24px; width: auto; }
.lockup .lockup__proof { height: 22px; }
.lockup__x { font-family: var(--serif); font-size: 20px; line-height: 1; color: var(--ochre); opacity: .9; }
.lockup--footer img { height: 30px; }
.lockup--footer .lockup__proof { height: 28px; }

/* Hero */
.hero { min-height: min(84svh, 860px); display: flex; align-items: flex-end; margin-top: -68px; background: var(--carbon); }
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(18, 20, 20, .70) 0%, rgba(18, 20, 20, .36) 50%, rgba(18, 20, 20, .08) 80%),
  linear-gradient(180deg, rgba(20, 24, 23, .62) 0%, rgba(20, 24, 23, .18) 30%, rgba(20, 24, 23, .52) 62%, rgba(18, 20, 20, .95) 100%); }
.hero__content { position: relative; padding: 140px var(--pad) var(--pad); max-width: 1080px; width: 100%; min-width: 0; }
.hero .eyebrow { color: var(--sand); margin-bottom: 20px; }
.nowrap { white-space: nowrap; }
.hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__sub { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; max-width: 34ch; margin-top: 22px; }

/* Ticket: echoes the booth wall's QR card */
.ticket-wrap { display: grid; place-items: center; padding: clamp(10px, 2vw, 24px) 0; }
.ticket { --notch: 14px; position: relative; width: min(100%, 560px); background: var(--porcelain); color: var(--carbon); border-radius: 6px;
  padding: clamp(26px, 4vw, 40px) clamp(22px, 4vw, 44px) clamp(22px, 3vw, 30px); text-align: center; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  outline: 1px solid rgba(162, 123, 90, .55); outline-offset: -10px; }
.ticket__kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--caramel-dark); }
.ticket__title { font-family: var(--serif); font-size: clamp(34px, 6vw, 52px); line-height: 1.08; color: var(--marigold); margin-top: 12px; }
.ticket__title span { display: block; font-size: .62em; color: var(--obsidian); margin-bottom: 4px; }
.ticket__title i { font-style: italic; color: var(--obsidian); font-size: .8em; padding: 0 .1em; }
.ticket__tear { position: relative; height: 1px; margin: 24px -10px 22px; border-top: 1.5px dashed rgba(47, 56, 55, .3); }
.ticket__tear::before, .ticket__tear::after { content: ""; position: absolute; top: calc(-1 * var(--notch) / 2 - 1px); width: var(--notch); height: var(--notch); border-radius: 50%; background: var(--page); }
.ticket__tear::before { left: calc(-1 * clamp(22px, 4vw, 44px) + 10px - var(--notch) / 2); }
.ticket__tear::after { right: calc(-1 * clamp(22px, 4vw, 44px) + 10px - var(--notch) / 2); }
.ticket__btn { width: 100%; }
.ticket__fine { margin-top: 14px; font-size: 13.5px; color: var(--charcoal); }
.ticket__fine a { color: var(--caramel-dark); }

/* Value */
.value { padding: var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.value h2 { color: var(--obsidian); }
.value__points { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(47, 56, 55, .2); }
.value__points li { padding: 18px 0 18px 30px; border-bottom: 1px solid rgba(47, 56, 55, .14); position: relative; color: var(--charcoal); }
.value__points li::before { content: ""; position: absolute; left: 4px; top: 27px; width: 10px; height: 10px; border-radius: 50%; background: var(--caramel); }
.value__points strong { display: block; color: var(--obsidian); font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.15; margin-bottom: 6px; }

/* Who */
.who__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.who__card { display: flex; flex-direction: column; }
.who__img { aspect-ratio: 16 / 10; overflow: hidden; }
.who__img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; }
.who__logo { aspect-ratio: 16 / 8; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 40%, rgba(250,247,240,.06), transparent 70%); }
.who__logo img { width: min(62%, 320px); height: auto; }
.who__body { padding: clamp(24px, 3.2vw, 44px); }
.who__body p:not(.eyebrow) { margin-top: 16px; color: rgba(250, 247, 240, .86); max-width: 48ch; }
.stages { margin-top: var(--gap); padding: clamp(24px, 3vw, 40px) var(--pad); }
.stages__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.stages__list li { font-size: 14.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(250, 247, 240, .18); color: rgba(250, 247, 240, .9); }
.stages__logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(18px, 3vw, 40px) clamp(14px, 3vw, 36px); align-items: center; }
.stages__logos li { display: grid; place-items: center; height: 68px; }
.stages__logos img { max-height: 60px; max-width: 100%; width: auto; opacity: .92; }

/* Gallery */
.gallery-sec { padding: var(--pad); }
.gallery-sec__head { margin-bottom: clamp(22px, 3vw, 36px); }
.gallery { min-width: 0; }
.strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.strip figure { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.strip img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.strip figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; width: fit-content; max-width: calc(100% - 20px); font-family: var(--mono); font-size: 11px; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--porcelain); background: rgba(31, 37, 36, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 999px; }
.gallery__nav { display: none; }

/* Entry */
.enter { padding: var(--pad); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.enter__copy p:not(.eyebrow) { margin-top: var(--s-head); color: rgba(250, 247, 240, .86); max-width: 42ch; }
.enter__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); padding: 0; }
.opt { letter-spacing: .04em; text-transform: none; opacity: .7; }
.field input { height: 54px; padding: 0 16px; border-radius: 6px; border: 1px solid rgba(250, 247, 240, .24); background: rgba(31, 37, 36, .55); color: var(--porcelain); font: inherit; font-size: 16px; width: 100%; }
.field input:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(206, 155, 77, .25); }
.field input.is-bad { border-color: #F2B8A0; }
.field--chips { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.field--chips legend { width: 100%; margin-bottom: 10px; }
.field--chips .chip { position: relative; cursor: pointer; font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--porcelain); }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(250, 247, 240, .3); font-size: 15px; line-height: 1.25; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.chip input:checked + span { background: var(--ochre); border-color: var(--ochre); color: var(--carbon); }
.chip input:focus-visible + span { outline: 2px solid var(--ochre); outline-offset: 2px; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: rgba(250, 247, 240, .86); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ochre); flex: none; }
.consent a { color: var(--ochre); }
.consent.is-bad span { color: #F2B8A0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enter__submit { grid-column: 1 / -1; justify-self: start; }
.enter__status { grid-column: 1 / -1; font-size: 15px; }
.enter__status:empty { display: none; }
.enter__status.is-err { color: #F2B8A0; }
.enter__legal { grid-column: 1 / -1; font-size: 12.5px; opacity: .6; }
.enter__legal a { color: inherit; }
.enter__done { grid-column: 2; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-sm); background: rgba(31, 37, 36, .45); border: 1px solid rgba(206, 155, 77, .35); outline: none; }
.enter__done p:not(.eyebrow) { margin-top: 14px; color: rgba(250, 247, 240, .86); max-width: 46ch; }
.enter__done-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Rules */
.faq { padding: var(--pad); }
.faq .section-head { padding-top: 0; }
.faq__list { border-top: 1px solid rgba(250, 247, 240, .14); }
.faq details { border-bottom: 1px solid rgba(250, 247, 240, .14); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 52px 22px 0; position: relative; font-family: var(--serif); font-size: clamp(23px, 2.2vw, 29px); line-height: 1.18; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 13px; border-right: 1.6px solid var(--ochre); border-bottom: 1.6px solid var(--ochre); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 24px; max-width: 70ch; color: rgba(250, 247, 240, .84); }
.faq details a { color: var(--ochre); }
.tbc { font-family: var(--mono); font-size: .82em; letter-spacing: .06em; color: var(--carbon); background: var(--ochre); padding: 1px 6px; border-radius: 4px; }

/* Footer */
.footer { margin-top: var(--gap); margin-bottom: 110px; padding: var(--pad); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; background: #262d2c; }
.footer__brand p { margin-top: 18px; opacity: .7; max-width: 30ch; font-family: var(--serif); font-size: 22px; }
.footer h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); margin-bottom: 14px; line-height: 1.4; }
.footer__col p { margin-bottom: 10px; opacity: .85; font-size: 15.5px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__legal { grid-column: 1 / -1; font-size: 13px; opacity: .55; border-top: 1px solid rgba(250,247,240,.1); padding-top: 20px; }

/* Mobile sticky CTA */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(31, 31, 31, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(250, 247, 240, .12); border-radius: 16px; padding: 10px 10px 10px 16px;
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.mobile-cta.is-on { transform: none; }
.mobile-cta strong { display: block; font-size: 15px; line-height: 1.25; }
.mobile-cta span { font-size: 12.5px; opacity: .75; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 1100px) {
  .value, .enter { grid-template-columns: 1fr; }
  .enter__done { grid-column: 1; }
  .stages__logos { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .who__grid { grid-template-columns: 1fr; }
  .strip { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip__item { flex: 0 0 78%; scroll-snap-align: start; }
  .gallery__nav { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sand); }
  .gallery__bar { position: relative; flex: 1; height: 2px; background: rgba(250, 247, 240, .16); border-radius: 2px; overflow: hidden; }
  .gallery__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: var(--ochre); border-radius: 2px; transition: width .3s ease; }
  .gallery__hint { opacity: .6; transition: opacity .4s ease; }
  .gallery.is-swiped .gallery__hint { opacity: 0; }
  .footer { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  .hero { min-height: 82svh; }
  .hero__content { padding-top: 120px; }
}
@media (max-width: 560px) {
  .nav__bar { padding-left: 14px; }
  .lockup { gap: 9px; }
  .lockup img { height: 19px; }
  .lockup .lockup__proof { height: 17px; }
  .lockup__x { font-size: 16px; }
  .btn { --h: 52px; padding: 0 18px; font-size: 13.5px; }
  .btn--sm { --h: 40px; padding: 0 13px; font-size: 12px; }
  .enter__form { grid-template-columns: 1fr; }
  .enter__submit { justify-self: stretch; }
  .enter__done-ctas .btn { flex: 1 1 100%; }
  .stages__logos { grid-template-columns: repeat(3, 1fr); }
  .stages__logos li { height: 54px; }
  .stages__logos img { max-height: 46px; }
  .value__points strong { font-size: 23px; }
}
@media (max-width: 380px) {
  .nav__cta { display: none; }
}
