.app-shell, .info-shell { min-height: 100svh; display: flex; flex-direction: column; }
.info-shell > main { flex: 1; }
.site-footer { position: relative; flex-shrink: 0; margin-top: auto; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--edge); background: var(--page); color: var(--muted); }
.site-footer-inner { width: min(1250px, calc(100% - 56px)); margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.site-footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
.site-footer-brand img { display: block; flex: none; border-radius: 9px; }
.site-copyright { font-size: 12px; white-space: nowrap; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; margin-left: auto; font-size: 13px; font-weight: 600; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.info-shell .app-header { width: min(1200px, calc(100% - 64px)); min-height: 92px; margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.info-shell .app-header .brand { margin-right: auto; font-size: 20px; font-weight: 900; line-height: .94; letter-spacing: -.06em; }
.info-shell .app-header .brand img { width: 42px; height: 42px; border-radius: 12px; }
.info-shell .app-header .brand strong { color: var(--accent); }
.info-shell .theme-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--edge); border-radius: 999px; background: var(--surface); }
.info-shell .theme-switch button { min-height: 37px; min-width: 67px; padding: 4px 10px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.info-shell .theme-switch button[aria-pressed='true'] { color: var(--button-ink); background: var(--cta-start); }
@media (max-width: 700px) {
  .site-footer-inner { width: calc(100% - 32px); flex-wrap: wrap; justify-content: space-between; gap: 10px 12px; }
  .site-footer { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .site-footer nav { flex-basis: 100%; justify-content: space-between; gap: 8px; margin-left: 0; }
  .site-footer-brand { font-size: 11px; }
  .site-footer-brand img { width: 26px; height: 26px; }
  .site-copyright { font-size: 11px; }
  .info-shell .app-header { width: calc(100% - 32px); flex-wrap: wrap; gap: 10px; padding-block: 16px; }
  .info-shell .app-header .brand { font-size: 17px; }
  .info-shell .theme-switch button { min-width: 47px; min-height: 34px; font-size: 11px; padding-inline: 6px; }
  .info-shell .app-header .language select { font-size: 12px; padding-left: 6px; }
}

/* A quiet anniversary detail, secondary to the wordmark in every palette. */
.app-header .brand .brand-since { display: inline-block; align-self: center; padding: 3px 6px; margin-left: -4px; border: 1px solid var(--edge); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 500; line-height: 1; letter-spacing: .01em; white-space: nowrap; transform: rotate(0deg) translate(-9px, -15px); }
@media (max-width: 420px) {
  .app-header { gap: 12px; }
  .app-header .brand { position: relative; gap: 8px; }
  .app-header .brand .brand-since { position: absolute; left: 44px; top: calc(100% + 3px); font-size: 9px; padding: 2px 4px; margin-left: 0; }
}

/* Keep the orange artwork consistent; tune wordmark contrast to the active theme. */
:root { --brand-accent: #a54510; }
:root[data-theme='pastel'] { --brand-accent: #88400f; }
:root[data-theme='dark'] { --brand-accent: #ffb35e; }
.app-header .brand strong, .info-shell .app-header .brand strong { color: var(--brand-accent); }
.app-header .brand img, .site-footer-brand img { object-fit: cover; background: #061d55; }
