/* Colours come from the app icon: the cream wall, the sunflower, the
   gingham cloth and the clay vase. */
:root {
  color-scheme: light dark;
  --bg: #FDF3DC;
  --surface: #FFFBF2;
  --text: #3A2410;
  --muted: #7A5D44;
  --accent: #D93A3F;
  --accent-text: #FFFFFF;
  --sun: #F5B915;
  --line: #EEDFC0;
  --check: rgba(217, 58, 63, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1F1A14;
    --surface: #2A231B;
    --text: #F6EBD6;
    --muted: #C4AE92;
    --accent: #F0595D;
    --accent-text: #1F1A14;
    --line: #3D3326;
    --check: rgba(240, 89, 93, 0.16);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; text-wrap: balance; }

.top, main, .bottom {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.brand img { border-radius: 7px; }

.top nav {
  display: flex;
  gap: 20px;
}

.top nav a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.top nav a.lang {
  color: var(--muted);
  font-weight: 500;
}

.top nav a:hover { color: var(--accent); }

.hero {
  text-align: center;
  padding: 40px 0 56px;
}

.hero .icon {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  box-shadow: 0 12px 32px rgba(58, 36, 16, 0.18);
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  margin: 32px auto 16px;
  max-width: 14em;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto 28px;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.button.soon {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--line);
}

.note {
  color: var(--muted);
  font-size: 15px;
  margin-top: 14px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  /* The gingham tablecloth from the icon. */
  padding: 24px;
  border-radius: 24px;
  background-color: var(--surface);
  background-image:
    linear-gradient(90deg, var(--check) 50%, transparent 50%),
    linear-gradient(var(--check) 50%, transparent 50%);
  background-size: 48px 48px;
}

.features article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
}

.features h2 {
  font-size: 19px;
  margin: 0 0 8px;
}

.features h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--sun);
  vertical-align: 2px;
}

.features p {
  margin: 0;
  color: var(--muted);
}

.cta {
  text-align: center;
  padding: 64px 0 24px;
}

.cta h2 {
  font-size: 28px;
  margin: 0 0 8px;
}

.cta p {
  color: var(--muted);
  margin: 0 0 24px;
}

.prose {
  max-width: 720px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.prose h1 {
  font-size: clamp(32px, 6vw, 44px);
  margin: 16px 0 12px;
}

.prose .lead { margin: 0 0 32px; }

.prose h2 {
  font-size: 24px;
  margin: 40px 0 8px;
}

.prose h3 {
  font-size: 18px;
  margin: 28px 0 4px;
}

.prose p { margin: 0 0 12px; }

.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 22px 12px;
}

.contact h2 { margin-top: 16px; }

.bottom {
  margin-top: 48px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.bottom a { color: var(--muted); }

code {
  font: 0.9em/1.4 ui-monospace, Menlo, monospace;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}

pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
}
