:root {
  --bg: #f4efe6;
  --bg-strong: #e9ddc8;
  --surface: rgba(255, 251, 245, 0.86);
  --surface-strong: #fff9f0;
  --text: #1d1e22;
  --muted: #625b52;
  --line: rgba(29, 30, 34, 0.12);
  --accent: #cc5a1e;
  --accent-strong: #8d3200;
  --shadow: 0 18px 50px rgba(59, 35, 14, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(204, 90, 30, 0.18), transparent 28%),
    linear-gradient(180deg, #f9f5ee 0%, var(--bg) 52%, #efe5d6 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.site-header,
.site-footer,
.proxied-content,
.error-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.site-header {
  overflow: hidden;
  position: relative;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(204, 90, 30, 0.22), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 55%);
  pointer-events: none;
}

.site-header__inner,
.site-footer,
.error-card {
  position: relative;
  z-index: 1;
}

.site-header__inner {
  padding: 32px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 0.96;
}

.lede {
  max-width: 42rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.content-frame {
  margin-top: 20px;
}

.proxied-content,
.error-card,
.site-footer {
  padding: 24px;
}

.proxied-content {
  width: 100%;
  background: var(--surface-strong);
}

.proxied-content main {
  display: block;
  width: 100%;
}

.proxied-content .cols2 .aservice {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.proxied-content .cols2 + .cols2 {
  margin-top: 20px;
}

.proxied-content .thumb {
  width: 150px;
}

.proxied-content img {
  display: block;
  width: min(100%, 150px);
  max-width: 150px;
  height: auto;
  max-height: 150px;
  object-fit: contain;
}

.proxied-content .message {
  min-width: 0;
}

.proxied-content video,
.proxied-content iframe {
  max-width: 100%;
  height: auto;
}

.proxied-content table {
  width: 100%;
  overflow: auto;
}

.proxied-content h1,
.proxied-content h2,
.proxied-content h3,
.proxied-content h4 {
  line-height: 1.15;
}

.proxied-content p,
.proxied-content li {
  line-height: 1.65;
}

.proxied-content a {
  color: var(--accent-strong);
}

.site-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.error-card {
  margin-top: 20px;
}

.error-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding: 12px 0 24px;
  }

  .site-header__inner,
  .site-footer {
    flex-direction: column;
  }

  .site-header__inner,
  .proxied-content,
  .site-footer,
  .error-card {
    padding: 18px;
  }

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

  .proxied-content .thumb {
    width: auto;
  }

  .source-link {
    width: 100%;
  }
}
