/* Shared by every page: identical header geometry at every viewport width. */
html { scrollbar-gutter: stable; }
.page { width: min(calc(100% - 160px), 1280px); margin-inline: auto; }
.masthead {
  position: sticky; top: 0; z-index: 10;
  height: 96px; padding: 10px 0 0;
  display: flex; align-items: center; justify-content: flex-end;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.sections {
  display: flex; align-items: center; justify-content: flex-end;
  flex-wrap: nowrap; gap: 35px; padding: 0; margin: 0; list-style: none;
  font: 400 16px/20px 'Satoshi', Arial, sans-serif;
}
.sections .hello { position: static; width: auto; }
.sections .hello a {
  position: static; width: auto; height: 34px; padding: 0 9px;
  display: flex; align-items: center; justify-content: center;
  font: italic 400 18px/18px Georgia, 'Times New Roman', serif;
}
.sections .hello a span { position: relative; top: -1px; }
@media (min-width: 1000px) and (max-width: 1199px) {
  .page { width: calc(100% - 112px); }
}
@media (min-width: 600px) and (max-width: 999px) {
  .page { width: calc(100% - 96px); }
  .masthead { height: 88px; padding-top: 8px; }
}
@media (max-width: 599px) {
  .page { width: calc(100% - 48px); }
  .masthead { height: 68px; padding: 6px 0 0; }
  .sections { gap: clamp(12px, 5vw, 20px); font-size: 14px; line-height: 20px; }
  .sections .hello a { height: 31px; padding-inline: 8px; font-size: 16px; line-height: 16px; }
}
@media (max-width: 359px) { .page { width: calc(100% - 40px); } }
@media print { .page { width: 100%; } .masthead { display: none; } }

.sections a { position: relative; }
.sections a[aria-current="page"] { text-decoration-line: none; }
.sections .ring { position: absolute; left: -16px; top: -9px; width: calc(100% + 32px); height: calc(100% + 18px); overflow: visible; pointer-events: none; transform: rotate(-2deg); }
.sections .ring path { fill: none; stroke: var(--pencil); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: ring .45s ease-out both; }
@keyframes ring { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sections .ring path { animation: none; } }
@media (max-width: 599px) { .sections .ring { left: -10px; top: -7px; width: calc(100% + 20px); height: calc(100% + 14px); } }
@media (max-width: 359px) { .sections .ring { left: -6px; width: calc(100% + 12px); } }

/* Large screens: the whole design one notch larger, approved October 2026. */
@media screen and (min-width: 1600px) {
  body { zoom: 1.0625; }
}
