/* portfolio.joehahn.dev
   Colors come only from the custom properties in themes.css. */

/* JetBrains Mono (SIL OFL), self-hosted, with real bold and italic faces. */
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-ui: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --font-prose: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --gutter: 1rem;
  --measure: 68ch;
}

@media (min-width: 800px) {
  :root { --gutter: 1.5rem; }
}

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

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-synthesis: none;
  font-size: 1rem;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

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

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

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.narrow {
  max-width: calc(var(--measure) + 2 * var(--gutter));
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

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

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

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

.button-quiet {
  background: transparent;
  color: var(--accent);
}

.button-quiet:hover {
  background: var(--bg-alt);
  border-color: var(--accent);
}

.button-small {
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: var(--border-width) solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.25rem 0;
}

.brand-prompt {
  color: var(--accent);
}

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  min-height: 24px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.header-cta {
  margin-left: auto;
}

.theme-widget {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.theme-widget[hidden] {
  display: none;
}

.theme-widget select {
  font: inherit;
  min-height: 32px;
  background: var(--bg-alt);
  color: var(--text);
  border: var(--border-width) solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
}

@media (min-width: 800px) {
  .site-nav {
    order: 0;
    width: auto;
    margin-left: 1rem;
  }
}

/* ---------- Sections ---------- */
.hero {
  padding: 3rem 0 2.5rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.kicker::before {
  content: "> ";
}

.kicker a {
  color: inherit;
}

.lede {
  font-family: var(--font-prose);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0;
  color: var(--text);
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: var(--border-width) solid var(--border);
  border-bottom: var(--border-width) solid var(--border);
}

.section-lede {
  font-family: var(--font-prose);
  color: var(--text-muted);
  max-width: var(--measure);
  margin: 0 0 1.5rem;
}

.page-header {
  padding: 1.5rem 0 2rem;
}

/* ---------- Proof strip ---------- */
.proof {
  padding-bottom: 1rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--border);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.proof-strip li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  background: var(--card-bg);
}

.proof-strip strong {
  font-size: 1.5rem;
  color: var(--accent);
}

.proof-strip span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.proof-source {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 800px) {
  .proof-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Plans ---------- */
.plans {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}

@media (min-width: 800px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--card-bg);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
}

.plan-featured {
  border: 2px solid var(--accent);
}

.plan-badge {
  align-self: flex-start;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.plan-name {
  font-size: 1.25rem;
  margin: 0;
}

.plan-price {
  margin: 0.5rem 0;
}

.plan-amount {
  font-size: 2rem;
  font-weight: 700;
}

.plan-per {
  color: var(--text-muted);
}

.plan-for {
  font-family: var(--font-prose);
  margin: 0 0 1rem;
}

.plan-includes {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.plan-includes li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
  border-top: 1px dashed var(--border);
}

.plan-includes li::before {
  content: "+";
  position: absolute;
  left: 0.2rem;
  color: var(--accent);
  font-weight: 700;
}

.plan-cta {
  margin: auto 0 0;
}

.plan-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-terms li::before {
  content: "* ";
  color: var(--accent);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  margin-bottom: 1.5rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card:hover,
.card:focus-within {
  border-color: var(--accent);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Toned-down CRT: static texture, animates only on hover or focus. */
.card-media::before,
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card-media::before {
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.card-media::after {
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0, rgba(0, 0, 0, 0.12) 1px, transparent 1px, transparent 3px);
}

.card:hover .card-media::before,
.card:focus-within .card-media::before {
  animation: crt-snow 0.5s steps(3) infinite;
}

@keyframes crt-snow {
  0% { background-position: 0 0; }
  100% { background-position: -140px 70px; }
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  flex: 1;
}

.card-body p {
  margin: 0;
  font-family: var(--font-prose);
  font-size: 0.95rem;
}

.card-title {
  margin: 0;
  font-size: 1.05rem;
}

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

.card-title a:hover {
  text-decoration: underline;
}

/* The whole card is clickable through the heading's link. */
.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card .stretched:focus-visible {
  outline: none;
}

.card:has(.stretched:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.card-body .card-org {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.82rem;
}

.card-body .card-kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-ui);
}

.card-case {
  border: 2px solid var(--accent);
}

.proof-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.25rem 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.proof-mini strong {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
}

.proof-mini span {
  color: var(--text-muted);
}

.cards-featured {
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .cards-featured {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

/* ---------- Tags ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-body .tags {
  margin-top: auto;
  padding-top: 0.5rem;
}

.tags-tools li {
  font-size: 0.85rem;
  color: var(--text);
}

/* ---------- Lanes and steps ---------- */
.lanes,
.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.lane p,
.steps p {
  margin: 0;
  font-family: var(--font-prose);
  color: var(--text-muted);
}

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 1rem;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.steps h3::before {
  content: counter(step) ". ";
  color: var(--accent);
}

.lane-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.lane-nav a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: var(--border-width) solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
}

.lane-nav a:hover {
  border-color: var(--accent);
}

.lane-section {
  padding-bottom: 1.5rem;
  scroll-margin-top: 1rem;
}

.lane-title {
  font-size: 1.25rem;
  margin-top: 1rem;
}

.availability {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
}

.contact-links a {
  display: inline-block;
  padding: 0.25rem 0;
}

/* ---------- Prose ---------- */
.prose {
  font-family: var(--font-prose);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: var(--measure);
}

.prose h2 {
  font-family: var(--font-ui);
  margin-top: 2.5rem;
}

.prose h3 {
  font-family: var(--font-ui);
  margin-top: 1.75rem;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin: 0 0 1rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose code {
  font-family: var(--font-ui);
  font-size: 0.9em;
}

.prose blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.callout {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

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

.prose .metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.prose .metrics li {
  margin: 0;
  padding: 0.9rem;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.metric-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metric-value {
  font-family: var(--font-ui);
}

.metric-before {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.metric-after {
  color: var(--accent);
  font-size: 1.2rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-weight: 700;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  background: var(--bg-alt);
}

th,
td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
}

thead th {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
}

tbody th {
  font-weight: 600;
}

/* ---------- Case study and item pages ---------- */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.25rem;
}

.case-layout {
  display: grid;
  gap: 2rem;
}

.toc {
  font-size: 0.9rem;
}

.toc-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li + li {
  margin-top: 0.35rem;
}

@media (min-width: 1000px) {
  .case-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .toc {
    position: sticky;
    top: 1rem;
    align-self: start;
  }
}

.stack {
  margin: 2.5rem 0;
}

.stack h2 {
  font-size: 1.1rem;
}

.item-layout {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .item-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.facts {
  margin: 0;
  padding: 1rem;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  font-size: 0.9rem;
}

.facts div + div {
  margin-top: 0.6rem;
}

.facts dt {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.facts dd {
  margin: 0;
}

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-link {
  display: block;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-link:hover {
  border-color: var(--accent);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
  border-top: var(--border-width) solid var(--border);
}

.pager a {
  display: flex;
  flex-direction: column;
  max-width: 45%;
  text-decoration: none;
}

.pager a[rel="next"] {
  margin-left: auto;
  text-align: right;
}

.pager span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.creds {
  margin: 0;
  padding-left: 1.25rem;
  font-family: var(--font-prose);
}

/* ---------- Contact ---------- */
.band-contact {
  padding: 3rem 0;
  background: var(--bg-alt);
  border-top: var(--border-width) solid var(--border);
}

.band-contact p {
  font-family: var(--font-prose);
  max-width: var(--measure);
}

.contact-form {
  margin: 0 0 1.5rem;
}

.field {
  margin: 0 0 1.25rem;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.field-hint {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field-error {
  margin: 0 0 0.3rem;
  font-weight: 700;
  color: var(--error);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-family: var(--font-prose);
  color: var(--text);
  background: var(--card-bg);
  border: 2px solid var(--input-border);
  border-radius: 6px;
}

.has-error input,
.has-error textarea {
  border-color: var(--error);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.error-summary {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 3px solid var(--error);
  border-radius: var(--radius);
}

.error-summary h2 {
  font-size: 1.1rem;
}

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

.error-summary a {
  color: var(--error);
  font-weight: 700;
}

.form-privacy {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-prose);
}

.form-fallback {
  padding: 1rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 0 3rem;
  border-top: var(--border-width) solid var(--border);
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.footer-name {
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  max-width: 44ch;
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(96vw, 1200px);
  max-height: 94vh;
  padding: 0;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.lightbox::backdrop {
  background: var(--overlay);
}

.lb-stage {
  margin: 0;
  padding: 1rem 1rem 0;
}

.lb-img {
  max-height: 75vh;
  width: auto;
  margin: 0 auto;
}

.lb-caption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lb-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.lb-controls button {
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--bg-alt);
  border: var(--border-width) solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.lb-controls button:hover {
  border-color: var(--accent);
}

.lb-controls button[hidden] {
  display: none;
}

.lb-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 5ch;
  text-align: center;
}

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .card-media::before,
  .card-media::after {
    display: none;
  }
  .button,
  .plan-featured,
  .card-case,
  .callout {
    border: 2px solid CanvasText;
  }
  .card:has(.stretched:focus-visible) {
    outline: 3px solid Highlight;
  }
}

@media print {
  .site-header,
  .site-footer,
  .band-contact,
  .toc,
  .card-media::before,
  .card-media::after {
    display: none;
  }
  a {
    color: inherit;
  }
}
