:root {
  color-scheme: dark;
  --ash: #e8dcc2;
  --bone: #fff5dc;
  --muted: #b9a987;
  --panel: rgba(24, 18, 13, 0.86);
  --line: rgba(227, 180, 93, 0.28);
  --gold: #dca64a;
  --iron: #6b7d7f;
  --verdigris: #4f9a8c;
  --ember: #f3a43b;
  --blood: #81372f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  color: var(--ash);
  background:
    radial-gradient(circle at 50% 18%, rgba(236, 178, 78, 0.22), transparent 28rem),
    radial-gradient(circle at 18% 88%, rgba(79, 154, 140, 0.22), transparent 24rem),
    linear-gradient(125deg, rgba(8, 12, 14, 0.84), rgba(31, 19, 12, 0.9)),
    repeating-linear-gradient(90deg, #15100c 0 18px, #19130d 18px 36px);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.28;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(238, 190, 98, 0.35) 49% 51%, transparent 52%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(244, 207, 132, 0.08) 39px 40px);
  mix-blend-mode: screen;
}

body::after {
  background:
    radial-gradient(circle at center, transparent 0 44%, rgba(0, 0, 0, 0.44) 78%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 100% 4px;
}

.world-ash,
.ormen {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.world-ash {
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  opacity: 0.48;
  filter: drop-shadow(0 0 34px rgba(220, 166, 74, 0.2));
}

.world-ash svg {
  width: 82vw;
  max-width: 780px;
  height: 94vh;
  max-height: 900px;
}

.tree-glow {
  fill: rgba(79, 154, 140, 0.08);
  stroke: rgba(220, 166, 74, 0.28);
  stroke-width: 5;
}

.tree-trunk,
.tree-branch,
.tree-root {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tree-trunk {
  stroke: rgba(235, 194, 111, 0.62);
  stroke-width: 15;
}

.tree-branch,
.tree-root {
  stroke: rgba(79, 154, 140, 0.48);
  stroke-width: 9;
}

.ormen {
  opacity: 0.78;
}

.ormen svg {
  width: 100%;
  height: 100%;
}

.serpent-shadow,
.serpent-body,
.serpent-scales {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.serpent-shadow {
  stroke: rgba(0, 0, 0, 0.62);
  stroke-width: 62;
  transform: translateY(18px);
}

.serpent-body {
  stroke: rgba(87, 122, 112, 0.74);
  stroke-width: 42;
}

.serpent-scales {
  stroke: rgba(244, 207, 132, 0.42);
  stroke-width: 7;
}

.serpent-head {
  fill: rgba(87, 122, 112, 0.84);
  stroke: rgba(244, 207, 132, 0.5);
  stroke-width: 5;
}

.serpent-eye {
  fill: var(--ember);
  filter: drop-shadow(0 0 12px rgba(243, 164, 59, 0.9));
}

.clock-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.clock-panel {
  position: relative;
  width: min(100%, 820px);
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 24% 18%, rgba(220, 166, 74, 0.16), transparent 20rem),
    var(--panel);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.58),
    inset 0 0 0 8px rgba(0, 0, 0, 0.22),
    inset 0 0 38px rgba(220, 166, 74, 0.08);
  backdrop-filter: blur(12px) saturate(1.15);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .clock-panel {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 28%),
      rgba(24, 18, 13, 0.96);
  }
}

@supports not (position: fixed) {
  .world-ash,
  .ormen {
    position: absolute;
    height: 100vh;
  }
}

.clock-panel::before,
.clock-panel::after {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(220, 166, 74, 0.34);
  border-radius: 4px;
}

.clock-panel::after {
  inset: 22px;
  border-color: rgba(79, 154, 140, 0.22);
  background:
    linear-gradient(90deg, rgba(220, 166, 74, 0.18) 0 2px, transparent 2px) left top / 22px 100% no-repeat,
    linear-gradient(90deg, transparent calc(100% - 2px), rgba(220, 166, 74, 0.18) calc(100% - 2px)) right top / 22px 100% no-repeat;
}

.panel-runes {
  position: relative;
  z-index: 1;
  margin: 0 0 1.15rem;
  color: rgba(220, 166, 74, 0.72);
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.legend,
.attribution {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.eyebrow {
  color: var(--verdigris);
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0.45rem 0 1.5rem;
  font-size: clamp(2.2rem, 8vw, 5.2rem);
  line-height: 0.95;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.52), 0 0 24px rgba(220, 166, 74, 0.16);
}

.legend {
  margin: -0.8rem 0 1.45rem;
  color: rgba(232, 220, 194, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.clock {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 1.08em;
  color: var(--ember);
  font-size: clamp(3rem, 14vw, 8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 18px rgba(243, 164, 59, 0.28), 0 6px 0 rgba(0, 0, 0, 0.36);
}

.quote {
  position: relative;
  z-index: 1;
  max-width: 16em;
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.35rem, 4vw, 2.4rem);
  line-height: 1.18;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
}

.quote::before {
  content: open-quote;
}

.quote::after {
  content: close-quote;
}

.attribution {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: rgba(232, 220, 194, 0.76);
}

@media (max-width: 520px) {
  .clock-shell {
    padding: 1rem;
  }

  .clock-panel {
    padding: 1.25rem;
  }

  .quote {
    max-width: none;
  }

  .panel-runes {
    line-height: 1.5;
  }

  .ormen {
    opacity: 0.48;
  }
}
