/*
 * Snowy Mountain Software -- site stylesheet.
 *
 * One hand-written file, no build step. Colors come from the maze logo:
 * the night-sky navy of its background, the glacier cyan of its glow, and
 * the snow white of the peak. Light mode is the default in :root; dark mode
 * redefines the same tokens under prefers-color-scheme.
 *
 * Sections:
 *   1. Tokens
 *   2. Base
 *   3. Layout helpers
 *   4. Buttons and links
 *   5. Header
 *   6. Hero
 *   7. Sections and cards
 *   8. Catalog
 *   9. Referral band and steps
 *  10. Forms
 *  11. Tables (downloads)
 *  12. Prose (legal pages)
 *  13. Footer
 *  14. Page-specific: 404, vCard, breadcrumbs, notices
 *  15. Motion and print
 */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Fixed brand colors, identical in both modes. */
  --brand-night: #05152c;
  --brand-navy: #042f56;
  --brand-glow: #00d4ff;
  --brand-ice: #bfefff;
  --brand-snow: #ffffff;

  /* Light mode. */
  --color-bg: #f3f6f9;
  --color-surface: #ffffff;
  --color-surface-2: #e8eef4;
  --color-text: #0f1b2a;
  --color-text-muted: #4a5b6d;
  --color-border: #d2dce6;
  --color-accent: #006f91;
  --color-accent-hover: #005a76;
  --color-on-accent: #ffffff;
  --color-link: #006383;
  --color-focus: #0098c2;
  --color-tag-bg: #e0f3fa;
  --color-tag-text: #00506a;
  --color-error: #b3261e;
  --color-error-bg: #fdecea;
  --color-success: #1d6b40;
  --color-success-bg: #e6f4ec;
  --color-grid-line: rgba(4, 47, 86, 0.07);

  /* Always-dark surfaces: hero, referral band, footer. */
  --dark-text: #eaf6ff;
  --dark-muted: #a9c3d8;
  --dark-border: rgba(191, 239, 255, 0.18);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(5, 21, 44, 0.06), 0 6px 20px rgba(5, 21, 44, 0.06);
  --max-width: 1120px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #061423;
    --color-surface: #0b1f35;
    --color-surface-2: #0f2944;
    --color-text: #e6eef6;
    --color-text-muted: #a3b5c7;
    --color-border: #1d3a58;
    --color-accent: #4fd6ff;
    --color-accent-hover: #8ae5ff;
    --color-on-accent: #04182b;
    --color-link: #6fdcff;
    --color-focus: #4fd6ff;
    --color-tag-bg: #0f3350;
    --color-tag-text: #a6e9ff;
    --color-error: #ff8a80;
    --color-error-bg: #3a1513;
    --color-success: #7fd8a4;
    --color-success-bg: #10301f;
    --color-grid-line: rgba(191, 239, 255, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  }
}

/* 2. Base ------------------------------------------------------------------ */

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

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

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

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-link);
  text-underline-offset: 0.15em;
}

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

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

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

.skip-to-content {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand-glow);
  color: var(--brand-night);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-to-content:focus {
  top: 12px;
}

/* 3. Layout helpers -------------------------------------------------------- */

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

.narrow {
  max-width: 760px;
}

@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

/* 4. Buttons and links ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.65em 1.25em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.btn-sm {
  min-height: 36px;
  padding: 0.4em 0.9em;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* Buttons and labels on the always-dark surfaces. */
.on-dark .eyebrow {
  color: var(--brand-glow);
}

.on-dark .btn-primary {
  background: var(--brand-glow);
  color: var(--brand-night);
}

.on-dark .btn-primary:hover {
  background: var(--brand-ice);
  color: var(--brand-night);
}

.on-dark .btn-outline {
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.on-dark .btn-outline:hover {
  border-color: var(--brand-glow);
  color: var(--brand-snow);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 700;
  text-decoration: none;
}

.arrow-link svg {
  width: 1em;
  height: 1em;
  transition: transform 0.15s ease;
}

.arrow-link:hover svg {
  transform: translateX(3px);
}

/* 5. Header ---------------------------------------------------------------- */

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

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--color-border);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand-name small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--color-text-muted);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--color-surface-2);
}

.site-nav .nav-contact {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.site-nav .nav-contact:hover,
.site-nav .nav-contact[aria-current="page"] {
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
}

@media (max-width: 560px) {
  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    justify-content: space-between;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: 0.88rem;
  }
}

/* 6. Hero ------------------------------------------------------------------ */

