/*
 * treyhope.dev Neobrutalism theme.
 * Design source: "treyhope.dev Screens" Claude Design canvas (PW-65).
 */

:root {
  --ink: #111111;
  --paper: #f7f7f2;
  --white: #ffffff;
  --yellow: #ffd23f;
  --pink: #ff7ab6;
  --blue: #7ab0ff;
  --green: #5ce1a6;
  --orange: #ff9f43;
  --purple: #b9a5ff;

  --border: 3px solid var(--ink);
  --radius: 10px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --press: transform 0.12s ease, box-shadow 0.12s ease;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--ink);
}

:focus-visible {
  /* Ink reads on every light and colored band; dark areas switch to yellow below. */
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.bg-ink :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--yellow);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-head > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr));
}

/* Keeps the column count fixed by the container width, so a short row
   (e.g. a filtered list) leaves empty tracks instead of stretching cards. */
.grid.is-fixed {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 280px)), 1fr));
}

.band {
  border-top: var(--border);
  border-bottom: var(--border);
}

.bg-yellow { background: var(--yellow); }
.bg-pink { background: var(--pink); }
.bg-blue { background: var(--blue); }
.bg-green { background: var(--green); }
.bg-orange { background: var(--orange); }
.bg-purple { background: var(--purple); }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); color: var(--paper); }

/* ---------- Type ---------- */

.display,
.h1,
.h2,
.h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
}

.h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1; }
.h2 { font-size: clamp(32px, 4.5vw, 44px); }
.h3 { font-size: 22px; line-height: 1.15; }

.lead {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
}

.body-lg {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.date-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

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

.site-header {
  background: var(--paper);
  border-bottom: var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: var(--press);
}

.nav-chip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-chip.is-active {
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-chip.is-active[data-page='about'] { background: var(--blue); }
.nav-chip.is-active[data-page='projects'] { background: var(--pink); }
.nav-chip.is-active[data-page='music'] { background: var(--green); }
.nav-chip.is-active[data-page='blog'] { background: var(--purple); }

/* ---------- Project filters ---------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--press);
}

.filter-pill:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.filter-pill:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.filter-pill[aria-pressed='true'] {
  background: var(--pink);
  box-shadow: 3px 3px 0 var(--ink);
}

.filter-empty {
  padding: 32px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 18px;
}

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

.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: var(--border);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 32px;
}

.site-footer a {
  color: var(--ink);
}

.footer-title {
  color: var(--yellow);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--paper);
  border: 3px solid var(--paper);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: var(--press);
}

.social-chip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--pink);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 2px solid #3a3a3a;
  font-family: var(--font-mono);
  font-size: 13px;
}

.footer-meta a {
  color: var(--paper);
}

/* Footer text links that are buttons (Cookie settings). */
.link-button {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Consent banner (PW-70) ---------- */

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.consent-banner[hidden] {
  display: none;
}

.consent-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.consent-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.consent-copy a {
  font-weight: 700;
}

.consent-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.consent-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Room to scroll the last of the page (and the Walk Down controls) above the banner. */
body.has-consent-banner {
  padding-bottom: 160px;
}

/* ---------- Page band (title strip) ---------- */

.page-band {
  border-bottom: var(--border);
}

.page-band .wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 64px;
  padding-bottom: 64px;
}

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

.nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  background: var(--yellow);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: var(--press);
}

.nb-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.nb-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.nb-btn[disabled],
.nb-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.nb-btn.is-white { background: var(--white); }
.nb-btn.is-green { background: var(--green); }
.nb-btn.is-pink { background: var(--pink); }
.nb-btn.is-blue { background: var(--blue); }
.nb-btn.is-small { min-height: 44px; padding: 0 16px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.nb-btn.is-full { width: 100%; }

.bg-ink .nb-btn {
  border-color: var(--paper);
  box-shadow: 4px 4px 0 var(--pink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
}

/* ---------- Cards ---------- */

.nb-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
}

a.nb-card,
button.nb-card,
a.nb-tile {
  transition: var(--press);
}

a.nb-card:hover,
button.nb-card:hover,
a.nb-tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

a.nb-card:active,
button.nb-card:active,
a.nb-tile:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}

button.nb-card {
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nb-card-media {
  display: block;
  width: 100%;
  object-fit: cover;
  border-bottom: var(--border);
  background: var(--paper);
}

.nb-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  flex-grow: 1;
}

.nb-card-body p {
  margin: 0;
}

.nb-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 180px;
  padding: 24px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.nb-tile-title {
  font-family: var(--font-display);
  font-size: 28px;
}

/* ---------- Tags ---------- */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
}

a.tag {
  min-height: 36px;
  padding: 0 12px;
}

a.tag:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.tag.is-yellow { background: var(--yellow); }
.tag.is-blue { background: var(--blue); }
.tag.is-green { background: var(--green); }
.tag.is-orange { background: var(--orange); }
.tag.is-pink { background: var(--pink); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 16px;
  font-weight: 700;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

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

.home-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 56px;
}

