/* Rooterium site styles: plain CSS, no framework (ADR 0011).
   Palette V2 and typography from docs/PROJECT_BRIEF.md, section 6.
   Dark only in version 1. Contrast pairs are checked by
   core/tests/test_design_tokens.py – keep it in sync with the tokens. */

/* --- Fonts (self-hosted, ADR 0013; licences next to the files) ---------- */

/* Headings: Cormorant Garamond 600, only at 28 px and larger. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.bf1e09fb81d7.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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-600-normal.d18ea9df8e38.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;
}

/* Body and UI: Manrope 400–600 (variable). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.938c6e8019b6.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: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.6d36d5bdedfa.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;
}

/* Armenian script: only downloaded when a page contains Armenian letters. */
@font-face {
  font-family: "Noto Serif Armenian";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-serif-armenian-armenian-wght-normal.ec389a2f499b.woff2") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-sans-armenian-armenian-wght-normal.f062c0821106.woff2") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}

/* --- Tokens ------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Palette V2 (binding) */
  --bg: #0b0a09;
  --surface: #161311;
  --text: #eee3d1;
  --text-secondary: #c9bfae;
  --text-muted: #8e8b85;
  --muted: #7b7872; /* borders and quiet UI only, never small text */
  --accent: #a6352c; /* pomegranate: buttons, active states; never as text */
  --accent-hover: #8e2c24; /* darker pomegranate for button hover */
  --accent-2: #d98a3f; /* apricot: links, hover, focus */
  --gold: #c8a15d; /* markers, lines, ornaments */
  --line: #2b2621; /* decorative dividers only (no contrast requirement) */

  /* Typography */
  --font-heading: "Cormorant Garamond", "Noto Serif Armenian", Georgia, serif;
  --font-body: "Manrope", "Noto Sans Armenian", system-ui, -apple-system,
    "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 72rem;
  --prose-width: 42rem;
  --gutter: 1rem;
  --radius: 0.75rem;
  --touch: 44px;
}

/* --- Base --------------------------------------------------------------- */

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

/* `hidden` wins over component display rules (e.g. flex markers). */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-2);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

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

::selection {
  background: var(--accent);
  color: var(--text);
}

/* Cormorant only from 28 px; smaller headings use Manrope. */
h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
}

h3,
h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 1.5em 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: 1.1875rem;
  color: var(--text-secondary);
}

.meta,
figcaption,
small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Small uppercase label above titles, e.g. the theme of a story. */
.eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--text);
}

.button--secondary {
  background: transparent;
  border-color: var(--muted);
}

.button--secondary:hover {
  background: var(--surface);
  border-color: var(--accent-2);
}

/* --- Skip link ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--accent-2);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.75rem; /* 28 px: smallest size for Cormorant */
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

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

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
}

.main-nav a:hover {
  color: var(--accent-2);
}

/* Current page: underline in gold plus the weight, not colour alone. */
.main-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

/* --- Main --------------------------------------------------------------- */

main {
  flex: 1;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

/* Long-form text (stories, simple pages). */
.prose {
  max-width: var(--prose-width);
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.prose figure {
  margin: 2rem 0;
}

.prose figcaption {
  margin-top: 0.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* --- Home page ---------------------------------------------------------- */

.hero {
  max-width: 46rem;
  margin: 1rem auto 3rem;
  text-align: center;
}

.hero .lead {
  margin-inline: auto;
}

.explore {
  margin-bottom: 4rem;
}

.explore-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Toggle buttons: state shown by fill and weight, not colour alone. */
.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--muted);
  border-radius: 999px;
}

.segmented-option,
.chip {
  min-height: var(--touch);
  padding: 0 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  color: var(--text);
}

.segmented-option {
  border: 0;
  background: transparent;
}

.segmented-option[aria-pressed="true"] {
  background: var(--accent);
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border: 1px solid var(--muted);
  background: transparent;
}

.chip:hover,
.segmented-option:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--surface);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--gold);
}

