:root {
  --bg: #050b11;
  --panel: rgba(5, 12, 18, 0.82);
  --panel-strong: rgba(4, 10, 16, 0.93);
  --text: #edf6f9;
  --muted: #b9cbd2;
  --ice: #d9eff6;
  --ice-2: #92c9d9;
  --line: rgba(215, 240, 248, 0.22);
  --line-bright: rgba(224, 246, 252, 0.48);
  --red: #ad2634;
  --red-dark: #71121b;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(2, 7, 12, 0.78), rgba(4, 10, 16, 0.88)),
    url("tof-ice-background.jpg") center center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(199, 237, 247, 0.15), transparent 25%),
    radial-gradient(circle at 87% 18%, rgba(125, 184, 202, 0.12), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(164, 27, 40, 0.09), transparent 26%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.26), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.26));
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 9, 14, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 32px), var(--max));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-rune {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(187, 229, 241, 0.24));
}

.brand-copy strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-links a {
  padding: 10px 12px;
  border-radius: 9px;
  color: #d7e3e7;
  text-decoration: none;
  font-size: 0.88rem;
}

.header-links a:hover,
.header-links a[aria-current="page"] {
  color: #fff;
  background: rgba(205, 236, 244, 0.08);
  box-shadow: inset 0 0 0 1px rgba(214, 241, 248, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 8, 13, 0.88), rgba(5, 12, 19, 0.58) 55%, rgba(5, 10, 15, 0.86)),
    url("tof-ice-background.jpg") center center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(-50px, 3vw, 20px);
  top: 50%;
  width: min(34vw, 390px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("tof-rune-transparent.png") center / contain no-repeat;
  opacity: 0.14;
  filter: drop-shadow(0 0 24px rgba(184, 227, 239, 0.25));
  pointer-events: none;
}

.hero-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ice-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice));
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 900px;
  margin: 16px 0 0;
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h1 .subline {
  display: block;
  margin-top: 10px;
  color: var(--ice);
  font-size: 0.58em;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.event-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.fact {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #d8e4e8;
  background: rgba(4, 10, 15, 0.54);
  backdrop-filter: blur(8px);
  font-size: 0.88rem;
}

main {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 78px) 0 82px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}

.panel {
  position: relative;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(219, 242, 249, 0.045), transparent 30%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-bright), transparent);
}

.story {
  color: #d2dde1;
  font-size: 1.02rem;
  line-height: 1.82;
}

.story p {
  margin: 0 0 1.35em;
}

.prophecy {
  margin: 30px 0;
  padding: 24px clamp(18px, 4vw, 34px);
  border-left: 3px solid var(--red);
  border-radius: 0 14px 14px 0;
  color: #eef5f7;
  background:
    radial-gradient(circle at 90% 20%, rgba(186, 40, 52, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.025);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.75;
}

.prophecy strong {
  color: #fff;
}

.cta-panel {
  margin-top: 24px;
  text-align: center;
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.cta-panel p {
  margin: 0 auto;
  max-width: 650px;
  color: var(--muted);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 22px;
  padding: 0 22px;
  border: 1px solid rgba(255, 136, 145, 0.42);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 12px 30px rgba(110, 12, 22, 0.26);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 168, 175, 0.7);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 16px 34px rgba(110, 12, 22, 0.34);
  outline: none;
}

.side-card {
  position: sticky;
  top: 102px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.side-card img {
  width: min(190px, 72%);
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 18px rgba(184, 227, 239, 0.2));
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.side-card dl {
  margin: 0;
}

.side-card .row {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.side-card dt {
  color: #88a5af;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-card dd {
  margin: 4px 0 0;
  color: #dce7ea;
  line-height: 1.45;
  font-size: 0.92rem;
}

.intro {
  color: #d1dde1;
  font-size: 1.02rem;
  line-height: 1.75;
}

.intro h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
}

.info-item {
  padding: 16px 18px;
  border: 1px solid rgba(215, 240, 248, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  line-height: 1.6;
  color: #d6e2e6;
}

.info-item strong {
  color: #fff;
}

.note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 8, 13, 0.82);
}

.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: #879ca4;
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }

  .hero::after {
    width: min(46vw, 310px);
    opacity: 0.1;
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-rune {
    width: 46px;
    height: 46px;
  }

  .brand-copy small {
    display: none;
  }

  .header-links a:first-child {
    display: none;
  }

  .hero-inner {
    padding: 52px 0 58px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .event-facts {
    display: grid;
  }

  .fact {
    width: 100%;
  }

  .panel {
    padding: 22px 18px;
  }

  .story {
    font-size: 0.98rem;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
