/* www.exigent.nl - one stylesheet, no build step. */

:root {
    --magenta: #e2007a;
    --magenta-dark: #b80063;
    --ink: #1f1f23;
    --muted: #5b5b63;
    --line: #e3e3e6;
    --soft: #f6f5f6;
    --wrap: 1120px;
    --gutter: 24px;
}

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

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
}

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

a { color: var(--magenta-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5em; }
h3 { font-size: 1.1875rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
/* The last element in a block must not add its own margin to the block's bottom padding. */
.wrap > :last-child { margin-bottom: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; padding: 8px 12px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; top: 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.site-header__logo img { height: 56px; width: auto; }
.site-header__nav { display: flex; gap: 20px; font-weight: 600; }
.site-header__nav a { color: var(--ink); text-decoration: none; }
.site-header__nav a:hover { color: var(--magenta-dark); text-decoration: underline; }

/* Sections */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--soft { background: var(--soft); }
.section__intro { max-width: 60ch; color: var(--muted); margin-bottom: 2em; }

/* Hero */
.hero { padding-block: clamp(56px, 10vw, 128px); }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--magenta); }
.hero__lead { font-size: 1.25rem; max-width: 46ch; margin: 1.1em 0 1.6em; color: var(--muted); }
.hero__art { display: none; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-block; padding: 14px 22px; border-radius: 6px;
    font-weight: 700; text-decoration: none; border: 2px solid var(--ink); color: var(--ink);
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--primary { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.btn--primary:hover { background: var(--magenta-dark); border-color: var(--magenta-dark); color: #fff; }
.btn--chat { display: inline-flex; align-items: center; gap: 10px; }
.btn--chat img, .chat img { width: 20px; height: 20px; }
.btn--chat:hover img { filter: brightness(0) invert(1); }
.btn--primary.btn--chat:hover img { filter: none; }
.chat { display: inline-flex; align-items: center; gap: 8px; }

/* Slogan */
.slogan { background: var(--magenta); color: #fff; text-align: center; padding-block: clamp(40px, 7vw, 80px); }
.slogan__title { margin: 0; font-size: clamp(2.25rem, 7vw, 4.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.slogan__text { margin: 0.9em auto 0; max-width: 36ch; font-size: clamp(1.125rem, 2.2vw, 1.375rem); font-weight: 600; }

/* Diensten */
.diensten__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.diensten__item { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--magenta); border-radius: 6px; padding: 24px; }
.diensten__item h3 { margin-bottom: 0.5em; }
.diensten__item p { margin: 0; color: var(--muted); }

/* Normen */
.normen__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; }
.normen__item { border-top: 4px solid var(--magenta); padding-top: 16px; }
.normen__item h3 { margin-bottom: 0.4em; }
.normen__item p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Werk */
.werk__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 24px; }
.werk__item a { display: block; color: var(--ink); text-decoration: none; }
.werk__item img { width: 100%; border: 1px solid var(--line); border-radius: 6px; transition: transform 0.2s ease; }
.werk__item a:hover img { transform: translateY(-3px); }
.werk__item h3 { margin-top: 14px; }
.werk__item a:hover h3 { color: var(--magenta-dark); text-decoration: underline; }
.werk__item p { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }
.werk__credit { font-size: 0.9375rem; }

/* Samenwerking */
.samen .wrap { max-width: 820px; }
.samen p { font-size: 1.125rem; }

/* Contact */
.contact { text-align: center; }
.contact__butterfly { width: 72px; margin: 0 auto 20px; }
.contact p { max-width: 52ch; margin-inline: auto; color: var(--muted); }
.contact__links { margin-top: 28px; display: grid; gap: 8px; font-size: clamp(1.5rem, 4.5vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; }
.contact__links a { color: var(--ink); text-decoration-color: var(--magenta); text-decoration-thickness: 3px; }
.contact__links a:hover { color: var(--magenta-dark); }
.contact__mail { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; }
/* The envelope is drawn with a mask, so it takes the link colour and changes with it on hover.
   It sits a little below the centre of the line, level with the lowercase letters. */
.contact__mail::before {
    content: ""; flex: none; width: 1em; height: 1em; background: currentColor;
    -webkit-mask: url(../img/mail.svg) center / contain no-repeat;
    mask: url(../img/mail.svg) center / contain no-repeat;
    transform: translateY(0.08em);
}
.contact__chat { justify-content: center; margin-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: 0.9375rem; color: var(--muted); }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 6px; }

/* Terms page */
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 0.6em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }

@media (max-width: 599px) {
    :root { --gutter: 16px; }
    .site-header__logo img { height: 44px; }
    .chat__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .chat img { width: 26px; height: 26px; }
}

@media (min-width: 600px) {
    .diensten__list { grid-template-columns: repeat(2, 1fr); }
    .werk__list { grid-template-columns: repeat(2, 1fr); }
    .normen__list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .hero .wrap { grid-template-columns: 1fr 220px; }
    .hero__art { display: block; width: 220px; }
    .diensten__list { grid-template-columns: repeat(4, 1fr); }
    .werk__list { grid-template-columns: repeat(3, 1fr); }
    .normen__list { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .werk__item img { transition: none; }
}
