/* Mirrors the project design tokens for standalone static pages. */
:root {
  --color-brand-red: #c8102e;
  --color-brand-gold: #d4a574;
  --color-brand-blue: #5b8ba8;
  --color-ink: #2c2c2c;
  --color-ink-soft: #5a5a5a;
  --color-ink-muted: #8c8c8c;
  --color-paper: #faf7f2;
  --color-paper-deep: #f2ede3;
  --color-line: #e5ddd0;
  --color-chongqing: #8a9a9b;
  --shadow-ink: 0 4px 24px -8px rgb(44 44 44 / 12%),
    0 2px 8px -4px rgb(44 44 44 / 8%);
  color: var(--color-ink);
  background: var(--color-paper);
  font-family:
    "Source Han Sans SC", "Source Han Sans", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}

html {
  min-width: 0;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgb(212 165 116 / 18%), transparent 32rem),
    linear-gradient(135deg, var(--color-paper), var(--color-paper-deep));
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 1.25rem 0;
}

.brand-link {
  color: var(--color-brand-red);
  font-family:
    "Source Han Serif SC", "Source Han Serif", Georgia, "Times New Roman",
    serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
}

.text-link {
  color: var(--color-ink-soft);
  font-size: 0.875rem;
}

.text-link:hover {
  color: var(--color-brand-red);
}

.gallery-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 2rem;
  width: min(100% - 2rem, 72rem);
  min-height: calc(100vh - 5rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero-panel,
.stage-panel {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--color-brand-red);
  font-size: 0.875rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  color: var(--color-ink);
  font-family:
    "Source Han Serif SC", "Source Han Serif", Georgia, "Times New Roman",
    serif;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.lede {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: var(--color-ink-soft);
  font-size: clamp(1.0625rem, 2.5vw, 1.35rem);
  line-height: 1.75;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.meta-row span {
  border: 1px solid rgb(138 154 155 / 24%);
  border-radius: 0.375rem;
  padding: 0.35rem 0.65rem;
  color: var(--color-chongqing);
  background: rgb(138 154 155 / 10%);
  font-size: 0.8125rem;
  font-weight: 600;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.375rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.button-primary {
  color: var(--color-paper);
  background: var(--color-brand-red);
}

.button-secondary {
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  background: var(--color-paper);
}

.button:focus-visible,
.text-link:focus-visible,
.brand-link:focus-visible {
  outline: 3px solid rgb(200 16 46 / 28%);
  outline-offset: 3px;
}

.stage-frame {
  position: relative;
  display: grid;
  min-height: 32rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  padding: 2rem;
  background:
    linear-gradient(90deg, rgb(44 44 44 / 5%) 1px, transparent 1px),
    linear-gradient(rgb(44 44 44 / 5%) 1px, transparent 1px),
    var(--color-paper);
  background-size: 2.5rem 2.5rem;
  box-shadow: var(--shadow-ink);
}

.stage-frame::before {
  position: absolute;
  inset: 12%;
  border: 1px solid rgb(200 16 46 / 22%);
  border-radius: 999px;
  content: "";
}

.display-mark {
  color: rgb(200 16 46 / 14%);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 800;
  line-height: 1;
}

.model-status {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--color-brand-red);
  background: rgb(250 247 242 / 92%);
  box-shadow: var(--shadow-ink);
  font-size: 1rem;
  font-weight: 700;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.stage-note {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1rem;
  }

  .stage-frame {
    min-height: 24rem;
  }
}

@media (max-width: 420px) {
  .site-header,
  .gallery-shell {
    width: min(100% - 1.5rem, 72rem);
  }

  .action-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .stage-frame {
    min-height: 20rem;
    padding: 1.25rem;
  }

  .stage-note {
    font-size: 0.875rem;
  }
}