.explore-body {
  display: grid;
  gap: 1rem;
}

@media (min-width: 56rem) {
  .explore-body {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}

.map-frame {
  position: relative;
  min-height: 22rem;
  height: 60vh;
  max-height: 40rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

/* Sized explicitly: MapLibre sets `position: relative` on the container. */
.map {
  width: 100%;
  height: 100%;
}

.map-diaspora {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  padding: 2rem;
  text-align: center;
  background: rgb(11 10 9 / 92%);
}

.is-diaspora .map-card,
.is-diaspora .chips {
  display: none;
}

.map-card {
  align-self: start;
}

.map-card-title {
  font-family: var(--font-heading);
  font-size: 1.75rem; /* 28 px: Cormorant allowed */
  margin-top: 0;
}

/* Markers: gold dot plus name; the button is the whole marker. */
.map-marker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--touch);
  padding: 0 0.5rem 0 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.map-marker::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: 15px; /* centres the dot in a 44 px hit area */
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgb(200 161 93 / 25%), 0 0 12px rgb(200 161 93 / 60%);
}

.map-marker--event::before {
  border-radius: 2px;
  transform: rotate(45deg);
}

.map-marker-label {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgb(11 10 9 / 80%);
  white-space: nowrap;
}

.map:not(.show-labels) .map-marker-label {
  display: none;
}

.map .map-marker:hover .map-marker-label,
.map .map-marker:focus-visible .map-marker-label,
.map .map-marker[aria-pressed="true"] .map-marker-label {
  display: inline;
  outline: 1px solid var(--gold);
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker[aria-pressed="true"] {
  z-index: 2;
}

.map-marker[aria-pressed="true"]::before {
  background: var(--text);
}

/* MapLibre controls in the dark palette. */
.maplibregl-ctrl-group {
  background: var(--surface) !important;
  border: 1px solid var(--muted);
}

.maplibregl-ctrl-group button {
  width: var(--touch) !important;
  height: var(--touch) !important;
}

.maplibregl-ctrl-group button + button {
  border-top-color: var(--line) !important;
}

.maplibregl-ctrl-icon {
  filter: invert(0.9);
}

.maplibregl-ctrl-attrib {
  background: rgb(11 10 9 / 80%) !important;
  color: var(--text-muted);
}

.maplibregl-ctrl-attrib a {
  color: var(--text-secondary) !important;
}

.maplibregl-cooperative-gesture-screen {
  background: rgb(11 10 9 / 70%) !important;
  color: var(--text) !important;
}

.place-list {
  margin-top: 1rem;
}

.place-list summary {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  cursor: pointer;
  color: var(--accent-2);
}

.place-list ul,
.item-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.home-section {
  margin-bottom: 4rem;
}

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

.story-card {
  padding: 0;
  overflow: hidden;
}

.story-card img {
  display: block;
  width: 100%;
}

.story-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.story-card h3 {
  margin-top: 0;
  font-family: var(--font-heading);
  font-size: 1.75rem; /* 28 px: Cormorant allowed */
  line-height: 1.15;
}

.story-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.story-card h3 a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.home-columns {
  display: grid;
  gap: 1rem;
  margin-bottom: 4rem;
}

@media (min-width: 48rem) {
  .home-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.item-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.item-list a {
  color: var(--text);
}

.item-date {
  min-width: 6.5rem;
  color: var(--accent-2);
  font-size: 0.875rem;
  font-weight: 600;
}

.newsletter-teaser {
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* --- Page header, chips as links, pagination ---------------------------- */

.page-header {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.page-header .chips {
  margin-top: 1.5rem;
}

a.chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

a.chip[aria-current="page"] {
  border-color: var(--gold);
  background: var(--surface);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--gold);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.page-footer-link {
  margin-top: 3rem;
}

.section-link {
  margin: 1.25rem 0 0;
}

.section-link a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}

/* --- Events and projects ------------------------------------------------ */

.event-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-item {
  display: grid;
  gap: 0.25rem 2rem;
}

@media (min-width: 40rem) {
  .event-item {
    grid-template-columns: 12rem 1fr;
  }
}

.event-date {
  margin: 0;
  color: var(--accent-2);
  font-weight: 600;
}

/* Below 28 px, so Manrope (see h3). */
.event-title,
.project-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.35;
}

.event-title a,
.project-title a {
  color: var(--text);
}

.event-title a:hover,
.project-title a:hover {
  color: var(--accent-2);
}

.event-body .meta {
  margin: 0;
}

.event-map-link {
  margin: 0.25rem 0 0;
}

.event-map-link a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}

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

.project-logo {
  display: block;
  max-width: 5rem;
  max-height: 5rem;
  width: auto;
  height: auto;
  margin-bottom: 1rem;
}

.project-card .meta {
  margin: 0;
}

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

.submission-form {
  max-width: 40rem;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-2);
}