.home-hero-copy {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill {
  align-self: flex-start;
  padding: 6px 12px;
  border: var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.home-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -1px;
}

.home-title mark {
  display: inline-block;
  padding: 0 12px;
  background: var(--yellow);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.photo-stack {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

.photo-stack > div {
  position: relative;
  width: 300px;
  max-width: 100%;
}

.photo-stack .photo-back {
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px) rotate(3deg);
  background: var(--pink);
  border: var(--border);
  border-radius: var(--radius);
}

.photo-stack img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: var(--border);
  border-radius: var(--radius);
  transform: rotate(-2deg);
  background: var(--white);
}

.window {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
}

.window-bar i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--paper);
}

.window-body {
  aspect-ratio: 16 / 9;
}

.window-body > * {
  width: 100%;
  height: 100%;
}

/* ---------- About ---------- */

.about-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.about-intro .copy {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.contact-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: var(--border);
  border-radius: 50%;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  font-size: 17px;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.split > * {
  flex: 1 1 340px;
  min-width: 0;
}

.quiz-frame {
  min-height: 420px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.job-card {
  gap: 14px;
  padding: 24px;
}

.job-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.job-head img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
}

.job-card ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.job-card .tag-row {
  margin-top: auto;
}

.embed-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.embed-card iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ---------- Projects ---------- */

.project-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.project-detail > * {
  flex: 1 1 380px;
  min-width: 0;
}

.offset-photo {
  position: relative;
}

.offset-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
}

.offset-photo img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--border);
  border-radius: var(--radius);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Music ---------- */

.short-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}

.short-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 12;
  border: 0;
  border-bottom: var(--border);
}

.short-card p {
  margin: 0;
  padding: 16px;
  font-size: 15px;
  line-height: 1.55;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 17, 17, 0.6);
}

.modal-backdrop .scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
}

.modal-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.modal-head img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: var(--border);
  border-radius: 8px;
}

/* ---------- Blog ---------- */

.post-card .nb-card-media {
  aspect-ratio: 16 / 9;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}

.page-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: var(--press);
}

.page-btn:hover:not([disabled]) {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.page-btn.is-current {
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}

.page-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.map-frame {
  overflow: hidden;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

.progress-track {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 10px;
  background: var(--white);
  border-bottom: var(--border);
}

.progress-fill {
  height: 100%;
  background: var(--pink);
}

.post-header .wrap-narrow {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 48px;
  padding-bottom: 56px;
}

.post-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
}

.author {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.author img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: var(--border);
  border-radius: 50%;
}

/* Markdown content rendered by jaspr_content */
.prose {
  padding-top: 48px;
  padding-bottom: 64px;
  font-size: 18px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.prose > * + * {
  margin-top: 22px;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0;
}

.prose h1 { font-size: 34px; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 26px; }
.prose h4 { font-size: 21px; }

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 0;
}

.prose a {
  font-weight: 700;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
}

.prose img {
  display: block;
  height: auto;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prose figure {
  margin-left: 0;
  margin-right: 0;
}

.prose figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.prose hr {
  height: 3px;
  border: 0;
  background: var(--ink);
}

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 16px 20px;
  background: var(--white);
  border: var(--border);
  border-left-width: 10px;
  border-radius: var(--radius);
}

.prose :not(pre) > code {
  padding: 2px 6px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.prose pre {
  padding: 18px;
  overflow-x: auto;
  background: var(--ink) !important;
  color: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--blue);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
}

.prose pre code {
  font-family: var(--font-mono);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  padding: 8px 12px;
  border: 2px solid var(--ink);
  text-align: left;
}

.post-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 64px;
}

.related-card {
  gap: 8px;
}

.related-card .nb-card-media {
  aspect-ratio: 16 / 9;
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
}

.not-found .big {
  padding: 8px 32px;
  background: var(--pink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-3deg);
  font-family: var(--font-display);
  font-size: clamp(96px, 20vw, 200px);
  line-height: 0.9;
}

/* ---------- Responsive ---------- */

.hide-phone {
  display: block;
}

.show-phone {
  display: none;
}

@media (max-width: 767px) {
  .consent-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }

  /* Stacked, Accept on top. */
  .consent-actions {
    flex-direction: column-reverse;
  }

  .consent-actions .nb-btn {
    width: 100%;
    justify-content: center;
  }

  body.has-consent-banner {
    padding-bottom: 300px;
  }

  .hide-phone {
    display: none !important;
  }

  .show-phone {
    display: block;
  }

  .section {
    padding: 48px 0;
  }

  .page-band .wrap {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  /* Side gutters only: .wrap is often combined with .section, whose
     vertical padding must survive on phones. */
  .wrap,
  .wrap-narrow {
    padding-left: 16px;
    padding-right: 16px;
  }
}

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

  .nb-btn:hover,
  .nb-btn:active,
  .nav-chip:hover,
  .social-chip:hover,
  a.nb-card:hover,
  a.nb-card:active,
  button.nb-card:hover,
  button.nb-card:active,
  a.nb-tile:hover,
  a.nb-tile:active,
  a.tag:hover,
  .page-btn:hover:not([disabled]) {
    transform: none;
  }
}
