/*
 * srworks.co
 *
 * Plain CSS, no framework, no web font, no build step. The structure follows
 * the sister product sites (a sticky translucent bar, a hero, sections of
 * cards, long-form prose pages); the palette and copy are SR WORKS' own.
 * Light and dark follow the reader's system, from one block of tokens.
 */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',
               system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  --color-canvas: #ffffff;
  --color-surface: #f6f7f8;
  --color-border: #e3e6e9;
  --color-ink: #1f2428;
  --color-body: #4a5058;
  --color-muted: #6a717b;
  --color-accent: #1f2428;
  --color-link: #1f2428;

  --width-text: 48rem;
  --width-wide: 68rem;
  --header-height: 3.5rem;

  --radius-control: 0.5rem;
  --radius-card: 1rem;
  --radius-pill: 999px;

  --color-bar: rgb(255 255 255 / 0.8);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-canvas: #0c0d0f;
    --color-surface: #141618;
    --color-border: #26292d;
    --color-ink: #f2f3f5;
    --color-body: #b9bec6;
    --color-muted: #8e939b;
    --color-accent: #f2f3f5;
    --color-link: #f2f3f5;
    --color-bar: rgb(12 13 15 / 0.75);
  }
}

html {
  color-scheme: light dark;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-canvas);
  color: var(--color-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:where(a, button, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Zero specificity, so every component with its own treatment still wins. */
:where(a) {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

p, li, dd { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

.shell {
  width: 100%;
  max-width: var(--width-text);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.shell-wide { max-width: var(--width-wide); }
@media (min-width: 640px) {
  .shell { padding-inline: 2rem; }
}

main { flex: 1; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-edge linear both;
    animation-timeline: scroll();
    animation-range: 0 3rem;
  }
}
@keyframes header-edge {
  from { border-bottom-color: transparent; }
  to { border-bottom-color: var(--color-border); }
}

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

.wordmark {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--color-ink);
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.header-nav a {
  font-size: 0.9375rem;
  color: var(--color-body);
  text-decoration: none;
}
.header-nav a:hover { color: var(--color-ink); }
.header-nav a[aria-current="page"] { color: var(--color-ink); }

.header-nav .header-cta {
  padding: 0.375rem 0.9375rem;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-canvas);
  font-size: 0.875rem;
  font-weight: 500;
}
.header-nav .header-cta:hover { color: var(--color-canvas); opacity: 0.88; }

@media (max-width: 639px) {
  .header-nav { gap: 0.75rem; }
  .header-nav a:not(.header-cta) { display: none; }
}

/* The phone menu: a button beside Contact, and a flat sheet under the bar. The browser's
   own popover opens and closes it (button, Escape, a tap outside) and tells assistive
   tech whether it is open. No script is needed beyond closing on a same-page link. */
.menu-button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-right: -0.375rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
}
.menu-button:hover { background: var(--color-surface); }
.menu-button svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.menu-button .menu-close { display: none; }
.site-header:has(.site-menu:popover-open) .menu-open { display: none; }
.site-header:has(.site-menu:popover-open) .menu-close { display: block; }
.site-menu {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  width: auto;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-canvas);
  color: var(--color-ink);
}
.site-menu:popover-open { display: grid; }
.site-menu a {
  padding: 0.875rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
}
.site-menu a + a { border-top: 1px solid var(--color-border); }
.site-menu a[aria-current="page"] { color: var(--color-muted); }
.site-menu::backdrop { inset: 3.5rem 0 0; background: rgb(0 0 0 / 0.2); }
@media (min-width: 640px) { .site-menu, .menu-button { display: none !important; } }

/* ------------------------------------------------------------------ hero */

.hero {
  text-align: center;
  padding-block: 4.5rem 5rem;
}
@media (min-width: 640px) {
  .hero { padding-block: 7rem 8rem; }
}

.hero-icon {
  display: block;
  margin: 0 auto 1.75rem;
  border-radius: 22.4%;
  box-shadow: 0 0 0 1px var(--color-border);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.25rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-ink);
}

.hero-lead {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* -------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6875rem 1.375rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: var(--color-canvas);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 150ms ease, transform 150ms ease;
}
.button:hover { opacity: 0.88; color: var(--color-canvas); }
.button:active { transform: scale(0.985); }
.button-quiet {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}
.button-quiet:hover { color: var(--color-ink); background: var(--color-surface); opacity: 1; }

/* -------------------------------------------------------------- sections */

