/* leerlingsites.nl: gedeelde stijl voor de homepage en de foutpagina's */

:root {
  --paper: #faf8f4;
  --ink: #1b1630;
  --muted: #6a6479;
  --rule: #e4dfd5;
  --accent: #291c5b;
  --accent-ink: #ffffff;
  --tint: #eee9f6;
  --field: #f1ede6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15131b;
    --ink: #ece8f3;
    --muted: #a29cb2;
    --rule: #2c2837;
    --accent: #c4b8f0;
    --accent-ink: #15121f;
    --tint: #221d33;
    --field: #1f1c27;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  border-top: 4px solid var(--accent);
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
code, kbd, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--field); padding: .1em .35em; border-radius: 4px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 40rem) { .wrap { padding: 0 1rem; } }

/* Kopbalk */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand img { width: 26px; height: 26px; }
.school { color: var(--muted); font-size: .9rem; }

/* Koppen */
.display {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.025em;
  margin: 0;
}
.display em { font-style: italic; color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin: 1.5rem 0 0; }

h2 { font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.1; letter-spacing: -.015em; margin: 0; }
h3 { font-family: var(--serif); font-weight: 600; margin: 0; }

/* Adresbalk */
.address {
  display: flex; align-items: stretch; max-width: 40rem; margin-top: 2.5rem;
  border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper);
  font-family: var(--mono); font-size: 1.1rem;
}
.address:focus-within { box-shadow: 0 0 0 4px var(--tint); }
.address .pre, .address .post { display: flex; align-items: center; color: var(--muted); white-space: nowrap; }
.address .pre { padding-left: 1rem; }
.address input {
  flex: 1; min-width: 4ch; border: 0; outline: none; background: transparent; color: var(--ink);
  font: inherit; padding: .95rem .1rem; text-align: right;
}
.address input::placeholder { color: var(--muted); opacity: .55; }
.address .post { padding-right: .9rem; }
.address button {
  border: 0; background: var(--accent); color: var(--accent-ink); font: 600 1rem var(--sans);
  padding: 0 1.3rem; cursor: pointer;
}
.address button:hover { filter: brightness(1.12); }
@media (max-width: 34rem) {
  .address { font-size: 1rem; }
  .address .pre { display: none; }
  .address input { text-align: left; padding-left: .9rem; }
}
.address-hint { min-height: 1.6rem; margin: .5rem 0 0; font-size: .92rem; color: #b42318; }
@media (prefers-color-scheme: dark) { .address-hint { color: #ff9b8f; } }

/* Secties: label links, inhoud rechts */
.section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 3rem; padding: 4.5rem 0; border-top: 1px solid var(--rule); }
.section-head p { color: var(--muted); margin: .75rem 0 0; max-width: 20rem; }
@media (max-width: 52rem) { .section { grid-template-columns: 1fr; padding: 3rem 0; } }

/* Hall of Fame */
.hof { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.hof li { border-bottom: 1px solid var(--rule); }
.hof a { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: .25rem 1rem; padding: 1.4rem 0; text-decoration: none; align-items: baseline; }
.hof .num { font-family: var(--serif); font-size: 1.1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hof h3 { font-size: 1.55rem; line-height: 1.2; }
.hof .meta { grid-column: 2; color: var(--muted); font-size: .95rem; }
.hof .desc { grid-column: 2; margin: .3rem 0 0; }
.hof .go { grid-column: 3; grid-row: 1; font-family: var(--mono); font-size: .85rem; color: var(--muted); white-space: nowrap; transition: transform .15s ease, color .15s ease; }
.hof a:hover h3, .hof a:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
.hof a:hover .go, .hof a:focus-visible .go { color: var(--accent); transform: translateX(3px); }
@media (max-width: 40rem) {
  .hof a { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .hof .go { grid-column: 2; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { .hof .go { transition: none; } }

/* Stappen */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .9rem; color: var(--muted); padding-top: .2rem; }
.steps strong { font-weight: 600; }

/* Nagemaakte FileZilla-balk */
.fz { margin-top: 2rem; padding: 1rem; background: var(--field); border-radius: 10px; }
.fz-fields { display: grid; grid-template-columns: 2.2fr 1.4fr 1.4fr .7fr; gap: .75rem; }
.fz label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .25rem; }
.fz .val { display: block; font-family: var(--mono); font-size: .92rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: .45rem .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz .val.dim { color: var(--muted); }
.fz figcaption { margin-top: .75rem; font-size: .88rem; color: var(--muted); }
@media (max-width: 40rem) { .fz-fields { grid-template-columns: 1fr 1fr; } }

/* Tips */
.tips { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.tips div { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.tips dt { font-weight: 600; margin-bottom: .25rem; }
.tips dd { margin: 0; color: var(--muted); }
@media (max-width: 40rem) { .tips { grid-template-columns: 1fr; } }

/* Vragen */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1rem; font-family: var(--sans); font-weight: 300; font-size: 1.5rem; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); max-width: 38rem; }

/* Voet */
.footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Foutpagina's */
.error { padding: 5rem 0 6rem; max-width: 44rem; }
.error .status { font-family: var(--mono); font-size: .9rem; color: var(--muted); margin: 0 0 1.5rem; }
.error .status b { color: var(--accent); font-weight: 600; }
.error .display { font-size: clamp(2.3rem, 6.5vw, 4rem); }
.error .where { font-family: var(--mono); font-size: 1rem; margin: 1.75rem 0 0; padding: .7rem .9rem; background: var(--field); border-radius: 8px; word-break: break-all; }
.error p { color: var(--muted); font-size: 1.1rem; margin: 1.5rem 0 0; }
.error ul { color: var(--muted); margin: 1rem 0 0; padding-left: 1.2rem; }
.error li { margin: .35rem 0; }
.actions { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; margin-top: 2.25rem; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: .8rem 1.3rem; border-radius: 10px; }
.btn:hover { filter: brightness(1.12); }
.link { font-weight: 600; }
