/* Styles for the generated landing pages (see scripts/build-pages.mjs).
   Deliberately standalone rather than reusing the app's Tailwind bundle:
   these are content pages that should paint immediately without loading the
   app's CSS or JS. Keep it small. */

:root {
  --blue: #46b3f4;
  --blue-dark: #186cb0;
  --yellow: #fadb29;
  --ink: #23303a;
  --muted: #5b6b78;
  --bg: #f2f8fd;
  --card: #ffffff;
  --line: #dbe8f2;
  --font-fun: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--blue-dark);
}

/* --- header --- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.header-cta {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.header-cta:hover {
  background: #12578e;
}

/* --- content --- */

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem clamp(1.1rem, 4vw, 2.5rem) 2.25rem;
}

h1 {
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: clamp(1.85rem, 6vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h2 {
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.25;
  margin: 2.25rem 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
  color: #2f4250;
}

/* --- call to action --- */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 1.75rem 0;
}

.cta-btn {
  display: inline-block;
  background: var(--blue-dark);
  color: #fff;
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(24, 108, 176, 0.28);
}

.cta-btn:hover {
  background: #12578e;
}

.cta-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- tafel table --- */

.tafel-table {
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-family: var(--font-fun);
  font-size: 1.15rem;
  /* the caption box is only as wide as the table, so give the table a real
     width — otherwise "De tafel van N van 1 tot en met 10" wraps to 3 lines */
  width: 100%;
  max-width: 22rem;
}

.tafel-table td:nth-child(3) {
  width: 100%;
}

.tafel-table caption {
  caption-side: top;
  text-align: left;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding-bottom: 0.5rem;
}

.tafel-table td {
  padding: 0.3rem 0.75rem 0.3rem 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tafel-table td:first-child {
  text-align: right;
}

.tafel-table td:last-child {
  font-weight: 600;
  color: var(--blue-dark);
}

/* --- link rows --- */

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.link-row a {
  display: inline-block;
  background: #eaf4fd;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
}

.link-row a:hover {
  background: #d9ecfb;
}

/* --- footer --- */

.site-footer {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.footer-col ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 26rem;
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-col [aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}

.footer-note {
  margin: 1.5rem 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: background-color 0.15s ease;
  }
}
