/* GPOTS site styles.
   Colours are defined once below and reused everywhere. To change the
   accent colour for the whole site, edit --accent in both blocks. */

:root {
  --bg: #ffffff;
  --text: #1c1e21;
  --muted: #6a7075;
  --accent: #14566b;
  --rule: #e3e6e8;
  --surface: #f6f8f9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --text: #e6e8ea;
    --muted: #99a0a6;
    --accent: #7cc4dc;
    --rule: #2a2f34;
    --surface: #1b1f23;
  }
}

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

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

body {
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  max-width: 48rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark { text-decoration: none; color: inherit; }
.wordmark:hover { text-decoration: none; }

.wordmark-short {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wordmark-long {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
}

.masthead nav a:hover { color: var(--accent); }

.masthead nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ---- Text ---- */

main { padding-top: 2.25rem; }

h1 {
  margin: 0 0 1.25rem;
  font-size: 1.7rem;
  line-height: 1.25;
  font-weight: 700;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 650;
}

p { margin: 0 0 1.1rem; }

a { color: var(--accent); text-underline-offset: 0.15em; }

ul { padding-left: 1.2rem; }
li { margin-bottom: 0.35rem; }

.lede { font-size: 1.08rem; }

.muted { color: var(--muted); }

/* ---- Next meeting block ---- */

.next-meeting {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
}

.next-meeting .kicker {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.next-meeting .where {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.3;
}

.next-meeting .when { margin: 0 0 0.6rem; color: var(--muted); }

.next-meeting p:last-child { margin-bottom: 0; }

/* ---- Most recent meeting block ---- */
/* Deliberately quieter than the next-meeting block above it. */

.past-meeting {
  margin: 0 0 2.25rem;
  padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--rule);
}

.past-meeting .kicker {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.past-meeting .where {
  margin: 0 0 0.15rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.past-meeting .when { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---- Tables ---- */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

thead th {
  padding: 0 0.9rem 0.5rem 0;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

tbody td {
  padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}

tbody tr:last-child td { border-bottom: none; }

td.year {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}

td.unknown, .unknown { color: var(--muted); font-style: italic; }

td .note {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ---- Subscribe form ---- */

.subscribe {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.4rem;
  max-width: 26rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
}

.subscribe .field { margin-bottom: 0.9rem; }

.subscribe label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.subscribe input[type="email"],
.subscribe input[type="text"] {
  width: 100%;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.subscribe input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.subscribe button {
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
}

.subscribe button:hover { opacity: 0.9; }

/* Bot trap. Off screen, skipped when tabbing, hidden from screen readers.
   Anything typed into it means the submission was not made by a person. */
.subscribe .trap {
  position: absolute;
  left: -9999px;
}

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

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
}

footer p { margin: 0; }

/* ---- Narrow screens ---- */

@media (max-width: 34rem) {
  body { padding: 2rem 1.1rem 3rem; font-size: 16px; }
  .masthead { gap: 0.6rem; }
  h1 { font-size: 1.45rem; }
  .next-meeting { padding: 1.1rem; }
}
