/* dangodfrey.com - custom layer on top of Pico.css (loaded first from the CDN).
   Mobile-first: base rules target a 360px screen, wider layouts arrive at 480 / 768 / 1024. */

:root {
  color-scheme: only light;
  --ink: #262626;
  --ink-soft: #4a4a4a;
  --muted: #5c5c5c;
  --green: #5ea337;
  --green-deep: #3d7a1c;
  --green-link: #2f6a13;
  --green-tint: #f0f6e9;
  --grey-row: #efefef;
  --line: #e1e1e1;
  --white: #ffffff;
  --col: 41rem;
  --wide: 56rem;
  --head: "Oswald", "Fjalla One", "Bahnschrift", "Franklin Gothic Medium", "Arial Narrow",
    "Liberation Sans Narrow", "Nimbus Sans Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --pad-y: 48px;
  --pad-x: 16px;
}

/* Pico bumps the root size at wide viewports; keep rem stable. */
:root { font-size: 100%; }

html {
  background-color: #ffffff;
  color: #262626;
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: #262626;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Neutralise Pico's card / spacing defaults ---------- */
main, article, section, header, footer {
  background-color: transparent;
  color: #262626;
}
article {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-color: #ffffff;
}
main { display: block; margin: 0; padding: 0; background-color: #ffffff; }
main section {
  margin: 0;
  padding: var(--pad-y) var(--pad-x);
  background-color: #ffffff;
  color: #262626;
  border-top: 1px solid var(--line);
}
main section:first-child { border-top: 0; }
main section > * { max-width: var(--col); margin-inline: auto; }

a { color: var(--green-link); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; transition: color 0.15s ease, background-color 0.15s ease; }
a:hover { color: #111111; }
a:focus-visible, input:focus-visible { outline: 3px solid #111111; outline-offset: 3px; box-shadow: none; }
strong { font-weight: 700; color: inherit; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: #262626; letter-spacing: 0.005em; }

main h1 {
  margin-block: 0;
  font-size: clamp(1.75rem, 1.15rem + 2.9vw, 3.1rem);
  line-height: 1.13;
  color: #2b2b2b;
  text-wrap: balance;
}
main h1::after {
  content: "";
  display: block;
  width: 88px;
  height: 3px;
  margin: 22px auto 0;
  background-color: var(--green);
}
main h2 {
  margin-block: 0 0.7em;
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem);
  line-height: 1.18;
  text-wrap: balance;
}
main h3 { margin-block: 0 0.3em; font-size: 1.3rem; line-height: 1.25; }

main p { margin-block: 0 1.15em; font-size: 1.0625rem; line-height: 1.7; color: #262626; }
main ul, main ol { margin-block: 0 1.4em; padding-inline-start: 1.25em; color: #262626; }
main li { margin-block: 0 0.7em; padding: 0; color: #262626; }
main li::marker { color: var(--green-deep); }

.lead { font-size: 1.1875rem; line-height: 1.65; color: #1f1f1f; }
main p.lead { font-size: 1.1875rem; }
.center { text-align: center; }

/* ---------- Masthead ---------- */
.masthead {
  margin: 0;
  padding: 22px var(--pad-x) 6px;
  background-color: #ffffff;
  color: #262626;
  text-align: center;
}
.brand { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; }
.brand a {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #262626;
  text-decoration: none;
}
.brand a:hover { color: var(--green-deep); }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background-color: var(--green-deep);
  color: #ffffff;
  font-family: var(--head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}
header.masthead nav { display: block; margin: 10px 0 0; padding: 0; }
header.masthead nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
header.masthead nav li { display: block; margin: 0; padding: 0; list-style: none; }
header.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  margin: 0;
  border-bottom: 3px solid transparent;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: lowercase;
  color: #262626;
  text-decoration: none;
}
header.masthead nav a:hover { color: var(--green-deep); border-bottom-color: var(--green); }

/* ---------- Hero ---------- */
.hero { padding-top: 28px; text-align: center; }
main section.hero > h1 { max-width: 52rem; }
.dek {
  max-width: 36rem;
  margin-block: 24px 0;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.02rem + 0.9vw, 1.7rem);
  line-height: 1.3;
  color: #333333;
}
main p.dek { font-size: clamp(1.2rem, 1.02rem + 0.9vw, 1.7rem); line-height: 1.32; color: #333333; margin-block: 24px 0; }
main p.byline { margin-block: 12px 26px; font-family: var(--body); font-size: 0.875rem; line-height: 1.5; color: var(--muted); }

figure { display: block; margin: 0 auto; padding: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 6px; background-color: #eceae6; }
figcaption { margin: 0; padding: 10px 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--muted); text-align: left; }
.hero figure img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 55%; }

/* Jump rows: the primary reference's grey option rows */
nav.jump { display: block; margin-top: 18px; text-align: left; }
.jump p { margin: 0 0 10px; font-family: var(--head); font-size: 1.35rem; line-height: 1.3; text-align: center; color: #262626; }
main section nav.jump p { margin-block: 22px 12px; font-size: 1.35rem; }
nav.jump ul:first-of-type, nav.jump ul:last-of-type { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.jump li { display: block; margin: 0; padding: 0; list-style: none; }
.jump a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 6px;
  background-color: var(--grey-row);
  color: #262626;
  font-family: var(--head);
  font-size: 1.2rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.jump a::before {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background-color: #ffffff;
  box-shadow: inset 0 0 0 1px #cfcfcf;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.jump a:hover { background-color: #e3edd8; color: #111111; }
.jump a:hover::before { background-color: var(--green); box-shadow: inset 0 0 0 4px #ffffff, 0 0 0 1px var(--green); }

/* ---------- Calls to action ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  margin: 1.6rem auto 0.75rem;
  padding: 14px 30px;
  border-radius: 6px;
  background-color: var(--green);
  color: #111111;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.cta::after { content: "\2192"; flex: none; transition: transform 0.18s ease; }
.cta:hover { background-color: #111111; color: #ffffff; }
.cta:hover::after { transform: translateX(4px); }
.cta:focus-visible { outline: 3px solid #111111; outline-offset: 3px; }
main p.cta-hint, .cta-hint {
  max-width: 30rem;
  margin: 0 auto 0.4rem;
  font-family: var(--body);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #595959;
  text-align: center;
}

/* ---------- Section textures ---------- */
main section.tint { background-color: var(--green-tint); color: #262626; }
main section.tint p, main section.tint li { color: #262626; }
.tint .lead { color: #1f1f1f; }

/* numbered steps */
.steps { list-style: none; margin-block: 1.6rem 1.8rem; padding: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.9rem; margin-block: 0 1.3rem; list-style: none; counter-increment: step; }
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--green-deep);
}
.steps h3 { grid-column: 2; margin: 0 0 0.15em; }
.steps p { grid-column: 2; margin: 0; }
main section .steps { max-width: var(--col); }

/* wide figure breaks */
main section > figure.wide { max-width: var(--col); margin-block: 1.8rem 0; }
.wide img { aspect-ratio: 3 / 2; object-fit: cover; }

/* text beside a looping clip */
main section > .split { display: grid; gap: 1.6rem; align-items: center; max-width: var(--col); }
.split > div > p:last-child { margin-bottom: 0; }
.split figure { width: 100%; max-width: 19rem; margin: 0 auto; }
.frame { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background-color: #eceae6; }
.frame video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; }

/* ---------- Quiz ---------- */
#quiz > h2, #quiz > p { text-align: center; }
.quiz { margin-top: 1.6rem; text-align: left; }
.quiz fieldset { margin: 0 0 1.9rem; padding: 0; border: 0; background-color: transparent; width: 100%; }
.quiz legend {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.25;
  color: #262626;
}
.quiz .qnum { display: block; margin-bottom: 2px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.quiz .opt {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 6px;
  background-color: var(--grey-row);
  color: #262626;
  transition: background-color 0.15s ease;
}
.quiz .opt:hover { background-color: #e6eddc; }
.quiz .opt:has(input:checked) { background-color: #e3efd6; }
.quiz .opt > input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  grid-column: 1;
  grid-row: 1;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 2px solid #8f8f8f;
  border-radius: 6px;
  background-color: #ffffff;
  background-image: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.quiz .opt > input[type="radio"]:checked {
  border: 2px solid var(--green-deep);
  background-color: var(--green-deep);
  background-image: none;
  box-shadow: inset 0 0 0 5px #ffffff;
}
.quiz .opt > input[type="radio"]:focus-visible { outline: 3px solid #111111; outline-offset: 3px; }
.quiz .opt > label {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0;
  padding: 3px 0;
  font-family: var(--head);
  font-size: 1.2rem;
  line-height: 1.3;
  color: #262626;
  cursor: pointer;
  text-align: left;
}
.quiz .opt > label::after { content: ""; position: absolute; inset: 0; }
.quiz .opt > .why {
  display: none;
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 2;
  margin: 8px 0 2px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #333333;
}
.quiz .opt > input:checked ~ .why { display: block; }

.quiz .results { display: block; margin: 0; padding: 0; }
.quiz .quiz-prompt { margin: 0.4rem 0 0; font-family: var(--head); font-size: 1.15rem; text-align: center; color: var(--muted); }
.quiz .result {
  display: none;
  margin: 1.6rem 0 0;
  padding: 0 0 0 18px;
  border-left: 4px solid var(--green);
  text-align: left;
}
.quiz .result h3 { font-size: 1.55rem; margin-bottom: 0.35em; }
.quiz .result p { color: #262626; }
.quiz .result-no { border-left-color: #8f8f8f; }

.quiz:has(input[value="no"]:checked) .result-no { display: block; }
.quiz:has(input[name="q1"]:checked):has(input[name="q2"]:checked):has(input[name="q3"]:checked):has(input[name="q4"]:checked):not(:has(input[value="no"]:checked)):has(input[value="maybe"]:checked) .result-maybe { display: block; }
.quiz:has(input[name="q1"]:checked):has(input[name="q2"]:checked):has(input[name="q3"]:checked):has(input[name="q4"]:checked):not(:has(input[value="no"]:checked)):not(:has(input[value="maybe"]:checked)) .result-yes { display: block; }
.quiz:has(input[value="no"]:checked) .quiz-prompt { display: none; }
.quiz:has(input[name="q1"]:checked):has(input[name="q2"]:checked):has(input[name="q3"]:checked):has(input[name="q4"]:checked) .quiz-prompt { display: none; }

@supports not selector(:has(*)) {
  .quiz .result { display: block; }
  .quiz .quiz-prompt { display: none; }
  .quiz .opt > .why { display: block; }
}

/* ---------- Closing band ---------- */
main section.band { background-color: var(--green); color: #10200a; border-top: 0; text-align: center; }
main section.band h2, main section.band p { color: #10200a; }
main section.band .cta { background-color: #111111; color: #ffffff; }
main section.band .cta:hover { background-color: #ffffff; color: #111111; }
main section.band .cta:focus-visible { outline-color: #111111; }
main section.band p.cta-hint { color: #10200a; }

/* ---------- Colophon (footer) ---------- */
.colophon {
  margin: 0;
  padding: 56px var(--pad-x) 56px;
  background-color: #ffffff;
  color: #595959;
  border: 0;
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.65;
}
.colophon::before { content: ""; display: block; width: 88px; height: 3px; margin: 0 auto 32px; background-color: var(--green); }
.colophon > * { max-width: 46rem; margin-inline: auto; }
.colophon p { margin-block: 0 14px; font-size: 13px; line-height: 1.65; color: #595959; }
.imprint { margin-bottom: 8px; color: #595959; }
.imprint p { margin: 0 0 6px; }
.colophon .links { display: block; margin: 12px auto 14px; padding: 0; }
.colophon .links ul { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.colophon .links li { display: block; margin: 0; padding: 0; list-style: none; }
.colophon .links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px 0 0;
  margin: 0 8px 0 0;
  font-size: 13px;
  color: #3a3a3a;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.colophon .links a:hover { color: var(--green-deep); }
.colophon .about-line { margin-block: 0; color: #595959; }

/* ---------- Legal / about pages ---------- */
.doc { text-align: left; }
.doc h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); text-align: left; }
.doc h1::after { margin-left: 0; }
main p.version-line { margin-block: 22px 28px; font-size: 0.9rem; color: var(--muted); }
.doc h2 { margin-block: 2rem 0.5em; font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem); }
.doc section { padding-block: 40px 56px; }
.doc address { margin-block: 0 1.2em; font-style: normal; color: #262626; line-height: 1.7; }

/* ---------- 480px ---------- */
@media (min-width: 480px) {
  :root { --pad-x: 24px; }
  .jump a { padding-inline: 16px; }
  .cta { padding-inline: 36px; font-size: 1.3rem; }
}

/* ---------- 768px ---------- */
@media (min-width: 768px) {
  :root { --pad-y: 72px; --pad-x: 32px; }
  body { font-size: 1.125rem; }
  main p, main li { font-size: 1.125rem; }
  main p.cta-hint { font-size: 0.8125rem; }
  header.masthead { padding-top: 30px; }
  header.masthead nav a { padding: 0 16px; font-size: 1.25rem; }
  .hero { padding-top: 40px; }
  .hero figure img { aspect-ratio: 2.25 / 1; }
  main section > .split {
    grid-template-columns: minmax(0, 1fr) 15.5rem;
    gap: 2.75rem;
    max-width: var(--wide);
  }
  .split figure { margin: 0; max-width: none; }
  #concretement > h2 { max-width: var(--wide); }
  .wide img { aspect-ratio: 2.25 / 1; }
  .quiz .opt { padding-block: 14px; }
  .quiz .opt > label { font-size: 1.3rem; }
  .quiz legend { font-size: 1.55rem; }
  .colophon { padding-block: 72px; }
}

/* ---------- 1024px ---------- */
@media (min-width: 1024px) {
  :root { --pad-y: 88px; }
  header.masthead nav ul { gap: 0 14px; }
  main section > .split { gap: 3.5rem; }
}
