/* Padel Living — padel.living
   Editorial paper direction, carried over from the Claude Design export.
   All layout lives here. No inline style attributes. */

:root {
  --paper: #f2efe7;
  --tint: #e8e4d8;
  --ink: #17170f;
  --blue: #24408f;

  --body: #2b2b23;
  --body-soft: #47463d;
  --muted: #6c6a5e;
  --faint: #9c9887;

  --rule: #d6d1c2;
  --rule-soft: #dcd7c8;
  --rule-hair: #cfc9b8;

  --sans: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: 56px;
  --maxw: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Small mono label used throughout: eyebrows, table headers, footer. */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 44px;
}

.wordmark {
  font-size: 40px;
  line-height: 0.86;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  display: block;
}

.wordmark span {
  display: block;
}

.wordmark--inline {
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.wordmark--inline span {
  display: inline;
}

/* ---------- Homepage lede ---------- */

.lede {
  padding-top: 34px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: end;
}

.lede h1 {
  margin: 0;
  font-size: 50px;
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.lede p {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body-soft);
  text-wrap: pretty;
}

/* ---------- The board ---------- */

.board {
  padding-top: 36px;
}

.board-head,
.board-row {
  display: grid;
  grid-template-columns: 34px 68px 1fr 1.35fr 76px 78px;
  gap: 20px;
  align-items: center;
}

.board-head {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.board-head .num {
  text-align: left;
}

.board-head .score {
  text-align: right;
}

.board-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: inherit;
  transition: background-color 0.12s ease;
}

.board-row:hover {
  background: var(--tint);
  color: inherit;
}

.board-row .rank {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
}

.board-row .shot {
  width: 68px;
  height: 46px;
  overflow: hidden;
  background: var(--tint);
}

.board-row .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-row .club {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.board-row .club-name {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.board-row .club-place {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.board-row .take {
  font-size: 15px;
  line-height: 1.4;
  color: var(--body-soft);
}

.board-row .total {
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
}

/* Compact eight-measure strip on each board row. */
.strip {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}

.strip .measure {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.strip .key {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
  color: var(--faint);
  margin-bottom: 1px;
}

.strip .cell {
  width: 5px;
  height: 3px;
  background: var(--rule-soft);
}

.strip .cell.on {
  background: var(--blue);
}

/* ---------- Coverage ---------- */

.coverage {
  padding-top: 40px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.coverage h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.coverage p {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.5;
}

.next-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--body-soft);
}

/* Static map plus HTML markers, positioned as a percentage of the
   900x640 viewBox the SVG was pre-rendered against. */
.map {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 640;
}

.map img {
  width: 100%;
  height: 100%;
}

.map .pin {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  border: 1.2px solid var(--faint);
}

.map .pin.now {
  width: 9px;
  height: 9px;
  background: var(--blue);
  border-color: var(--blue);
}

.map .tag {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.map .tag.now {
  color: var(--body-soft);
}

.map .tag.right {
  transform: translate(10px, -50%);
}

.map .tag.left {
  transform: translate(calc(-100% - 10px), -50%);
}

/* ---------- Scoring explainer ---------- */

.scoring {
  padding-top: 64px;
  max-width: 760px;
}

.scoring h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.scoring > p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body-soft);
}

.defs {
  margin-top: 24px;
}

.defs .def {
  display: grid;
  grid-template-columns: 92px 26px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}

.defs .def-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.defs .def-weight {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
}

.defs .def-desc {
  font-size: 15px;
  line-height: 1.45;
  color: var(--body-soft);
}

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

.site-footer {
  margin-top: 44px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer .links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* ---------- Club page ---------- */

.club-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.club-bar .wordmark--inline {
  color: var(--ink);
}

.club-hero {
  height: 480px;
  overflow: hidden;
}

.club-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-top {
  padding-top: 38px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.club-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.club-top h1 {
  margin: 8px 0 0;
  font-size: 52px;
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.club-prose {
  margin-top: 22px;
  max-width: 62ch;
  color: var(--body);
}

.club-prose p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.6;
}

.club-prose p:last-child {
  margin-bottom: 0;
}

.club-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Full eight-measure readout on a club page. */
.readout {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.readout-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.readout-head .total {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0;
}

.readout .row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.readout .name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  width: 82px;
  flex: none;
}

.readout .weight {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  width: 18px;
  flex: none;
}

.readout .bar {
  display: flex;
  gap: 4px;
}

.readout .cell {
  width: 15px;
  height: 7px;
  border: 1px solid var(--rule-hair);
}

.readout .cell.on {
  background: var(--blue);
  border-color: var(--blue);
}

.readout .val {
  font-family: var(--mono);
  font-size: 11px;
  margin-left: auto;
  color: var(--body-soft);
}

/* Spec table */
.spec-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
}

.spec .row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
}

.spec .row dt {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec .row dd {
  margin: 0;
  text-align: right;
}

.spec {
  margin: 0;
}

/* Photo grid */
.gallery {
  padding-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gallery .frame {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--tint);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Placeholder shown on clubs whose write-up is not done yet. */
.pending {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--tint);
  font-size: 15px;
  line-height: 1.5;
  color: var(--body-soft);
  max-width: 62ch;
}

.pending p {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  :root {
    --pad: 40px;
  }

  .lede h1 {
    font-size: 42px;
  }

  .board-head,
  .board-row {
    grid-template-columns: 28px 60px 1fr 1.1fr 76px 66px;
    gap: 14px;
  }

  .club-top {
    gap: 36px;
  }
}

@media (max-width: 860px) {
  :root {
    --pad: 24px;
  }

  body {
    font-size: 16px;
  }

  .masthead {
    padding-top: 32px;
  }

  .wordmark {
    font-size: 32px;
  }

  .lede {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .lede h1 {
    font-size: 34px;
  }

  /* The board becomes a stack of cards. The take and the strip move
     underneath the club name rather than into their own columns. */
  .board-head {
    display: none;
  }

  .board-row {
    grid-template-columns: 26px 60px 1fr auto;
    grid-template-areas:
      "rank shot club total"
      "take take take take"
      "strip strip strip strip";
    gap: 10px 12px;
    padding: 16px 0;
    align-items: center;
  }

  .board-row .rank {
    grid-area: rank;
  }

  .board-row .shot {
    grid-area: shot;
  }

  .board-row .club {
    grid-area: club;
  }

  .board-row .total {
    grid-area: total;
  }

  .board-row .take {
    grid-area: take;
  }

  /* The strip is the signature component, so give it room on small screens
     rather than shrinking it to the 5px board size. */
  .board-row .strip {
    grid-area: strip;
    gap: 6px;
  }

  .strip .key {
    font-size: 9px;
  }

  .strip .cell {
    width: 9px;
    height: 4px;
  }

  .coverage {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .scoring {
    padding-top: 48px;
  }

  .scoring h2 {
    font-size: 24px;
  }

  .defs .def {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }

  .defs .def-weight {
    text-align: right;
  }

  .defs .def-desc {
    grid-column: 1 / -1;
  }

  .club-hero {
    height: 280px;
  }

  .club-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .club-top h1 {
    font-size: 36px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .board-row {
    grid-template-columns: 22px 1fr auto;
    grid-template-areas:
      "rank club total"
      "shot shot shot"
      "take take take"
      "strip strip strip";
  }

  .board-row .shot {
    width: 100%;
    height: 150px;
  }
}
