/* pico · Pickleball Community Hof: the notice with tear-off tabs, printed as an offset poster. */

/* Archivo (SIL Open Font License), self-hosted, variable weight and width */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  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;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


:root {
  --yellow: #fcea10;
  --ink: #3c3c3b;
  --ink-deep: #2a2a29;
  --ink-soft: #5a5a58; /* secondary ink on white and yellow, >= 4.5:1 */
  --paper: #ffffff;
  --paper-shade: #f1f0ec;
  --marker: #c7351f; /* only for "nächster Abend" */
  --tape: rgb(252 234 16 / 0.9);
  --on-dark-soft: #cfcfca;

  --font: "Archivo", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 66ch;
  --max: 1240px;

  --perf: 2px dashed currentColor;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--yellow) var(--ink-deep);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--ink);
  color: var(--yellow);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 82;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: var(--yellow);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Sheets ---------- */

.sheet-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.sheet-yellow ::selection {
  background: var(--ink);
  color: var(--yellow);
}

.on-dark {
  color: var(--paper);
}

.on-dark ::selection {
  background: var(--yellow);
  color: var(--ink);
}

/* A plain copy sheet fastened with two strips of tape. */
.notice {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.18), 0 18px 40px -18px rgb(0 0 0 / 0.55);
}

.notice::before,
.notice::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 92px;
  height: 26px;
  background: var(--tape);
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.12);
}

.notice::before {
  left: 9%;
  transform: rotate(-3deg);
}

.notice::after {
  right: 9%;
  transform: rotate(2.5deg);
}

.notice ::selection {
  background: var(--yellow);
  color: var(--ink);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 16px 8px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-variation-settings: "wdth" 90;
}

.logo {
  display: block;
  width: auto;
  height: 84px;
}

.logo-footer {
  height: 52px;
}

@media (max-width: 560px) {
  .site-header .logo {
    height: 54px;
  }
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  border-bottom: 3px solid currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    background: rgb(60 60 59 / 0.08);
  }
  .on-dark .nav a:hover {
    background: rgb(255 255 255 / 0.08);
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding-block: 12px 4px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .nav {
    gap: 0;
    margin-right: -10px;
  }
  .nav a {
    padding: 10px 8px;
    font-size: 0.9375rem;
  }
  .nav a[aria-current="page"]::after {
    left: 8px;
    right: 8px;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--yellow);
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--ink-deep);
  }
  .btn-yellow:hover {
    background: #fff27a;
  }
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.link-quiet {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* ---------- Home: the poster ---------- */

.poster {
  position: relative;
}

.poster-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-block: clamp(24px, 2.8vw, 40px) clamp(28px, 3vw, 44px);
}

.poster h1 {
  font-size: clamp(3.25rem, 8.4vw, 7.25rem);
  font-variation-settings: "wdth" 62;
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 0.92;
}

.poster h1 .claim {
  display: block;
  font-variation-settings: "wdth" 62;
  font-weight: 650;
  margin-top: 0.12em;
}

.poster-intro {
  max-width: 34ch;
  margin-top: 28px;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.45;
}


/* reserved for a later image or graphic beside the headline */
.poster-media:empty {
  min-height: 1px;
}

@media (max-width: 860px) {
  .poster-media:empty {
    display: none;
  }
  .poster-body {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- Tear-off tabs (strip) ---------- */

.strip {
  position: relative;
  color: var(--ink);
}

.strip-hint {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  font-size: 1rem;
}

.strip-hint p {
  max-width: 52ch;
}

.strip-hint a {
  font-weight: 700;
  white-space: nowrap;
}

/* The tabs hang below the sheet: yellow continues into each tab, the cuts
   between tabs let the wall show through, the dashed line is the perforation. */
.tabs {
  --tab-h: clamp(170px, 22vw, 208px);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 3px;
  /* perforation along the bottom edge of the sheet */
  background:
    linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px) top left / 14px 2px repeat-x,
    linear-gradient(var(--yellow), var(--yellow)) top left / 100% 2px no-repeat;
  padding-top: 2px;
  position: relative;
  z-index: 1;
}

.tab {
  position: relative;
  height: var(--tab-h);
}

.tab-face {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 12px;
  cursor: pointer;
  background: var(--yellow);
  color: var(--ink);
  transition: transform 200ms var(--ease-out), background-color 200ms ease, color 200ms ease;
  transform-origin: 50% 0;
}

.tab-face:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -6px;
}

.tab-face:active {
  transform: translateY(3px) rotate(-1.2deg);
}

@media (hover: hover) and (pointer: fine) {
  .tab-face:hover {
    transform: translateY(4px) rotate(-1.5deg);
  }
}

