/* ==========================================================================
   A Special Trimester in Arithmetic Geometry — Milano 2027
   Shared stylesheet.
   No framework, no build step, no external font, no JavaScript.
   Edit the variables in :root below to restyle the whole site.
   ========================================================================== */

:root {
  --ink: #1a2b3a;
  --ink-strong: #0d1c28;
  --muted: #5b6b79;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #efeee8;
  --line: #dcdcd6;
  --line-strong: #b9bcb6;

  --accent: #1f5d78;
  --accent-dark: #17465a;
  --accent-soft: #dfeaf0;
  --warm: #a04a30;
  --pending: #7a5200;
  --pending-soft: #f4e8ca;

  --max-width: 1140px;
  --reading-width: 68ch;
  --radius: 4px;
  --shadow: 0 10px 30px rgb(13 28 40 / 0.07);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Per-page accent, overridden by the body.event-* classes below. */
  --page-accent: var(--accent);
  --page-accent-soft: var(--accent-soft);
}

body.event-higher {
  --page-accent: #9b3e2b;
  --page-accent-soft: #f2ddd6;
}

body.event-new-perspectives {
  --page-accent: #1f5d78;
  --page-accent-soft: #dceaf0;
}

body.event-l-functions {
  --page-accent: #5f5227;
  --page-accent-soft: #ece5cd;
}

body.event-transalpina {
  --page-accent: #5b3a6b;
  --page-accent-soft: #e7dfec;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}

/* Form controls don't inherit font/line-height from the page by default
   in any browser — this is what makes a <button> or <select> suddenly
   render in the OS system font. Reset them explicitly. */
button,
input,
select,
textarea {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--warm);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  color: var(--ink-strong);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  background: var(--ink-strong);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(247 245 240 / 0.93);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-strong);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink-strong);
}

.brand-mark {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-strong);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
}

.brand-text span {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--warm);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(18rem, calc(100vw - 2rem));
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  padding: 0.6rem 0.65rem;
  border-radius: 3px;
}

.mobile-nav a:hover {
  background: var(--surface-soft);
}

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

.hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 30%, rgb(160 74 48 / 0.11) 0 5px, transparent 6px),
    radial-gradient(circle at 90% 52%, rgb(31 93 120 / 0.13) 0 4px, transparent 5px),
    var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -14rem;
  width: 28rem;
  aspect-ratio: 1;
  border: 1px solid rgb(13 28 40 / 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.5fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--warm);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.hero-intro {
  max-width: 40rem;
  margin: 1.4rem 0 0;
  color: #33495c;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--ink-strong);
  border-radius: var(--radius);
  background: var(--ink-strong);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--warm);
  border-color: var(--warm);
  color: #fff;
}

.button--secondary {
  background: transparent;
  color: var(--ink-strong);
}

.button--secondary:hover {
  background: var(--surface);
  color: var(--warm);
}

.fact-panel {
  margin: 0;
  display: grid;
  border-top: 2px solid var(--ink-strong);
  border-bottom: 1px solid var(--ink-strong);
}

.fact {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 0;
}

.fact dt {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.4;
}

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

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section--white {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section--soft {
  background: var(--surface-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-heading p {
  max-width: var(--reading-width);
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.lead {
  color: #33495c;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.9vw, 1.35rem);
  line-height: 1.55;
}

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

.timeline {
  margin: 0;
  border-top: 2px solid var(--ink-strong);
}

.timeline-row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.24fr) minmax(0, 1fr) minmax(7rem, 0.2fr);
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-when {
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-what {
  margin: 0;
}

.timeline-what strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 600;
}

.timeline-what span {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-kind {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------- Event cards */

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.3rem, 2.5vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 14px rgb(13 28 40 / 0.04);
}

.event-card--higher {
  border-top: 5px solid #9b3e2b;
}

.event-card--new-perspectives {
  border-top: 5px solid #1f5d78;
}

.event-card--l-functions {
  border-top: 5px solid #5f5227;
}

.event-card--transalpina {
  border-top: 5px solid #5b3a6b;
}

.event-card__meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 500;
}

.event-card p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.event-card__link {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

/* ------------------------------------------------------------ Name grid */

.name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink-strong);
}

.name-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.name-item:nth-child(odd) {
  padding-right: 2rem;
}

.name-item:nth-child(even) {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.name-item .affiliation {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  text-align: right;
}

/* -------------------------------------------------------------- Courses */

.course-stack {
  display: grid;
  gap: 1rem;
}

.course-card {
  display: grid;
  grid-template-columns: minmax(15rem, 0.5fr) minmax(0, 1.5fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.course-card h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 500;
}

.course-card .instructor {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.course-card .instructor strong {
  display: block;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.course-card__description p:first-child {
  margin-top: 0;
}

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

/* --------------------------------------------------------------- Notice */

.notice {
  padding: 1.1rem 1.25rem;
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
}

.notice p {
  margin: 0;
}

.notice p + p {
  margin-top: 0.6rem;
}

/* ----------------------------------------------------------- Info cards */

.practical-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.info-card {
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink-strong);
}

.info-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.info-card p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.site-footer {
  padding-block: 2.75rem;
  background: var(--ink-strong);
  color: #e6edf2;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(14rem, 0.7fr);
  gap: 2rem 3rem;
  align-items: end;
}

.site-footer strong {
  display: block;
  max-width: 28rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.site-footer p {
  margin: 0.45rem 0 0;
  color: #aebfcb;
  font-size: 0.88rem;
}

.site-footer a {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem 1.1rem;
}

.footer-links a {
  font-size: 0.87rem;
  font-weight: 700;
}

/* ----------------------------------------------------- Conference pages */

.event-hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, var(--page-accent-soft) 0 32%, var(--paper) 32% 100%);
}

.event-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 7vw;
  width: 1px;
  height: 100%;
  background: rgb(13 28 40 / 0.12);
  box-shadow: 4rem 0 0 rgb(13 28 40 / 0.07), 8rem 0 0 rgb(13 28 40 / 0.04);
  pointer-events: none;
}

.event-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.event-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
}

.event-hero .eyebrow {
  color: var(--page-accent);
}

.event-facts {
  padding: 1.1rem 1.35rem;
  border-top: 5px solid var(--page-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgb(255 255 255 / 0.86);
  box-shadow: var(--shadow);
}

.event-facts dl {
  margin: 0;
}

.event-facts .fact {
  padding: 0.85rem 0;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.3fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.event-main > :first-child {
  margin-top: 0;
}

.event-main h2 {
  margin: 2.8rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.event-main h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.35rem;
}

.event-main p {
  max-width: var(--reading-width);
}

.event-sidebar {
  position: sticky;
  top: 6rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--ink-strong);
}

.event-sidebar h2 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
}

.event-sidebar p,
.event-sidebar li {
  color: var(--muted);
  font-size: 0.9rem;
}

.event-sidebar ul {
  margin: 0;
  padding-left: 1.1rem;
}

.event-sidebar li {
  margin-bottom: 0.35rem;
}

/* --------------------------------------------------------- Program bits */

.program-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-block: 1.8rem 2.5rem;
}

.pillar {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--page-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
}

.pillar strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.pillar span {
  color: var(--muted);
  font-size: 0.88rem;
}

.speaker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.3rem 0 0;
  padding: 0;
  border-top: 2px solid var(--ink-strong);
  list-style: none;
}

