/* Lastmod developers: layout of the static pages. Colour comes from tokens.css only. */

/* Geist en Geist Mono, zelf meegeleverd (OFL, fonts/LICENSE.txt): dezelfde lettertypen als lastmod.ai. */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    "Geist",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

code,
pre {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--background);
  padding: 0.5rem 0.75rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header__inner,
.main,
.site-footer__inner {
  max-width: 62rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: var(--foreground);
  text-decoration: none;
}

.brand__logo {
  display: block;
  height: 1.5rem;
  width: auto;
  flex: none;
}

/* Het volledige logo bevat het beeldmerk al: het compacte is alleen voor smalle schermen. */
.brand__logo--compact {
  display: none;
  height: 1.75rem;
}

.brand__tag {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  font-weight: 500;
  padding-left: 0.625rem;
  border-left: 1px solid var(--border);
  line-height: 1.25;
}

@media (max-width: 30rem) {
  .brand__logo--full {
    display: none;
  }
  .brand__logo--compact {
    display: block;
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 0.625rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--foreground);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.main {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.25rem;
  font-size: 1.0625rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

.lede {
  max-width: 40rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.muted {
  color: var(--muted-foreground);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  display: block;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  text-decoration: none;
}

.card:hover {
  border-color: var(--primary);
}

.card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

pre {
  margin: 0 0 1rem;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--muted);
  font-size: 0.875em;
}

.note {
  padding: 0.75rem 1rem;
  border: 1px solid var(--info-border);
  border-radius: var(--radius);
  background: var(--info-subtle);
  color: var(--info-subtle-foreground);
  font-size: 0.9375rem;
}

.tool {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin: 0 0 0.75rem;
}

.tool > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.tool > summary code {
  background: none;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

.tool__title {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.tool__body {
  padding: 0 1rem 1rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.site-footer__inner {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.site-footer p {
  margin: 0 0 0.25rem;
}

.site-footer a {
  display: inline-block;
  min-height: 1.5rem;
}

@media (pointer: coarse) {
  .site-footer a {
    min-height: 2.75rem;
    line-height: 2.75rem;
  }
}
