/* areyoufluentapp.com: one stylesheet, no external requests. It dresses the pages like the app:
   a warm cream page, deep teal ink, rust for the main action, green and gold accents, Bebas Neue
   for titles and Gilroy for text. Palette: daily_flutter/lib/theme.dart; the wordmark's teal,
   orange and brown outline come from FluentWordmark in daily_flutter/lib/ui/mascot.dart. */

@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fff8f0;
  --page: #f8f8f2;
  --paper: #fffdf7;
  --white: #ffffff;
  --ink: #123b3a;
  --ink-soft: #2b4d4b;
  --muted: #526f67;
  --rust: #bb4c38;
  --rust-high: #c4533c;
  --rust-dark: #943b2f;
  --rust-tint: #fff0e7;
  --green: #1f7d6b;
  --green-tint: #e2f2ea;
  --teal: #2cb5b3;
  --teal-tint: #dcefe9;
  --orange: #fda53e;
  --brown: #6a2102;
  --gold: #e9af39;
  --gold-tint: #fff0d7;
  --line: #eadfd2;
  --line-cool: #d7e4db;
  --link: #a6402f;
  --link-hover: var(--ink);
  --focus: var(--rust);
  --shadow-sm: 0 1px 2px rgb(18 59 58 / 6%), 0 6px 18px rgb(18 59 58 / 6%);
  --shadow-lg: 0 30px 60px -18px rgb(18 59 58 / 35%), 0 12px 24px -12px rgb(18 59 58 / 25%);
  --font-display: "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "Gilroy", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* The grid every page lines up on: the header, the hero and the document share its edges. */
  --page-width: 72rem;
  --sidebar: 15rem;
  --gutter: 2rem;
  --measure: 46rem;
  --radius: 22px;
}

/* Base ------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  background-image: linear-gradient(180deg, var(--paper) 0%, var(--cream) 30rem);
  color: var(--ink);
  font: 500 1.0625rem/1.65 var(--font-body);
  overflow-wrap: break-word;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

img, svg { max-width: 100%; }

a {
  color: var(--link);
  text-decoration-thickness: .07em;
  text-underline-offset: .18em;
}
a:hover { color: var(--link-hover); }

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

strong { font-weight: 700; }

.wrap {
  width: min(100% - 2rem, var(--page-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: .6rem 1rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

mark.todo {
  background: var(--rust);
  color: var(--white);
  padding: .05em .35em;
}

/* Header ---------------------------------------------------------------- */

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand lang"
    "nav nav";
  align-items: center;
  gap: .6rem 1rem;
  padding-block: 1rem .5rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  justify-self: start;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }

.brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgb(18 59 58 / 22%);
}

/* The app's wordmark: Bebas Neue letters, teal then orange, with a brown outline and drop. */
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: .05em;
  white-space: nowrap;
  text-shadow:
    1.6px 0 0 var(--brown), -1.6px 0 0 var(--brown), 0 1.6px 0 var(--brown), 0 -1.6px 0 var(--brown),
    1.1px 1.1px 0 var(--brown), -1.1px -1.1px 0 var(--brown), 1.1px -1.1px 0 var(--brown), -1.1px 1.1px 0 var(--brown),
    0 3px 0 var(--brown);
}
.wordmark-1 { color: var(--teal); }
.wordmark-2 { color: var(--orange); }

.site-nav { grid-area: nav; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}
.site-nav a {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: .9375rem;
  text-decoration: none;
}
.site-nav a:hover { background: var(--green-tint); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }

.lang-switch {
  grid-area: lang;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .8rem .3rem .35rem;
  border: 1.5px solid var(--line-cool);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.lang-switch:hover { border-color: var(--green); color: var(--ink); }
.lang-switch-code {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .04em;
  line-height: 1;
}

@media (min-width: 52rem) {
  .site-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav lang";
    padding-block: 1.25rem;
  }
  .site-nav ul { justify-content: flex-end; }
}

@media (max-width: 23rem) {
  .wordmark { font-size: 1.35rem; }
  .brand-icon { width: 34px; height: 34px; }
  .lang-switch-name { display: none; }
  .lang-switch { padding-right: .35rem; }
}

