/* home-like — single stylesheet. Colours, sizes and rhythm live in the variables below. */

:root {
  /* colour */
  --bg: #faf5ee;          /* milky page background */
  --bg-panel: #f2e9dc;    /* warm panel / illustration wall */
  --bg-card: #fffaf3;     /* raised surface */
  --ink: #1e2a24;         /* dark green, main text */
  --ink-soft: #4d5a52;    /* secondary text */
  --accent: #b4552f;      /* muted terracotta, for fills and shapes */
  --accent-ink: #9a4626;  /* darker terracotta, for text on light backgrounds */
  --accent-soft: #e6c4ae;
  --line: #ddd0be;

  /* type */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-h1: clamp(2.5rem, 7vw, 4.5rem);
  --step-h2: clamp(1.75rem, 4vw, 2.75rem);
  --step-h3: clamp(1.125rem, 2vw, 1.3rem);
  --step-body: clamp(1rem, 1.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1.7vw, 1.375rem);

  /* layout */
  --shell: 68rem;
  --shell-narrow: 42rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-body);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); line-height: 1.25; }

p { margin: 0 0 1.15rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); }

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: calc(var(--shell-narrow) + var(--gutter) * 2); }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.9rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--bg-card);
  padding: 0.6rem 1rem;
  border-radius: 10px;
}

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  font: inherit;
  font-size: 0.975rem;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.button--solid {
  background: var(--accent-ink);
  color: #fff8f2;
}
.button--solid:hover { background: #7f391e; }
.button--ghost {
  border-color: var(--line);
  color: var(--ink);
}
.button--ghost:hover { border-color: var(--ink); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.7rem clamp(1rem, 4vw, 2.5rem);
  flex-wrap: wrap;
  padding-block: 0.8rem;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo { margin-right: auto; }
.site-nav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
  flex-wrap: wrap;
  font-size: 0.95rem;
  /* on narrow screens the header stacks: logo + languages, links, then the CTA */
  order: 3;
  flex-basis: 100%;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* language switcher: EN / FR / NL */
.lang {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  /* shares the first row with the logo on narrow screens */
  order: 2;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.lang a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.lang a:hover { color: var(--ink); border-color: var(--line); }
.lang a[aria-current="page"] {
  color: var(--ink);
  background: var(--bg-panel);
  border-color: var(--line);
}

@media (min-width: 48rem) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
  }
  @supports not (background: color-mix(in srgb, red, blue)) {
    .site-header { background: var(--bg); }
  }
  .header-inner { padding-block: 0.9rem; }
  .logo { margin-right: 0; }
  .site-nav { order: 0; flex-basis: auto; margin-right: auto; }
  .lang { order: 0; }
}

.header-cta {
  order: 4;
  flex-basis: 100%;
  text-align: center;
  padding: 0.6rem 1.1rem;
  font-size: 0.925rem;
}
@media (min-width: 48rem) {
  .header-cta {
    order: 0;
    flex-basis: auto;
    padding: 0.75rem 1.4rem;
    font-size: 0.975rem;
  }
}

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

.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) var(--section-y); }
.hero-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.25rem; }
.lead {
  font-size: var(--step-lead);
  line-height: 1.5;
  color: var(--ink);
}
.hero-note {
  color: var(--ink-soft);
  border-left: 2px solid var(--accent-soft);
  padding-left: 1rem;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.hero-art { justify-self: center; width: 100%; max-width: 26rem; }
.illustration { display: block; width: 100%; height: auto; }

@media (min-width: 62rem) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero-art { max-width: none; }
}

/* ---------- illustration palette ---------- */

.il-wall { fill: var(--bg-panel); }
.il-light { fill: #f7e3c8; opacity: 0.75; }
.il-light--soft { opacity: 0.4; }
.il-glass { fill: #fdf6ea; }
.il-sky { fill: #e3ece2; }
.il-sun { fill: var(--accent-soft); }
.il-hill { fill: #cbd8c7; }
.il-frame { fill: none; stroke: var(--ink); stroke-width: 9; }
.il-bar { fill: none; stroke: var(--ink); stroke-width: 7; }
.il-sill { fill: var(--ink); }
.il-pot { fill: var(--accent); }
.il-pot-rim { fill: var(--accent-ink); }
.il-stem { fill: none; stroke: #3d5a47; stroke-width: 5; stroke-linecap: round; }
.il-leaf { fill: #3d5a47; }
.il-leaf--accent { fill: #6a8a6b; }
.il-mug { fill: #fdf6ea; stroke: var(--ink); stroke-width: 5; }
.il-mug-handle { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.il-steam { fill: none; stroke: var(--ink-soft); stroke-width: 4; stroke-linecap: round; opacity: 0.55; }
.il-curtain { fill: #e2d4c1; }
.il-floor { stroke: var(--line); stroke-width: 4; }

/* ---------- sections ---------- */

.section { padding-block: var(--section-y); }
.section-head { padding-inline: 0; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section--problem { background: var(--bg-panel); }
.section--problem h2, .section--approach h2 { margin-bottom: 1.5rem; }

.beats {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 60ch;
}
.beats li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}
.beats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.principles {
  list-style: none;
  counter-reset: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}
.principles li {
  display: grid;
  gap: 0.25rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.principle-no {
  font-family: var(--font-serif);
  color: var(--accent-ink);
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.principles p { color: var(--ink-soft); }

@media (min-width: 48rem) {
  .principles { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 6vw, 4.5rem); }
  .principles li { grid-template-columns: auto 1fr; }
  .principle-no { grid-row: span 2; padding-top: 0.35rem; }
}

.section--status { background: var(--bg-panel); }

.section--contact { padding-bottom: clamp(4rem, 10vw, 8rem); }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  max-width: calc(var(--shell-narrow) + 6rem);
}
.contact-card h2 { margin-bottom: 1.25rem; }
.contact-direct { margin-top: 1.5rem; color: var(--ink-soft); }
.email {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  background: var(--bg-panel);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 0.15em 0.45em;
  overflow-wrap: anywhere;
}
.contact-small { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2rem, 5vw, 3rem);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}
.footer-line { color: var(--ink-soft); margin: 0; margin-right: auto; }
.footer-contact { margin: 0; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
