/* Knowledge Conclave — site styles
   Colours come from the logo. Crimson Text (the wordmark's face) for reading,
   Poppins for navigation and buttons. */

:root {
  --navy: #16294F;
  --navy-deep: #0F1E3D;
  --gold: #C8952C;
  --gold-light: #E2B75A;
  --teal: #17797A;
  --terra: #B4533A;
  --ink: #1D2433;
  --muted: #4A5874;
  --mist: #EEF2F8;
  --line: #D6DDEA;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C9D3E6;

  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--navy);
}

h2 { font-size: clamp(34px, 4.2vw, 48px); letter-spacing: -0.005em; }
h3 { font-size: 24px; line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 15px;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold-light); color: var(--navy); }
.btn-gold:hover { background: #F0C873; color: var(--navy); }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: #FFFFFF; }
.btn-outline:hover { border-color: #FFFFFF; color: #FFFFFF; background: rgba(255, 255, 255, .08); }
.btn-navy { background: var(--navy); color: #FFFFFF; }
.btn-navy:hover { background: var(--navy-deep); color: #FFFFFF; }

/* ---------- Header ---------- */

.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand img { height: 46px; width: auto; }

.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: 2px solid var(--line);
  border-radius: 6px;
  min-height: 44px;
  padding: 8px 14px;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav .btn { color: #FFFFFF; min-height: 44px; padding: 10px 20px; }
.site-nav .btn:hover { color: #FFFFFF; }

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--on-navy);
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
}
.hero h1 {
  color: #FFFFFF;
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero-lede {
  font-size: clamp(20px, 1.9vw, 23px);
  line-height: 1.55;
  color: var(--on-navy-muted);
  max-width: 34em;
  margin: 28px 0 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-motto {
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--gold-light);
}

/* The round table: twelve seats, each joined to every other, around a gold-rimmed centre.
   Colours are also set on the SVG elements, so the drawing holds up without this file. */
.ring-wrap { width: calc(100% + 24px); max-width: 640px; margin-left: auto; margin-right: -24px; }
.table-ring { width: 100%; overflow: visible; }
.table-ring .tabletop { fill: #1C3260; stroke: #FFFFFF; stroke-opacity: .14; stroke-width: 1.5; }
.table-ring .ties { fill: none; stroke: #FFFFFF; stroke-opacity: .07; stroke-width: 1; pointer-events: none; }
.table-ring .label {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  fill: #FFFFFF;
}
.table-ring .centre { fill: var(--navy); stroke: var(--gold-light); stroke-width: 2.5; }
.table-ring .centre-rim { fill: none; stroke: var(--gold-light); stroke-opacity: .3; stroke-width: 1; }
.table-ring .centre-text {
  font-family: var(--serif);
  font-size: 31px;
  font-style: italic;
  font-weight: 600;
  fill: var(--gold-light);
}
/* Point at a seat to see who it talks to */
.table-ring .seat:hover .ties { stroke: var(--c) !important; stroke-opacity: .75 !important; }
.ring-caption { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .table-ring .tabletop { animation: fade-in .6s ease-out both; }
  .table-ring .seat-dot,
  .table-ring .seat-halo,
  .table-ring .centre {
    transform-box: fill-box;
    transform-origin: center;
  }
  .table-ring .seat-dot,
  .table-ring .seat-halo {
    animation: grow .45s cubic-bezier(.2, .9, .3, 1.3) both;
    animation-delay: calc(var(--i) * 70ms + 200ms);
  }
  .table-ring .label {
    animation: fade-in .5s ease-out both;
    animation-delay: calc(var(--i) * 70ms + 450ms);
  }
  /* Ties appear once, then a slow gold pulse passes from seat to seat round the table */
  .table-ring .ties {
    animation: fade-in .8s ease-out both, speak 24s ease-in-out infinite;
    animation-delay: calc(var(--i) * 70ms + 300ms), calc(var(--i) * 2s + 2.5s);
  }
  .table-ring .centre { animation: grow .5s cubic-bezier(.2, .9, .3, 1.3) 1s both; }
  .table-ring .centre-rim,
  .table-ring .centre-text { animation: fade-in .6s ease-out 1.25s both; }
}
@keyframes speak {
  0%, 10%, 100% { stroke: #FFFFFF; stroke-opacity: .07; }
  3.5% { stroke: #E2B75A; stroke-opacity: .5; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes grow { from { transform: scale(0); } }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-mist { background: var(--mist); }
.section-intro {
  font-size: 22px;
  color: var(--muted);
  max-width: 40em;
  margin: 18px 0 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about-text p { max-width: 38em; }
.vision-mission {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.vision-mission h3 { margin-bottom: 12px; }
.vision-mission p { font-size: 22px; line-height: 1.5; color: var(--ink); }

/* Objectives: the key's three rising teeth stand on one shaft */
.teeth {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  height: 92px;
  margin-top: clamp(40px, 5vw, 64px);
  border-bottom: 7px solid var(--navy);
}
.tooth { width: 30px; border-radius: 3px 3px 0 0; }
.tooth-1 { height: 42%; background: var(--teal); }
.tooth-2 { height: 71%; background: var(--terra); }
.tooth-3 { height: 100%; background: var(--gold); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: 28px;
}
.pillar h3 { font-size: 28px; margin-bottom: 22px; }
.pillar ul { list-style: none; margin: 0; padding: 0; }
.pillar li { margin-bottom: 22px; }
.pillar li:last-child { margin-bottom: 0; }
.pillar strong {
  display: block;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 4px;
}
.pillar li span { display: block; font-size: 18px; line-height: 1.55; color: var(--muted); }
.memo-link {
  margin-top: clamp(40px, 5vw, 56px);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
}

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  margin-top: clamp(36px, 4vw, 52px);
  padding: 0;
  list-style: none;
}
.principles li { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.principles h3 { font-size: 22px; margin-bottom: 6px; }
.principles p { font-size: 18px; color: var(--muted); max-width: 32em; }

/* Committee */
.convenor {
  margin-top: clamp(36px, 4vw, 52px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.role {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--teal);
  margin: 0 0 6px;
}
.convenor .name { font-size: clamp(30px, 3.4vw, 40px); }
.members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
}
.members li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.members .name { font-size: 24px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.members .role { margin: 4px 0 0; color: var(--muted); }

/* Join */
.join { background: var(--navy); color: var(--on-navy); }
.join h2 { color: #FFFFFF; }
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.join p { color: var(--on-navy-muted); font-size: 21px; max-width: 34em; }
.join-grid > div:first-child p:first-of-type { margin-top: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.contact-list li:first-child { border-top: 1px solid rgba(255, 255, 255, .16); }
.contact-list .label {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--on-navy-muted);
  margin-bottom: 2px;
}
.contact-list a { color: #FFFFFF; font-size: 24px; text-decoration-color: rgba(255, 255, 255, .4); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-light); }
.contact-list address { font-style: normal; color: #FFFFFF; font-size: 20px; line-height: 1.45; }
.join .btn { margin-top: 28px; }

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

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-muted);
  padding: 48px 0 36px;
  font-family: var(--sans);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
}
.site-footer img { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer p { margin: 0; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin: 0 0 10px; padding: 0; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }

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

.page-head { background: var(--navy); padding: clamp(48px, 6vw, 80px) 0; }
.page-head h1 { color: #FFFFFF; font-size: clamp(40px, 5vw, 60px); }
.page-head p { color: var(--on-navy-muted); font-size: 21px; max-width: 36em; margin: 16px 0 0; }

.memo { max-width: 760px; }
.memo h2 { font-size: clamp(28px, 3vw, 36px); margin: 56px 0 18px; }
.memo h2:first-child { margin-top: 0; }
.memo h3 { font-size: 23px; margin: 36px 0 14px; color: var(--teal); }
.memo p { max-width: none; }
.memo .clause { margin-bottom: 18px; }
.memo .clause b { color: var(--navy); }
.memo .motto { font-size: 24px; color: var(--navy); }

/* ---------- 404 ---------- */
.notfound { padding: clamp(72px, 12vw, 160px) 0; }
.notfound h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 18px; }
.notfound p { font-size: 21px; color: var(--muted); margin-bottom: 28px; }

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

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .ring-wrap { width: 100%; max-width: 620px; margin: 8px auto 0; }
  .about-grid { grid-template-columns: 1fr; }
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav .btn { margin-top: 16px; width: 100%; }
}

@media (max-width: 760px) {
  body { font-size: 19px; }
  .brand img { height: 38px; }
  .teeth { display: none; }
  .pillars { grid-template-columns: 1fr; gap: 44px; margin-top: 40px; }
  .pillar h3 { padding-bottom: 12px; border-bottom: 5px solid var(--navy); }
  .pillar:nth-child(1) h3 { border-color: var(--teal); }
  .pillar:nth-child(2) h3 { border-color: var(--terra); }
  .pillar:nth-child(3) h3 { border-color: var(--gold); }
  .vision-mission { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .members { grid-template-columns: 1fr; }
  .table-ring .label { display: none; }
  .ring-wrap { width: 100%; max-width: none; margin: 0; }
  /* Names move to the caption below, so enlarge the table and trim the empty label space */
  .table-ring { width: 141%; max-width: none; margin: -8% 0 -6% -20.5%; }
  .ring-caption {
    display: block;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--on-navy-muted);
    text-align: center;
    max-width: 30em;
    margin: 4px auto 0;
  }
}

.convenor .name { font-weight: 600; color: var(--navy); line-height: 1.2; margin: 0; }
