/* Ontario Women's Pinball
   Same look as the WordPress site: DM Sans, navy header, pale pink type, black on white for the pages.
   Colours and sizes are all up here, change them and every page follows. */

:root {
  --navy: #181a5a;
  --navy-light: #2a2d72;
  --pink: #ffd1d1;
  --ink: #000;
  --paper: #fff;
  --measure: 680px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { background: var(--pink); }

/* ---------- header ---------- */

.top {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--pink);
  padding: 34px 24px 22px;
}
/* the lighter slab behind the title, like the old site */
.top::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 210px; height: 100%;
  background: var(--navy-light);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.top > * { position: relative; }

.logo { display: block; width: 210px; margin: 0 auto 28px; }
.logo img { display: block; width: 100%; height: auto; }

.bar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
}
.site-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}
.site-name a { color: var(--pink); text-decoration: none; }
.site-name a:hover { background: none; text-decoration: underline; }

nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
nav a { color: var(--pink); text-decoration: none; font-size: 19px; padding-bottom: 2px; }
nav a:hover { background: none; border-bottom: 1px solid var(--pink); }
nav a[aria-current="page"] { border-bottom: 2px solid var(--pink); }

.photo { display: block; width: 100%; max-height: 430px; object-fit: cover; object-position: center 40%; }

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

main { padding: 56px 24px 80px; }
.col { max-width: var(--measure); margin: 0 auto; }

h1 {
  margin: 0 0 40px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 5px;
  text-underline-offset: 9px;
}

h2 {
  margin: 56px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h3 { margin: 34px 0 6px; font-size: 19px; }

p { margin: 0 0 1.1em; }
.small { font-size: 16px; line-height: 1.5; }
.note { font-style: italic; }

.stamp { font-size: 15px; margin: 6px 0 22px; }

.btn, button {
  font: inherit;
  font-weight: 700;
  background: var(--pink);
  color: var(--navy);
  border: 0;
  padding: 11px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 0;
}
.btn:hover, button:hover { background: var(--navy); color: var(--pink); }

/* region picker and the find box: plain text links, not pills */
.picker { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 4px 0 6px; padding: 0; list-style: none; }
.picker button {
  background: none; color: var(--ink); padding: 0; font-weight: 400;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.picker button:hover { background: var(--pink); color: var(--ink); }
.picker button[aria-pressed="true"] { font-weight: 700; text-decoration-thickness: 3px; }

input[type="text"], input[type="search"] {
  font: inherit; font-size: 17px;
  border: 1px solid var(--ink); border-radius: 0;
  padding: 7px 10px; width: 100%; max-width: 320px; background: var(--paper);
}
label { font-size: 16px; display: block; margin-bottom: 4px; }

/* ---------- lists & tables ---------- */

table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.4; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--ink); }
th { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid var(--ink); }
td.n, th.n { text-align: right; padding-right: 18px; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }

tr.cut td {
  border-bottom: 0; padding: 14px 0 6px;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em;
  border-top: 2px dashed var(--ink);
}
td.dim, .dim { color: #555; }

.events td.when { white-space: nowrap; padding-right: 22px; width: 15em; }
.scroll + p, #next-up + p { margin-top: 16px; }
.events td .where { display: block; font-size: 15px; }

.empty { padding: 18px 0; border-bottom: 1px solid var(--ink); }

/* ---------- footer ---------- */

footer { background: var(--navy); color: var(--pink); padding: 34px 24px 40px; font-size: 16px; }
footer .col { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
footer a { color: var(--pink); }
footer a:hover { background: none; text-decoration: none; }
footer p { margin: 0; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .top { padding-top: 26px; }
  .logo { width: 170px; }
  .top::before { width: 130px; }
  main { padding-top: 40px; }
  .events td.when { white-space: normal; width: auto; }
  .events tr, .events td { display: block; }
  .events td { border-bottom: 0; padding: 0 0 2px; }
  .events tr { border-bottom: 1px solid var(--ink); padding: 10px 0; }
  .events td.when { font-weight: 700; }
  th.hide-s, td.hide-s { display: none; }
}

/* ---------- photos ---------- */
.fig { margin: 30px 0; }
.fig img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); }
.fig figcaption { font-size: 15px; margin-top: 6px; color: #333; }
.fig-row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 18px; align-items: start; margin: 30px 0; }
.fig-row .fig { margin: 0; }
.fig-row .fig img { aspect-ratio: 4 / 5; object-fit: cover; }
.fig-row .fig:nth-child(2) img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
@media (max-width: 640px) { .fig-row { grid-template-columns: 1fr; } }
