/* 2mins site. Colours match the app (2mins-flutter/lib/core/theme/app_colors.dart). */
:root {
  --paper: #f5f0e6;
  --surface: #fbf8f2;
  --ink: #1f1b16;
  --muted: #5e564b;
  --quiet: #6b6257;
  --line: #e3dace;
  --accent: #2f5d50;
  --time: #a0521b;
  --time-tint: #efe5d6;
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17140f;
    --surface: #211d17;
    --ink: #f5f0e6;
    --muted: #cfc6b8;
    --quiet: #b3a999;
    --line: #3a342b;
    --accent: #8cc2ae;
    --time: #e0a06b;
    --time-tint: #2c241a;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.skip:focus { top: 1rem; }

.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header and footer */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font: 600 1.375rem/1 var(--serif);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img { width: 1.5rem; height: 2rem; }
.mark-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .mark-light { display: none; }
  .mark-dark { display: inline; }
}
.site-nav { display: flex; gap: 1rem; font-size: 0.9375rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.9375rem;
}
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0 0 0.75rem; padding: 0; }
.site-footer p { margin: 0; }

/* Landing */
.hero { padding: 2.5rem 0 1rem; text-align: center; }
.hero-mark { width: 4.5rem; height: 6rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.hero h1 { font-size: clamp(2.25rem, 7vw, 3.25rem); margin: 1.25rem 0 0.75rem; }
.lede { color: var(--muted); font-size: 1.1875rem; margin: 0 auto; max-width: 32rem; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 2rem 0 0.5rem; padding: 0; list-style: none; }
.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 11rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  line-height: 1.25;
}
.store small { color: var(--time); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.store span { font-weight: 600; }

.section { margin-top: 3.5rem; }
.section h2 { font-size: 1.625rem; margin: 0 0 1rem; }

.steps { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5rem;
  text-align: center;
}
.steps strong { display: block; }
.steps p { margin: 0.125rem 0 0; color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.shot {
  aspect-ratio: 9 / 19;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--quiet);
  font-size: 0.875rem;
  text-align: center;
}

.topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.topics li { padding: 0.375rem 0.875rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.9375rem; }

.promise { margin: 0; padding-left: 1.25rem; }
.promise li { margin: 0.375rem 0; }

/* Legal pages */
.doc { padding-top: 1.5rem; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.5rem); margin: 0 0 0.5rem; }
.doc h2 { font-size: 1.375rem; margin: 2.25rem 0 0.5rem; }
.doc h3 { font-size: 1.125rem; margin: 1.5rem 0 0.25rem; }
.doc .meta { color: var(--quiet); font-size: 0.9375rem; margin: 0 0 1.5rem; }
.doc li { margin: 0.25rem 0; }
.summary { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.summary h2 { margin-top: 0; font-size: 1.125rem; }
.summary ul { margin: 0; padding-left: 1.25rem; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 0.625rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-weight: 600; }

.todo { background: var(--time-tint); color: var(--time); padding: 0 0.25rem; border-radius: 4px; font-weight: 600; }

@media (min-width: 40rem) {
  .shot { aspect-ratio: 3 / 4; }
}

@media (max-width: 30rem) {
  .shots { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .shot { font-size: 0.75rem; padding: 0.5rem; border-radius: 14px; }
  .site-nav { gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
