@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #EEF9FB;
  /* Strength of softened text. tools/check.mjs tests contrast at this value. */
  --muted: 0.9;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  margin: 0;
  line-height: 1.5;
  min-height: 100vh;
  color: var(--ink);
  /* Dark blue at the top, mid blue at the bottom. tools/check.mjs tests the text on each stop. */
  background: linear-gradient(#0B1530, #12274A 560px, #24507F max(40%, 760px), #3A6A9C);
  background-color: #3A6A9C;
}

section, footer, .top {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

a { color: inherit; }

.top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
  padding-top: 0.9rem; padding-bottom: 0; font-size: 0.8rem;
}
.top a { text-decoration: none; }
.top a:hover { text-decoration: underline; }
.top .brand { font-weight: 600; letter-spacing: 0.04em; }

/* Without JavaScript the sky grids stay empty, so hide them. */
html:not(.js) .needs-js { display: none !important; }

.lead {
  font-size: 1.05rem; opacity: var(--muted); margin: 0.5rem auto 0; max-width: 32rem;
  text-wrap: balance;
}
.tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  opacity: var(--muted); margin: 1.5rem 0 0;
}
.store {
  display: inline-block; margin: 1.25rem 0 0; padding: 0.5rem 1.1rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; font-size: 0.9rem;
}
.soft { opacity: var(--muted); }

/* Hero: the wordmark card and words on one side, three phones fanned on the other.
   Stacked on a phone, side by side from 900px. */
.hero { text-align: center; padding-top: 1.5rem; }
.hero.combo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; max-width: 64rem; }
.hero h1 { font-weight: 200; font-size: 2rem; line-height: 1.15; margin: 1.6rem 0 0; }
.combo-text { text-align: center; min-width: 0; }

