/* NPQT 2027 — palette tokens come from design.md. Do not add raw hex values outside :root. */
:root {
  --indigo-900: #241246;
  --indigo-800: #2D1856;
  --indigo-700: #3A1E68;
  --purple-600: #5B2D91;
  --purple-500: #7B4BC0;
  --lavender-300: #B892F0;
  --lavender-200: #CDB8EE;
  --lavender-50: #F3EEFB;
  --paper: #F7F6FA;
  --white: #FFFFFF;
  --steel-300: #A9C2D3;
  --wave-blue: #4A8FD0;
  --wave-violet: #9C86D6;
  --wave-magenta: #B24FD6;
  --ink: #1E1442;
  --text: #3B3552;
  --break-coffee: #EEF0F3;
  --break-lunch: #F6EFE4;
  --break-lunch-icon: #7A5A3A;

  --wave-gradient: linear-gradient(90deg, var(--wave-blue), var(--wave-violet) 50%, var(--wave-magenta));
  --dark-gradient: linear-gradient(160deg, var(--indigo-900), var(--indigo-800) 45%, var(--indigo-700));

  --font-serif: "Noto Serif", "Noto Serif Armenian", Georgia, serif;
  --font-sans: "Noto Sans", "Noto Sans Armenian", system-ui, sans-serif;
  --radius: 14px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-600); text-underline-offset: 3px; }
a:hover { color: var(--purple-500); }
:focus-visible { outline: 3px solid var(--purple-500); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--indigo-900);
  border-bottom: 1px solid var(--indigo-700);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 0; min-height: 64px; padding-top: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: var(--lavender-300); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { color: var(--lavender-300); }
/* Seven tabs don't fit beside the brand: links get their own row on desktop. */
.nav-links { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 0 -12px; padding: 0 0 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  color: var(--white); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav-links a:hover { background: var(--indigo-700); color: var(--white); }
.nav-links a[aria-current="page"] { color: var(--lavender-300); box-shadow: inset 0 -2px 0 var(--lavender-300); border-radius: 8px 8px 0 0; }
.lang-switch { margin-left: auto; display: flex; gap: 2px; border: 1px solid var(--indigo-700); border-radius: 999px; padding: 3px; }
.lang-switch a {
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-decoration: none;
  background: none; border: 0; color: var(--steel-300); padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.lang-switch a:hover { color: var(--white); }
.lang-switch a[aria-current="true"] { background: var(--purple-600); color: var(--white); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--indigo-700);
  color: var(--white); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer;
}

@media (max-width: 1100px) {
  .nav { padding-top: 0; }
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; margin: 0; padding-bottom: 12px; }
  .nav-links.is-open { display: flex; }
  .lang-switch { order: 2; margin-left: 0; }
}
@media (max-width: 480px) {
  .nav { gap: 8px; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .nav-toggle { padding: 5px 8px; font-size: .9rem; }
  .lang-switch a { padding: 4px 7px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--dark-gradient);
  color: var(--white);
  padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 10vw, 120px);
}
.hero-wave {
  position: absolute; z-index: -1; top: -10%; left: -6%;
  width: min(560px, 70vw); height: 120%;
  object-fit: cover; opacity: 1;
  filter: drop-shadow(0 0 6px rgba(156, 134, 214, .45));
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-3%) rotate(2deg); }
}
.hero-inner { max-width: 820px; margin-left: auto; text-align: center; }
.eyebrow { font-family: var(--font-serif); font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--steel-300); margin-bottom: .4em; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 6vw, 4.2rem); margin-bottom: .2em; }
.hero .acronym { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--lavender-300); margin: 0 0 .5em; }
.hero .when { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.6rem); margin-bottom: .6em; }
.hero .dedication { font-family: var(--font-serif); font-style: italic; color: var(--lavender-200); max-width: 640px; margin: 0 auto 2em; }
.hero .organized-by { color: var(--steel-300); margin: -1.2em auto 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Page header band (inner pages) */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--dark-gradient); color: var(--white); padding: clamp(48px, 8vw, 88px) 0; }
.page-hero .hero-wave { width: min(380px, 60vw); left: auto; right: -4%; opacity: .85; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.page-hero .eyebrow { margin-bottom: .3em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--purple-600); color: var(--white); }
.btn-primary:hover { background: var(--purple-500); color: var(--white); }
.btn-outline { border-color: var(--lavender-200); color: var(--white); }
.btn-outline:hover { background: var(--indigo-700); color: var(--white); }
.btn-outline.on-light { color: var(--purple-600); }
.btn-outline.on-light:hover { background: var(--lavender-50); color: var(--purple-600); }
.btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--paper); }
.section-title { display: flex; align-items: center; gap: 24px; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1.1em; }
.section-title::after { content: ""; flex: 1; height: 2px; background: var(--lavender-200); }
.lead { font-size: 1.15rem; color: var(--ink); }
.prose { max-width: 760px; }
.signature { font-family: var(--font-serif); font-style: italic; color: var(--ink); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card { background: var(--lavender-50); border-radius: var(--radius); padding: 24px; }
.card.white { background: var(--white); border: 1px solid var(--lavender-200); }
.card h3 { color: var(--purple-600); }
.card > :last-child { margin-bottom: 0; }

/* Key dates */
.dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.dates li { background: var(--white); border: 1px solid var(--lavender-200); border-radius: var(--radius); padding: 20px 22px; position: relative; overflow: hidden; }
.dates li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--wave-gradient); }
.dates .label { display: block; font-size: .9rem; color: var(--text); }
.dates .value { display: block; font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); }

