/* Doe Dan - stylesheet */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Epilogue";
  src: url("../fonts/epilogue.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Epilogue";
  src: url("../fonts/epilogue-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --blue: #0358a9;
  --red: #ee3d23;
  --dark: #121c0f;
  --white: #ffffff;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 10px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--dark);
  font-family: "Epilogue", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.85rem); }
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
.grid > * { min-width: 0; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--blue); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: "Epilogue", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.9em;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }
.on-red .btn { background: var(--white); color: var(--red); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(56px, 9vw, 110px) 0; }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-white { background: var(--white); color: var(--dark); }
.bg-red { background: var(--red); color: var(--white); }

.wave {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 80px);
  margin-top: -1px;
}
.wave-top { margin-bottom: -1px; margin-top: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--blue);
  color: var(--white);
  padding: 22px 0;
}
.site-header .logo {
  font-family: "Anton", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 9vw, 120px); }
.hero .wrap { max-width: 1440px; }
.hero .grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.book-wrap { perspective: 1200px; }
.hero .book {
  width: 100%;
  max-width: min(100%, 720px);
  margin: 0 auto;
  transform: rotateY(var(--rx, 0deg)) rotateX(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 30px 40px rgba(0, 20, 60, .35));
}
.hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 0.9em;
}
.hero h1 span { display: inline; }
.hero .copy { max-width: 470px; }
.hero .copy p { font-size: 1.05rem; }
.hero .hero-cta { margin: 2.2em 0 1.2em; }
.btn-big { font-size: 1.35rem; padding: 0.7em 1.05em; letter-spacing: 0.02em; }
.hero .extra { margin: 0 0 3em; }
.hero .alt-link a { color: var(--red); text-underline-offset: 3px; }
.hero .alt-link a:hover { color: #ff8a73; }

.circled { position: relative; display: inline-block; }
.circled svg {
  position: absolute;
  left: -14%; top: -28%;
  width: 128%; height: 156%;
  overflow: visible;
  pointer-events: none;
}
.circled path {
  fill: none;
  stroke: var(--red);
  stroke-width: 3.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}
.js .circled path { animation: draw 1.1s 1.5s cubic-bezier(.6,.1,.3,1) forwards; }
.no-js .circled path { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Media ---------- */
.media { padding-top: 0; text-align: center; }
.media h2 .hl { color: var(--red); }
.media .logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  margin-top: 28px;
}
.media .logos a { display: block; transition: opacity .15s; }
.media .logos a:hover { opacity: .8; }
.media .logos img { height: auto; width: clamp(130px, 18vw, 200px); }

/* ---------- Intro ---------- */
.intro .grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.intro h2 { color: var(--blue); }
.intro h2 .tag {
  background: var(--red);
  color: var(--white);
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.intro .poster { border-radius: var(--radius); }

/* ---------- Author ---------- */
.author { overflow: hidden; }
.marquee {
  position: absolute;
  left: 0; right: 0;
  top: clamp(70px, 10vw, 120px);
  white-space: nowrap;
  font-family: "Anton", sans-serif;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}
.marquee span {
  display: inline-block;
  animation: marquee 40s linear infinite;
  padding-right: 0.5em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee span { animation: none; }
}
.author .grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
.author .photo {
  border-radius: var(--radius);
  max-width: min(100%, 380px);
  width: 100%;
  margin-left: clamp(0px, 6vw, 80px);
}
.author .bio { max-width: 380px; }
.author .bio h2 { position: absolute; left: -9999px; }

/* ---------- Gallery ---------- */
.gallery .grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
}
.gallery .stack { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.gallery .stack img:last-child { width: 82%; justify-self: end; }
.gallery img { border-radius: var(--radius); width: 100%; }
.gallery .main { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Card (CTA) ---------- */
.card {
  background: var(--white);
  color: var(--blue);
  border-radius: var(--radius);
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
}
.card ul { text-align: left; display: inline-block; margin: 0.4em 0 1.6em; padding-left: 1.2em; }
.card li { margin: 0.35em 0; }
.card p { text-align: left; }
.card .underline { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }

/* ---------- Contact / footer ---------- */
.contact .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}
.contact .col { max-width: 440px; }
.contact a { font-weight: 700; }
.site-footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 36px 0 44px;
}
.site-footer a { color: inherit; }

/* ---------- Forms ---------- */
.form {
  background: var(--white);
  color: var(--dark);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}
.form.plain { background: transparent; padding: 0; }
.form fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.form legend,
.form .label {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  padding: 0;
}
.form .req { font-family: "Epilogue", sans-serif; text-transform: none; font-size: 0.8rem; opacity: .7; margin-left: 4px; letter-spacing: 0; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .field { display: block; margin-bottom: 18px; }
.form .row .field { margin-bottom: 0; }
.form .sub { display: block; font-size: 0.85rem; margin-bottom: 4px; }
.form input[type=text],
.form input[type=email],
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  border: 1px solid #9aa1a6;
  border-radius: 6px;
  padding: 11px 12px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus,
.form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form .actions { margin-top: 6px; }
.form .center { text-align: center; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 600;
}
.notice.ok { background: #e8f3e6; color: #1d4d16; }
.notice.err { background: #fde8e4; color: #8a1d0d; }

/* ---------- Narrow pages (QR + downloads) ---------- */
.narrow { max-width: 460px; margin: 0 auto; }
.page-top { text-align: center; padding: clamp(40px, 7vw, 72px) 0 0; }
.page-top .mark { width: 120px; margin: 0 auto 20px; }
.page-top h1 { color: var(--blue); }
.lead { padding: 12px 0 0; }

.downloads .block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) 0;
}
.downloads .block + .block { border-top: 1px solid #e3e6e8; }
.downloads .block.text { display: block; max-width: 620px; }
.downloads h2 { color: var(--red); font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.downloads h3 { color: var(--blue); font-size: 1.3rem; margin-top: 1.4em; }
.downloads .ebook img { border-radius: var(--radius); }
.dl-list { list-style: none; padding: 0; margin: 1.2em 0 0; }
.dl-list li { margin: 0 0 10px; }
.dl-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.dl-list a::after { content: "\2192"; margin-left: auto; }
.dl-list a:hover { background: var(--blue); color: var(--white); }
.tools ul { padding-left: 1.2em; margin: 0.3em 0 0; }
.tools li { margin: 0.3em 0; }
.tools a { color: var(--blue); font-weight: 700; }
.quote {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  color: var(--blue);
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 1.2em 0;
}
.small { font-size: 0.9rem; opacity: .8; }
.foot-simple { text-align: center; font-size: 0.85rem; padding: 40px 0 48px; color: #5b6168; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero .grid,
  .intro .grid,
  .author .grid,
  .gallery .grid,
  .contact .grid,
  .downloads .block { grid-template-columns: minmax(0, 1fr); }
  .hero .book { max-width: min(100%, 380px); }
  .hero .extra { margin-bottom: 1.6em; }
  .hero .copy { max-width: none; }
  .author .photo { margin: 0 auto; max-width: min(100%, 320px); }
  .author .bio { max-width: none; }
  .intro .poster { max-width: min(100%, 420px); margin: 0 auto; }
  .downloads .ebook img { max-width: min(100%, 260px); margin: 0 auto; }
}
@media (max-width: 420px) {
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .form .row .field { margin-bottom: 14px; }
}

/* ---------- Animaties ---------- */
/* Header: tekst schuift regel voor regel omhoog, boek zweeft */
.js .hero-title span { display: inline-block; opacity: 0; transform: translateY(0.45em); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.05s + var(--i) * .05s); }
.js .hero-in { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) var(--d, .5s) forwards; }
.js .book-wrap { opacity: 0; animation: bookIn 1.1s cubic-bezier(.2,.7,.2,1) .1s forwards; }
.js .book-wrap .book { animation: float 6s ease-in-out 1.3s infinite; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes bookIn { from { opacity: 0; transform: translateY(40px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* Elementen komen rustig in beeld bij scrollen */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.pop { transform: translateY(28px) scale(.96); }
.js .reveal.pop.in { transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:nth-child(2) { transition-delay: .12s; }
.js .stagger.in > *:nth-child(3) { transition-delay: .24s; }
.js .stagger.in > *:nth-child(4) { transition-delay: .36s; }

/* Rood vlak schuift achter "Doe Dan!" */
.intro h2 .tag { background: none; position: relative; color: var(--white); padding: 0 0.14em; }
.intro h2 .tag span { position: relative; z-index: 1; }
.intro h2 .tag::before {
  content: "";
  position: absolute; inset: 0.04em 0 0.02em;
  background: var(--red);
  transform-origin: left center;
  transform: scaleX(1);
}
.js .intro h2 .tag { color: var(--blue); transition: color .3s ease .35s; }
.js .intro h2 .tag::before { transform: scaleX(0); transition: transform .6s cubic-bezier(.7,0,.2,1) .2s; }
.js .intro h2 .tag.in { color: var(--white); }
.js .intro h2 .tag.in::before { transform: scaleX(1); }

/* Getekende onderstreping onder "één beslissing" */
.scribble {
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 100% 3px;
  padding-bottom: 2px;
}
.js .scribble { background-size: 0% 3px; transition: background-size .9s cubic-bezier(.6,.1,.3,1) .5s; }
.js .scribble.in { background-size: 100% 3px; }

/* Afbeeldingen kantelen licht bij hover */
.tilt { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
.tilt:hover { transform: rotate(-1.2deg) scale(1.02); box-shadow: 0 24px 40px rgba(0, 20, 60, .25); }
.js .reveal.tilt.in:hover { transform: rotate(-1.2deg) scale(1.02); }

/* Knoppen: klein wiebeltje bij hover */
.btn:hover { animation: wiggle .45s ease; }
@keyframes wiggle {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -2.5deg; }
  60% { rotate: 2deg; }
}

/* Logo's in de media: lichte lift */
.media .logos a { transition: transform .3s ease, opacity .3s ease; }
.media .logos a:hover { transform: translateY(-4px); opacity: 1; }

/* Download-knoppen */
.dl-list a::after { transition: transform .25s ease; }
.dl-list a:hover::after { transform: translateX(5px); }

/* Minder beweging als de bezoeker dat heeft ingesteld */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stagger > *, .js .hero-in, .js .hero-title span, .js .book-wrap { opacity: 1 !important; transform: none !important; }
  .circled path { stroke-dashoffset: 0 !important; }
  .js .intro h2 .tag { color: var(--white); }
  .js .intro h2 .tag::before { transform: none; }
  .js .scribble { background-size: 100% 3px; }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px var(--gutter);
}
.notfound .mark { width: 130px; margin: 0 auto 28px; animation: float 6s ease-in-out infinite; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 12ch; margin: 0 auto 0.4em; }
.notfound p { font-size: 1.15rem; margin-bottom: 1.6em; }
.notfound .btn { background: var(--red); }
.mark-bubble {
  width: 170px; height: 170px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  animation: float 6s ease-in-out infinite;
}
.notfound .mark-bubble .mark { width: 92px; margin: 0; animation: none; }
