/* gt-conference.org
   Light, editorial, minimal. Newsreader (display/headings) + Inter (text, UI).
   One accent colour; hairline rules; one figure. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --ink: #16181d;
  --text: #2c3038;
  --muted: #6a707b;
  --faint: #9aa0a9;
  --rule: #e7e6e2;
  --accent: #22408f;
  --accent-hover: #172d68;
  --flag-red: #da291c; /* red of the Georgian flag (Pantone 485 C) */

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: 32px;
  --measure: 680px; /* ≈ 66 characters of body text */
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hanging-punctuation: first;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  font-optical-sizing: auto;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: #dfe6f7; color: var(--ink); }

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

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 0.2em;
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }

/* ------------------------------------------------------------------ */
/* Top bar                                                             */
/* ------------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.topbar.scrolled { border-bottom-color: var(--rule); }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
  color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  font-feature-settings: "tnum";
}
.brand:hover { color: var(--ink); }
.logo-mark { width: 22px; height: 22px; }
.logo-mark path { fill: none; stroke: var(--flag-red); stroke-width: 1.5; stroke-linecap: round; }
.logo-mark circle { fill: var(--flag-red); }

.nav {
  display: flex; align-items: center; margin-left: auto;
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: 0 0 auto; padding: 8px 9px;
  color: var(--text); text-decoration: none; white-space: nowrap;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1.5px;
  text-decoration-color: var(--accent); text-underline-offset: 8px;
}
.nav a.past { color: var(--muted); font-weight: 400; font-size: 14px; font-feature-settings: "tnum"; }
.nav a.past:hover { color: var(--ink); }
.nav-div { flex: 0 0 1px; align-self: stretch; margin: 14px 8px; background: var(--rule); }

/* ------------------------------------------------------------------ */
/* Home intro                                                          */
/* ------------------------------------------------------------------ */
.intro {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center; gap: 56px;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.intro h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}

.facts { margin: 40px 0 0; display: grid; gap: 0; max-width: 460px; }
.facts > div {
  display: grid; grid-template-columns: 72px 1fr; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--rule);
}
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 13px; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; font-size: 16px; color: var(--ink); font-feature-settings: "tnum"; }

.intro-figure { margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.figure-svg { display: block; width: 100%; height: auto; }
.figure-svg .draw {
  fill: none; stroke: var(--flag-red); stroke-width: 1; stroke-linecap: round;
  opacity: .8;
}
.figure-svg .verts circle { fill: var(--flag-red); opacity: .7; }
.figure-svg .identity { fill: var(--flag-red); }

/* ------------------------------------------------------------------ */
/* Inner page heading                                                  */
/* ------------------------------------------------------------------ */
.page-head { padding: 56px 0 36px; border-bottom: 1px solid var(--rule); }
.page-head > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.kicker { margin-top: 0; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--ink); }
.page-head h1 {
  margin-top: 0; margin-bottom: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: balance;
}

/* ------------------------------------------------------------------ */
/* Page content (HTML from the admin editor)                           */
/* ------------------------------------------------------------------ */
.prose { max-width: var(--measure); margin: 0 auto; padding: 48px 0 104px; }
.prose::after { content: ""; display: block; clear: both; }
.prose > :first-child { margin-top: 0; }

.prose p, .prose li { text-wrap: pretty; }
.prose p { margin: 0 0 1em; }
.prose strong, .prose b { font-weight: 600; color: var(--ink); }
.prose em, .prose i { font-style: italic; }

.prose h1, .prose h2, .prose h3 {
  font-family: var(--serif); font-weight: 400; color: var(--ink); text-wrap: balance;
}
.prose h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 1.4em 0 .5em; }
.prose h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.016em; margin: 1.6em 0 .55em; }
.prose h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; margin: 1.7em 0 .5em; }
.prose h4 {
  font-family: var(--sans); font-size: 16.5px; font-weight: 600; line-height: 1.4;
  color: var(--ink); margin: 1.6em 0 .4em;
}
.prose h2 strong, .prose h3 strong { font-weight: 500; }

.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin: .25em 0; padding-left: .2em; }
.prose li > p { margin: 0; }
.prose ul > li::marker { color: var(--faint); }
.prose ol > li::marker { color: var(--muted); font-feature-settings: "tnum"; }

