@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffefa;
  --ink: #1c2430;
  --muted: #67717a;
  --line: rgba(28, 36, 48, .14);
  --gold: #a97c1f;
  --accent: #7a1f2b;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); }
body { color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }

.page-shell {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2.7rem) clamp(1.4rem, 5vw, 6rem) 1.6rem;
  background-color: var(--paper);
  animation: reveal 900ms cubic-bezier(.2,.8,.2,1) both;
}

.site-header,
.site-footer__base {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark { display: flex; align-items: baseline; gap: .45rem; text-decoration: none; font-size: clamp(.95rem, 1.6vw, 1.2rem); line-height: 1; }
.wordmark span { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; color: var(--muted); }
.wordmark strong { font-family: "Cinzel", Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: .03em; }
.site-header p { display: flex; align-items: center; gap: .7rem; margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: .61rem; font-weight: 750; }
.site-header i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 .32rem rgba(169, 124, 31, .12); }

.hero { display: flex; flex: 1; align-items: center; justify-content: center; }
.hero__copy { width: min(56rem, 100%); margin-top: -4vh; text-align: center; animation: copy-in 900ms 180ms cubic-bezier(.2,.8,.2,1) both; }
.eyebrow { margin: 0 0 1.05rem; color: var(--accent); text-transform: uppercase; letter-spacing: .2em; font-size: .67rem; font-weight: 850; }
.eyebrow::after { display: block; width: 3.2rem; height: 2px; margin: 1.05rem auto 0; background: var(--gold); content: ""; }
.brand-logo { display: block; width: min(26rem, 84vw); height: auto; margin: 0 auto 1.9rem; }
h1 { margin: 0; color: var(--ink); font-family: "Cinzel", Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 400; line-height: 1.04; letter-spacing: -.02em; }
.lede { margin: 1.4rem 0 0; color: #35383c; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 2rem); line-height: 1.25; }
.intro { margin: 1rem auto 0; max-width: 34rem; color: var(--muted); font-size: 1rem; line-height: 1.55; }

.site-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 2.5rem; color: #7d8589; }
.site-footer__base { padding-bottom: .7rem; text-transform: uppercase; letter-spacing: .13em; font-size: .58rem; font-weight: 750; }
.partner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; text-align: right; }
.partner__copy { display: grid; gap: .35rem; min-width: 22rem; text-transform: uppercase; }
.partner__copy strong { color: var(--accent); font-size: .66rem; letter-spacing: .19em; }
.partner__copy span { color: #495963; font-size: .79rem; letter-spacing: .07em; }
.partner a { display: inline-flex; opacity: .92; transition: opacity 180ms ease, transform 180ms ease; }
.partner a:hover, .partner a:focus-visible { opacity: 1; transform: translateY(-2px); }
.partner img { width: auto; height: 4.35rem; }

@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes copy-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

@media (max-width: 620px) {
  .page-shell { min-height: 100svh; }
  .site-header p { font-size: .52rem; }
  .site-header p i { display: none; }
  .hero__copy { margin: 0; }
  h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .lede { margin-top: .9rem; font-size: 1.18rem; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .site-footer__base { align-items: flex-start; flex-direction: column; }
  .partner { align-items: flex-start; flex-direction: column; gap: .5rem; text-align: left; }
  .partner__copy { min-width: 0; }
  .partner__copy span { max-width: 19rem; }
  .partner img { height: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* CMS public pages */
.site-header { flex-wrap: wrap; padding: 1rem clamp(1.4rem, 5vw, 6rem) 0; }
.brand-logo { width: 11rem; margin: 0; }
.hero-logo { display: block; width: min(20rem, 80vw); height: auto; margin: 0 auto 1.6rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.site-nav a:hover { color: var(--ink); }
.site-main { width: min(62rem, 100%); margin: 0 auto; padding: 2rem clamp(1.4rem, 5vw, 3rem) 3rem; }
.site-main .hero { display: block; text-align: center; padding: 2rem 0 1rem; }
.mission, .featured, .answers { margin: 2.2rem 0; }
.mission h2, .featured h2, .answers h2 { font-family: "Cinzel", Georgia, serif; font-weight: 600; font-size: 1.5rem; }
.featured-title { font-size: 1.25rem; }
.byline { color: var(--muted); }
.answers ul, .essay-list { line-height: 1.9; }
.content-page h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.page-body { line-height: 1.65; font-size: 1.05rem; }
.page-body h3 { font-family: "Cinzel", Georgia, serif; margin-top: 1.8rem; }
.site-footer { flex-direction: column; align-items: center; text-align: center; padding: 2rem 1.4rem 2.4rem; border-top: 1px solid var(--line); }
.footer-name { font-family: "Cinzel", Georgia, serif; letter-spacing: .04em; }
.partner { flex-direction: column; text-align: center; gap: .4rem; }
.partner img { width: 9rem; height: auto; }
.partner-label { text-transform: uppercase; letter-spacing: .16em; font-size: .61rem; font-weight: 750; }

/* Content admin */
.admin-main { width: min(56rem, 100%); }
.admin-form { display: grid; gap: .6rem; max-width: 26rem; }
.admin-form.wide { max-width: 46rem; }
.admin-form input[type="text"], .admin-form input[type="email"], .admin-form input[type="number"], .admin-form textarea { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .4rem; font: inherit; background: #fff; }
.admin-form button { padding: .6rem 1rem; border: 0; border-radius: .4rem; background: var(--ink); color: #fff; font: inherit; cursor: pointer; width: fit-content; }
.admin-form .check { display: flex; gap: .5rem; align-items: center; }
.admin-message { background: #eef7ee; border: 1px solid #bcd8bc; padding: .6rem .9rem; border-radius: .4rem; }
.admin-error { background: #fbeeee; border: 1px solid #e3bcbc; padding: .6rem .9rem; border-radius: .4rem; }
.admin-note { color: var(--muted); }
.admin-table { border-collapse: collapse; width: 100%; }
.admin-table th, .admin-table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
.admin-cards { line-height: 2; }
.logout-form { display: inline; }
.logout-form button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