.tab-date {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.1vw, 1.625rem);
  font-variation-settings: "wdth" 62;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.tab-date small {
  font-weight: 600;
  font-size: 0.7em;
  margin-top: 0.5em;
}

.tab-count {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tab-cta {
  display: block;
  font-weight: 800;
  font-size: 0.9375rem;
  font-variation-settings: "wdth" 75;
  line-height: 1.05;
}

.tab-count b {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  font-variation-settings: "wdth" 75;
}

/* the next session carries a red adhesive dot */
.tab[data-next] .tab-face::before,
.row[data-next] .row-stub::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--marker);
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.25);
}

.tab[data-next] .tab-face::before {
  top: 7px;
  left: auto;
  right: 7px;
  margin-left: 0;
  width: 13px;
  height: 13px;
}

/* Committed: your tab is torn off. What stays on the sheet is a short stub
   with a ragged edge and a solid outline; open tabs keep their dashed cuts. */
.tab[data-mine] .tab-face {
  bottom: auto;
  height: 46%;
  min-height: 78px;
  justify-content: flex-start;
  gap: 6px;
  padding: 12px 4px 16px;
  /* solid outline on the printed sides; the torn edge stays raw */
  box-shadow: inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink), inset 0 2px 0 var(--ink);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, var(--torn-bottom) bottom / 100% 10px no-repeat;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, var(--torn-bottom) bottom / 100% 10px no-repeat;
  animation: settle 520ms var(--ease-out);
}

@keyframes settle {
  from {
    transform: translateY(-5px) rotate(1.5deg);
  }
}

.tab-stub {
  display: grid;
  justify-items: center;
  gap: 2px;
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1.1;
  text-align: center;
  font-variation-settings: "wdth" 75;
}

.tab-stub svg {
  width: 22px;
  height: 22px;
  stroke-width: 3;
}

.tab-stub small {
  font-size: 0.8125rem;
  font-weight: 600;
}

.tab[data-open] .tab-face {
  transform: translateY(8px) rotate(-2deg);
}

.tab[data-cancelled] .tab-face {
  cursor: default;
  background: var(--paper-shade);
  color: var(--ink-soft);
}