/* Topic list ("No bullets" in the editor): hairline rows, two columns */
.prose ul.topics {
  list-style: none; padding: 0; margin: 1.4em 0 2em;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px;
  border-top: 1px solid var(--rule);
}
.prose ul.topics > li {
  margin: 0; padding: 13px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: 19px; line-height: 1.35; color: var(--ink);
}
.prose ul.topics strong { font-weight: 400; }

.prose blockquote {
  margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink);
}
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }

.prose img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.prose img.align-center { margin: 2.4em 0; }
.prose img.align-right:not([width]), .prose img.align-left:not([width]) { width: 200px; }
.prose img.align-right { float: right; margin: .35em 0 1em 32px; }
.prose img.align-left { float: left; margin: .35em 32px 1em 0; }

.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0 2em; font-size: 15.5px; }
.prose th, .prose td {
  text-align: left; vertical-align: top; padding: 14px 20px 14px 0; border-top: 1px solid var(--rule);
}
.prose th { font-weight: 600; color: var(--ink); }
.prose th > :first-child, .prose td > :first-child { margin-top: 0; }
.prose td h3, .prose th h3 { font-size: 21px; }
.prose td h4, .prose th h4 { font-size: 15px; color: var(--muted); font-weight: 500; }


/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--rule); background: var(--bg-soft); }
.footer-inner { padding-top: 36px; padding-bottom: 44px; }
.footer-inner > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.footer-title {
  margin-top: 0; margin-bottom: 4px;
  font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--ink); text-wrap: balance;
}
.footer-meta { margin-top: 0; margin-bottom: 0; font-size: 14px; color: var(--muted); font-feature-settings: "tnum"; }

/* ------------------------------------------------------------------ */
/* Motion: the figure draws itself once                                */
/* ------------------------------------------------------------------ */
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } }

.figure-svg .draw { stroke-dasharray: 1; animation: draw 3.2s cubic-bezier(.4, 0, .2, 1) .2s backwards; }
.figure-svg .verts, .figure-svg .identity { animation: appear .9s ease 2.4s backwards; }

@media (prefers-reduced-motion: reduce) {
  .figure-svg .draw, .figure-svg .verts, .figure-svg .identity { animation: none; }
}

/* ------------------------------------------------------------------ */
/* Small screens                                                       */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  /* All tabs stay visible: wrapped rows instead of a hidden horizontal scroller.
     The bar scrolls away with the page so it never covers content. */
  .topbar { position: static; background: var(--bg); border-bottom: 1px solid var(--rule); }
  .topbar-inner { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-top: 14px; padding-bottom: 10px; }
  .brand { align-self: flex-start; padding: 4px 0 10px; }
  .nav { flex-wrap: wrap; margin: 0 -10px; overflow: visible; row-gap: 2px; }
  .nav a { padding: 10px 10px; font-size: 15px; }           /* ≥ 40px tap height */
  .nav a.past { font-size: 14px; }
  .nav a[aria-current="page"] { text-underline-offset: 6px; }
  .nav-div { flex: 0 0 100%; height: 1px; margin: 4px 10px; align-self: auto; }  /* past years on their own row */
  :root { --measure: 100%; }  /* column = full width, so it lines up with the title */
  .intro { grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; padding: 44px 0 40px; }
  .intro-figure { max-width: 200px; }
}

@media (max-width: 640px) {
  .intro { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 32px; }
  .intro-figure { justify-self: start; max-width: 180px; }
  .facts { max-width: none; }
  .prose ul.topics { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .intro h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .facts > div { grid-template-columns: 64px 1fr; }
  .page-head { padding: 32px 0 26px; }
  .page-head h1 { font-size: clamp(32px, 9vw, 40px); }
  .kicker { font-size: 13px; }
  .prose { padding: 32px 0 64px; }
  .prose h2 { font-size: 27px; }
  .prose h3 { font-size: 21px; }
  .prose ul.topics > li { font-size: 18px; }
  .prose img.align-right, .prose img.align-left { float: none; margin: 1.2em 0; }
  .prose img.align-center { margin: 1.8em 0; }
  .prose table, .prose tbody, .prose tr, .prose td, .prose th { display: block; width: auto !important; }
  .prose td, .prose th { padding-right: 0; }
  .prose a { overflow-wrap: anywhere; }               /* long emails/URLs never overflow */
  .footer-inner { padding-top: 28px; padding-bottom: 36px; }
  .footer-title { font-size: 17px; }
}