.section {
  border-top: 1px solid var(--color-border);
  padding-block: 4.5rem;
}
@media (min-width: 640px) {
  .section { padding-block: 6.5rem; }
}
.section-alt { background: var(--color-surface); }

.section-head {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-muted);
}

.section-title {
  margin: 0.375rem 0 0;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-ink);
}

.section-lead {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  color: var(--color-body);
}

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

.cards {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}
.section-alt .card { background: var(--color-canvas); }
a.card:hover { border-color: var(--color-muted); }
a.card:active { transform: scale(0.995); }

.card-kind {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-muted);
}
.card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}
.card p {
  margin: 0.625rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-body);
}
.card-link {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink);
}

/* One plugin per row on the plugins page. */

/* ------------------------------------------------------- long-form pages */

.page-main { padding-block: 3rem 4rem; }
@media (min-width: 640px) {
  .page-main { padding-block: 4.5rem 5.5rem; }
}

.page-title {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}

.lead {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  color: var(--color-body);
}

.updated {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.prose { color: var(--color-body); margin-top: 2rem; }
.prose h2 {
  margin: 3rem 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}
.prose h3 {
  margin: 1.75rem 0 0.375rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-ink);
}
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.375rem; }
.prose strong { color: var(--color-ink); font-weight: 600; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--color-ink);
  background: var(--color-surface);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  overflow-wrap: anywhere;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 1.125rem 1.5rem;
}
.contact-list li + li { border-top: 1px solid var(--color-border); }
.contact-list strong { color: var(--color-ink); font-weight: 600; }

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

.form { margin-top: 2.25rem; display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.375rem; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--color-ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-canvas);
  color: var(--color-ink);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
