/* CaeroBlog — public stylesheet.
 *
 * One file, no build step, custom properties for theming. Three theme states:
 * an explicit choice sets data-theme on <html>; the default follows the OS via
 * prefers-color-scheme. Every colour is defined on bare :root first, so no
 * value exists only inside a media query.
 *
 * Two hue systems ride on top of the palette: --chip-hue for tags and
 * --avatar-hue for contributor discs. Both are set inline per element, which
 * is what lets a tag added in the admin look native with no CSS change.
 */

/* ------------------------------------------------------------- palette */

:root {
  color-scheme: light;

  --paper: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #f0f1f3;
  --ink: #16181d;
  --ink-2: #3b414d;
  --muted: #626b7c;
  --rule: #e0e3e8;
  --rule-strong: #cbd0d8;
  --accent: #2f5fd0;
  --accent-ink: #ffffff;
  --accent-soft: #e8eefc;
  --danger: #b4232a;
  --warn-bg: #fdf4e3;
  --warn-ink: #6b4a10;
  --ok-bg: #e8f5ec;
  --ok-ink: #1d5c33;

  --shadow-sm: 0 1px 2px rgb(16 18 24 / 6%), 0 1px 3px rgb(16 18 24 / 4%);
  --shadow-md: 0 2px 8px rgb(16 18 24 / 8%), 0 8px 24px rgb(16 18 24 / 6%);

  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text",
    Cambria, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --measure: 42rem;
  --radius: 10px;
  --radius-sm: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --paper: #0e1014;
    --surface: #15181e;
    --surface-2: #1c2028;
    --ink: #e9ebf0;
    --ink-2: #c3c8d4;
    --muted: #98a0b0;
    --rule: #262b35;
    --rule-strong: #363d4a;
    --accent: #8aaaff;
    --accent-ink: #0e1014;
    --accent-soft: #1b2438;
    --danger: #ff8a86;
    --warn-bg: #2c2413;
    --warn-ink: #f0d79a;
    --ok-bg: #13291c;
    --ok-ink: #91d6a8;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-md: 0 2px 10px rgb(0 0 0 / 45%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #0e1014;
  --surface: #15181e;
  --surface-2: #1c2028;
  --ink: #e9ebf0;
  --ink-2: #c3c8d4;
  --muted: #98a0b0;
  --rule: #262b35;
  --rule-strong: #363d4a;
  --accent: #8aaaff;
  --accent-ink: #0e1014;
  --accent-soft: #1b2438;
  --danger: #ff8a86;
  --warn-bg: #2c2413;
  --warn-ink: #f0d79a;
  --ok-bg: #13291c;
  --ok-ink: #91d6a8;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
  --shadow-md: 0 2px 10px rgb(0 0 0 / 45%), 0 12px 32px rgb(0 0 0 / 35%);
}

/* --------------------------------------------------------------- reset */

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

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

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

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

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------ masthead */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(8px);
}

.masthead-inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand-tagline {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 34rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-2);
  text-decoration: none;
}

.nav-link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-link.is-active {
  color: var(--ink);
  background: var(--accent-soft);
  font-weight: 600;
}

.theme-toggle {
  margin-left: 0.35rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--rule-strong);
  color: var(--ink);
}

.theme-icon::before {
  content: "◐";
  font-size: 0.95rem;
  line-height: 1;
}

/* --------------------------------------------------------------- shell */

.shell {
  max-width: 74rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 62rem) {
  .shell {
    grid-template-columns: minmax(0, 1fr) 16rem;
  }
}

.column {
  min-width: 0;
  max-width: var(--measure);
}

/* --------------------------------------------------------------- items */

.item {
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--rule);
}

.item:last-of-type {
  border-bottom: 0;
}

.item-full {
  border-bottom: 0;
  margin-bottom: 1rem;
}

.item-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.item-full .item-title {
  font-size: 2.1rem;
}

.item-title a {
  color: var(--ink);
  text-decoration: none;
}

.item-title a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.outbound {
  display: inline-block;
  margin-left: 0.3em;
  font-size: 0.7em;
  color: var(--muted);
  vertical-align: super;
}

.item-subtitle {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-2);
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.item-meta a {
  color: var(--muted);
}

.item-meta a:hover {
  color: var(--accent);
}

.dot {
  opacity: 0.5;
}

.seq {
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: -0.02em;
}

.item-excerpt {
  margin: 0 0 0.85rem;
  color: var(--ink-2);
}

/* ------------------------------------------------------------- byline */

.byline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: hsl(var(--avatar-hue, 220) 55% 92%);
  color: hsl(var(--avatar-hue, 220) 60% 28%);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex: none;
}

.avatar-sm {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.65rem;
}

.avatar-lg {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 0.9rem;
}

.avatar-xl {
  width: 3.6rem;
  height: 3.6rem;
  font-size: 1.15rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar {
    background: hsl(var(--avatar-hue, 220) 35% 24%);
    color: hsl(var(--avatar-hue, 220) 70% 82%);
  }
}

:root[data-theme="dark"] .avatar {
  background: hsl(var(--avatar-hue, 220) 35% 24%);
  color: hsl(var(--avatar-hue, 220) 70% 82%);
}

.tag-ai,
.tag-author {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 1px;
}

.tag-ai-lg {
  font-size: 0.68rem;
  vertical-align: 6px;
}

/* --------------------------------------------------------------- prose */

.prose {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--ink);
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-top: 2em;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 1.12rem;
  margin-top: 1.7em;
}

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.1rem 0 0.1rem 1.1rem;
  border-left: 3px solid var(--rule-strong);
  color: var(--ink-2);
  font-style: italic;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.87em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.prose pre {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: 1em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
}