.form-field .help,
.signup-form .help,
.submission-form .help {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.submission-form .help {
  margin-bottom: 1.5rem;
}

/* Errors: text with an "Error:" prefix plus a thicker border, not colour alone. */
.has-error input,
.has-error select,
.has-error textarea {
  border: 2px solid var(--accent-2);
}

.field-error,
.form-errors {
  color: var(--text);
}

.field-error {
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
}

.form-errors {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 2px solid var(--accent-2);
  border-radius: var(--radius);
}

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

/* Checkbox with its label to the right (consent). */
.form-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  align-items: start;
}

.form-check .field-error {
  grid-column: 1 / -1;
}

.form-check input {
  width: 1.5rem;
  height: 1.5rem;
  min-height: 0;
  margin: 0.125rem 0 0;
  accent-color: var(--accent);
}

.form-check label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.form-card,
.signup-form {
  max-width: 40rem;
}

.newsletter-teaser .signup-form {
  margin: 2rem auto 0;
  text-align: left;
}

/* Honeypot: off-screen, not focusable by keyboard (tabindex -1). */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Story page --------------------------------------------------------- */

.story-header {
  max-width: var(--prose-width);
  margin: 0 auto 2rem;
}

.story-header .eyebrow {
  text-decoration: none;
}

.story-hero {
  margin: 0 0 3rem;
}

.story-hero img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--radius);
}

.story-body,
.story-sources,
.story-places {
  margin-inline: auto;
}

.story-places {
  max-width: var(--prose-width);
  margin-top: 3rem;
}

figcaption .caption {
  display: block;
  color: var(--text-secondary);
}

figcaption .credit a {
  color: inherit;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose .quote,
.prose .book-excerpt {
  margin: 2.5rem 0;
}

.prose .quote blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.75rem; /* 28 px: Cormorant allowed */
  line-height: 1.3;
  color: var(--text);
}

.prose .quote blockquote p:last-child,
.prose .book-excerpt blockquote p:last-child {
  margin-bottom: 0;
}

.prose .quote figcaption,
.prose .book-excerpt figcaption {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.prose .book-excerpt {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose .book-excerpt blockquote {
  margin: 0;
}

.story-image img {
  border-radius: var(--radius);
}

.story-sources {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.story-sources ol {
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.story-sources li + li {
  margin-top: 0.5rem;
}

.place-cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-cards h3 {
  margin-top: 0;
}

/* YouTube placeholder (two-click embed). */
.video {
  margin: 2.5rem 0;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text);
  text-decoration: none;
}

.video-play {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.1rem;
  border-color: transparent transparent transparent var(--text);
}

.video-consent:hover .video-play {
  background: var(--accent-hover);
}

.video-title {
  font-weight: 600;
}

.video-note {
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Messages ----------------------------------------------------------- */

.messages {
  margin-bottom: 2rem;
}

.message {
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--muted);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Errors never rely on colour alone: the template adds a text label. */
.message-error {
  border-left-color: var(--accent);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}

.footer-inner {
  align-items: center;
}

/* --- Motion ------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