/* A field no person sees; a bot fills it. */
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
button.button { cursor: pointer; font: inherit; font-size: 0.9375rem; font-weight: 500; }
button.button:disabled { opacity: 0.5; cursor: default; }
.form-status { margin: 0; font-size: 0.9375rem; color: var(--color-body); }
.form-status.is-ok { color: #1a7f4b; }
.form-status.is-error { color: #c0392b; }
@media (prefers-color-scheme: dark) {
  .form-status.is-ok { color: #4ade80; }
  .form-status.is-error { color: #ff7b6e; }
}

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

.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 2rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.footer-inner p { margin: 0; }
.footer-inner a {
  color: inherit;
  text-decoration: none;
}
.footer-inner a:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

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

/* ======================================================================
   Flat pass, 2026-10-02. dnsbutton.dev and dnsleak.dev use no shadows, no
   glows and no motion on cards, three radii (0.5, 0.75, 1rem), hairline
   borders and surface-tinted blocks. This site follows the same rules, so
   nothing below casts a shadow, and a hover only changes a border or opacity.
   ====================================================================== */

:root {
  --spark-yellow: #ffd60a;
  --spark-pink: #ff5c8a;
  --spark-mint: #22c07a;
  --spark-blue: #3b5bfd;
  --spark-purple: #8b3df0;
  --spark-green: #1f9d6b;
  --radius-block: 0.75rem;
}

/* A tone colors a tile and a check; nothing else. */
.tone-yellow { --tone: var(--spark-yellow); --tone-ink: #1f2428; }
.tone-pink   { --tone: var(--spark-pink);   --tone-ink: #1f2428; }
.tone-mint   { --tone: var(--spark-mint);   --tone-ink: #1f2428; }
.tone-blue   { --tone: var(--spark-blue);   --tone-ink: #ffffff; }
.tone-purple { --tone: var(--spark-purple); --tone-ink: #ffffff; }
.tone-green  { --tone: var(--spark-green);  --tone-ink: #ffffff; }

.tile {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-block);
  background: var(--tone);
  color: var(--tone-ink);
}
.tile .icon { width: 1.4rem; height: 1.4rem; }

/* ---------------------------------------------------------------- hero */

.hero-icon {
  display: block;
  width: clamp(7rem, 5.5rem + 4vw, 9rem);
  height: auto;
  margin: 0 auto 2rem;
  border-radius: 22.4%;
  box-shadow: 0 0 0 1px var(--color-border);
}
/* 52px on a phone, so the headline clearly outranks a section heading (28px there); it
   still sets as "Software / with a spark." down to 320px. Reaches 4rem at about 1000px. */
.hero-title { font-size: clamp(3.25rem, 2.75rem + 2vw, 4rem); }
.hero-lead { font-size: 1.25rem; max-width: 34rem; }
.mark {
  background: linear-gradient(transparent 62%, rgb(255 214 10 / 0.6) 62%);
  border-radius: 0.15em;
  padding-inline: 0.05em;
}
@media (prefers-color-scheme: dark) {
  .mark { background: linear-gradient(transparent 62%, rgb(255 214 10 / 0.35) 62%); }
}

/* -------------------------------------------------------------- sections */

.eyebrow { background: none; border: 0; padding: 0; font-size: 0.875rem; color: var(--color-muted); }
.section-head { max-width: 36rem; }

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

.card {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color 150ms ease;
}
.section-alt .card { background: var(--color-canvas); }
a.card:hover { border-color: var(--color-muted); }
.card h3 { margin-top: 0.1rem; font-size: 1.3125rem; }
.card-tagline { margin: 0.35rem 0 0; font-size: 1rem; font-weight: 600; color: var(--color-ink); }
.card-kind { margin-top: 1rem; }
.card-link { font-size: 0.9375rem; }

.app-icon {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 22.4%;
  box-shadow: 0 0 0 1px var(--color-border);
  object-fit: cover;
}
.card h3.card-logo { margin: 0; line-height: 0; }
.card h3.card-logo img { height: 1.75rem; width: auto; display: block; }

.principles { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 2rem; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.principles li { border-top: 1px solid var(--color-border); padding-top: 1.25rem; }
.principles h3 { margin: 0 0 0.35rem; font-size: 1.1875rem; letter-spacing: -0.015em; color: var(--color-ink); }
.principles p { margin: 0; color: var(--color-body); max-width: 22rem; }

/* ----------------------------------------------------------------- band */

.band { background: #1f2428; color: #cfd3d8; }
.band-inner { text-align: center; padding-block: 4.5rem; }
.band-title {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.band-text { margin: 0.9rem auto 1.75rem; max-width: 30rem; font-size: 1.0625rem; }
.button-light { background: #fff; color: #1f2428; border-color: #fff; }
.button-light:hover { color: #1f2428; opacity: 0.88; }

/* ----------------------------------------------------- plugins showcase */

.page-head { max-width: 40rem; }
.plugins { display: grid; gap: 1rem; margin-top: 3rem; }
.plugin {
  display: grid;
  gap: 2rem;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}
@media (min-width: 960px) {
  .plugin { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; padding: 2.5rem; align-items: center; }
  .plugin:nth-of-type(even) .shot { order: -1; }
}
.plugin-logo-h { margin: 0; line-height: 0; }
.plugin-logo { height: 2.25rem; width: auto; display: block; }
.plugin-kind { margin: 1.25rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--color-muted); }
.plugin-tagline {
  margin: 0.4rem 0 0;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--color-ink);
}
.plugin-lead { margin: 0.8rem 0 0; }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.65rem; }
.feature-list li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.65rem; font-size: 0.9688rem; line-height: 1.45; }
.feature-list .check { width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; color: var(--tone); stroke-width: 2.4; }
.chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  font-size: 0.8125rem;
  color: var(--color-body);
}
.plugin-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-block);
  border: 1px solid var(--color-border);
}
.fineprint { margin: 2rem 0 0; max-width: 46rem; font-size: 0.875rem; color: var(--color-muted); }

/* ---------------------------------------------------------------- buttons */

.button { padding: 0.7rem 1.4rem; font-weight: 500; box-shadow: none; }
.button-quiet { box-shadow: none; }

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

.form-card {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}
@media (min-width: 640px) { .form-card { padding: 2.25rem; } }
.form { margin: 0; gap: 1.35rem; }
.field label { font-size: 0.9375rem; }
.field input, .field select, .field textarea {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--color-border);
  background: var(--color-canvas);
  transition: border-color 150ms ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
  box-shadow: none;
}
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--color-muted);
  border-bottom: 1.5px solid var(--color-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field-error { margin: 0; font-size: 0.875rem; line-height: 1.4; color: #c0392b; }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field.has-error input:focus-visible, .field.has-error textarea:focus-visible { outline-color: #c0392b; box-shadow: none; }
@media (prefers-color-scheme: dark) {
  .field-error { color: #ff8a7d; }
  .field.has-error input, .field.has-error textarea { border-color: #ff8a7d; }
  .field.has-error input:focus-visible, .field.has-error textarea:focus-visible { outline-color: #ff8a7d; }
}
.form-actions { gap: 1rem; margin-top: 0.25rem; }
.button.is-busy { pointer-events: none; }
.button.is-busy .button-label::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.6em;
  vertical-align: -0.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .button.is-busy .button-label::after { animation-duration: 2s; } }

.form-done { text-align: center; padding: 1rem 0; outline: none; }
.form-done[hidden], .form[hidden] { display: none; }
.form-done .tile { width: 3.25rem; height: 3.25rem; }
.form-done .tile .icon { width: 1.6rem; height: 1.6rem; stroke-width: 2.4; }
.form-done h2 { margin: 1.1rem 0 0; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--color-ink); }
.form-done p { margin: 0.75rem auto 0; max-width: 26rem; }
.form-done .form-done-small { font-size: 0.875rem; color: var(--color-muted); }
.form-done .button { margin-top: 1.5rem; }

.mini-title { margin: 3rem 0 0; font-size: 1.0625rem; font-weight: 600; color: var(--color-ink); }
.contact-list { margin-top: 1rem; }

/* Focus must show on the dark band too. */
.band :focus-visible { outline-color: #fff; }


/* Press feedback only for people who want motion. */
@media (prefers-reduced-motion: reduce) {
  .button:active, a.card:active { transform: none; }
}

/* Phone rhythm, the same in all four SR WORKS sites (srworks.co, dnsbutton.dev,
   pocketbell.dev, dnsleak.dev), 2026-10-02. The desktop spacing was simply scaled down
   for phones and left 144px of nothing between sections. On a phone: 48px above and
   below a section, a hero that starts closer to the bar, and 32px between a heading and
   what it introduces. 640px and up is unchanged. */
@media (max-width: 639px) {
  .hero { padding-block: 2.5rem 3rem; }
  .section { padding-block: 3rem; }
  .band-inner { padding-block: 3rem; }
  .page-main { padding-block: 2rem 3rem; }
  .cards, .principles, .plugins { margin-top: 2rem; }
  .hero-icon { margin-bottom: 1.5rem; }
  .hero-actions { margin-top: 1.75rem; }
  .hero-lead { font-size: 1.125rem; }
  .form-card { margin-top: 2rem; }
  .mini-title { margin-top: 2rem; }
  .prose h2 { margin-top: 2rem; }
  .plugin { gap: 1.5rem; }
}

/* Footer on a phone, the same in all four SR WORKS sites (2026-10-02). The links used to
   wrap as a ragged flow, leaving orphans ("Privacy / Terms") and uneven rows. On a
   phone they sit in an even grid under the legal line, with a normal line height. */
@media (max-width: 639px) {
  .site-footer { padding-block: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.125rem 1rem; }
  .footer-languages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.125rem 1rem; flex-basis: auto; }
  .footer-links a, .footer-languages a { padding-block: 0.3rem; line-height: 1.35; }
}

.prose address { font-style: normal; margin-top: 1.5rem; line-height: 1.7; }

/* The hero mark leans, and swings upright-ish when you hover it. Restored 2026-10-02: the flat
   pass had removed it with the shadows, but a tilt isn't a shadow and the owner missed it.
   Still flat: no shadow, only a 1px ring. Motion is off for anyone who asks for less. */
.hero-icon {
  transform: rotate(-4deg);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-icon:hover { transform: rotate(3deg) scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .hero-icon, .hero-icon:hover { transform: none; transition: none; }
}

/* Glows and small motion are back (2026-10-02). What stays out is LIFT: no card rises off the
   page, no card or button casts a shadow, nothing moves up on hover. The glows are soft color
   behind the hero and the dark banner; the only card motion is the arrow nudging forward. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0;
  z-index: -1;
  background:
    radial-gradient(34rem 20rem at 12% 8%, rgb(255 214 10 / 0.26), transparent 62%),
    radial-gradient(30rem 20rem at 88% 4%, rgb(255 92 138 / 0.18), transparent 62%),
    radial-gradient(36rem 22rem at 55% 100%, rgb(34 192 122 / 0.18), transparent 62%);
}
.band { position: relative; overflow: hidden; isolation: isolate; }
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(26rem 14rem at 10% 0%, rgb(255 214 10 / 0.18), transparent 65%),
    radial-gradient(26rem 14rem at 95% 100%, rgb(255 92 138 / 0.2), transparent 65%);
}
.card-link span { display: inline-block; transition: transform 150ms ease; }
a.card:hover .card-link span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .card-link span, a.card:hover .card-link span { transition: none; transform: none; }
}