.tab[data-cancelled] .tab-date {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.tab-more {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 4px;
  background: var(--ink-deep);
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.15;
}

.tab-more svg {
  width: 22px;
  height: 22px;
}

/* The ghost piece that tears off and falls away. */
.tear-ghost {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: var(--yellow);
  color: var(--ink);
  -webkit-mask: var(--torn-top) top / 100% 10px no-repeat, linear-gradient(#000 0 0) 0 9px / 100% 100% no-repeat;
  mask: var(--torn-top) top / 100% 10px no-repeat, linear-gradient(#000 0 0) 0 9px / 100% 100% no-repeat;
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.5);
}

:root {
  --torn-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0V5l4 3 5-4 4 5 6-5 3 3 5-3 4 4 5-5 4 3 5-3 3 4 7-5V0z'/%3E%3C/svg%3E");
  --torn-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10V5l4-3 5 4 4-5 6 5 3-3 5 3 4-4 5 5 4-3 5 3 3-4 7 5v2z'/%3E%3C/svg%3E");
}

/* hide tabs beyond what fits */
.tabs[data-variant="home"] > .tab:nth-child(n + 13):not(.tab-link) {
  display: none;
}

@media (max-width: 1180px) {
  .tabs[data-variant="home"] > .tab:nth-child(n + 11):not(.tab-link) {
    display: none;
  }
}

@media (max-width: 960px) {
  .tabs[data-variant="home"] > .tab:nth-child(n + 9):not(.tab-link) {
    display: none;
  }
}

@media (max-width: 560px) {
  .tabs[data-variant="home"] > .tab:nth-child(n + 6):not(.tab-link) {
    display: none;
  }
}

/* ---------- RSVP slip ---------- */

.slip {
  position: relative;
  z-index: 3;
  background: var(--paper);
  color: var(--ink);
  padding: 26px clamp(20px, 3vw, 32px) 24px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.18), 0 24px 48px -20px rgb(0 0 0 / 0.6);
  transform-origin: var(--origin, 50% 0);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

@starting-style {
  .slip {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

.strip .slip {
  margin-top: 22px;
  max-width: 600px;
}

.slip-when {
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.15;
  font-variation-settings: "wdth" 85;
}

.slip-sub {
  margin-top: 4px;
  font-size: 1rem;
  color: var(--ink-soft);
}

.slip-note {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.slip form {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

.slip label {
  font-weight: 700;
  font-size: 1rem;
}

.slip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.field {
  flex: 1 1 200px;
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem; /* >= 16px, no zoom on iOS */
  caret-color: var(--marker);
}

.field::placeholder {
  color: #74746f;
}

.field:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 0;
  box-shadow: 0 0 0 5px var(--ink);
}

.slip-privacy {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.slip-error {
  font-size: 1rem;
  font-weight: 700;
  color: var(--marker);
}

.slip-done {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
}

.slip-done svg {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 4px;
  background: var(--ink);
  color: var(--yellow);
  stroke-width: 3;
}

.slip-done strong {
  display: block;
  font-size: 1.125rem;
}

.slip-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.slip-close:active {
  transform: scale(0.94);
}

.slip-close svg {
  width: 22px;
  height: 22px;
}

.honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Home: sections on the wall ---------- */

.wall {
  padding-block: clamp(72px, 10vw, 140px);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.prose {
  display: grid;
  gap: 1em;
  max-width: var(--measure);
}

.photo-slot {
  margin-top: 32px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  border: 2px dashed var(--ink-soft);
  background: var(--paper-shade);
  color: var(--ink-soft);
  font-size: 1rem;
  padding: 16px;
}

.photo-slot strong {
  color: var(--ink);
  font-size: 1.25rem;
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }
  .photo-slot {
    order: 3;
  }
}

.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
}

.why h2 {
  color: var(--yellow);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.why .lead {
  margin-top: 20px;
  font-size: 1.25rem;
  color: var(--on-dark-soft);
  max-width: 28ch;
}

.why .prose {
  color: var(--paper);
}

@media (max-width: 860px) {
  .why {
    grid-template-columns: 1fr;
  }
}

.bring {
  padding-block: clamp(56px, 8vw, 110px);
}

.bring-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(28px, 5vw, 72px);
  align-items: end;
}

.bring h2 {
  font-size: clamp(3.25rem, 10vw, 6rem);
  font-weight: 850;
  font-variation-settings: "wdth" 72;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.bring p.text {
  max-width: 44ch;
  font-size: 1.1875rem;
}

.bring p.text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.375rem;
  line-height: 1.25;
}

@media (max-width: 860px) {
  .bring-inner {
    grid-template-columns: 1fr;
  }
}

.close {
  padding-block: clamp(72px, 10vw, 140px);
  text-align: left;
}

.close p {
  max-width: 40ch;
  margin-bottom: 32px;
  font-size: 1.25rem;
  color: var(--on-dark-soft);
}

.close h2 {
  margin: 0 0 16px;
  font-size: clamp(3rem, 9vw, 6rem);
  color: var(--yellow);
  font-variation-settings: "wdth" 72;
}

/* ---------- Page heads (sub pages) ---------- */

.page-head {
  padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 80px);
}

.page-head h1 {
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-variation-settings: "wdth" 72;
  font-weight: 850;
  line-height: 0.93;
  letter-spacing: -0.025em;
  max-width: 16ch;
}

.page-head .lead {
  margin-top: 24px;
  max-width: 52ch;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
}

/* ---------- Termine ---------- */

.dates-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: end;
}

.place {
  border-top: 3px solid var(--ink);
  padding-top: 16px;
  font-size: 1.0625rem;
}

.place strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.place p + p {
  margin-top: 10px;
}

.place a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 700;
}

.place a svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 860px) {
  .dates-head {
    grid-template-columns: 1fr;
  }
}

.months {
  display: grid;
  gap: clamp(40px, 5vw, 56px);
}

.month h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.month h2 span {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-variation-settings: "wdth" 100;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.row {
  position: relative;
  border-top: 2px dashed var(--ink);
}

.row:last-child {
  border-bottom: 2px dashed var(--ink);
}

.row-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  padding: 14px 0;
}

.row-stub {
  position: relative;
  display: grid;
  place-items: center;
  height: 72px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.625rem;
  font-variation-settings: "wdth" 62;
  font-variant-numeric: tabular-nums;
  transition: background-color 200ms ease, color 200ms ease;
}

.row[data-next] .row-stub::before {
  top: -6px;
  left: auto;
  right: -6px;
  margin-left: 0;
}

.row-when .next-label {
  color: var(--marker);
  font-weight: 700;
}

.row[data-mine] .row-stub {
  box-shadow: inset 0 0 0 3px var(--ink);
}

.row-when strong {
  display: block;
  font-size: 1.1875rem;
  line-height: 1.2;
}

.row-when span {
  display: block;
  font-size: 1rem;
  color: var(--ink-soft);
}

.row-when .row-note {
  color: var(--ink);
  font-weight: 600;
}

.row-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.row-count {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink-soft);
}

.row .btn {
  min-height: 48px;
  padding: 0 18px;
}

.row[data-mine] .btn {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: transform 160ms var(--ease-out); /* no colour flash when the saved state loads */
}

.row[data-cancelled] .row-stub {
  background: var(--paper-shade);
  color: var(--ink-soft);
  text-decoration: line-through;
}

