/*
  Tewkesbury Grammar School 1958–1965 Cohort Website
  Edit colours, fonts and spacing here. Pages are plain HTML for easy maintenance.
*/
:root {
  --ink: #1e2630;
  --muted: #64748b;
  --cream: #fbf7ef;
  --paper: #ffffff;
  --burgundy: #8b1e3f;
  --gold: #d6a84f;
  --blue: #173f5f;
  --soft-blue: #e8f0f6;
  --shadow: 0 18px 45px rgba(20, 32, 45, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.18rem;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream), #f2f6f9 55%, #fff);
  line-height: 1.6;
}

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

a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 38, 48, 0.08);
}

.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
}

.brand span {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--soft-blue);
  text-decoration: none;
  color: var(--blue);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.2rem 1.2rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.hero-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(30, 38, 48, 0.08);
}

.hero-card img { width: 100%; height: 360px; object-fit: cover; }

.kicker {
  color: var(--burgundy);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  color: var(--blue);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0.35rem 0 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 0; }
h3 { font-size: 1.35rem; }

.lead { font-size: 1.18rem; color: #344052; max-width: 58ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

.button {
  display: inline-block;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  background: var(--burgundy);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(139, 30, 63, 0.22);
}
.button.secondary { background: var(--blue); }
.button:hover { text-decoration: none; filter: brightness(1.05); }

main { max-width: 1120px; margin: 0 auto; padding: 1rem 1.2rem 3rem; }

.section { margin: 2rem 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(30, 38, 48, 0.08);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 10px 25px rgba(20, 32, 45, 0.08);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.timeline .year {
  border-left: 4px solid var(--gold);
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 14px;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(20, 32, 45, 0.08);
}

th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid #e6edf3; }
th { background: var(--blue); color: #fff; }
tr:last-child td { border-bottom: 0; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.photo-placeholder {
  min-height: 190px;
  border-radius: var(--radius);
  border: 2px dashed #b8c7d6;
  background: linear-gradient(135deg, #fff, var(--soft-blue));
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 1rem;
}

.memory-list article { margin-bottom: 1rem; }

.form-grid { display: grid; gap: 0.9rem; max-width: 720px; }
input, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  font: inherit;
}
textarea { min-height: 160px; }

.site-footer {
  background: var(--blue);
  color: rgba(255,255,255,0.86);
  padding: 2rem 1.2rem;
  text-align: center;
}
.site-footer a { color: #fff; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .grid, .timeline, .photo-grid { grid-template-columns: 1fr; }
  .nav-wrap { align-items: flex-start; flex-direction: column; }
  .hero-card img { height: 260px; }
}
