/* The OneLyte Association
   One flat background, hairlines for structure, one accent (the lavender of
   the OLA logo). Division colours live in their own logos only.
   Poppins matches the lettering of the OLA logo; Syne is Area12's own
   wordmark face and is used for that one word. */

:root {
  --bg: #08070d;
  --surface: #100e19;
  --line: #26223a;
  --line-strong: #3a3552;
  --text: #eeecfb;
  --muted: #a9a5c6;
  --faint: #8c88a8;
  --accent: #bdb6ff;
  --accent-hover: #d4cfff;
  --on-accent: #140f2b;

  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 72rem;
  --gutter: clamp(16px, 4vw, 40px);

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s;
}
a:hover { color: var(--accent-hover); }

::selection { background: #3d2a7a; color: #fff; }

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

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

.nowrap { white-space: nowrap; }

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="true"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 8px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent; /* stays visible in forced-colors mode */
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

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

.hero { padding: clamp(64px, 10vw, 120px) 0 clamp(64px, 9vw, 112px); }

.hero-date {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
}

.hero-logo {
  position: relative;
  margin-top: 16px;
  max-width: 980px;
}
.hero-logo img { position: relative; width: 100%; }

/* Centred on the lightbulb inside the logo's "O", sized from the logo itself */
.bulb-glow {
  position: absolute;
  left: 20.2%;
  top: 39%;
  width: clamp(90px, 30%, 300px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
  /* deslop-ignore-next-line 06 */
  background: radial-gradient(circle, rgba(255, 231, 163, .5) 0%, rgba(255, 210, 120, .16) 32%, transparent 68%);
  animation: switch-on 1.6s .35s both;
}

@keyframes switch-on {
  0%   { opacity: 0; }
  8%   { opacity: .9; }
  12%  { opacity: .15; }
  20%  { opacity: 1; }
  26%  { opacity: .35; }
  40%  { opacity: 1; }
  100% { opacity: 1; }
}

.hero-statement {
  margin-top: clamp(32px, 5vw, 48px);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.hero-sub {
  margin-top: 8px;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

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

.section {
  padding: clamp(64px, 10vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin-bottom: clamp(32px, 5vw, 48px);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 4px;
  height: 1px;
  background: var(--line-strong);
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: -32px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.tl-date {
  color: var(--faint);
  font-size: .875rem;
  font-weight: 500;
}
.timeline h3 {
  margin-top: 4px;
  font-size: 1.25rem;
  font-weight: 600;
}
.timeline li > p:last-child {
  margin-top: 8px;
  color: var(--muted);
  max-width: 22rem;
}

/* ---------- Divisions ---------- */

.divisions { display: grid; gap: 24px; }

.division {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.d-brand {
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-right: 1px solid var(--line);
}

.d-logo-ofm { width: min(100%, 360px); }
.d-logo-kasane { width: min(100%, 216px); } /* native size; the source PNG is 216px wide */

.a12-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Syne", var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1;
  color: #f4f1ea;
}
.a12-mark img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
}

.d-body { padding: clamp(24px, 4vw, 48px); }
.d-body h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.01em;
}
.d-body > p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 38rem;
}
.d-body > .d-links { margin-top: 20px; }

.d-rows { margin-top: 24px; }
.d-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name link" "desc desc";
  gap: 2px 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.d-rows strong { grid-area: name; font-weight: 600; }
.d-rows span { grid-area: desc; color: var(--muted); }
.d-rows a { grid-area: link; font-size: .875rem; }

/* ---------- Team ---------- */

.team li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
  gap: 4px 24px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.team li:last-child { border-bottom: 1px solid var(--line); }
.team h3 { font-size: 1rem; font-weight: 600; }
.team .role { font-weight: 500; }
.team .note { color: var(--muted); }

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

.foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.foot-logo { width: min(100%, 340px); }

.foot-title {
  margin-bottom: 12px;
  color: var(--faint);
  font-size: .875rem;
  font-weight: 500;
}
.foot-links ul { display: grid; gap: 8px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: .875rem;
}
.foot-legal a { color: var(--muted); text-decoration: none; }
.foot-legal a:hover { color: var(--text); text-decoration: underline; }
.foot-legal:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Post ---------- */

.post {
  max-width: calc(46rem + var(--gutter) * 2);
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(64px, 10vw, 112px);
}
.post-meta {
  color: var(--faint);
  font-size: .875rem;
  font-weight: 500;
}
.post h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.01em;
}
.post-hero {
  width: 100%;
  margin-top: clamp(32px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.post-body { margin-top: clamp(32px, 5vw, 48px); max-width: 40rem; }
.post-body > * + * { margin-top: 16px; }
.post-body h2 { margin-top: 48px; font-size: 1.5rem; font-weight: 700; }
.post-body h2 + * { margin-top: 12px; }
.post-body ul { padding-left: 1.25rem; list-style: disc; }
.post-body li + li { margin-top: 8px; }
.post-lede { font-size: 1.25rem; line-height: 1.5; }

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

@media (max-width: 960px) {
  .division { grid-template-columns: minmax(0, 1fr); }
  .d-brand { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 0 0 0 28px;
  }
  .timeline::before {
    left: 4px; right: auto;
    top: 6px; bottom: 6px;
    width: 1px; height: auto;
  }
  .timeline li::before { left: -28px; top: 7px; }

  .team li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (max-width: 620px) {
  .d-rows li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "desc" "link"; }
  .d-rows a { margin-top: 4px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .nav a { padding: 8px 6px; }
}

@media (max-width: 360px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bulb-glow { animation: none; }
}

@media print {
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .top { position: static; }
  .skip { display: none; }
}