/* Dedication */
.dedication-block { display: grid; gap: clamp(24px, 5vw, 56px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.dedication-block figure { margin: 0; }
.dedication-block img { border-radius: var(--radius); box-shadow: 0 18px 40px -18px var(--indigo-800); width: 100%; height: auto; }
.dedication-block figcaption { font-family: var(--font-serif); font-style: italic; font-size: .95rem; margin-top: 10px; color: var(--text); }
@media (max-width: 760px) { .dedication-block { grid-template-columns: 1fr; } }

/* Welcome: portrait beside the letter */
.welcome-block { display: grid; gap: clamp(24px, 5vw, 56px); grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
.welcome-block figure { margin: 0; position: sticky; top: 140px; }
.welcome-block img { border-radius: var(--radius); box-shadow: 0 18px 40px -18px var(--indigo-800); width: 100%; height: auto; }
.welcome-block .prose { max-width: none; }
@media (max-width: 760px) { .welcome-block { grid-template-columns: 1fr; } .welcome-block figure { position: static; } }

/* People lists */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.people li { background: var(--white); border: 1px solid var(--lavender-200); border-radius: 12px; padding: 14px 18px; }
.people .name { display: block; font-weight: 700; color: var(--ink); }
.people .role { display: block; font-size: .85rem; font-weight: 700; color: var(--purple-600); text-transform: uppercase; letter-spacing: .04em; }
.people .aff { display: block; font-size: .95rem; }
.people.featured li { background: var(--lavender-50); border-color: var(--lavender-50); }

/* Topics */
.topics { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.topics li { counter-increment: t; background: var(--lavender-50); border-radius: 12px; padding: 16px 18px 16px 60px; position: relative; font-weight: 600; color: var(--ink); }
.topics li::before {
  content: counter(t, decimal-leading-zero); position: absolute; left: 16px; top: 15px;
  font-family: var(--font-serif); font-weight: 700; color: var(--purple-500);
}

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--lavender-200); }
thead th { background: var(--purple-600); color: var(--white); font-weight: 700; }
tbody tr:nth-child(even) { background: var(--lavender-50); }
td.num { font-family: var(--font-serif); font-weight: 700; color: var(--ink); white-space: nowrap; }

/* Definition lists */
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }

.callout { border-left: 4px solid var(--purple-600); background: var(--lavender-50); padding: 16px 20px; border-radius: 0 12px 12px 0; }

/* ---------- Schedule ---------- */
.coming-soon {
  max-width: 560px; margin: 8px auto 0; text-align: center;
  background: var(--white); border: 1px solid var(--lavender-200); border-radius: 18px;
  padding: clamp(28px, 6vw, 48px) 24px; box-shadow: 0 10px 30px -20px var(--indigo-800);
}
.coming-soon-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--lavender-50); color: var(--purple-600); margin-bottom: 12px; }
.coming-soon-icon svg { width: 30px; height: 30px; }
.coming-soon h3 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--purple-600); margin: 0 0 .3em; }
.coming-soon p { margin: 0; color: var(--text); }
.day-tabs { display: none; gap: 8px; margin-bottom: 20px; }
.day-tabs button {
  flex: 1; font: inherit; font-weight: 700; padding: 10px; border-radius: 12px; cursor: pointer;
  background: var(--lavender-50); color: var(--purple-600); border: 1px solid var(--lavender-200);
}
.day-tabs button[aria-selected="true"] { background: var(--purple-600); color: var(--white); border-color: var(--purple-600); }
.schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.day { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px -20px var(--indigo-800); }
.day-head { background: var(--purple-600); color: var(--white); padding: 20px 24px 26px; }
.day-head h3 { color: var(--white); font-family: var(--font-sans); font-size: 1.5rem; margin: 0; }
.day-head p { margin: 0; font-weight: 600; }
.slots { list-style: none; margin: 0; padding: 14px; display: grid; gap: 12px; }
.slot { display: grid; grid-template-columns: 40px 1fr; gap: 12px; background: var(--lavender-50); border: 1px solid var(--lavender-50); border-radius: var(--radius); padding: 14px; }
.slot.coffee { background: var(--break-coffee); }
.slot.lunch { background: var(--break-lunch); }
.slot-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--purple-600); }
.slot.coffee .slot-icon { color: var(--text); }
.slot.lunch .slot-icon { color: var(--break-lunch-icon); }
.slot-icon svg { width: 22px; height: 22px; }
.slot time { display: block; font-size: .85rem; color: var(--text); }
.slot h4 { margin: 2px 0 4px; font-size: 1.05rem; color: var(--purple-600); }
.slot.coffee h4, .slot.lunch h4 { color: var(--ink); }
.slot ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
@media (max-width: 900px) {
  .day-tabs { display: flex; }
  .schedule { grid-template-columns: 1fr; }
  .schedule.js-tabs .day:not(.is-active) { display: none; }
}

