/* Tokens: Okram_Apps_Brand_Guide.md §3 and §6 */
:root {
  --okram-charcoal: #111214;
  --okram-amber: #F5A623;
  --okram-warm-white: #F7F7F5;
  --okram-graphite: #1C1E22;
  --okram-white: #FFFFFF;

  --color-background: var(--okram-warm-white);
  --color-text: var(--okram-charcoal);
  --color-text-secondary: #6A6F77; /* brand slate #6E737B is 4.45:1 on warm white; this is 4.71:1 */
  --color-border: rgb(17 18 20 / 0.08);
  --color-primary: var(--okram-amber);
  --color-primary-hover: color-mix(in srgb, var(--okram-amber) 88%, var(--okram-charcoal));
  --color-on-primary: var(--okram-charcoal);
  --color-focus: var(--okram-charcoal); /* amber is 1.89:1 on warm white */

  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 10px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: var(--okram-charcoal);
    --color-text: var(--okram-white);
    --color-text-secondary: #B9BDC3;
    --color-border: rgb(255 255 255 / 0.08);
    --color-focus: var(--okram-white);
  }
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--color-background);
  color: var(--color-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Dark only: a graphite glow behind the logo. In light mode warm white and
   white are too close (8 steps) and the gradient bands visibly. */
@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(ellipse 60% 50% at 50% 50%, var(--okram-graphite), transparent 70%),
      var(--color-background);
  }
}

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

/* Header and footer share the page gutter so their edges line up. */
.site-header,
.site-footer {
  display: flex;
  align-items: center;
  padding-inline: var(--gutter);
}

.site-header {
  justify-content: flex-end;
  padding-block: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem 0.75rem 1.375rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.button:hover {
  background: var(--color-primary-hover);
}

.button-icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms var(--ease-out);
}

.button:hover .button-icon {
  transform: translateX(3px);
}

/* Clear space around the logo: at least 1/4 of the symbol height (Brand Guide §2).
   The symbol is ~94% of the cropped logo height: ~50 px at 720 px wide. */
.stage {
  display: grid;
  place-items: center;
  padding: 4rem clamp(2.25rem, 7vw, 4rem);
}

.logo {
  width: min(720px, 100%);
  margin: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--color-text);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* One brief entrance in the ram's direction of travel; never continuous (Brand Guide §5). */
@media (prefers-reduced-motion: no-preference) {
  .logo {
    animation: charge-in 700ms var(--ease-out) both;
  }

  @keyframes charge-in {
    from {
      opacity: 0;
      transform: translateX(-24px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button-icon {
    transition: none;
  }
}
