:root {
  --bg: #f4efe5;
  --bg-accent: #e8dcc5;
  --surface: rgba(255, 252, 246, 0.88);
  --surface-strong: #fffaf1;
  --line: rgba(66, 53, 36, 0.14);
  --text: #2e2418;
  --muted: #6a5a46;
  --brand: #1f6b52;
  --brand-strong: #124836;
  --warn: #9d6b12;
  --deny: #8e2f2f;
  --shadow: 0 22px 60px rgba(77, 57, 23, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(31, 107, 82, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(184, 126, 28, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f1e6 0%, #f2ece1 54%, #ebe3d5 100%);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

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

body::before {
  top: 4rem;
  left: -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: rgba(31, 107, 82, 0.12);
  filter: blur(12px);
}

body::after {
  right: -5rem;
  bottom: 2rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(184, 126, 28, 0.14);
  filter: blur(10px);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero-card,
.info-card,
.embed-card,
.support-card,
.status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2rem;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

h1,
h2 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.05;
}

h1 {
  margin-top: 0.7rem;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.lede,
.info-card p,
.support-card p,
.status-copy,
.status-hint,
.notice {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 42rem;
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.meta-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--brand);
  color: #f9f6ef;
  font-size: 0.92rem;
  font-weight: 700;
}

.pill-soft {
  background: rgba(31, 107, 82, 0.12);
  color: var(--brand-strong);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-card,
.support-card {
  padding: 1.4rem 1.5rem;
}

.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-top: 0.8rem;
  padding-left: 1.6rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--brand);
  content: "•";
  font-size: 1.2rem;
  line-height: 1;
}

.embed-card {
  margin-top: 1rem;
  padding: 1.5rem;
}

.embed-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.button-secondary,
.action-link,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease;
}

.button-secondary,
.action-link {
  border-color: rgba(31, 107, 82, 0.22);
  background: rgba(31, 107, 82, 0.08);
  color: var(--brand-strong);
}

.button-primary {
  background: var(--brand);
  color: #f9f6ef;
}

.button-secondary:hover,
.action-link:hover,
.button-primary:hover {
  transform: translateY(-1px);
}

.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.embed-frame-wrap {
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid rgba(31, 107, 82, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 241, 230, 0.95));
}

iframe {
  width: 100%;
  min-height: 72vh;
  border: 0;
  background: #fff;
}

.notice {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px dashed rgba(157, 107, 18, 0.34);
  border-radius: var(--radius-md);
  background: rgba(250, 236, 202, 0.58);
}

.notice-hidden {
  display: none;
}

.support-card {
  margin-top: 1rem;
}

.status-layout {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.status-card {
  width: min(720px, 100%);
  padding: 2rem;
}

.status-card .lede {
  margin-top: 0.9rem;
}

.status-copy {
  margin: 1rem 0 0;
}

.status-hint {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

body[data-page="unavailable"] .pill {
  background: rgba(157, 107, 18, 0.14);
  color: var(--warn);
}

body[data-page="denied"] .pill {
  background: rgba(142, 47, 47, 0.14);
  color: var(--deny);
}

@media (max-width: 800px) {
  .shell {
    width: min(100% - 1rem, 1120px);
    padding-top: 1rem;
  }

  .hero-card,
  .info-card,
  .embed-card,
  .support-card,
  .status-card {
    border-radius: 22px;
  }

  .hero-copy,
  .embed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .meta-panel {
    justify-content: flex-start;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  iframe {
    min-height: 65vh;
  }
}
