/* Shared layout chrome — unscoped replacements for Astro scoped masthead/footer/seal */

.seal {
  --seal-size: 84px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--seal-size);
  height: var(--seal-size);
  flex: none;
}

.seal__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--foil-rim);
  box-shadow: var(--shadow-seal);
  -webkit-mask: radial-gradient(circle at center, #000 64%, transparent 65%);
  mask: radial-gradient(circle at center, #000 64%, transparent 65%);
}

.seal__ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #b78325 0deg 9deg, #e9d5a7 9deg 18deg);
  -webkit-mask: radial-gradient(circle at center, transparent 60%, #000 61%, #000 72%, transparent 73%);
  mask: radial-gradient(circle at center, transparent 60%, #000 61%, #000 72%, transparent 73%);
  opacity: 0.9;
}

.seal__face {
  position: relative;
  display: grid;
  place-items: center;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: var(--foil);
  color: #6a4d12;
  box-shadow: inset 0 2px 4px #fff9, inset 0 -3px 6px #78561466;
}

.legal-page .masthead,
body:not(.legal-page) > .masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: max(var(--s-4), env(safe-area-inset-top, 0px)) var(--s-4);
}

body:not(.legal-page) > .masthead {
  border-bottom: 1px solid var(--line);
}

body:not(.legal-page) .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink);
}

body:not(.legal-page) .brand__word {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body:not(.legal-page) .brand__aux {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.footer {
  margin-top: var(--s-8);
  padding-block: var(--s-6) var(--s-7);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer__note {
  max-width: 40ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: var(--fs-small);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-4);
  justify-content: center;
  margin-block: var(--s-4);
}

.footer__links a {
  text-decoration: none;
  color: var(--soft);
  font-size: var(--fs-small);
}

.footer__links a:hover {
  color: var(--ink);
}

.footer__refund {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer__copy {
  color: var(--muted);
  font-size: var(--fs-small);
}
