/* Prof. Ged Byrne MBE — sister site to martinvarley.com
   Display: Spectral (scholarly serif)  |  Utility: IBM Plex Sans (clinical)
   Palette: warm off-white, deep ink, restrained pine-teal accent */

:root {
  --bg: #f5f2ec;
  --ink: #1a1a17;
  --muted: #6f6a5f;
  --rule: #d8d2c4;
  --accent: #1f4b4b;
  --accent-hover: #133333;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Home ---------- */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.card { text-align: center; max-width: 32rem; }

.name {
  font-family: "Spectral", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.01em;
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.name .post {
  font-size: 0.42em;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-left: 0.4em;
  vertical-align: 0.18em;
}

.role {
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  letter-spacing: 0.01em;
  margin: 0 0 1.8rem;
}

.cities {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
}

.cities li {
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.links {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  padding-bottom: 1px;
}

.links a:hover,
.links a:focus-visible { color: var(--accent-hover); border-color: var(--accent-hover); }

.links .sep { color: var(--rule); margin: 0 0.7rem; }

/* ---------- Inner pages ---------- */
.page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.page--center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.back {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
}
.back:hover, .back:focus-visible { color: var(--accent); }

.page-title {
  font-family: "Spectral", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 1.2rem 0 2rem;
}

.lede { color: var(--muted); max-width: 26rem; margin: 0 0 2rem; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 1.3rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.submit {
  align-self: flex-start;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 2px;
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.submit:hover, .submit:focus-visible { background: var(--accent-hover); }

/* Honeypot */
.hp { position: absolute; left: -9999px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
