/* Direction B palette and Nunito; authority: docs/design/direction-b-design-system.md.
   This public page uses native document flow, not the Flutter component system. */
@font-face {
  font-family: Nunito;
  src: url('/assets/Nunito-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url('/assets/Nunito-Black.ttf') format('truetype');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #f6efe3;
  --paper: #fffdf8;
  --ink: #2b2620;
  --secondary: #5f564a;
  --link: #1b5e9e;
  --sun: #f2c14e;
  --side: 1.25rem;
  --top: 2.125rem;
  --bottom: 1.5rem;
  --stack: .875rem;
  --grid: .75rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.page {
  max-width: 64rem;
  min-height: 100svh;
  margin-inline: auto;
  padding: var(--top) var(--side) var(--bottom);
  display: flex;
  flex-direction: column;
  gap: var(--top);
}

.wordmark {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

p, h1 { margin: 0; }

main {
  flex: 1;
  display: grid;
  align-content: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: stretch;
  gap: var(--grid);
}

.copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--stack);
  padding: var(--top) var(--side);
  border-radius: 1.5rem;
  background: var(--paper);
}

h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.release-note { color: var(--secondary); }

.artwork {
  display: grid;
  place-items: center;
  padding: var(--top) var(--side);
  background: var(--sun);
  border-radius: 1.5rem;
}

.artwork img {
  display: block;
  width: 100%;
  max-width: 17.5625rem;
  height: auto;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--stack);
  color: var(--secondary);
}

a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: var(--link);
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}

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

@media (max-width: 48rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #221c15;
    --paper: #2f2921;
    --ink: #f6efe3;
    --secondary: #bfb4a1;
    --link: #709ac2;
  }
}

@media (prefers-contrast: more) {
  :root { --secondary: #584f44; --link: #18528b; }
}

@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
  :root { --secondary: #bfb4a1; --link: #9bb9d5; }
}

@media (forced-colors: active) {
  .copy, .artwork { border: 1px solid CanvasText; }
}