.row .slip {
  margin: 0 0 18px;
  box-shadow: none;
  border: 2px solid var(--ink);
  max-width: 620px;
  margin-left: auto;
}

@media (max-width: 640px) {
  .row-main {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 0;
  }
  .row-stub {
    height: 56px;
    font-size: 1.25rem;
  }
  .row-when strong {
    font-size: 1.0625rem;
  }
  .row-when span {
    font-size: 0.9375rem;
  }
  .row .btn {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.9375rem;
  }
  .months .row-when span,
  .months .row-when strong {
    line-height: 1.3;
  }
  .wall .notice:has(.months) {
    padding-inline: 18px;
  }
}

.terms {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

.terms h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 20px;
}

.price {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 2px dashed var(--ink);
  font-size: 1.0625rem;
}

.price:last-child {
  border-bottom: 2px dashed var(--ink);
}

.price strong {
  text-align: right;
}

.price .pending {
  color: var(--ink-soft);
  font-weight: 600;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contacts h3 {
  font-size: 1.375rem;
  margin-bottom: 10px;
  font-variation-settings: "wdth" 90;
}

.contacts dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 1.0625rem;
}

.contacts dt {
  font-weight: 700;
}

.contacts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.contacts .pending {
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .terms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .contacts {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pickleball page ---------- */

.court-wrap {
  display: grid;
  gap: 32px;
}

.court {
  width: 100%;
  height: auto;
}

.court-mobile {
  display: none;
}

@media (max-width: 700px) {
  .court-desktop {
    display: none;
  }
  .court-mobile {
    display: block;
    max-width: 360px;
    margin-inline: auto;
  }
}

.court-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  border-top: 3px solid var(--ink);
  padding-top: 20px;
}

.court-notes h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  font-variation-settings: "wdth" 90;
}

.court-notes p {
  font-size: 1.0625rem;
}

@media (max-width: 760px) {
  .court-notes {
    grid-template-columns: 1fr;
  }
}

.source {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.on-dark .source {
  color: var(--on-dark-soft);
}

.rules-head {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--yellow);
  max-width: 14ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}

.rules li {
  padding: 24px 0 28px;
  border-top: 2px dashed rgb(255 255 255 / 0.45);
}

.rules h3 {
  color: var(--yellow);
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-variation-settings: "wdth" 88;
}

.rules p {
  color: var(--paper);
  max-width: 52ch;
}

@media (max-width: 760px) {
  .rules {
    grid-template-columns: 1fr;
  }
}

.world {
  padding-block: clamp(64px, 9vw, 120px);
}

.world .big {
  display: block;
  font-size: clamp(3.5rem, 13vw, 6rem);
  font-weight: 850;
  font-variation-settings: "wdth" 62;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.world p.text {
  margin-top: 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  max-width: 26ch;
}

.world h2 {
  margin-top: 32px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-variation-settings: "wdth" 95;
}

.world .btn {
  margin-top: 36px;
}

/* ---------- Legal ---------- */

.legal {
  max-width: 820px;
  margin-inline: auto;
}

.legal h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 1.5rem;
  margin: 28px 0 8px;
  font-variation-settings: "wdth" 90;
}

.draft-flag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 10px;
  background: var(--yellow);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 2px dashed rgb(255 255 255 / 0.35);
  padding-block: 36px 44px;
  color: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 1rem;
}

.footer-links a {
  color: var(--on-dark-soft);
  padding-block: 8px;
}

.footer-links a:hover {
  color: var(--paper);
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .tab-face,
  .tab-face:hover,
  .tab-face:active,
  .tab[data-open] .tab-face {
    transform: none !important;
  }
  .slip {
    transition: opacity 180ms ease;
  }
  @starting-style {
    .slip {
      transform: none;
    }
  }
  .btn:active {
    transform: none;
  }
}

/* ---------- Phone: bring the tabs into the first screen ---------- */

@media (max-width: 560px) {
  .poster-body {
    gap: 22px;
    padding-block: 18px 22px;
  }
  .poster h1 {
    font-size: clamp(2.75rem, 12.5vw, 3.5rem);
  }
  .poster-intro {
    margin-top: 16px;
    font-size: 1.0625rem;
  }
  .strip-hint {
    font-size: 0.9375rem;
    padding-bottom: 10px;
  }
  .strip-hint a {
    display: none; /* the last tab links to all dates */
  }
  .tabs {
    --tab-h: 150px;
  }
  .tab-date {
    font-size: 1.1875rem;
  }
  .tab-cta {
    font-size: 0.875rem;
  }
}

/* ---------- No JavaScript ---------- */

.nojs-note {
  padding: 12px 0;
  font-weight: 600;
}