.speaker-list li {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.speaker-list li:nth-child(odd) {
  padding-right: 1.5rem;
}

.speaker-list li:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.speaker-name {
  display: block;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.25;
}

.speaker-affiliation {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status--pending {
  background: var(--pending-soft);
  color: var(--pending);
}

.organizer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.organizer-list li {
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
}

.placeholder-panel {
  display: grid;
  place-items: center;
  min-height: 14rem;
  padding: 2rem;
  border: 1px dashed var(--page-accent);
  border-radius: var(--radius);
  background: var(--page-accent-soft);
  text-align: center;
}

.placeholder-panel p {
  max-width: 34rem;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
}

.funding-note {
  margin-top: 2.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 5px solid var(--page-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--page-accent-soft);
  font-size: 0.85rem;
}

.funding-note p {
  max-width: none;
  margin: 0;
}

.funding-note p + p {
  margin-top: 0.6rem;
}

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

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-grid,
  .event-hero-grid,
  .section-heading,
  .event-layout,
  .course-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .fact-panel {
    max-width: 32rem;
  }

  .event-grid,
  .practical-grid,
  .program-pillars {
    grid-template-columns: 1fr;
  }

  .event-sidebar {
    position: static;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .timeline-row {
    grid-template-columns: minmax(8rem, 0.3fr) minmax(0, 1fr);
  }

  .timeline-kind {
    grid-column: 2;
  }
}

@media (max-width: 660px) {
  .container {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .hero::after {
    opacity: 0.4;
  }

  .name-grid,
  .speaker-list {
    grid-template-columns: 1fr;
  }

  .name-item:nth-child(odd),
  .name-item:nth-child(even),
  .speaker-list li:nth-child(odd),
  .speaker-list li:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
  }

  .speaker-list li {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .timeline-kind {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ------------------------------------------------------------ Status: open */

.status--open {
  background: #dbead9;
  color: #2b6b3f;
}

/* --------------------------------------------------------------- Forms */

.form-page {
  max-width: var(--reading-width);
}

.form-deadline {
  margin: 0 0 2rem;
}

.field {
  margin-bottom: 1.4rem;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-strong);
}

.field .hint {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  /* Some browsers ignore an inherited unitless line-height on <select>'s
     native closed-state box; set it explicitly rather than rely on
     inheritance here. */
  line-height: 1.5;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

fieldset.field {
  padding: 0;
  border: 0;
  margin-inline: 0;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.checkbox-field + .checkbox-field {
  margin-top: 0.8rem;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.checkbox-field .checkbox-label {
  font-weight: 700;
  color: var(--ink-strong);
  font-size: 0.92rem;
}

.checkbox-field .hint {
  margin-top: 0.25rem;
}

.form-error-summary {
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
  border-left: 5px solid var(--warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #f7e4dd;
  color: var(--ink-strong);
}

.form-error-summary p {
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.form-error-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.form-success {
  padding: 1.4rem 1.5rem;
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
}

.form-success h2 {
  margin-top: 0;
}

/* Honeypot field: hidden from sighted users and screen readers, left in
   the tab order for nothing — a plain anti-spam trap, no JavaScript. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  background: var(--surface-soft);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 660px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------- Print */

@media print {
  .site-header,
  .hero-actions,
  .button-row,
  .site-footer,
  .event-sidebar,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  .hero,
  .event-hero,
  .section,
  .section--white,
  .section--soft {
    border: 0;
    background: #fff;
  }

  .hero::after,
  .event-hero::after {
    display: none;
  }

  .hero-grid,
  .event-hero-grid {
    padding-block: 1.2rem;
  }

  a {
    color: #000;
  }
}