.durations { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.durations li { background: var(--white); border: 1px solid var(--lavender-200); border-radius: 12px; padding: 16px 18px; }
.durations strong { display: block; color: var(--ink); }
.durations span { font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; color: var(--purple-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-900); color: var(--lavender-200); padding: 48px 0 32px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.organized { display: flex; align-items: center; gap: 18px; color: var(--white); }
.organized em { font-family: var(--font-serif); font-size: 1.6rem; }
.organized img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px var(--lavender-300); }
.organized .uni { font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.site-footer a { color: var(--lavender-300); }
.site-footer a:hover { color: var(--white); }
.footer-meta { font-size: .9rem; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--indigo-700); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.wave-rule { height: 3px; background: var(--wave-gradient); }
.hero-mark { width: clamp(96px, 14vw, 140px); height: auto; margin: 0 auto 20px; filter: drop-shadow(0 10px 28px var(--indigo-900)); }

/* Speakers tables */
table.speakers tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
table.speakers thead th:first-child { width: 30%; }
table.speakers thead th:last-child { width: 16%; }
@media (max-width: 560px) {
  table.speakers thead { display: none; }
  table.speakers, table.speakers tbody, table.speakers tr, table.speakers th, table.speakers td { display: block; width: auto; }
  table.speakers tr { padding: 14px 18px; border-bottom: 1px solid var(--lavender-200); }
  table.speakers tbody th, table.speakers td { padding: 0; border: 0; white-space: normal; }
  table.speakers td:last-child { font-size: .9rem; font-weight: 600; color: var(--purple-600); }
}

/* Contacts */
.contact-card { max-width: 760px; }
.contact-card h3 { color: var(--ink); margin-top: .4em; }
