/* The public site shares the app's Blue and Gold colors (src/styles/app.css). */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --page: #f5f7fb;
  --surface: #ffffff;
  --ink: #142a4d;
  --ink-secondary: #4a5a75;
  --accent-ink: #1f4f9c;
  --line: #dde4ef;
  --gold: #f3c94b;
  --gold-hover: #f7d775;
  --on-gold: #142a4d;
  --bar: #1f4f9c;
  --bar-ink: #ffffff;
  --bar-line: #6f93cc;
  --bar-hover: #2a5aa5;
  --stripe-blue: #1f4f9c;
  --focus: #1f4f9c;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e1a33;
    --surface: #13234a;
    --ink: #f2f5fb;
    --ink-secondary: #b6c3de;
    --accent-ink: #f6d77a;
    --line: #22386a;
    --on-gold: #0e1a33;
    --bar: #0b152b;
    --bar-ink: #f2f5fb;
    --bar-line: #2f4882;
    --bar-hover: #1a2d5a;
    --focus: #f3c94b;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  color: var(--bar-ink);
  background: var(--bar);
}
.bar a:focus-visible {
  outline-color: var(--gold);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.light {
  font-weight: 450;
}
/* The letters sit in a gold shield, like the app's sidebar mark. */
.mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 36px;
  padding-bottom: 6px;
  color: var(--on-gold);
  background: var(--gold);
  font-size: 14px;
  font-weight: 750;
  clip-path: polygon(0 0, 100% 0, 100% 66%, 50% 100%, 0 66%);
}

.bar-login {
  padding: 8px 14px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--bar-line);
  border-radius: 6px;
}
.bar-login:hover {
  background: var(--bar-hover);
}

/* The flag's diagonal gold and blue stripes, kept clear of the text. */
.hero {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  overflow: hidden;
  background: var(--surface);
}
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    115deg,
    transparent 0 62%,
    var(--gold) 62% 75%,
    var(--stripe-blue) 75%
  );
}

.content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: clamp(48px, 10vh, 120px) clamp(16px, 6vw, 96px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 30rem;
  margin: 0 0 32px;
  color: var(--ink-secondary);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  color: var(--on-gold);
  background: var(--gold);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  border-radius: 6px;
}
.button:hover {
  background: var(--gold-hover);
}

.footer {
  padding: 18px clamp(16px, 4vw, 48px);
  color: var(--ink-secondary);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

/* On narrow screens the stripes become a band under the text. */
@media (max-width: 760px) {
  .hero {
    align-items: flex-start;
    padding-bottom: 120px;
  }
  .hero::after {
    inset: auto 0 0;
    height: 96px;
    background: linear-gradient(
      115deg,
      transparent 0 38%,
      var(--gold) 38% 62%,
      var(--stripe-blue) 62%
    );
  }
}
