/* drawai site styles. Values come only from tokens.css; the single literal is
   the @media breakpoint, equal to --breakpoint-wide (CSS cannot read a custom
   property inside a media query). */
@font-face {
  font-family: "Noto Serif";
  src: url("fonts/NotoSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("fonts/NotoSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("fonts/NotoSans-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-ink);
  background-image: var(--color-field);
  background-repeat: no-repeat;
  color: var(--color-text-body);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  font-weight: var(--weight-regular);
  line-height: var(--type-body-line);
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-gutter);
}

a { color: var(--color-accent-line); transition: opacity var(--motion-fast) var(--motion-ease); }
a:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus-edge);
  outline-offset: var(--space-xs);
  border-radius: var(--radius-chip);
}

/* Header */
.site-header { border-bottom: var(--hairline-width) solid var(--color-hairline); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--touch-min);
}
.wordmark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--weight-regular);
  font-size: var(--type-wordmark-size);
  line-height: var(--type-wordmark-line);
  color: var(--color-text-primary);
  text-decoration: none;
}
/* The language switch: a native drop-down drawn as a pill (doc/design/site.md, Layout). */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: var(--touch-min);
  padding: var(--space-sm) var(--select-pad-end) var(--space-sm) var(--select-pad-start);
  border: var(--hairline-width) solid var(--color-text-muted);
  border-radius: var(--radius-pill);
  background: transparent var(--select-chevron) no-repeat right var(--select-chevron-inset) center;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  cursor: pointer;
}
.lang-select option { color: var(--color-ink); }
.lang-select:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus-edge);
  outline-offset: var(--space-xs);
}
/* Shown only inside <noscript>, for readers without scripts. */
.langs { display: flex; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  min-width: var(--touch-min);
  padding: 0 var(--space-sm);
  font-size: var(--type-link-size);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.lang.current { color: var(--color-text-primary); }

/* Type */
.eyebrow {
  margin: 0 0 var(--space-lg);
  font-size: var(--type-eyebrow-size);
  font-weight: var(--weight-medium);
  letter-spacing: var(--type-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.display, .legal-body h1 {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--weight-regular);
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
  letter-spacing: var(--type-h1-tracking);
  color: var(--color-text-primary);
}
.section-title {
  margin: 0 0 var(--space-xl);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--weight-regular);
  font-size: var(--type-wordmark-size);
  line-height: var(--type-wordmark-line);
  color: var(--color-text-primary);
}
.lede {
  margin: 0 0 var(--space-xl);
  max-width: var(--measure);
  font-size: var(--type-body-large-size);
  color: var(--color-text-body);
}
.label {
  margin: 0 0 var(--space-md);
  font-size: var(--type-label-size);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}

/* Home hero */
.hero { padding: var(--space-xxl) 0 var(--space-xxxl); }
/* The stores' official badges at one height; the gap is the stores' clear
   space, a quarter of the badge height. */
.stores { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.store { display: inline-block; line-height: 0; }
.store img { display: block; height: var(--badge-height); width: auto; }
.art {
  overflow: hidden;
  margin: var(--space-xxl) 0 0;
  border-radius: var(--radius-large);
  background: var(--color-ink);
}
/* Each image is shown whole: a crop that removes the lamp would cut the subject. */
.art img {
  display: block;
  width: 100%;
  height: auto;
}

/* A section with art: art above the text when narrow, two columns when wide. */
.feature .art { margin: 0 0 var(--space-xxl); }

/* Sections and cards */
.section {
  padding: var(--space-xxxl) 0;
  border-top: var(--hairline-width) solid var(--color-hairline);
}
.steps { display: grid; gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.card {
  padding: var(--space-xl);
  border: var(--hairline-width) solid var(--color-card-edge);
  border-radius: var(--radius-card);
  background: var(--color-card-fill);
}
.card h3 {
  margin: 0 0 var(--space-sm);
  font-size: var(--type-title-size);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}
.card p { margin: 0; }
.prose { max-width: var(--measure); margin: 0; }
.faq { display: grid; gap: var(--space-md); }
.faq .mail { overflow-wrap: anywhere; }

/* Legal notice: label and value pairs */
.notice { margin: 0; }
.notice dt {
  padding-top: var(--space-lg);
  font-size: var(--type-label-size);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}
.notice dd {
  margin: 0;
  padding: var(--space-xs) 0 var(--space-lg);
  border-bottom: var(--hairline-width) solid var(--color-hairline);
  color: var(--color-text-primary);
}

/* Legal pages */
.legal { max-width: var(--measure); padding: var(--space-xxl) 0 var(--space-xxxl); }
.banner {
  margin: 0 0 var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-card);
  background: var(--color-paper-high);
  color: var(--color-paper-ink);
}
.banner strong { font-weight: var(--weight-medium); }
.legal-body h2 {
  margin: var(--space-xxl) 0 var(--space-md);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--weight-regular);
  font-size: var(--type-wordmark-size);
  line-height: var(--type-wordmark-line);
  color: var(--color-text-primary);
}
.legal-body p, .legal-body li { margin: 0 0 var(--space-md); }
.legal-body ul { margin: 0 0 var(--space-md); padding-left: var(--space-xl); }
.legal-body strong { font-weight: var(--weight-medium); color: var(--color-text-primary); }
.legal-body .banner strong { color: var(--color-paper-ink); }
.table-scroll { overflow-x: auto; margin: 0 0 var(--space-md); }
.legal-body table { width: 100%; border-collapse: collapse; }
.legal-body th, .legal-body td {
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: var(--hairline-width) solid var(--color-hairline);
  text-align: left;
  vertical-align: top;
}
.legal-body th { font-weight: var(--weight-medium); color: var(--color-text-primary); }
/* The retention section is Google Play's account-deletion link target, so
   Play's "highlighted and reasonably prominent" rule is met by a card. */
.legal-body section#retention {
  margin: var(--space-xxl) 0;
  padding: var(--space-xs) var(--space-xl) var(--space-sm);
  border: var(--hairline-width) solid var(--color-card-edge);
  border-radius: var(--radius-card);
  background: var(--color-card-fill);
}
.legal-body section#retention h2 { margin-top: var(--space-lg); }

/* Footer */
.site-footer {
  background: var(--color-ink);
  border-top: var(--hairline-width) solid var(--color-hairline);
  font-size: var(--type-legal-size);
  line-height: var(--type-legal-line);
  color: var(--color-text-muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
  min-height: var(--touch-min);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xxl);
}
.site-footer nav { display: flex; flex-wrap: wrap; column-gap: var(--space-xl); }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  font-size: var(--type-link-size);
  text-decoration: none;
}
.site-footer .copyright { margin: 0 0 0 auto; }

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: var(--space-huge);
    align-items: center;
    padding: var(--space-huge) 0;
  }
  .hero .art { margin: 0; }
  .hero .display {
    font-size: var(--type-hero-size);
    line-height: var(--type-hero-line);
    letter-spacing: var(--type-hero-tracking);
  }
  .feature {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: var(--space-huge);
    align-items: center;
  }
  .feature .art { margin: 0; }
  .feature-mirrored { grid-template-columns: 5fr 6fr; }
  .feature-mirrored .art { order: 2; }
  .stores { max-width: var(--measure); }
  .steps { gap: var(--space-lg); }
  .faq { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
  .section { padding: var(--space-huge) 0; }
  .legal { padding: var(--space-huge) 0; }
}
