/* Lettermaatje pages on linthi.nl.
   Same design language as the app's cartoon meadow world: sky-and-hills
   backdrop, white cards with thick ink borders and stamped offset shadows,
   a strip of tape on top, Fredoka headings, Nunito body. */

@font-face {
  font-family: "Fredoka";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/lettermaatje/fonts/fredoka-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fredoka";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/lettermaatje/fonts/fredoka-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/lettermaatje/fonts/nunito-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/lettermaatje/fonts/nunito-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/lettermaatje/fonts/nunito-latin-800-normal.woff2") format("woff2");
}

/* Mirrors ios/Lettermaatje/DesignTokens.swift (lm* colors). */
:root {
  --lm-paper: #FFFBF3;
  --lm-ink: #2A1F2D;
  --lm-ink-soft: #5C4D60;
  --lm-ink-muted: #8C7E91;
  --lm-primary: #FA3E1E;
  --lm-primary-dk: #C92A12;
  --lm-secondary: #1FB8A6;
  --lm-secondary-dk: #11806F;
  --lm-sun: #FFB300;
  --lm-lilac: #7A3FF2;
  --lm-sky: #2A6FDB;
  --lm-red: #EF3E36;
  --lm-yellow: #FFD23F;
  --lm-green: #4CBB4C;
  --lm-green-dk: #35933A;
  --lm-blue-soft: #DCEBFF;
  --lm-font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --lm-font-body: "Nunito", system-ui, sans-serif;
  --lm-border: 3px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #8FD0FF;
  color: var(--lm-ink);
  font-family: var(--lm-font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* The meadow scene, pinned to the viewport behind everything. A fixed
   pseudo-element instead of background-attachment, which iOS Safari janks. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/lettermaatje/meadow.svg?v=2") center bottom / cover no-repeat;
}

.lm-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* Top bar with icon + wordmark */
.lm-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.lm-top img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: var(--lm-border) solid var(--lm-ink);
  box-shadow: 0 4px 0 var(--lm-ink);
  background: white;
}
.lm-top .lm-wordmark {
  font-family: var(--lm-font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--lm-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.lm-top .lm-wordmark span { color: var(--lm-primary); }

h1, h2, h3 {
  font-family: var(--lm-font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
h1 { font-size: 34px; margin: 0 0 8px; }
h2 { font-size: 24px; margin: 36px 0 10px; }
h3 { font-size: 19px; margin: 26px 0 6px; }

p, ul { margin: 0 0 14px; }
li { margin-bottom: 6px; }

a { color: var(--lm-secondary-dk); font-weight: 800; }
a:hover { color: var(--lm-primary-dk); }

.lm-muted { color: var(--lm-ink-soft); }
.lm-small { font-size: 14px; color: var(--lm-ink-muted); }

/* Stamped white card with a strip of tape on top, like the app's writing card. */
.lm-card {
  position: relative;
  background: white;
  border: var(--lm-border) solid var(--lm-ink);
  border-radius: 28px;
  box-shadow: 0 8px 0 var(--lm-ink);
  padding: 28px 30px;
  margin-bottom: 32px;
}
.lm-card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 120px;
  height: 26px;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--lm-yellow);
  border: var(--lm-border) solid var(--lm-ink);
  border-radius: 8px;
}

/* Tinted summary panel */
.lm-panel {
  background: var(--lm-blue-soft);
  border: var(--lm-border) solid var(--lm-ink);
  border-radius: 22px;
  box-shadow: 0 4px 0 var(--lm-ink);
  padding: 18px 22px;
  margin: 0 0 22px;
}

/* Chunky buttons and chips */
.lm-btn {
  font-family: var(--lm-font-display);
  font-weight: 600;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 22px;
  border: var(--lm-border) solid var(--lm-ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--lm-ink);
  background: var(--lm-paper);
  color: var(--lm-ink);
  text-decoration: none;
  transition: transform 0.08s, box-shadow 0.08s;
}
.lm-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 0 var(--lm-ink); color: var(--lm-ink); }
.lm-btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--lm-ink); }
.lm-btn.lm-primary { background: var(--lm-primary); color: white; }
.lm-btn.lm-secondary { background: var(--lm-secondary); color: white; }

.lm-chip {
  font-family: var(--lm-font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2.5px solid var(--lm-ink);
  box-shadow: 0 3px 0 var(--lm-ink);
  background: white;
  color: var(--lm-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lm-chip:hover { background: var(--lm-yellow); color: var(--lm-ink); }

.lm-lang-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

/* Landing page bits */
.lm-hero { text-align: center; padding: 40px 30px; }
.lm-hero img.lm-app-icon {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  border: var(--lm-border) solid var(--lm-ink);
  box-shadow: 0 8px 0 var(--lm-ink);
  background: white;
  margin-bottom: 18px;
}
.lm-hero .lm-tagline {
  font-family: var(--lm-font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--lm-ink-soft);
  margin-bottom: 22px;
}
.lm-hero .lm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

.lm-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 8px 0 26px;
}
.lm-feature {
  background: white;
  border: var(--lm-border) solid var(--lm-ink);
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--lm-ink);
  padding: 18px 20px;
}
.lm-feature h3 { margin: 0 0 6px; }
.lm-feature p { margin: 0; color: var(--lm-ink-soft); font-size: 15px; }
.lm-feature .lm-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--lm-ink);
  margin-right: 8px;
}

/* The footer floats over the meadow, so it sits on its own white pill. */
footer {
  text-align: center;
  color: var(--lm-ink-soft);
  font-size: 14px;
  background: white;
  border: var(--lm-border) solid var(--lm-ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--lm-ink);
  padding: 10px 24px;
  width: fit-content;
  margin: 0 auto;
}
footer a { color: var(--lm-ink-soft); }

@media (max-width: 520px) {
  h1 { font-size: 28px; }
  .lm-card { padding: 22px 20px; border-radius: 22px; }
  .lm-hero { padding: 30px 18px; }
}
