/* ==========================================================================
   A2S2 — Auditing AI and Sociotechnical Systems
   Shared stylesheet. Keep this file identical across the landing repo and
   every year repo so the workshop reads as one identity across editions.
   All theming lives in the :root block below — including the greys, which
   are tokenized on purpose so a re-skin never becomes a hex find/replace.
   ========================================================================== */

/* ---------- FONTS ----------
   Self-hosted variable fonts (SIL OFL 1.1; licenses in fonts/).
   Libre Franklin: display. Public Sans: body. */

@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/libre-franklin-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/libre-franklin-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/public-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/public-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/public-sans-latin-ext-wght-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/public-sans-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --font-display:      'Libre Franklin', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:         'Public Sans', system-ui, -apple-system, sans-serif;

  --color-accent:      #10403B;  /* pine — wordmark, h2, nav brand */
  --color-accent-warm: #B4531F;  /* rust — rules, hover, initials  */
  --color-bg:          #F7F8F7;
  --color-surface:     #FFFFFF;
  --color-border:      #E3E6E4;

  --color-text:        #131816;
  --color-text-muted:  #4A524E;
  --color-text-subtle: #6E7672;
  --color-text-faint:  #9AA19D;

  --color-row-hover:   #EEF1EF;
  --color-badge-bg:    #E7EDEA;
}

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-col {
  width: min(90%, 780px);
  margin-inline: auto;
}

/* ---------- NAV ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.9rem 2rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-accent);
}

.nav-brand:hover { color: var(--color-accent-warm); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  padding: 0.2rem;
  line-height: 1;
}

.nav-toggle:hover { color: var(--color-text); }

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
}

.nav-links a:hover { color: var(--color-accent-warm); }

/* ---------- HERO ---------- */
/* Left-aligned, anchored by a rust rule. The four backronym initials are the
   only rust text on the page above the fold — they carry the wordmark. */

.hero {
  padding: 5rem 0 3.5rem;
}

.hero-acronym {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}

.hero-acronym sup {
  font-size: 0.45em;
  vertical-align: super;
  line-height: 0;
}

.hero-rule {
  width: 4.5rem;
  height: 3px;
  margin: 1.5rem 0;
  background: var(--color-accent-warm);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text);
}

.hero-word { white-space: nowrap; }

.hero-letter { color: var(--color-accent-warm); }

.hero-tagline {
  margin-top: 1.1rem;
  max-width: 46ch;
  font-size: 0.95rem;
  color: var(--color-text-subtle);
}

.hero-event {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-dates {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--color-text-subtle);
}

.hero-event span,
.hero-dates span { margin: 0 0.35em; color: var(--color-text-faint); }

/* Signature motion: the initials settle into place in reading order. */
@keyframes settle {
  from { opacity: 0.15; transform: translateY(0.18em); }
  to   { opacity: 1;    transform: translateY(0); }
}

.hero-subtitle.is-revealing .hero-letter {
  display: inline-block;
  animation: settle 0.5s var(--hop-delay, 0s) cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-subtitle.is-revealing .hero-letter { animation: none; }
}

/* ---------- SECTIONS ---------- */

.content { padding-bottom: 4rem; }

/* scroll-margin-top keeps the heading clear of the sticky nav when a nav
   link jumps to a section. */
section { margin-bottom: 3.25rem; scroll-margin-top: 5.5rem; }

/* The "instrument" motif: every section heading is preceded by a short rust
   tick-rule, like a mark on a measuring scale. */
section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-accent);
  margin-bottom: 1.1rem;
}

section h2::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 2px;
  margin-bottom: 0.7rem;
  background: var(--color-accent-warm);
}

.subsection-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-accent);
  margin: 2rem 0 0.85rem;
}

.prose p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.prose p:last-child { margin-bottom: 0; }

.prose a { color: var(--color-accent-warm); }

/* ---------- THEME LIST ---------- */

.theme-list {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.theme-list li {
  border-left: 2px solid var(--color-accent-warm);
  padding-left: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.theme-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-accent);
}

/* ---------- TABLES (dates, program) ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  text-align: left;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem 0.5rem 0;
}

td {
  border-bottom: 1px solid var(--color-border);
  padding: 0.7rem 0.75rem 0.7rem 0;
  vertical-align: baseline;
}

tbody tr:hover { background: var(--color-row-hover); }

.prog-time {
  color: var(--color-text-subtle);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.prog-speaker { color: var(--color-text-faint); }

.prog-type {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  background: var(--color-badge-bg);
  color: var(--color-accent);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

.tba-notice,
.data-error {
  font-size: 0.9rem;
  color: var(--color-text-subtle);
}

.data-error { color: var(--color-accent-warm); }

/* ---------- EDITIONS TABLE (landing site) ---------- */
/* A CSS grid rather than a <table> because each row is a link. The ARIA roles
   in the markup restore the table semantics; do not remove them. */

.editions-table {
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.editions-row {
  display: grid;
  grid-template-columns: 5rem 1fr 1fr;
  gap: 1rem;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
}

.editions-header {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

a.editions-row:hover { background: var(--color-row-hover); }

a.editions-row .editions-year {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-accent-warm);
}

/* ---------- ORGANIZERS: card grid (year sites) ---------- */

/* Heading row: the order controls sit level with the h2's baseline. */
.org-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

section .org-header h2 { margin-bottom: 0; }

.org-order {
  display: flex;
  gap: 0.4rem;
}

.org-order-btn {
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem 0.35rem;
  opacity: 0.55;
}

.org-order-btn:hover,
.org-order-btn[aria-pressed="true"] { opacity: 1; }
.org-order-btn[aria-pressed="true"] { border-bottom-color: var(--color-accent-warm); }
.org-order-btn:focus-visible { outline: 2px solid var(--color-accent-warm); outline-offset: 1px; }

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.org-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 0.9rem 0.9rem 0.8rem;
  background: var(--color-surface);
  border-left: 2px solid var(--color-accent-warm);
}

.org-card-photo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  background: var(--color-badge-bg);
}

.org-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.org-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-accent);
  text-decoration: none;
}

a.org-card-name:hover { color: var(--color-accent-warm); }

.org-card-affil {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-subtle);
}

.org-card-email {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--color-text-faint);
  text-decoration: none;
  overflow-wrap: break-word;
}

.org-card-email:hover { color: var(--color-accent-warm); }

.org-card-icons {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.org-icon {
  color: var(--color-text-faint);
  font-size: 0.95rem;
  text-decoration: none;
}

.org-icon:hover { color: var(--color-accent-warm); }

/* ---------- ORGANIZERS: flat list (landing site) ---------- */

.org-list {
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.org-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.org-item-name {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}

a.org-item-name:hover { color: var(--color-accent-warm); }

.org-item-affil {
  flex: 1;
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

/* ---------- FOOTER ---------- */

footer {
  border-top: 1px solid var(--color-border);
  padding: 1.75rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-faint);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  nav { padding: 0.9rem 1.25rem; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.9rem;
  }

  .nav-links.open { display: flex; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero-acronym { font-size: 3.25rem; }
  .hero-subtitle { font-size: 1.15rem; }

  .editions-row { grid-template-columns: 4rem 1fr; }
  .editions-row .editions-location { grid-column: 2; }
}

/* On phones the event and date lines no longer fit on one row: drop the
   separator dot and let it act as the line break, so each half gets a clean line. */
@media (max-width: 480px) {
  .hero-event span,
  .hero-dates span { display: block; height: 0; margin: 0; overflow: hidden; }
}
