/* squawd.run: the default look of the design kit (Pine & Violet, the
   lotus-sign mark, Archivo with its width axis), light and dark. The colour
   values are the preview's PINE_VIOLET_LIGHT and PINE_VIOLET_DARK tables
   (apps/web/src/preview/looks.ts). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-wdth.woff2") format("woff2-variations");
}

:root {
  color-scheme: light dark;
  --ground: #f3f2ee;
  --surface: #ffffff;
  --ink: #0f2a24;
  --ink-2: #4a4d55;
  --line: #e2e0d9;
  --hero: #0f2a24;
  --hero-raised: #173a32;
  --hero-line: #24483f;
  --on-hero: #ffffff;
  --on-hero-2: #b5c7c0;
  --crew: #6c4bf4;
  --crew-ink: #5236d6;
  --crew-ink-hover: #3e26b0;
  --crew-light: #b7a5ff;
  --crew-tint: #ede8fe;
  --rival-light: #f2c744;
  --focus: #5236d6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b1f1b;
    --surface: #173a32;
    --ink: #eef2ef;
    --ink-2: #b5c7c0;
    --line: #24483f;
    --hero: #173a32;
    --hero-raised: #22493f;
    --hero-line: #2d584c;
    --crew-ink: #b7a5ff;
    --crew-ink-hover: #d4c9ff;
    --crew-tint: #2e2a5c;
    --focus: #b7a5ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--crew-ink);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--crew-ink-hover);
}

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

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 1;
  padding: 8px 12px;
  background: var(--surface);
}

/* The bar: the mark, the wordmark and the two links, on Pine. */
.bar {
  background: var(--hero);
  color: var(--on-hero);
}

.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-hero);
  text-decoration: none;
}

.brand:hover {
  color: var(--on-hero);
}

.brand img {
  width: 36px;
  height: 36px;
}

.wordmark {
  font-weight: 900;
  font-stretch: 62%;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.03em;
}

.bar nav {
  display: flex;
  gap: 20px;
}

.bar nav a {
  color: var(--on-hero-2);
  text-decoration: none;
  font-weight: 600;
}

.bar nav a:hover,
.bar nav a[aria-current="page"] {
  color: var(--on-hero);
}

.bar a:focus-visible {
  outline-color: var(--crew-light);
}

/* The home page's hero. */
.hero {
  background: var(--hero);
  color: var(--on-hero);
  padding: 40px 0 56px;
}

.hero h1 {
  margin: 0;
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 12ch;
}

.hero .lede {
  margin: 20px 0 0;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.35;
  color: var(--on-hero-2);
  max-width: 30ch;
}

.hero .status {
  display: inline-block;
  margin: 28px 0 0;
  padding: 6px 12px;
  border: 1px solid var(--hero-line);
  border-radius: 999px;
  background: var(--hero-raised);
  color: var(--on-hero);
  font-size: 0.9375rem;
}

.hero .status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--rival-light);
  vertical-align: 0.05em;
}

.screens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 48px 0 8px;
  padding: 0;
  list-style: none;
}

.screens li {
  flex: 0 1 260px;
}

.screens img {
  display: block;
  margin: 0 auto;
}

.caption {
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-2);
}

section {
  padding: 40px 0;
}

h2 {
  margin: 0 0 20px;
  font-weight: 800;
  font-stretch: 70%;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.points h3 {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 800;
}

.points p {
  margin: 0;
  color: var(--ink-2);
}

.note {
  padding: 20px;
  border-radius: 18px;
  background: var(--crew-tint);
  max-width: 68ch;
}

.note p {
  margin: 0;
}

.note p + p {
  margin-top: 10px;
}

/* The policy and support pages: one readable column. */
.doc {
  max-width: 68ch;
  padding: 40px 0 56px;
}

.doc h1 {
  margin: 0 0 8px;
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.doc .meta {
  margin: 0 0 28px;
  color: var(--ink-2);
}

.doc h2 {
  margin: 36px 0 10px;
  font-size: 1.375rem;
}

.doc ul {
  padding-left: 1.25em;
}

.doc li + li {
  margin-top: 6px;
}

.summary {
  margin: 0 0 8px;
  padding: 16px 20px 16px 36px;
  border-radius: 18px;
  background: var(--crew-tint);
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.foot-copy,
.fine {
  margin: 0;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.fine {
  flex-basis: 100%;
  font-size: 0.8125rem;
}
