:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --ink: #38352f;
  --muted: #766f65;
  --gold: #9b805a;
  --line: #d9cbb6;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 8%, #fffdf8 0, var(--paper) 55%, #eee7dc 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 28px 16px 18px;
}

.frame {
  width: min(100%, 760px);
  border: 1px solid var(--line);
  padding: 7px;
  background: rgba(255, 253, 248, 0.65);
  box-shadow: 0 16px 45px rgba(74, 59, 39, 0.055);
}

.frame-inner {
  border: 1px solid var(--line);
  padding: clamp(36px, 7vw, 70px) clamp(20px, 7vw, 70px) 42px;
  text-align: center;
}

.eyebrow,
.section-label,
.time-label,
.footer {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow { margin: 0; color: var(--gold); }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 24px;
  color: var(--gold);
  font-size: 0.75rem;
}

.ornament span { width: 34px; height: 1px; background: var(--line); }

h1, h2, .time-value, .date { font-family: Georgia, 'Times New Roman', serif; }

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 8vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

h1 em {
  color: var(--gold);
  font-size: 0.53em;
  font-weight: 400;
  letter-spacing: 0;
}

.intro {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 2.7vw, 1.05rem);
  line-height: 1.8;
}

.countdown-section,
.video-section { margin-top: 42px; }

.section-label { margin: 0 0 20px; color: var(--gold); line-height: 1.6; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 2vw, 16px);
}

.time-unit {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 2px 15px;
}

.time-value {
  font-size: clamp(2rem, 6vw, 3.7rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.time-label {
  color: var(--muted);
  font-size: clamp(0.48rem, 1.5vw, 0.65rem);
  letter-spacing: 0.12em;
}

.video-section h2 {
  margin: -7px 0 22px;
  font-size: clamp(1.55rem, 4.5vw, 2.3rem);
  font-weight: 400;
  line-height: 1.25;
}

.video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #211e1b;
  box-shadow: 0 9px 26px rgba(40, 30, 20, 0.14);
}

video { display: block; width: 100%; height: 100%; }

.video-error { color: var(--muted); line-height: 1.5; }

.video-error p { margin: 0 0 12px; }

button {
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 10px 17px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

button:hover, button:focus-visible { background: #efe6d8; }

.date {
  margin: 40px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.footer { margin: 0; color: var(--gold); font-size: 0.58rem; }

@media (max-width: 420px) {
  .frame-inner { padding-inline: 15px; }
  .intro br { display: none; }
  .time-unit { padding-block: 11px; }
}
