:root {
  --paper:    #f3ede1;
  --ink:      #1b2233;
  --body:     #3a4258;
  --gold:     #a87a2c;
  --gold-lit: #c9a253;
  --line:     rgba(27, 34, 51, .20);
  --line-au:  rgba(168, 122, 44, .42);
  --serif:    'Fraunces', Georgia, 'Times New Roman', serif;
  --read:     'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 440px at 50% -6%, #fbf6ea 0%, rgba(251,246,234,0) 70%),
    radial-gradient(1100px 760px at 50% 116%, rgba(168,122,44,.07) 0%, rgba(168,122,44,0) 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--read);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* diploma frame + paper grain ------------------------------------------- */
.frame {
  position: fixed; inset: 16px;
  border: 1px solid var(--line);
  pointer-events: none; z-index: 3;
}
.frame::after {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid var(--line-au);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* layout ---------------------------------------------------------------- */
.wrap {
  position: relative; z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  padding: 72px 32px 60px;
  text-align: center;
}

.eyebrow {
  font-family: var(--serif);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .30em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 30px;
}

/* seal ------------------------------------------------------------------ */
.seal { width: 168px; height: 168px; margin: 0 auto 30px; }
.sealsvg { width: 100%; height: 100%; overflow: visible; }
.ring-outer { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .55; }
.ring-inner { fill: none; stroke: var(--gold); stroke-width: .8; opacity: .5; }
.arc-text {
  font-family: var(--serif);
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em;
  fill: var(--ink);
}
.dot { fill: var(--ink); }
.dot.gold { fill: var(--gold); }
.gold-glow { fill: var(--gold-lit); opacity: .28; animation: pulse 3.4s ease-in-out infinite; }
.monogram {
  font-family: var(--serif);
  font-size: 58px; font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
}
.seal-rotate {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: spin 60s linear infinite;
}

/* wordmark + ornaments -------------------------------------------------- */
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 4.7rem);
  letter-spacing: -.018em;
  line-height: .98;
  margin: 0 0 4px;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px auto 18px; }
.rule i { display: block; width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-au)); }
.rule i:last-of-type { background: linear-gradient(90deg, var(--line-au), transparent); }
.rule span { color: var(--gold); font-size: .58rem; }

.tagline {
  font-family: var(--read);
  font-style: italic; font-weight: 400;
  font-size: clamp(1.12rem, 3vw, 1.42rem);
  color: var(--gold);
  margin: 0 0 28px;
}

.lede {
  font-size: 1.14rem;
  color: var(--body);
  max-width: 47ch;
  margin: 0 auto 32px;
}
.lede em { font-style: italic; color: var(--ink); }

/* form ------------------------------------------------------------------ */
.signup {
  display: flex; gap: 10px;
  max-width: 452px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.signup input[type=email] {
  flex: 1 1 230px; min-width: 0;
  padding: 15px 17px;
  border: 1px solid #cdbfa6;
  border-radius: 3px;
  background: #fdfaf3;
  font-family: var(--read);
  font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.signup input[type=email]::placeholder { color: #a99c82; }
.signup input[type=email]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168,122,44,.16);
}
.signup button {
  padding: 15px 26px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: #f3ede1;
  font-family: var(--serif);
  font-size: .96rem; font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .06s ease, background .2s ease;
}
.signup button:hover { background: #2a3349; }
.signup button:active { transform: translateY(1px); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.formmsg { min-height: 1.2em; margin: 14px 0 0; font-size: .92rem; font-family: var(--read); }
.formmsg.success { color: #2f6f4f; font-weight: 500; }
.formmsg.error { color: #a83232; }

.note { max-width: 452px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 3px; font-size: .96rem; }
.note.success { background: #ecf3ed; color: #2f6f4f; border: 1px solid #c8e0cd; }

.fineprint { font-size: .82rem; color: #8e8268; margin: 11px 0 0; }

/* numbered points ------------------------------------------------------- */
.points {
  list-style: none; padding: 0;
  margin: 52px auto 0; max-width: 460px;
  text-align: left; display: grid; gap: 18px;
}
.points li { display: flex; gap: 14px; align-items: baseline; }
.points .num {
  font-family: var(--serif); font-weight: 600;
  font-size: .82rem; color: var(--gold);
  letter-spacing: .04em; flex: 0 0 auto;
  padding-top: 2px;
}
.points .ptxt { font-size: .99rem; color: var(--body); }
.points strong { color: var(--ink); font-weight: 600; }

.foot { margin-top: 56px; display: grid; justify-items: center; gap: 16px; }
.foot i { display: block; width: 40px; height: 1px; background: var(--line-au); }
.foot span { font-family: var(--serif); font-size: .8rem; color: #9a8d72; letter-spacing: .04em; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* motion ---------------------------------------------------------------- */
.reveal { opacity: 0; animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .18; } 50% { opacity: .42; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; animation: none; }
  .seal-rotate, .gold-glow { animation: none; }
}

@media (max-width: 480px) {
  .frame { inset: 10px; }
  .wrap { padding: 52px 22px 46px; }
  .signup button { flex: 1 1 100%; }
  .seal { width: 150px; height: 150px; }
}
