* { box-sizing: border-box; }
:root { color-scheme: dark; --navy: #101d3a; --navy2: #17294c; --gold: #f5ca70; --cream: #fff8e9; --muted: #b5bfd2; }
html { min-height: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--cream);
  font-family: "DM Sans", sans-serif;
  background: radial-gradient(ellipse at 50% 42%, #22365d 0%, #152546 40%, #0b142a 100%);
}
.ambient { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; opacity: .18; }
.ambient-one { width: 360px; height: 360px; top: -180px; right: -80px; background: #d6a54e; }
.ambient-two { width: 420px; height: 420px; bottom: -240px; left: -170px; background: #536da5; }
.page { width: min(100% - 36px, 1040px); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; border-bottom: 1px solid #ffffff18; }
.brand { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: #f7e9c8; }
.brand-mark { color: var(--gold); margin-right: 8px; font-size: 17px; vertical-align: -1px; }
.class-tag { border: 1px solid #f5ca7055; border-radius: 30px; padding: 8px 13px; color: var(--gold); font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.hero { text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; padding: 34px 0 28px; }
.eyebrow { color: #d8c79f; font-size: 10px; letter-spacing: .19em; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.eyebrow-line { height: 1px; width: 25px; background: #d7b86688; }
.cap { width: 116px; height: 96px; position: relative; margin: 14px 0 0; }
.cap-board {
  position: absolute; z-index: 2; width: 100%; height: 42px; top: 12px; left: 0;
  background: linear-gradient(145deg, #ffe8a2, #f5ca70 55%, #dca74c);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: drop-shadow(0 7px 8px #0005);
}
.cap-base {
  position: absolute; width: 62%; height: 30px; left: 19%; top: 43px;
  background: linear-gradient(90deg, #c28c36, #f0bd5c, #d59c3e);
  clip-path: polygon(0 0, 50% 42%, 100% 0, 100% 65%, 50% 100%, 0 65%);
}
.cap-tassel {
  position: absolute; z-index: 3; top: 32px; right: -1px; width: 3px; height: 37px;
  background: #f5ca70; border-radius: 3px; transform: rotate(-2deg);
}
.cap-tassel:after {
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: #f5ca70; bottom: -5px; left: -3px;
}
.spark { position: absolute; color: var(--gold); }
.spark-a { top: 6px; left: -7px; font-size: 16px; }
.spark-b { top: 25px; right: -14px; font-size: 23px; }
.spark-c { bottom: 3px; left: 9px; font-size: 11px; }
.kicker { color: var(--gold); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin: 2px 0 12px; font-weight: 700; }
h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(42px, 6.7vw, 72px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; margin: 0; }
h1 em { color: var(--gold); font-weight: 500; }
.subtitle { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 19px 0 29px; }
.countdown { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 19px); width: 100%; }
.time-card { width: clamp(68px, 14vw, 122px); min-height: 105px; padding: 18px 5px 14px; border: 1px solid #e5c77c3a; border-radius: 12px; background: linear-gradient(145deg, #ffffff0b, #ffffff03); box-shadow: 0 12px 30px #00000012; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.time-value { font-size: clamp(30px, 5vw, 49px); line-height: 1; letter-spacing: -.045em; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff9e9; }
.time-label { margin-top: 12px; color: #b7c1d4; font-size: 9px; letter-spacing: .17em; font-weight: 700; }
.colon { color: var(--gold); font-size: 27px; margin-top: -14px; opacity: .8; }
.status { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 11px; color: #d5dfec; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #8ed6a8; box-shadow: 0 0 12px #8ed6a888; }
.event-date { display: flex; align-items: center; gap: 12px; text-align: left; margin-top: 24px; padding: 12px 21px; border-radius: 10px; background: #ffffff08; border: 1px solid #ffffff15; }
.calendar-icon { color: var(--gold); font-size: 24px; }
.event-date strong, .event-date small { display: block; }
.event-date strong { font-size: 12px; letter-spacing: .03em; }
.event-date small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.rule { display: flex; align-items: center; gap: 10px; width: min(250px, 60%); color: var(--gold); margin: 23px 0 12px; }
.rule:before, .rule:after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #e6c16b66); }
.rule:after { background: linear-gradient(90deg, #e6c16b66, transparent); }
.closing-quote { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 20px; color: #f0dba9; margin: 0; }
.closing-small { font-size: 9px; letter-spacing: .2em; color: #8f9cb4; margin: 9px 0 0; }
footer { display: flex; justify-content: center; align-items: center; gap: 14px; border-top: 1px solid #ffffff18; padding: 19px 0 22px; font-size: 9px; color: #8190aa; letter-spacing: .15em; }
.footer-star { color: var(--gold); }
@media (max-width: 520px) {
  .page { width: min(100% - 26px, 1040px); }
  .topbar { padding: 20px 0; }
  .brand { font-size: 9px; letter-spacing: .13em; }
  .class-tag { font-size: 8px; padding: 7px 9px; }
  .hero { padding-top: 28px; }
  .eyebrow { font-size: 8px; letter-spacing: .11em; gap: 7px; }
  .eyebrow-line { width: 15px; }
  .cap { width: 95px; height: 80px; }
  .subtitle { font-size: 12px; margin: 15px 0 25px; }
  .desktop-break { display: none; }
  .time-card { min-height: 84px; border-radius: 9px; padding: 14px 2px 11px; }
  .time-label { font-size: 7px; letter-spacing: .1em; margin-top: 10px; }
  .colon { font-size: 19px; }
  .status { font-size: 10px; }
  .closing-quote { font-size: 18px; }
  footer { font-size: 8px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: no-preference) {
  .cap { animation: float 4s ease-in-out infinite; }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
}


/* Extra-small phones and short landscape screens */
@media (max-width: 360px) {
  .page { width: calc(100% - 20px); }
  .brand { font-size: 8px; letter-spacing: .08em; }
  .class-tag { font-size: 7px; padding: 6px 7px; }
  .eyebrow { font-size: 7px; gap: 5px; }
  .eyebrow-line { width: 10px; }
  h1 { font-size: clamp(37px, 11vw, 44px); }
  .countdown { gap: 5px; }
  .time-card { width: calc((100vw - 70px) / 4); min-width: 0; }
  .time-value { font-size: clamp(25px, 8vw, 30px); }
  .time-label { font-size: 6px; letter-spacing: .06em; }
  .colon { font-size: 15px; }
}
@media (max-height: 740px) and (min-width: 521px) {
  .hero { padding-top: 20px; }
  .cap { width: 92px; height: 72px; margin-top: 8px; }
  .subtitle { margin: 12px 0 18px; }
  .time-card { min-height: 88px; }
  .event-date { margin-top: 16px; }
  .rule { margin: 15px 0 9px; }
}