/* The wordmark: Nunito light, cream, with an orange "by". */
.mark { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mark img { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 50px rgba(92, 224, 176, 0.25); }
.mark .word { font: 300 2.3rem/1 "Nunito", sans-serif; letter-spacing: 0.04em; color: #FFF3C4; }
.mark .by { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: #E9A55A; }
.mark.badge {
  padding: 26px 34px 24px; border-radius: 28px; width: max-content; margin: 0 auto;
  background: radial-gradient(circle at 50% 40%, #1B2A55, #0A1330 75%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* A screenshot in a thin phone frame. */
.phone {
  width: 9.5rem; border-radius: 22px; overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.18); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.phone img { display: block; width: 100%; height: auto; }

.fan { display: flex; justify-content: center; align-items: flex-end; min-width: 0; }
.fan .phone { width: 9rem; max-width: 30vw; }
.fan .phone:first-child { transform: rotate(-7deg) translate(18%, 4%); }
.fan .phone:last-child { transform: rotate(7deg) translate(-18%, 4%); }
.fan .phone.mid { width: 11rem; max-width: 36vw; position: relative; z-index: 1; }

@media (min-width: 900px) {
  .combo-text, .fan { min-width: auto; }
  .fan .phone { flex: none; min-width: auto; }
  .hero.combo { grid-template-columns: 1fr 1.1fr; padding-top: 2.5rem; }
  .combo-text { text-align: left; }
  .combo .mark.badge { margin: 0; }
  .combo .lead { margin-left: 0; }
  .fan .phone { width: 10rem; }
  .fan .phone.mid { width: 12.5rem; }
  .hero h1 { font-size: 2.8rem; }
}

/* Sections after the hero. Lines and rings instead of filled panels. */
section + section, footer {
  border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
h2 { font-weight: 300; font-size: 1.9rem; line-height: 1.2; margin: 0.3rem 0 0; }
h3 { font-size: 1rem; font-weight: 600; margin: 0.75rem 0 0.25rem; }
section p, footer p { margin: 0; }
section:not(.hero) .lead { margin: 0.6rem 0 0; }

/* How it works: 2 phones a row on a phone, 4 on a computer. */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; margin-top: 1.8rem; }
.shots .phone { width: 100%; max-width: 11rem; margin: 0 auto; }
.shots h3 { margin-top: 0.9rem; }
.shots p { font-size: 0.9rem; opacity: var(--muted); }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.tiles { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.tile {
  border-radius: 16px; padding: 0.4rem 1rem 1rem;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent);
}
.tile p { opacity: var(--muted); font-size: 0.95rem; }
.dots { display: flex; gap: 6px; margin: 0.4rem 0 0.5rem; }
.dots i { width: 14px; height: 14px; border-radius: 50%; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

/* Themes: the grids are filled by script (squares for skies, swatches for plain colors). */
#themes .tag:not(:first-child) { text-align: center; margin-top: 1.8rem; }
.sky-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
  max-width: 26rem; margin: 1rem auto 0;
}
.sky-grid.plains { grid-template-columns: repeat(5, 1fr); }
@media (min-width: 760px) {
  .sky-grid { grid-template-columns: repeat(8, 1fr); max-width: 52rem; gap: 0.8rem; }
  .sky-grid.plains { grid-template-columns: repeat(5, 1fr); max-width: 33rem; }
}
.sq { position: relative; margin: 0; }
.sq canvas, .sq .swatch {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.sq .swatch { overflow: hidden; display: flex; }
.swatch i { flex: 1; }
.sq figcaption { font-size: 0.72rem; margin-top: 0.35rem; opacity: var(--muted); }

/* Cards cut from app screenshots. The radius matches the app's 22dp glass corner. */
.card-shot {
  display: block; width: 100%; height: auto; border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.streak-shot { max-width: 20rem; margin: 1.6rem auto 0; }
.extra { margin-top: 2.6rem; text-align: center; }
.extra-lead { opacity: var(--muted); max-width: 30rem; margin: 0.5rem auto 0; font-size: 0.95rem; }
.extra-shots {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start;
  max-width: 34rem; margin: 1.2rem auto 0;
}
/* The achievements list goes on in the app; fade it out instead of cutting it. */
.card-shot.fade {
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}

footer .studio { font-size: 1.15rem; font-weight: 300; margin-top: 0.3rem; }
footer .note { opacity: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }
footer .links { margin-top: 1rem; }
footer .links a { margin-right: 1rem; }

/* Privacy policy pages: plain reading text. */
.doc h1, .doc h2.title-alt { font-weight: 200; font-size: 2rem; line-height: 1.15; margin: 0.5rem 0 0; }
.doc h2 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.4rem; }
.doc p, .doc li { margin-top: 0.5rem; }
.doc ul { padding-left: 1.2rem; margin: 0.4rem 0 0; }
.doc code { font-size: 0.9em; }

/* The studio's front page: the name, then one glass card per app. */
.studio-hero { text-align: center; padding-top: 4.5rem; padding-bottom: 3.5rem; }
.studio-word { font: 300 3rem/1.05 "Nunito", sans-serif; letter-spacing: 0.04em; color: #FFF3C4; margin: 0; }
.studio-word span {
  display: block; font: 400 0.8rem/1 "Outfit", sans-serif; letter-spacing: 0.35em;
  text-transform: uppercase; color: #E9A55A; margin-top: 0.9rem;
}
section.studio-hero .lead { margin: 1.4rem auto 0; }
footer .studio a { text-decoration: none; }

.app-card {
  display: grid; gap: 2rem; align-items: center; margin-top: 1.2rem;
  padding: 2rem 1.25rem 2.4rem; border-radius: 28px; text-align: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.app-card .mark.badge { padding: 18px 26px 16px; }
.app-card .mark img { width: 84px; height: 84px; }
.app-card .mark .word { font-size: 1.8rem; }
.app-card h2 { font-size: 1.5rem; margin-top: 1.2rem; text-wrap: balance; }
.app-card p { opacity: var(--muted); margin: 0.5rem auto 0; max-width: 24rem; }
.app-card .store { margin-top: 1rem; font-size: 0.85rem; letter-spacing: 0.08em; }
.app-card .fan { padding-top: 1rem; }
.go {
  display: inline-block; margin-top: 1.4rem; padding: 0.7rem 1.4rem; border-radius: 999px;
  background: #FFF3C4; color: #0B1530; text-decoration: none; font-weight: 600;
}
.go:hover { background: #fff; }

@media (min-width: 900px) {
  .studio-word { font-size: 4rem; }
  .app-card { grid-template-columns: 1.2fr 1fr; text-align: left; padding: 2.5rem 2rem 2.5rem 3rem; }
  .app-card .mark.badge { margin: 0; }
  .app-card p { margin-left: 0; }
  .app-card .fan .phone { width: 7.5rem; flex: none; }
  .app-card .fan .phone.mid { width: 9.5rem; }
}