/* Home ------------------------------------------------------------------ */

/* Clipped sideways only, so the rotated phones never widen the page but their shadows still fall
   below the hero. */
.home-hero {
  position: relative;
  overflow-x: clip;
  padding-block: 1.5rem 3rem;
}

/* Soft colour behind the phones, from the app's teal, gold and rust. */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(28rem 22rem at 78% 42%, rgb(44 181 179 / 20%), rgb(44 181 179 / 0%) 70%),
    radial-gradient(22rem 18rem at 60% 78%, rgb(233 175 57 / 22%), rgb(233 175 57 / 0%) 70%),
    radial-gradient(20rem 16rem at 12% 10%, rgb(187 76 56 / 10%), rgb(187 76 56 / 0%) 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 60%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 60%, transparent);
}

.home-hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.home-copy { text-align: center; }

.chip {
  display: inline-block;
  margin: 0;
  padding: .35rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: .9375rem;
  box-shadow: var(--shadow-sm);
}
.chip--live { display: inline-flex; align-items: center; gap: .5rem; }
.chip-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(31 125 107 / 18%);
}

.home-title {
  margin: 1rem 0 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.25rem, 2.3rem + 4.6vw, 6.25rem);
  line-height: .92;
  letter-spacing: .01em;
  text-wrap: balance;
}
.home-title em { font-style: normal; color: var(--rust); }

.home-lead {
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem;
}
/* The official artwork as it comes: no frame of our own. */
.store-badge { display: inline-block; line-height: 0; border-radius: 9px; }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge:hover img { filter: brightness(1.15); }

.home-visual {
  position: relative;
  width: min(100%, 27rem);
  aspect-ratio: 10 / 11;
  margin-inline: auto;
}

/* A phone: the capture inside a thin ink frame. */
.phone {
  position: absolute;
  top: 0;
  width: 50%;
  padding: 6px;
  border-radius: 30px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}
.phone--back { left: 9%; top: 9%; transform: rotate(-6deg); }
.phone--front { right: 9%; transform: rotate(4deg); }

.home-mascot {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 31%;
  height: auto;
  filter: drop-shadow(0 12px 16px rgb(18 59 58 / 22%));
  animation: bob 5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@media (min-width: 60rem) {
  .home-hero { padding-block: 2.5rem 4.5rem; }
  .home-hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 3rem;
  }
  .home-copy { text-align: left; }
  .home-lead { margin-left: 0; }
  .store-badges { justify-content: flex-start; }
  .home-visual { width: 100%; max-width: 30rem; }
}

.features { padding-block: 0 3.5rem; }

.section-title {
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.9rem + 1.6vw, 3.25rem);
  line-height: 1;
  text-align: center;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feature {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.feature-icon { grid-row: span 2; width: 4.5rem; height: 4.5rem; align-self: start; }
.feature h3 {
  margin: .2rem 0 .15rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.05;
  letter-spacing: .01em;
}
.feature p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }

@media (min-width: 48rem) {
  .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .feature {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: 1.5rem 1.5rem 1.6rem;
  }
  .feature-icon { grid-row: auto; width: 5.5rem; height: 5.5rem; margin-bottom: .6rem; }
}

.trademarks {
  max-width: 40rem;
  margin: 2.5rem auto 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
  text-align: center;
}

/* Pages: hero, then the document with its summary and table of contents ---- */

.hero { padding-block: 1.75rem 1.5rem; }

.eyebrow {
  margin: 0;
  color: var(--rust);
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: .25rem 0 .85rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 2.2rem + 2.6vw, 4.25rem);
  line-height: .95;
  letter-spacing: .01em;
}

.hero-lead {
  max-width: 40rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1875rem;
}
.hero-lead--second { margin-top: .35rem; color: var(--muted); font-size: 1.0625rem; }

.translation-note {
  max-width: 40rem;
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .9375rem;
}

.doc {
  display: grid;
  gap: 1.25rem;
  padding-block: .5rem 4rem;
}
.doc > * { min-width: 0; }
.doc--single > * { max-width: var(--measure); }