.prose img {
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------- disclosure */

.disclosure {
  margin-top: 2rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.86rem;
  color: var(--ink-2);
}

.disclosure-panel {
  margin: 1.75rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.disclosure-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.disclosure-panel p {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}

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

/* --------------------------------------------------------------- chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
}

.chip {
  display: inline-block;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  background: hsl(var(--chip-hue, 220) 70% 95%);
  color: hsl(var(--chip-hue, 220) 55% 27%);
  border: 1px solid hsl(var(--chip-hue, 220) 55% 86%);
}

.chip:hover {
  background: hsl(var(--chip-hue, 220) 70% 90%);
}

.chip-plain {
  --chip-hue: 220;
}

.chip-count {
  font-size: 0.68rem;
  color: var(--muted);
  margin-left: -0.2rem;
  margin-right: 0.2rem;
  font-variant-numeric: tabular-nums;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip {
    background: hsl(var(--chip-hue, 220) 40% 18%);
    color: hsl(var(--chip-hue, 220) 75% 78%);
    border-color: hsl(var(--chip-hue, 220) 35% 28%);
  }

  :root:not([data-theme="light"]) .chip:hover {
    background: hsl(var(--chip-hue, 220) 40% 24%);
  }
}

:root[data-theme="dark"] .chip {
  background: hsl(var(--chip-hue, 220) 40% 18%);
  color: hsl(var(--chip-hue, 220) 75% 78%);
  border-color: hsl(var(--chip-hue, 220) 35% 28%);
}

:root[data-theme="dark"] .chip:hover {
  background: hsl(var(--chip-hue, 220) 40% 24%);
}

/* ---------------------------------------------------------- navigation */

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.post-nav-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
}

.post-nav-next {
  text-align: right;
}

.post-nav-dir {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.post-nav-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.35;
}

.post-nav-link:hover .post-nav-title {
  color: var(--accent);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

.pager-status {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------- sidebar */

.rail {
  min-width: 0;
  font-size: 0.88rem;
}

@media (min-width: 62rem) {
  .rail {
    position: sticky;
    top: 6rem;
    align-self: start;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
}

.rail-block {
  margin-bottom: 1.75rem;
}

.rail-title {
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.rail-contributor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink-2);
}

.rail-contributor:hover {
  color: var(--accent);
}

.rail-months li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.rail-months a {
  color: var(--ink-2);
  text-decoration: none;
}

.rail-months a:hover {
  color: var(--accent);
}

.rail-count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
}

.rail-note,
.rail-more {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.page-head {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.contributor-head {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.page-title {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.3rem;
  font-weight: 600;
}

.page-subtitle {
  margin: 0;
  color: var(--ink-2);
}

.page-meta,
.contributor-beat,
.contributor-pronouns {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: hsl(var(--chip-hue, 220) 55% 40%);
}

.group-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.25rem 0 1rem;
}

.group-note {
  margin: -0.5rem 0 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: 34rem;
}

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

.contributor-card-link {
  display: flex;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 120ms ease, transform 120ms ease;
}

.contributor-card-link:hover {
  border-color: var(--rule-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.contributor-card-body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.contributor-card-name {
  font-weight: 600;
}

.contributor-card-role,
.contributor-card-beat,
.contributor-card-count {
  font-size: 0.8rem;
  color: var(--muted);
}

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

.topic-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  border-left: 3px solid hsl(var(--chip-hue, 220) 60% 55%);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
}

.topic-card:hover {
  border-color: var(--rule-strong);
  border-left-color: hsl(var(--chip-hue, 220) 60% 45%);
}

.topic-card-label {
  font-weight: 600;
}

.topic-card-count,
.topic-card-blurb {
  font-size: 0.8rem;
  color: var(--muted);
}

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

.archive-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.archive-count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.empty {
  color: var(--muted);
  padding: 2rem 0;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-form input {
  flex: 1;
}

/* ------------------------------------------------------------ comments */

.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.comments-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
}

.comments-empty {
  color: var(--muted);
}

.comment-list,
.comment-replies {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 1.25rem;
}

.comment-replies {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
}

.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.comment-author-name {
  font-weight: 600;
}

.comment-permalink {
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
  margin-left: auto;
}

.comment-body {
  color: var(--ink-2);
}

.comment-body > * + * {
  margin-top: 0.7rem;
}

.comment-body p {
  margin: 0;
}

.comment-body code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-2);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.comment-body blockquote {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--rule-strong);
  color: var(--muted);
}

.comment-author > .comment-head .comment-author-name {
  color: var(--accent);
}

.comment-actions {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
}

.comment-actions a {
  color: var(--muted);
}

/* ---------------------------------------------------------------- form */

.comment-form {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.comment-form-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.comment-form-note,
.comment-form-context {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.field {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.3rem;
}

.field-row {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}

.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

.req {
  color: var(--danger);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

.field-actions {
  margin: 1.1rem 0 0;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

.button-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--rule-strong);
}

.button-ghost:hover {
  background: var(--surface-2);
  filter: none;
}

.button-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
}

.button-danger {
  background: var(--danger);
  color: #fff;
}

/* The honeypot. Kept out of the accessibility tree and off-screen rather
   than display:none, since some bots skip hidden inputs. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-errors {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem 0.7rem 2rem;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.88rem;
}

.notice {
  margin: 0 0 1.25rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.notice-info {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.notice-error {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

/* -------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  margin-top: 3rem;
}

.footer-inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
}

.footer-links a {
  color: var(--muted);
}

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

/* ---------------------------------------------------------------- misc */

.badge {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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