/* Goed met Content — one-page site, layout modelled on apostrophe.xyz,
   palette and fonts from the Goed met Content branding kit. */

/* Fonts are hosted on this site (no requests to Google). Latin subset; SIL Open Font License. */
@font-face { font-family: 'Syne';   src: url('../fonts/syne.woff2') format('woff2');   font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter';  src: url('../fonts/inter.woff2') format('woff2');  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('../fonts/caveat.woff2') format('woff2'); font-weight: 500;     font-style: normal; font-display: swap; }


:root {
  --cream:  #f5ecdf;
  --peach:  #ffdbb4;
  --pink:   #e4aec9;
  --khaki:  #b7a065;
  --forest: #3b5f33;
  --brown:  #49352a;
  --sky:    #b4cbe6;
  --blue:   #309ddf;
  --navy:   #183150;
  --orange: #eb5c2f;

  --paper: #fffaf3;          /* the light half-blocks */
  --pen: #1f8fd6;            /* editor's correction ink, brand blue nudged darker */
  --navy-field: #2b4a6f;

  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Comic Sans MS', cursive;

  --rail: 56px;              /* left menu rail + right margin */
  --pad: clamp(20px, 4.5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; margin: 0; }

:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 70px; top: -80px; z-index: 200; background: var(--navy); color: var(--cream); padding: 10px 16px; }
.skip-link:focus { top: 12px; }

/* ---------- Frame: menu rail left, margin right ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 120;
  background: var(--cream);
}
.rail__toggle {
  display: block; width: var(--rail); padding: 28px 0;
  background: none; border: 0; cursor: pointer; color: var(--navy);
  font: 500 0.8125rem/1 var(--font-body); letter-spacing: 0.12em;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.rail__toggle:hover { text-decoration: underline; }

.frame { margin: var(--rail) var(--rail) 0 var(--rail); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0 0 0 var(--rail); z-index: 110;
  background: var(--navy); color: var(--peach);
  padding: clamp(40px, 8vw, 96px) var(--pad);
  display: flex; flex-direction: column; justify-content: center;
  transform: translateX(-102%); visibility: hidden;
  transition: transform 380ms cubic-bezier(.6,0,.2,1), visibility 0s 380ms;
}
.menu.is-open { transform: none; visibility: visible; transition: transform 380ms cubic-bezier(.6,0,.2,1); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu ul a {
  display: inline-block; padding: 4px 0;
  font: 700 clamp(2.25rem, 6vw, 4.5rem)/1.1 var(--font-head); letter-spacing: -0.03em;
  text-decoration: none;
}
.menu ul a:hover { color: var(--khaki); }
.menu__meta { margin-top: 40px; font-size: 1rem; color: var(--cream); }
@media (prefers-reduced-motion: reduce) { .menu, .menu.is-open { transition: none; } }

/* ---------- Blocks ---------- */
.blk { padding: clamp(48px, 7vw, 88px) var(--pad); }
.blk--peach  { background: var(--peach); }
.blk--paper  { background: var(--paper); }
.blk--navy   { background: var(--navy);   color: var(--khaki); }
.blk--forest { background: var(--forest); color: var(--cream); }
.blk--khaki  { background: var(--khaki); }
.blk--sky    { background: var(--sky); }

.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > .blk { padding-top: clamp(56px, 6vw, 80px); padding-bottom: clamp(56px, 6vw, 80px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.big { font-size: clamp(2.75rem, 7vw, 5.75rem); }
.mid { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
.copy { max-width: 36em; font-size: 1.125rem; line-height: 1.65; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(96px, 12vw, 160px); }
.hero__logo { width: min(640px, 72%); height: auto; margin-bottom: clamp(72px, 11vw, 150px); }
.hero h1 { font-size: clamp(3.25rem, 9.5vw, 8.5rem); line-height: 1.12; max-width: 9.5em; }
.skip {
  position: absolute; right: 20px; top: 32px;
  writing-mode: vertical-rl; font: 500 0.75rem/1 var(--font-body); letter-spacing: 0.12em;
  text-decoration: none; text-transform: uppercase;
}
.skip::after { content: "↓"; display: block; margin-top: 10px; font-size: 1rem; writing-mode: horizontal-tb; }
.skip:hover { text-decoration: underline; }

/* ---------- Editor's corrections ---------- */
.fix { position: relative; display: inline-block; white-space: nowrap; }
.fix del {
  text-decoration: line-through; text-decoration-color: var(--pen);
  text-decoration-thickness: 0.07em;
}
.fix ins {
  position: absolute; left: 50%; bottom: 72%;
  transform: translateX(-50%) rotate(-4deg);
  font: 500 0.6em/1 var(--font-hand); letter-spacing: 0;
  color: var(--pen); text-decoration: none; white-space: nowrap;
}
.fix ins::after { content: "‸"; position: absolute; left: 50%; top: 88%; transform: translateX(-50%); font-size: 0.7em; }
.copy .fix ins { font-size: 1.75em; bottom: 52%; left: 0; transform: rotate(-4deg); }
.hand { font: 500 clamp(1.6rem, 2.8vw, 2.25rem)/1.25 var(--font-hand); color: var(--pen); letter-spacing: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero .fix del { animation: strike 600ms 500ms both; }
  .hero .fix ins { animation: write 700ms 1100ms ease-out both; }
}
@keyframes strike { from { text-decoration-color: transparent; } to { text-decoration-color: var(--pen); } }
@keyframes write { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ---------- Footnote ---------- */
.footnote { margin-top: clamp(48px, 8vw, 120px); max-width: 30em; font-size: 0.9375rem; }
.footnote s { text-decoration-color: var(--pen); text-decoration-thickness: 2px; }
.footnote .hand { display: block; margin-top: 6px; }

/* ---------- Accordion blocks ---------- */
.acc__head {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%; padding: 0; background: none; border: 0; cursor: pointer;
  color: inherit; text-align: left;
}
.acc__head h2, h2.acc__title { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.acc__icon { flex: none; width: 40px; height: 40px; position: relative; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 36px; height: 3px;
  background: currentColor; transform: translate(-50%, -50%); transition: transform 260ms ease;
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__head[aria-expanded="true"] .acc__icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.acc__head[aria-expanded="true"] .acc__icon::after  { transform: translate(-50%, -50%) rotate(135deg); }
.acc__body { padding-top: clamp(28px, 4vw, 48px); }
.acc__body[hidden] { display: none; }

/* ---------- A to Z ---------- */
.az {
  list-style: none; margin: clamp(48px, 6vw, 80px) 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); row-gap: clamp(16px, 3vw, 40px);
}
.az li { display: flex; justify-content: center; }
.az__letter {
  position: relative; display: grid; place-items: center;
  width: clamp(64px, 11vw, 140px); aspect-ratio: 1;
  font: 700 clamp(3rem, 8vw, 6.5rem)/1 var(--font-head);
  background: none; border: 0; padding: 0; color: var(--navy);
}
button.az__letter { cursor: pointer; }
.az__letter--empty { opacity: 0.28; }
.az__tip {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  font: 600 clamp(0.8125rem, 1.25vw, 1.0625rem)/1.2 var(--font-body); color: var(--forest);
  opacity: 0; transition: opacity 160ms ease; pointer-events: none;
}
.az__tip b { display: block; font-weight: 500; color: var(--pen); }
button.az__letter:hover, button.az__letter:focus-visible, button.az__letter[aria-pressed="true"] { color: var(--paper); }
button.az__letter:hover .az__tip, button.az__letter:focus-visible .az__tip, button.az__letter[aria-pressed="true"] .az__tip { opacity: 1; }
@media (max-width: 620px) { .az { grid-template-columns: repeat(4, 1fr); } }
.az-note { max-width: 60em; }
.az-note h3 { font-size: 1.5rem; margin-bottom: 4px; }

/* ---------- Who / process / blog bodies ---------- */
.who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.who__photo { background: var(--peach); }
.who dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 28px 0 0; }
.who dt { font-weight: 600; }
.who dd { margin: 0; }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; } .who dl { grid-template-columns: 1fr; gap: 2px; } .who dd { margin-bottom: 10px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--navy); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font: 700 2.75rem/1 var(--font-head); margin-bottom: 14px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; letter-spacing: -0.01em; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.faq { margin-top: clamp(40px, 5vw, 64px); max-width: 52em; }
.faq h3 { font-size: 1.5rem; margin-bottom: 12px; }
.faq details { border-top: 2px solid var(--navy); }
.faq details:last-child { border-bottom: 2px solid var(--navy); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 1.0625rem; }
.faq details p { padding-bottom: 18px; }

.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.post { position: relative; }
.post img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; margin-bottom: 14px; }
.post__cat { font-size: 0.875rem; font-weight: 600; }
.post h3 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.15; margin: 6px 0 8px; }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post:hover h3 a { text-decoration: underline; }
.post p { font-size: 0.9375rem; }
@media (max-width: 1000px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); }
.contact h2 { font-size: clamp(3rem, 6.5vw, 5.25rem); line-height: 1.12; }
.contact h2 s { text-decoration-color: var(--pen); text-decoration-thickness: 0.07em; }
.contact .hand { margin-top: 28px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.mail-link {
  display: inline-block; margin-bottom: 28px;
  font: 700 clamp(1.5rem, 3.4vw, 2.5rem)/1.15 var(--font-head); letter-spacing: -0.02em;
  color: var(--peach); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.mail-link:hover { color: var(--cream); }
.btn-mail {
  display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 24px;
  background: var(--khaki); color: var(--navy); text-decoration: none;
  font: 600 1.25rem/1 var(--font-body); transition: background-color 160ms ease;
}
.btn-mail:hover { background: var(--peach); }
.contact__mail { align-self: center; }

/* ---------- Footer ---------- */
.foot { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 64px; font-size: 0.9375rem; line-height: 1.55; }
.foot h2 { font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.foot p { max-width: 26em; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .cta {
  display: block; margin-top: 16px; padding: 14px; text-align: center;
  background: var(--navy); color: var(--khaki); font-weight: 600;
}
.foot .cta:hover { background: var(--forest); color: var(--cream); text-decoration: none; }
.social { display: flex; gap: 14px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; margin: -11px; }
.social svg { width: 22px; height: 22px; fill: var(--navy); }
.foot__base { padding-top: 20px; border-top: 1px solid rgba(24, 49, 80, 0.2); font-size: 0.875rem; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr; } }

/* ---------- Small screens ---------- */
@media (max-width: 620px) {
  :root { --rail: 40px; }
  .frame { margin-right: 0; margin-top: 0; }
  .skip { display: none; }
}
.copy--marked { line-height: 2.05; }
.foot__sub { margin-top: 36px; }

/* ---------- Blog overview + article pages ---------- */
.crumb { display: inline-block; margin-bottom: clamp(40px, 6vw, 72px); font-weight: 600; }
.page-title { font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.05; max-width: 14em; }
.page-lede { max-width: 38em; margin-top: 28px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; }
.tag { display: inline-block; margin-bottom: 18px; padding: 4px 12px; border: 2px solid currentColor; font-size: 0.875rem; font-weight: 600; }

.posts--overview { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .posts--overview { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .posts--overview { grid-template-columns: 1fr; } }
.post img.post__wide { aspect-ratio: 3 / 2; }

.article-hero { margin: 0; }
.article-hero img { width: 100%; max-height: 72vh; object-fit: cover; }
.article-hero figcaption { padding: 10px var(--pad); font-size: 0.8125rem; background: var(--paper); color: var(--navy); }

.prose { max-width: 680px; margin: 0 auto; font-size: 1.1875rem; line-height: 1.75; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.15; margin: 1.8em 0 0.6em; letter-spacing: -0.02em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--pen); text-decoration-thickness: 2px; }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 4px solid var(--khaki); font-style: italic; }
.prose > p:last-child em { display: block; padding-top: 1.25em; border-top: 2px solid var(--navy); font-style: normal; font-weight: 500; }

.next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; }
.next h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.next .btn-mail { min-width: 280px; }
.blog-all { margin-top: 36px; font-weight: 600; font-size: 1.125rem; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot__base a { text-decoration: underline; text-underline-offset: 0.2em; }