@media (min-width: 64rem) {
  .doc--toc {
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    column-gap: var(--gutter);
    align-items: start;
  }
  .doc--toc .summary,
  .doc--toc .prose { grid-column: 2; max-width: var(--measure); }
  .doc--toc .toc {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow: auto;
  }
}

.summary,
.toc,
.prose {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.summary {
  padding: 1.15rem 1.5rem 1.35rem;
  border-color: #bdd5c8;
  background: var(--green-tint);
}
.summary ul { margin: 0; padding-left: 1.2rem; }
.summary li + li { margin-top: .4rem; }
.summary p { margin: 0; }
.summary p + p, .summary p + ul, .summary ul + p { margin-top: .6rem; }

/* The panel titles: a small ink label. */
.summary h2,
.toc h2 {
  display: inline-block;
  margin: 0 0 .75rem;
  padding: .25rem .8rem .2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.2;
  letter-spacing: .05em;
}

.toc {
  padding: 1rem 1.1rem 1.1rem;
  font-size: .9375rem;
  line-height: 1.45;
}
.toc-list { margin: 0; padding-left: 1.3rem; }
.toc-list li { margin: .35rem 0; }
.toc-list a { color: var(--ink); text-decoration: none; }
.toc-list a:hover { color: var(--rust); text-decoration: underline; }

.prose { padding: clamp(1.25rem, .9rem + 1.6vw, 2.25rem); }

.prose h2 {
  margin: 2.25rem 0 .6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.55rem + .8vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: .01em;
  scroll-margin-top: 1rem;
}
.prose > h2:first-child { margin-top: 0; }

.prose h3 {
  margin: 1.6rem 0 .45rem;
  color: var(--green);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  scroll-margin-top: 1rem;
}

.prose p,
.prose ul,
.prose ol { margin: 0 0 1rem; }
.prose > :last-child { margin-bottom: 0; }
.prose ul,
.prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .35rem; }
.prose li::marker { color: var(--rust); }

.legal-caps { font-size: .9375rem; letter-spacing: .01em; }

/* Buttons: rust, like the app's main action. */
.button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.4rem .75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rust-high), var(--rust) 60%, var(--rust-dark));
  color: var(--white);
  font-size: 1rem;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 18%), 0 8px 18px -8px rgb(148 59 47 / 70%);
}
.button:hover { color: var(--white); filter: brightness(1.06); }
.button:active { transform: translateY(1px); }
.button--quiet {
  background: var(--white);
  color: var(--rust-dark);
  box-shadow: inset 0 0 0 1.5px var(--rust);
}
.button--quiet:hover { color: var(--rust-dark); background: var(--rust-tint); }

.steps {
  list-style: none;
  counter-reset: step;
  padding-left: 0 !important;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  min-height: 2rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -.05rem;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--rust);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
}

.contact-card {
  display: grid;
  gap: .6rem;
  justify-items: start;
}
.contact-card h2 { margin-bottom: 0; }
.contact-card ul { margin: 0; }
.contact-card p + ul, .contact-card ul + p { margin-top: 0; }
.contact-card .email { font-size: 1.25rem; }

/* Footer ---------------------------------------------------------------- */

.site-footer {
  padding-block: 2rem 2.5rem;
  background: var(--ink);
  color: rgb(255 248 240 / 78%);
  font-size: .9375rem;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }

.footer-links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links a[aria-current="page"] { color: var(--gold); }

.footer-contact { margin: 0 0 1rem; }
.footer-copy {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
  font-size: .875rem;
}
.footer-icon { flex: none; width: 28px; height: 28px; border-radius: 8px; }

.page-index .footer-inner { text-align: center; }
.page-index .footer-links,
.page-index .footer-copy { justify-content: center; }

/* Motion and print ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  body { background: #ffffff; color: #000000; }
  .site-header, .skip-link, .toc, .site-footer nav, .button { display: none !important; }
  .hero { padding: 0; }
  .hero h1, .eyebrow, .prose h2, .prose h3 { color: #000000; }
  .chip, .summary, .prose { background: none; color: #000000; border: 0; box-shadow: none; padding: 0; }
  .doc--toc { display: block; }
  .site-footer { background: none; color: #000000; }
  a { color: #000000; }
}
