/* Palette and type follow the Raiport app's default "editorial" theme (--ed-* tokens). */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ed-bg: #f4f1ea;
  --ed-panel: #ebe6db;
  --ed-border: #d9d2c1;
  --ed-border-soft: #e6e0d2;
  --ed-ink: #1a1814;
  --ed-muted: #5d564b;
  --ed-faint: #7a7468;
  --primary: #007fb0;
  --font-sans-ed: "Inter", "DejaVu Sans", system-ui, -apple-system, sans-serif;
  --font-serif-ed: "Source Serif 4", "Source Serif Pro", ui-serif, Georgia, serif;
  --copyright-bar-h: calc(26px + env(safe-area-inset-bottom, 0px));
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ed-bg: #15140f;
    --ed-panel: #1c1a14;
    --ed-border: #2e2a1f;
    --ed-border-soft: #221f17;
    --ed-ink: #f0ead7;
    --ed-muted: #a8a08a;
    --ed-faint: #7a7468;
    --primary: #00bbe4;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100dvh;
  background-color: var(--ed-bg);
  color: var(--ed-ink);
  font-family: var(--font-sans-ed);
  -webkit-font-smoothing: antialiased;
}

.shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1440px;
  min-height: calc(100dvh - var(--copyright-bar-h));
  margin: 0 auto;
  padding: 16px 16px calc(var(--copyright-bar-h) + 16px);
}

.bar {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--ed-panel);
  border: 1px solid var(--ed-border);
  border-radius: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

/* The logo artwork has black lettering, so its tile stays light in both themes. */
.brand-tile,
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f1ea;
  border: 1px solid var(--ed-border);
}
.brand-tile {
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: 8px;
}
.brand-tile img { width: 100%; height: auto; }

.brand-name {
  display: block;
  font-family: var(--font-serif-ed);
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand-tag {
  display: block;
  font-size: 12px;
  color: var(--ed-muted);
}

.card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background-color: var(--ed-panel);
  border: 1px solid var(--ed-border);
  border-radius: 12px;
}

.logo-tile {
  width: 200px;
  padding: 24px;
  border-radius: 16px;
}
.logo-tile img { width: 100%; height: auto; }

.eyebrow {
  margin: 32px 0 0;
  padding: 4px 12px;
  border: 1px solid var(--ed-border);
  border-radius: 999px;
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 0;
  font-family: var(--font-serif-ed);
  font-size: clamp(32px, 6vw, 40px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.lede {
  max-width: 40rem;
  margin: 16px 0 0;
  color: var(--ed-muted);
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.6;
}

.copyright {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  height: var(--copyright-bar-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: var(--ed-muted);
  background-color: var(--ed-bg);
  border-top: 1px solid var(--ed-border-soft);
}

@media (min-width: 640px) {
  .shell { padding-inline: 24px; }
  .card { padding: 64px 48px; }
}
