/* The Pamela Project — shared shell: type, tokens, header, separator, footer */

@font-face {
  font-family: "General Sans";
  src: url("fonts/GeneralSans-Regular.woff2") format("woff2"),
       url("fonts/GeneralSans-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("fonts/GeneralSans-Medium.woff2") format("woff2"),
       url("fonts/GeneralSans-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("fonts/GeneralSans-Semibold.woff2") format("woff2"),
       url("fonts/GeneralSans-Semibold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("fonts/GeneralSans-Bold.woff2") format("woff2"),
       url("fonts/GeneralSans-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --cream: #FFF7E2;
  --sand: #F6E7C0;
  --gold: #FFBF00;
  --gold-soft: #FFE39A;
  --ink: #2A2214;
  --pad: clamp(20px, 5vw, 60px);
  --sans: "General Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 12px 18px; z-index: 30;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.header {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 3.4vw, 40px) var(--pad) clamp(6px, 1vw, 12px);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  text-decoration: none;
}

.lockup__star {
  width: clamp(30px, 3.6vw, 52px);
  height: auto;
  flex: none;
}

.wordmark {
  font-weight: 700;
  font-size: clamp(1.7rem, 1.15rem + 1.6vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- star separator ---------- */

.band {
  background: var(--sand);
  border-top: 1.5px solid rgba(42,34,20,0.18);
  border-bottom: 1.5px solid rgba(42,34,20,0.18);
  height: clamp(64px, 9vw, 104px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 54px);
  overflow: hidden;
}
.band img {
  width: clamp(34px, 5vw, 58px);
  height: auto;
  flex: none;
  filter: brightness(0) saturate(100%) invert(78%) sepia(66%) saturate(1450%) hue-rotate(354deg) brightness(103%) contrast(101%);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1.5px solid rgba(42,34,20,0.18);
  padding: 26px var(--pad) 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  justify-items: center;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (min-width: 760px) {
  .footer { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .footer__left { justify-self: start; text-align: left; }
  .footer__right { justify-self: end; text-align: right; }
}
.footer__right { display: flex; flex-wrap: wrap; gap: 10px clamp(14px, 2vw, 26px); justify-content: center; }
.footer a { text-decoration: none; opacity: 0.75; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer__left, .footer__mid { opacity: 0.75; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
