/* a little more: the website. Colours and type from the brand brief §7 and the app's band
   (platform/ui/house.ts). Every text pair passes WCAG AA in both modes. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans_700Bold_Italic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans_800ExtraBold_Italic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #edede6;
  --card: #ffffff;
  --ink: #15213e;
  --muted: #5c6580;
  --line: #dcddd3;
  --band: #ffc93c;
  --wordmark: #15213e;
  --plus: #ffffff;
  --link: #2452c2;
  --soft: #fff1c2;
  --focus: #2452c2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f1627;
    --card: #1b2439;
    --ink: #eef1fa;
    --muted: #a2abc3;
    --line: #2b3550;
    --band: #ffd04d;
    --wordmark: #15213e;
    --plus: #ffffff;
    --link: #8dadff;
    --soft: #3a3216;
    --focus: #ffd04d;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The footer sits at the bottom of the window on short pages. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus {
  top: 1rem;
}

/* The band: the app's strip of colour with the wordmark. */
.band {
  background: var(--band);
  padding: 2.5rem 1.5rem 5rem;
}
.band-inner {
  max-width: 40rem;
  margin: 0 auto;
}
.wordmark {
  display: inline-block;
  margin: 0;
  color: var(--wordmark);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.033em;
  line-height: 1.2;
  text-decoration: none;
}
.wordmark .plus {
  margin-left: 0.125rem;
  color: var(--plus);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0;
}

/* The card slides up over the band, as the app's pages do. */
main {
  width: 100%;
  max-width: 40rem;
  margin: -3rem auto 0;
  padding: 0 1rem;
}
.card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
}
@media (min-width: 40rem) {
  .card {
    padding: 2.5rem;
  }
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
}
h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}
h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}
p,
ul {
  margin: 0 0 1rem;
}
ul {
  padding-left: 1.25rem;
}
li + li {
  margin-top: 0.375rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.lead {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
/* The app's name in running text. */
.name {
  font-weight: 700;
  font-style: italic;
}
.muted {
  color: var(--muted);
}

/* The store badges go here once the app is listed. */
.store {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: var(--soft);
  font-weight: 700;
}

footer {
  width: 100%;
  max-width: 40rem;
  margin: auto auto 0;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}
footer li + li {
  margin-top: 0;
}
footer a {
  color: var(--ink);
  font-weight: 500;
}
footer p {
  margin: 0;
}
