/* Gofest Agora sleeve — 7.css Aero + Gran Salón plate
 * Palette: https://khang-nd.github.io/7.css/  (--w7-* tokens)
 * Type:    @fonttrio/poster — Oswald / Barlow / Inconsolata
 * Wire:    mast → 2fr media + 1fr chat → empty deck
 */

:root {
  --w7-surface: #f0f0f0;
  --w7-el-bg: #f2f2f2;
  --w7-el-bd: #8e8f8f;
  --w7-el-bd-h: #3c7fb1;
  --w7-el-c: #000000;
  --w7-el-c-d: #838383;
  --w7-w-bg: #4580c4;
  --w7-title-c: #003399;
  --w7-link-c: #0066cc;
  --w7-link-c-h: #3399ff;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", sans-serif;
  --font-mono: "Inconsolata", ui-monospace, monospace;

  --page-gutter: clamp(1rem, 3vw, 2.5rem);
  --hero-h: min(62vh, 640px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100%;
  color: var(--w7-el-c);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, #9ed4ee 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 90%, #1d5a8a 0%, transparent 50%),
    linear-gradient(180deg, #7ec8e8 0%, #3d8ec4 38%, #1a5a8c 72%, #0e3d66 100%);
}

img {
  display: block;
  max-width: 100%;
}

iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

a {
  color: var(--w7-link-c);
}

a:hover {
  color: var(--w7-link-c-h);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mast,
.deck,
.foot {
  margin: 12px var(--page-gutter) 0;
}

.mast-body {
  padding-bottom: 0.75rem;
}

.mast-eyebrow {
  margin: 0 0 0.35rem;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--w7-el-c-d);
}

.mast-headline {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--w7-title-c);
}

.mast-status {
  margin: 0.55rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--w7-el-bd-h);
}

/* Hero plate — 2fr media + 1fr chat (gransalon.co) */
.hero-plate {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  margin: 12px var(--page-gutter) 0;
  align-items: stretch;
}

.hero-media,
.hero-caption {
  min-width: 0;
  height: var(--hero-h);
  max-height: var(--hero-h);
  display: flex;
  flex-direction: column;
}

.media-body,
.chat-chrome {
  flex: 1;
  min-height: 0;
  margin: 6px;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-log {
  flex: 1;
  overflow: auto;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.45;
  background: #fff;
}

.line {
  margin: 0 0 0.5rem;
}

.line.sys {
  color: var(--w7-el-c-d);
}

.line.you {
  color: var(--w7-title-c);
}

.line.echo {
  color: var(--w7-el-bd-h);
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--w7-el-bd);
  background: var(--w7-surface);
}

.chat-form input {
  flex: 1;
  min-width: 0;
}

.deck {
  min-height: min(36vh, 18rem);
}

.deck-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--w7-title-c);
}

.deck-body,
.deck-invite {
  margin: 0 0 0.85rem;
  max-width: 62ch;
}

.deck-invite {
  margin-bottom: 0;
  color: var(--w7-el-c-d);
}

.foot {
  margin-bottom: 1.5rem;
}

.foot .status-bar {
  margin: 0;
}

.foot .status-bar-field {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

@media (max-width: 39.99rem) {
  :root {
    --hero-h: min(48vh, 420px);
  }
  .hero-plate {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-caption {
    height: min(52vh, 440px);
    max-height: min(52vh, 440px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