/* The gradient matches the logo artwork's own background, so the logo sits
   in the hero with no visible edge. */
.hero {
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-night) 100%);
  color: var(--dark-text);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 8px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 48px;
}

.hero-logo {
  justify-self: center;
  width: min(300px, 80vw);
  /* Soften only the outer edge, so the artwork's own background melts into
     the hero without touching the lettering, which runs nearly edge to edge. */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 6%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 6%, #000 96%, transparent 100%);
  mask-composite: intersect;
}

.hero-eyebrow {
  margin-bottom: 0.75em;
  color: var(--brand-glow);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--brand-snow);
}

.hero-lede {
  max-width: 36em;
  color: var(--dark-muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5em;
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .hero-logo {
    order: 2;
    width: min(440px, 100%);
  }
}

/* Inner-page hero: same night sky, no logo. */
.page-hero {
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-night) 100%);
  color: var(--dark-text);
  padding: 48px 0 44px;
}

.page-hero h1 {
  color: var(--brand-snow);
  max-width: 20em;
}

.page-hero p {
  max-width: 40em;
  color: var(--dark-muted);
  font-size: 1.12rem;
  margin-bottom: 0;
}

.page-hero .hero-actions {
  margin-top: 1.25em;
}

/* 7. Sections and cards ---------------------------------------------------- */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* A faint grid -- graph paper is the thing we are best known for. */
.section-grid {
  background-color: var(--color-bg);
  background-image:
    linear-gradient(var(--color-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}

.section-head {
  max-width: 44em;
  margin-bottom: 32px;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.08rem;
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 0.6em;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.4em;
}

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

.grid-2,
.grid-3 {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.stack-top {
  margin-top: 24px;
}

.card-heading {
  font-size: 1.3rem;
}

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

.about-logo img {
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.5em;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.45em;
  width: 0.7em;
  height: 0.4em;
  border-left: 2.5px solid var(--color-accent);
  border-bottom: 2.5px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* 8. Catalog --------------------------------------------------------------- */

.catalog-group + .catalog-group {
  margin-top: 48px;
}

.catalog-group > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.catalog-group > h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.product-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-card h4 {
  margin-bottom: 0.35em;
  font-size: 1.3rem;
}

.product-card p {
  color: var(--color-text-muted);
}

.product-facts {
  margin: 0 0 1.1em;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.product-facts li {
  padding: 4px 0;
  border-top: 1px dashed var(--color-border);
}

.product-link {
  margin-top: auto;
}

.value-line {
  font-weight: 600;
  color: var(--color-text);
}

.sample-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.sample-sheet {
  margin: 0;
}

.sample-sheet a {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}

.sample-sheet a:hover {
  border-color: var(--color-accent);
}

.sample-sheet img {
  display: block;
  width: 100%;
  height: auto;
}

.sample-sheet figcaption {
  margin-top: 8px;
  font-weight: 600;
}

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

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq-answer {
  padding: 0 0 16px;
  color: var(--color-text-muted);
}

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

.glossary {
  margin: 0;
}

.glossary dt {
  margin-top: 18px;
  font-weight: 700;
}

.glossary dt:first-child {
  margin-top: 0;
}

.glossary dd {
  margin: 4px 0 0;
  color: var(--color-text-muted);
}

.sample-note {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Whole-card links: the card's one .card-link stretches over the card. */
.linked-card {
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.linked-card .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
}

.linked-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.linked-card:hover .card-link svg {
  transform: translateX(3px);
}

.linked-card .card-link:focus-visible {
  outline: none;
}

.linked-card:has(.card-link:focus-visible) {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .linked-card,
  .linked-card:hover {
    transform: none;
  }
}

/* 9. Referral band and steps ----------------------------------------------- */

.band {
  background: var(--brand-night);
  color: var(--dark-text);
  padding: 48px 0;
}

.band h2 {
  color: var(--brand-snow);
}

.band p {
  color: var(--dark-muted);
  max-width: 40em;
}

.band-inner {
  display: grid;
  gap: 20px;
  align-items: center;
}

@media (min-width: 860px) {
  .band-inner {
    grid-template-columns: 1fr auto;
    gap: 40px;
  }

  .band p {
    margin-bottom: 0;
  }
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 56px 20px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 800;
  font-size: 0.9rem;
}

.steps h3 {
  font-size: 1.08rem;
}

.steps p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* 10. Forms ---------------------------------------------------------------- */

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .form-card { padding: 32px; }
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.97rem;
}

.form-required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-optional {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.88rem;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-focus) 30%, transparent);
}

.form-help {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.form-group--error .form-input,
.form-group--error .form-select,
.form-group--error .form-textarea {
  border-color: var(--color-error);
}

.form-field-errors {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.form-field-error {
  margin: 0;
  color: var(--color-error);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-message,
.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-error-bg);
  color: var(--color-error);
  font-weight: 600;
}

.form-message--success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

/* Fields that belong to one kind of message, shown for that topic only by
   the topic select itself, with no script. Every rule that hides something
   needs :has(), so a browser without it simply shows every field. */
.contact-form:has(.topic-select) .topic-custom,
.contact-form:has(.topic-select) .topic-question {
  display: none;
}

.contact-form:has(.topic-select option.is-custom:checked) .topic-custom,
.contact-form:has(.topic-select option.is-support:checked) .topic-question {
  display: block;
}

.note-support,
.note-custom {
  display: none;
}

.contact-form:has(.topic-select option.is-support:checked) .note-default,
.contact-form:has(.topic-select option.is-custom:checked) .note-default {
  display: none;
}

.contact-form:has(.topic-select option.is-support:checked) .note-support,
.contact-form:has(.topic-select option.is-custom:checked) .note-custom {
  display: inline;
}

.spam-guard {
  display: none;
}

.contact-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }
}

.contact-aside h2 {
  font-size: 1.3rem;
}

.contact-aside dl {
  margin: 0;
}

.contact-aside dt {
  font-weight: 700;
  margin-top: 1em;
}

.contact-aside dd {
  margin: 0.2em 0 0;
  color: var(--color-text-muted);
}

/* 11. Tables (downloads) --------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.data-table thead th {
  background: var(--color-surface-2);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .data-table .col-file,
  .data-table .col-size {
    display: none;
  }
}

/* 12. Prose (legal pages) -------------------------------------------------- */

.prose {
  max-width: 46em;
}

.prose h2 {
  margin-top: 1.8em;
  font-size: 1.4rem;
}

.prose h3 {
  margin-top: 1.4em;
  font-size: 1.1rem;
}

.prose ul {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose .meta {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* 13. Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--brand-night);
  color: var(--dark-muted);
  padding: 48px 0 0;
  font-size: 0.97rem;
}

.site-footer a {
  color: var(--dark-text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-glow);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex: none;
}

.footer-brand p {
  margin: 0;
}

.footer-brand strong {
  display: block;
  color: var(--brand-snow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-heading {
  margin-bottom: 10px;
  color: var(--brand-snow);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-bottom {
  margin-top: 40px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--dark-border);
  font-size: 0.88rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-bottom p {
  margin: 0;
}

.app-version {
  font-family: var(--font-mono);
  opacity: 0.7;
}

/* 14. Page-specific -------------------------------------------------------- */

.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--dark-muted);
}

.breadcrumbs a {
  color: var(--brand-ice);
}

.breadcrumbs [aria-current="page"] {
  color: var(--dark-muted);
}

.notice {
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.notice p {
  margin: 0;
  max-width: 60em;
}

.work-list {
  display: grid;
  gap: 20px;
}

@media (min-width: 860px) {
  .work-list { grid-template-columns: repeat(3, 1fr); }
}

.work-item h3 {
  margin-bottom: 0.2em;
}

.work-item .work-kind {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.8em;
}

.not-found {
  text-align: center;
  padding: 72px 0;
}

.not-found img {
  margin: 0 auto 24px;
  width: 120px;
  border-radius: 20px;
}

.not-found ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.vcard-cards {
  display: grid;
  gap: 20px;
  margin: 8px 0 32px;
}

@media (min-width: 860px) {
  .vcard-cards { grid-template-columns: 1fr 1fr; }
}

.vcard-cards figure {
  margin: 0;
}

.vcard-cards img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.vcard-cards figcaption {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.vcard-details {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 720px) {
  .vcard-details { grid-template-columns: 1fr auto; }
}

.vcard-details dl {
  margin: 0;
}

.vcard-details dt {
  margin-top: 0.8em;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vcard-details dd {
  margin: 0.1em 0 0;
  font-size: 1.15rem;
}

.vcard-qr {
  text-align: center;
}

.vcard-qr img {
  margin: 0 auto 6px;
  border-radius: var(--radius-sm);
}

.vcard-qr p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* 15. Motion and print ----------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .band,
  .skip-to-content {
    display: none;
  }

  .hero,
  .page-hero {
    background: none;
    color: #000;
  }

  .hero h1,
  .page-hero h1 {
    color: #000;
  }
}
