/* Canny Grind website. The app's colors and fonts; follows the device's light or dark setting; no JavaScript. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --ground: #14161A;
  --surface: #1C1F25;
  --line: #2C313B;
  --text: #E9E4D8;
  --muted: #A8A398;
  --brass: #E3B25C;
  --coral: #E0875A;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #F6F2E9;
    --surface: #FFFDF8;
    --line: #DDD6C6;
    --text: #1B1D22;
    --muted: #5E5A50;
    --brass: #9A6A12;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.2; margin: 0; }
strong { font-weight: 600; }

/* --- The app page --- */
.app { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
.app section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.app section:first-child { border-top: 0; }
.app h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
.app p { margin: 0 0 1rem; }
.app p:last-child { margin-bottom: 0; }

.hero { text-align: center; padding-top: 3rem !important; }
.app-icon { width: 128px; height: 128px; margin: 0 auto 1.25rem; border-radius: 28px; }
.hero h1 { font-size: 2.75rem; }
.subtitle { font-family: "Newsreader", Georgia, serif; font-size: 1.375rem; color: var(--muted); margin: 0.25rem 0 1.25rem !important; }
.lead { font-size: 1.1875rem; max-width: 26rem; margin: 0 auto 1.5rem !important; }
.small { font-size: 0.9375rem; color: var(--muted); }

/* The official badge, unchanged; the clear space around it is at least a quarter of its height. */
.play-badge { display: inline-block; margin: 16px; } /* clear space: a quarter of the 64 px badge height */
.play-badge img { height: 64px; width: auto; }
.play-badge:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.closing { text-align: center; }

.steps { margin: 0; padding-left: 1.4rem; }
.steps li { margin-bottom: 0.75rem; }
.steps li::marker { font-weight: 600; color: var(--brass); }
.points { margin: 0 0 1.75rem; padding-left: 1.25rem; }
.points li { margin-bottom: 0.5rem; }
.points li::marker { color: var(--brass); }

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.shots picture { scroll-snap-align: center; }
.shots img { width: 100%; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 48rem) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
}

/* --- Text pages: Manual, FAQ, Privacy Policy --- */
.topbar { max-width: 44rem; margin: 0 auto; padding: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); text-decoration: none; font-family: "Newsreader", Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.prose { max-width: 44rem; margin: 0 auto; padding: 0.5rem 1rem 3rem; }
.prose h1 { font-size: 2.25rem; margin: 0.5rem 0 1.25rem; }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.1875rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.375rem; }
.prose li::marker { color: var(--brass); }
.note { color: var(--muted); font-size: 0.9375rem; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.625rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.notfound { text-align: center; padding-top: 4rem; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); margin-top: 1rem; padding: 2rem 1rem 2.5rem; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--text); text-decoration: none; padding: 0.25rem 0; }
.site-footer a:hover { color: var(--brass); text-decoration: underline; }
.fine { color: var(--muted); font-size: 0.8125rem; margin: 1.25rem 0 0; }

@media (min-width: 48rem) {
  .hero h1 { font-size: 3.5rem; }
  .app h2 { font-size: 2rem; }
}
