:root {
  color-scheme: light;
  --ink: #1f1e1a;
  --paper: #fbf6ea;
  --rail: #9d5136;
  --sky: #b2d7f3;
  --field: #d7e8c7;
  --shadow: rgba(34, 30, 24, 0.18);
  --frame: #fdfaf2;
  --accent: #3f6f4a;
  --accent-strong: #284a33;
  --border: #cabaa1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Alegreya", "Palatino Linotype", "Book Antiqua", serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #fff8e0, #f4e4cf 40%, #e9d6bd 65%, #d9c6b0 100%);
}

.page {
  min-height: 100vh;
  padding: 40px clamp(20px, 5vw, 64px) 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  animation: page-rise 0.9s ease both;
}

.hero {
  padding: 28px 32px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--frame), #f2ead8);
  box-shadow: 0 20px 50px var(--shadow);
  position: relative;
  overflow: hidden;
  animation: panel-rise 0.9s ease both;
}

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(178, 215, 243, 0.6), rgba(178, 215, 243, 0));
}

.hero__brand {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--accent-strong);
  font-weight: 600;
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.hero__lead {
  margin: 0;
  max-width: 680px;
  line-height: 1.6;
  font-size: 1.05rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  font-family: "Space Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  color: var(--accent-strong);
}

.hero__meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f4efe4;
  border: 1px solid var(--border);
}

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

.stage__frame {
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fbf4e6, #f6e8d6);
  box-shadow: 0 18px 40px var(--shadow);
  border: 2px solid rgba(214, 192, 162, 0.8);
  animation: panel-rise 0.9s ease both;
  animation-delay: 0.1s;
}

.stage__frame iframe {
  width: 100%;
  height: min(70vh, 780px);
  border: 0;
  border-radius: 18px;
  background: #111;
}

.stage__aside {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--field), #f3efe6);
  border: 1px solid #b9c8a6;
  box-shadow: 0 12px 30px var(--shadow);
  animation: panel-rise 0.9s ease both;
  animation-delay: 0.2s;
}

.stage__aside h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.stage__aside ul {
  padding-left: 18px;
  margin: 0 0 18px;
  line-height: 1.6;
}

.stage__callout {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fefaf2;
  border: 1px dashed var(--accent);
}

.callout__label {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-right: 6px;
  color: var(--accent-strong);
}

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

  .stage__frame iframe {
    height: 70vh;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 24px 16px 40px;
  }

  .hero {
    padding: 22px;
  }

  .hero__meta {
    font-size: 0.75rem;
  }
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
