/* SMCON26 brand tokens */
:root {
  --forest: #0A3323;
  --forest-deep: #072419;
  --volt: #A8E62B;
  --mint: #E4F5D6;
  --white: #ffffff;
  --mint-70: rgba(228, 245, 214, .72);
  --display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --body: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --gutter: 1.75rem;
  --space: 4.5rem; /* the main rhythm: generous gaps between each block */
}

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

html { background: var(--forest-deep); }

/* ---------- Mobile first (base) ---------- */
body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--volt); }

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space);
  padding: calc(var(--gutter) + env(safe-area-inset-top, 0px)) var(--gutter) 11rem;
  max-width: 40rem;
}

.logo { display: block; width: 8.5rem; height: auto; }

.presents {
  margin-top: 1.25rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mint-70);
}

.badge {
  display: inline-block;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  background: var(--volt);
  color: var(--forest);
  font-family: var(--display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1 {
  margin-top: 2rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.accent { color: var(--volt); }

.when .date {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
}
.when .place,
.when .time { margin-top: .4rem; color: var(--mint-70); }

.countdown { display: flex; gap: 1.75rem; }
.num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.label {
  display: block;
  margin-top: .3rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--mint-70);
}
.status {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--volt);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .85rem;
  color: var(--mint-70);
}
.tag { font-family: var(--display); font-weight: 700; color: var(--volt); letter-spacing: .08em; }

/* Ribbon: sits at the very bottom of the page and bleeds off the right edge */
.ribbon {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78vw;
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.ribbon path {
  fill: none;
  stroke: var(--volt);
  stroke-width: 74;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: sweep 1.6s cubic-bezier(.6, .05, .2, 1) .2s forwards;
}
@keyframes sweep { to { stroke-dashoffset: 0; } }

:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 3rem; --space: 5.5rem; }
  .logo { width: 10rem; }
  .presents { font-size: .75rem; }
  h1 { font-size: 3.25rem; }
  .when .date { font-size: 1.5rem; }
  .num { font-size: 2.6rem; }
  .countdown { gap: 2.5rem; }
  .ribbon { width: 50vw; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 5rem; --space: 6rem; }
  .page { max-width: 56rem; padding-bottom: 12rem; }
  h1 { font-size: 4.5rem; }
  .ribbon { width: min(38vw, 560px); }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon path { animation: none; stroke-dashoffset: 0; }
}
