/* FbK Kapybary – demo club site by Makebox.
   Design language: a light sports-hall poster. White floor with court markings,
   square shapes with thick ink outlines and hard "sticker" shadows, slanted heavy
   headlines, a real weekly timetable board, tilted photo prints, app-style bottom
   bar on phones. Deliberately unlike the plumber demo (dark hero, rounded cards). */

@font-face {
  font-family: "Archivo";
  src: url("../../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #16112b;
  --violet: #4b1fa8;
  --tint: #f1ecff;
  --line: #e4def3;
  --white: #ffffff;
  --muted: #5a5170;
  --mint: #29d3a3;
  --coral: #ff6b57;
  --on-violet: #e3daff;

  --bd: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --r: 4px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 4.5rem;            /* room for the phone dock */
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
@media (min-width: 860px) { body { padding-bottom: 0; } }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; text-wrap: pretty; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
[id] { scroll-margin-top: 1rem; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  padding: .7rem 1rem; background: var(--white); border: var(--bd);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: .5rem; }

/* slanted jersey lettering */
.hero__title, .sec__title, .sub, .crest__name, .ticket__date, .feed h3, .note h3, .fee__chip {
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.01em;
}

/* ---------- Buttons: square, outlined, hard shadow ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .65rem 1.25rem;
  border: var(--bd); border-radius: var(--r);
  font: inherit; font-weight: 800; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--mint { background: var(--mint); color: var(--ink); }
.btn--plain { background: var(--white); color: var(--ink); }

/* ---------- Header (scrolls away; phones get the dock) ---------- */
.head { border-bottom: var(--bd); background: var(--white); }
.head__inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.crest { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; text-decoration: none; }
.crest__ball { width: 2.4rem; height: 2.4rem; flex: none; }
.crest__name { font-size: 1.45rem; color: var(--violet); }
.menu { display: none; }
@media (min-width: 860px) {
  .menu { display: flex; align-items: center; gap: 1.75rem; }
  .menu a { font-weight: 800; text-decoration: none; }
  .menu a:not(.menu__cta):hover { box-shadow: inset 0 -4px 0 var(--mint); }
  .menu__cta { padding: .45rem .9rem; border: var(--bd); border-radius: var(--r); background: var(--mint); box-shadow: var(--shadow-sm); }
}

/* ---------- Hero on the court ---------- */
.hero { position: relative; overflow: hidden; padding-block: 2.75rem 3.5rem; border-bottom: var(--bd); }
.court { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 2.25rem; }
.hero__title {
  max-width: 13ch;
  font-size: clamp(2.6rem, 1.2rem + 6.5vw, 5.6rem);
  line-height: .95;
  color: var(--violet);
  text-wrap: balance;
}
.hero__lede { max-width: 32rem; margin-top: 1.25rem; font-size: 1.15rem; }
.hero__lede mark { padding: 0 .2em; background: var(--mint); color: var(--ink); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }

.ticket {
  justify-self: start;
  display: grid;
  gap: .15rem;
  width: min(100%, 19rem);
  padding: 1.1rem 1.3rem 1.2rem;
  border: var(--bd);
  border-radius: var(--r);
  background: var(--coral);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
  /* ticket notches */
  -webkit-mask: radial-gradient(circle at 0 50%, transparent .7rem, #000 .75rem) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent .7rem, #000 .75rem) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 50%, transparent .7rem, #000 .75rem) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent .7rem, #000 .75rem) right / 51% 100% no-repeat;
}
.ticket__label { font-size: .85rem; font-weight: 800; }
.ticket__date { font-size: 2.2rem; line-height: 1.05; }
.ticket__name { font-weight: 800; font-size: 1.1rem; }
.ticket__meta { font-size: .95rem; }
.ticket:hover .ticket__name { text-decoration: underline; }

@media (min-width: 860px) {
  .hero { padding-block: 4.5rem 5rem; }
  .hero__grid { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
  .ticket { transform: rotate(4deg); margin-right: 2rem; }
}

/* ---------- Sections ---------- */
.sec { padding-block: 3.5rem; }
.sec--tint { background: var(--tint); border-block: var(--bd); }
.sec__title { margin-bottom: .75rem; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); color: var(--violet); }
.sec__lede { margin-bottom: 2rem; color: var(--muted); }
.sub { margin: 3rem 0 1rem; font-size: 1.6rem; color: var(--ink); }
@media (min-width: 860px) { .sec { padding-block: 5rem; } }

/* ---------- Timetable board ---------- */
/* phone: a simple list of sessions (day headers and time ruler hidden) */
.board { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.board__day, .board__time { display: none; }
@media (max-width: 759px) {
  /* ignore the desktop board positions set inline in the HTML */
  .board > .slot { grid-column: auto !important; grid-row: auto !important; }
}
.slot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 .75rem;
  padding: .75rem .9rem;
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  line-height: 1.3;
}
.slot strong { grid-column: 1 / -1; font-weight: 900; }
.slot__day { font-weight: 700; }
.slot--mini  { background: var(--mint); }
.slot--kids  { background: var(--violet); color: var(--white); }
.slot--adult { background: var(--coral); }

/* desktop: a real week board with a time ruler */
@media (min-width: 760px) {
  .board {
    grid-template-columns: 4rem repeat(5, 1fr);
    grid-template-rows: 2.75rem repeat(10, 2.3rem);
    gap: 0 .6rem;
    padding: 1rem 1rem 1.25rem;
    border: var(--bd);
    border-radius: var(--r);
    background:
      repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 4.6rem) 0 3.75rem / 100% 100% no-repeat,
      var(--white);
    box-shadow: var(--shadow);
  }
  .board__day {
    display: block;
    grid-row: 1;
    align-self: center;
    font-weight: 900;
    font-style: italic;
    font-size: 1.15rem;
    text-align: center;
  }
  .board__time {
    display: block;
    grid-column: 1;
    font-size: .85rem;
    font-weight: 700;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    transform: translateY(-.6em);
  }
  .slot { display: flex; flex-direction: column; justify-content: center; margin-block: 2px; padding: .4rem .65rem; font-size: .92rem; box-shadow: none; }
  .slot__day { display: none; }
}

/* ---------- Fees ---------- */
.fees { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: var(--bd); }
.fee {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: .25rem 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: var(--bd);
}
.fee__chip {
  grid-row: span 2;
  display: grid; place-items: center;
  height: 3.2rem;
  border: var(--bd); border-radius: var(--r);
  font-size: 1.1rem;
  white-space: nowrap;
}
.fee__chip--mini  { background: var(--mint); }
.fee__chip--kids  { background: var(--violet); color: var(--white); }
.fee__chip--adult { background: var(--coral); }
.fee__name { font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.fee__name small, .fee__price small { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); }
.fee__price { font-weight: 900; font-size: 1.25rem; line-height: 1.25; }
@media (min-width: 640px) {
  .fee { grid-template-columns: 5rem 1fr auto; }
  .fee__chip { grid-row: auto; font-size: 1.3rem; }
  .fee__price { text-align: right; }
}

.note {
  max-width: 34rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.4rem;
  border: var(--bd);
  border-radius: var(--r);
  background: var(--mint);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}
.note h3 { margin-bottom: .4rem; font-size: 1.3rem; }

/* ---------- Events: calendar list ---------- */
.feed { display: grid; gap: 0; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.feed__item {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 2px dashed #c9bbea;
}
.feed__item:last-child { border-bottom: 0; }
.feed__date {
  display: grid;
  place-items: center;
  padding: .3rem 0 .45rem;
  border: var(--bd);
  border-radius: var(--r);
  background: var(--white);
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
}
.feed__date b { font-size: 2.1rem; font-weight: 900; font-style: italic; line-height: 1.1; }
.feed__item--next .feed__date { background: var(--coral); box-shadow: var(--shadow-sm); }
.feed h3 { margin-bottom: .3rem; font-size: 1.4rem; color: var(--violet); }
.feed p { max-width: 38rem; color: var(--muted); }

/* ---------- Photos: tilted prints ---------- */
.prints { display: grid; gap: 2rem; margin-top: 1.5rem; padding-inline: .5rem; }
.print {
  margin: 0;
  padding: .7rem .7rem 0;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}
.print:nth-child(1) { transform: rotate(-2deg); }
.print:nth-child(2) { transform: rotate(1.5deg); }
.print:nth-child(3) { transform: rotate(-1deg); }
.print svg { width: 100%; height: auto; }
.print figcaption { padding: .6rem .2rem .75rem; font-weight: 800; font-style: italic; }
@media (min-width: 700px) { .prints { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }

/* ---------- Sign-up ---------- */
.signup { display: grid; gap: 2rem; }
.steps { display: grid; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: flex; gap: .75rem; align-items: center; font-weight: 600; counter-increment: s; }
.steps li::before {
  content: counter(s);
  display: grid; place-items: center; flex: none;
  width: 2rem; height: 2rem;
  border: var(--bd); border-radius: 50%;
  background: var(--white);
  font-weight: 900; font-style: italic;
}
.signup__mail { margin-top: 1.5rem; }
.signup__mail a { font-weight: 800; color: var(--violet); }

.form {
  display: grid; gap: .45rem;
  padding: 1.5rem;
  border: var(--bd); border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--shadow);
}
.form label { margin-top: .5rem; font-weight: 800; font-size: .95rem; }
.form label:first-child { margin-top: 0; }
.form input, .form select {
  width: 100%; min-height: 3rem; padding: .6rem .8rem;
  border: 2px solid var(--ink); border-radius: var(--r);
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
}
.form input:focus-visible, .form select:focus-visible { outline: 3px solid var(--mint); outline-offset: 1px; }
.form .btn { margin-top: 1rem; justify-self: start; }
@media (min-width: 860px) { .signup { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; } .form { padding: 2rem; } }

/* ---------- Footer ---------- */
.foot { background: var(--violet); color: var(--on-violet); padding-block: 2rem; font-size: .95rem; }
.foot__inner { display: grid; gap: .5rem; }
.foot a { color: var(--white); font-weight: 800; }

/* ---------- Phone dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  border-top: var(--bd);
  background: var(--white);
}
.dock a {
  display: grid; place-items: center;
  min-height: 3.6rem;
  font-weight: 800;
  text-decoration: none;
  border-right: 2px solid var(--line);
}
.dock .dock__cta { background: var(--mint); border-right: 0; border-left: var(--bd); }
@media (min-width: 860px) { .dock { display: none; } }

/* ---------- Demo toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 5rem; z-index: 60;
  width: max-content;
  max-width: min(92vw, 30rem);
  padding: .85rem 1.1rem;
  border: var(--bd); border-radius: var(--r);
  background: var(--white); color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 700; text-align: center;
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 860px) { .toast { bottom: 1.5rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
