/* German Growth — the app's own materials, on the web.
   Pressed parchment, a serif for the German, and der/die/das in the three
   colours the app teaches them in. One file, no build step, no JavaScript. */

:root {
  --paper:      #faf6ec;
  --ground:     #ece5d6;
  --edge:       rgba(107, 89, 61, .18);
  --ink:        #2a251c;
  --ink-soft:   #6b6152;
  --ink-faint:  #948a79;
  --der:        #1f5fa8;
  --die:        #b23a34;
  --das:        #2e7d4f;
  --accent:     #5b4fc7;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --shadow: 0 1px 2px rgba(63, 50, 29, .08), 0 10px 30px rgba(63, 50, 29, .07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #2b2924; --ground: #171613; --edge: rgba(242, 235, 217, .14);
    --ink: #ece5d5; --ink-soft: #a99f8c; --ink-faint: #7d7565;
    --der: #7fb0e8; --die: #e8938c; --das: #7fc79b; --accent: #a99cf5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px 72px; }
.wrap.narrow { max-width: 680px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* -- header + footer ------------------------------------------------------ */

header.site, footer.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 20px 0; margin-bottom: 8px;
}
footer.site {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--edge);
  color: var(--ink-faint);
}
.brand {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
header.site nav { display: flex; gap: 20px; font-size: 15px; }
header.site nav a { color: var(--ink-soft); text-decoration: none; }
header.site nav a:hover { color: var(--ink); text-decoration: underline; }

/* -- hero ----------------------------------------------------------------- */

.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center;
  padding: 26px 0 40px;
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .hero-art { order: -1; }
}
.hero-art img { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }

.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-faint); margin: 0 0 12px;
}
h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 5.4vw, 52px); line-height: 1.06;
  margin: 0 0 16px; text-wrap: balance;
}
.lede { font-size: 18px; color: var(--ink-soft); margin: 0 0 20px; max-width: 46ch; }
.lede em { color: var(--ink); font-style: normal; font-weight: 600; }

/* The three articles, in the colours the app teaches them in. */
.articles { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; }
@media (max-width: 760px) { .articles { justify-content: center; } }
.articles li {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  padding: 6px 18px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--edge); box-shadow: var(--shadow);
}
.articles .der { color: var(--der); }
.articles .die { color: var(--die); }
.articles .das { color: var(--das); }

/* -- content -------------------------------------------------------------- */

h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.2;
  margin: 48px 0 14px; text-wrap: balance;
}
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 16px; max-width: 68ch; }
.small { font-size: 14px; color: var(--ink-faint); }
ul { max-width: 68ch; padding-left: 22px; }
li { margin-bottom: 6px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 22px 0 8px; }
.card {
  background: var(--paper); border: 1px solid var(--edge); border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow);
}
.card p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.card .tag {
  display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-faint); margin-bottom: 8px;
}

.note {
  background: var(--paper); border: 1px solid var(--edge); border-left: 3px solid var(--das);
  border-radius: 12px; padding: 18px 20px; margin: 26px 0; box-shadow: var(--shadow);
}
.note p:last-child { margin-bottom: 0; }

.button {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.button:hover { opacity: .9; }

code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
