/* Family Logbook — the site.
   The app's own tokens, so the page and the product are visibly the same
   thing. Nothing here is a framework: three static pages do not need one, and
   a build step would be one more thing to keep working. */

:root {
  --ground:   #FAF8F2;
  --surface:  #FFFFFF;
  --ink:      #23231D;
  --muted:    #6C6A5C;
  --hairline: #E9E5D9;
  --olive:    #5C6B3C;
  --olive-in: #FAF8F2;
  --measure:  38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:   #16160F;
    --surface:  #1E1E16;
    --ink:      #F2F0E6;
    --muted:    #A19E8D;
    --hairline: #32312A;
    --olive:    #A9BC7C;
    --olive-in: #16160F;
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.006em;
}

img { max-width: 100%; height: auto; display: block; }

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

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ------------------------------------------------------------------ type */

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 7vw, 3rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 800; margin-top: 2.75rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.75rem; }
p  { margin: 0.85rem 0; }

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede { font-size: 1.15rem; color: var(--muted); max-width: 30rem; }

strong { font-weight: 700; }

/* ------------------------------------------------------------------ head */

header.top {
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

header.top .wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

header.top img { width: 30px; border-radius: 8px; }

/* Pushes the language switch to the far side of the header bar. */
header.top .grow { flex: 1; }

/* EN · NL, the same idiom as the switch on the app's own sign-in screen.
   Links rather than a script: the deployed Content-Security-Policy allows no
   JavaScript at all, and two real pages share and index better than one page
   that rewrites itself. */
header.top .lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

header.top .lang a { color: var(--muted); text-decoration: none; }
header.top .lang a:hover { color: var(--ink); }
header.top .lang .here { color: var(--ink); }
header.top .lang .sep { color: var(--hairline); }

header.top a.name {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
}

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

.hero { padding: 4rem 0 1rem; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero img.icon {
  width: 104px;
  border-radius: 24px;
  margin-bottom: 1.75rem;
}
.hero .lede { margin-top: 1rem; }

/* ----------------------------------------------------------------- cards */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}

.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------------------- gallery */

/* Its own band, wider than the text measure. Three phone shots do not fit in a
   column sized for prose: they wrap to two and leave the third stranded on a
   row of its own, which reads as a broken layout rather than a gallery. */
.band {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: 3.5rem 0;
  padding: 2.5rem 0 3rem;
}

.band .wrap { max-width: 52rem; }
.band h2 { margin-top: 0; }

.shots {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.5rem;
}

/* Never two-and-an-orphan: three across, or one at a time. */
@media (max-width: 44rem) {
  .shots { grid-template-columns: 1fr; max-width: 20rem; }
}

.shots img {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  width: 100%;
  background: var(--ground);
}

.shots figcaption { margin-top: 0.6rem; }
.shots figure { margin: 0; }

/* -------------------------------------------------------------- callout */

.callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--olive);
  border-radius: 0 14px 14px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child  { margin-bottom: 0; }

/* ------------------------------------------------------------------ misc */

ul { padding-left: 1.15rem; }
li { margin: 0.4rem 0; }

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 3rem 0;
}

code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

footer {
  border-top: 1px solid var(--hairline);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 0.9rem; }

main { padding-bottom: 1rem; }

/* The first heading on a page that has no hero above it. A class rather than a
   style attribute, because the deployed Content-Security-Policy has no
   'unsafe-inline' and would drop the attribute without saying so. */
.page-title { margin-top: 3rem; }

.updated { color: var(--muted); font-size: 0.9rem; }
