/* The site header: brand on the left, stamps on the right. Shared by every page so the sizes stay the same. */

:root { --gutter: clamp(16px, 4vw, 44px); }

.top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px var(--gutter) 0;
}

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

.brand-mark { display: block; width: 34px; height: 34px; }
.brand-word { display: block; width: auto; height: 28px; }

@media (min-width: 700px) {
  .brand-mark { width: 42px; height: 42px; }
  .brand-word { height: 36px; }
}

.top-left { display: flex; align-items: center; gap: 10px; }
.back { text-decoration: none; }
.actions { display: flex; gap: 8px; }

/* Small square stamps with a hard ink shadow, pressed down when tapped. */
.pill,
.round {
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-hi);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s, color 0.15s;
}

.pill { padding: 0 14px; text-decoration: none; }
.round { width: 42px; height: 42px; }
.pill:active, .round:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }

.pill[aria-pressed="true"],
.round[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper-hi);
}

@media (max-width: 479px) {
  .pill { padding: 0 10px; }
}

/* Analytics notice (analytics.js): a small card above the page's bottom bar, shown once. */
.consent {
  position: fixed;
  left: 50%;
  bottom: calc(var(--consent-bottom, 12px) + env(safe-area-inset-bottom));
  z-index: 70;
  width: min(460px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-hi);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  transform: translateX(-50%);
}

.consent p { margin: 0; font-size: 14px; line-height: 1.5; }
.consent-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

.consent button {
  font: inherit;
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
}

.consent-yes { background: var(--vermilion); color: var(--ink); }
.consent-no { background: var(--paper-hi); color: var(--ink); }
.consent button:active { transform: translateY(3px); box-shadow: none; }
