/* Jade Vitals — rustige huidverzorging, uitgelegd */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --forest: #1F2E27;
  --forest-2: #2B3D34;
  --jade: #3E7C67;
  --jade-deep: #2F6553;
  --jade-soft: #D3E6DB;
  --sage: #A9BFA8;
  --bone: #F6F2EA;
  --sand: #ECE4D6;
  --sand-2: #E2D7C4;
  --clay: #C26F50;
  --clay-soft: #F4DED3;
  --sun: #E9C46A;
  --muted: #5D6A62;
  --line: rgba(31, 46, 39, .12);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 32px;
  --r-md: 20px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--forest);
  background: var(--bone);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* zachte papierkorrel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: var(--jade-deep); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 100, "opsz" 96;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.45rem; letter-spacing: -.01em; }
h1 em, h2 em { font-style: normal; color: var(--jade); }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--jade-deep); margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 18px; height: 10px;
  background: var(--jade); border-radius: 18px 0 18px 0; /* blaadje */
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }

/* knoppen */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px;
  background: var(--forest); color: var(--bone);
  font-weight: 560; text-decoration: none; font-size: .98rem;
  border: 1px solid var(--forest);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { background: var(--jade-deep); border-color: var(--jade-deep); color: var(--bone); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-ghost:hover { background: var(--sand); color: var(--forest); border-color: var(--sand-2); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }

/* navigatie */
.nav {
  position: sticky; top: 12px; z-index: 50;
  width: min(100% - 24px, var(--wrap)); margin: 12px auto 0;
  display: flex; align-items: center; gap: 1.25rem;
  padding: .55rem .55rem .55rem 1.1rem;
  background: rgba(246, 242, 234, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line); border-radius: 999px;
}
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--forest); margin-right: auto; }
.logo svg { width: 30px; height: 30px; }
.logo span { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.02em; font-weight: 450; }
.logo span b { font-weight: 450; color: var(--jade); }
.nav-links { display: flex; gap: .2rem; }
.nav-links a {
  padding: .45em .85em; border-radius: 999px; text-decoration: none;
  color: var(--forest); font-size: .93rem; font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--jade-soft); color: var(--forest); }
.lang {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .42em .75em; border-radius: 999px; text-decoration: none;
  color: var(--forest); font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--line);
}
.lang svg { width: 15px; height: 15px; color: var(--jade); }
.lang:hover { background: var(--jade-soft); }

/* hero */
.hero { position: relative; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.blob {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob.b1 { width: 420px; height: 420px; background: var(--jade-soft); top: -80px; right: 6%; }
.blob.b2 { width: 300px; height: 300px; background: var(--clay-soft); bottom: -40px; left: -60px; animation-delay: -6s; }

/* boog-illustratie */
.arch {
  position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 440px; margin-left: auto;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  background: linear-gradient(180deg, #E7EFE6 0%, var(--jade-soft) 55%, #BCD5C6 100%);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(31, 46, 39, .35);
}
.arch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sway { transform-origin: 50% 100%; transform-box: fill-box; animation: sway 7s ease-in-out infinite alternate; }
.sway.s2 { animation-duration: 9s; animation-delay: -3s; }
.sway.s3 { animation-duration: 8s; animation-delay: -5s; }
.sunrise { animation: rise 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.arch-tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem; border-radius: 16px;
  background: rgba(246, 242, 234, .86); backdrop-filter: blur(8px);
  font-size: .88rem; color: var(--forest);
}
.arch-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--jade); flex: none; animation: pulse 2.6s ease-in-out infinite; }

/* principes-strip */
.principles { border-block: 1px solid var(--line); }
.principles ul {
  list-style: none; margin: 0 auto; padding: 1.4rem 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.principles li { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; font-size: .95rem; color: var(--muted); }
.principles strong { display: block; color: var(--forest); font-weight: 600; }
.principles svg { width: 26px; height: 26px; flex: none; color: var(--jade); }

/* secties */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head p { max-width: 30em; margin: 0; }

/* huidtype-kaarten */
.types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.type-card {
  --tint: var(--jade-soft);
  position: relative; display: flex; flex-direction: column;
  min-height: 330px; padding: 1.4rem 1.3rem 1.3rem;
  border-radius: 999px 999px var(--r-md) var(--r-md);
  background: var(--tint); color: var(--forest); text-decoration: none;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.type-card:hover { transform: translateY(-6px); color: var(--forest); box-shadow: 0 24px 40px -24px rgba(31, 46, 39, .4); }
.type-card .glyph { width: 64px; height: 64px; margin: 1.4rem auto 1.6rem; }
.type-card h3 { font-size: 1.35rem; margin-bottom: .35em; }
.type-card p { font-size: .9rem; color: rgba(31, 46, 39, .72); margin: 0 0 1rem; }
.type-card .more { margin-top: auto; font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: .35em; }
.t-droog { --tint: #F1E3CF; }
.t-vet { --tint: #D6E8DE; }
.t-gecombineerd { --tint: #E4E2EE; }
.t-normaal { --tint: #E9EEDD; }
.t-gevoelig { --tint: var(--clay-soft); }

/* huidtest */
.quiz {
  background: var(--forest); color: var(--bone);
  border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem);
  position: relative; overflow: hidden;
}
.quiz::before {
  content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px;
  border-radius: 50%; background: radial-gradient(circle, rgba(62, 124, 103, .55), transparent 70%);
}
.quiz h2 { color: var(--bone); }
.quiz h2 em { color: var(--sun); }
.quiz .lead { color: rgba(246, 242, 234, .72); }
.quiz .eyebrow { color: var(--sage); }
.quiz .eyebrow::before { background: var(--sage); }
.quiz form { position: relative; display: grid; gap: 1.4rem; }
.quiz fieldset { border: 0; margin: 0; padding: 0; }
.quiz legend { font-weight: 600; margin-bottom: .6rem; font-size: 1rem; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opts label {
  position: relative; cursor: pointer;
  padding: .55em 1em; border-radius: 999px;
  border: 1px solid rgba(246, 242, 234, .22);
  font-size: .9rem; transition: background .2s, border-color .2s, color .2s;
}
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label:hover { border-color: var(--sage); }
.opts label:has(input:checked) { background: var(--bone); color: var(--forest); border-color: var(--bone); }
.opts label:has(input:focus-visible) { outline: 2px solid var(--sun); outline-offset: 2px; }
.quiz .btn { background: var(--sun); color: var(--forest); border-color: var(--sun); justify-self: start; }
.quiz .btn:hover { background: var(--bone); border-color: var(--bone); }
.result {
  display: none; padding: 1.2rem 1.4rem; border-radius: var(--r-md);
  background: rgba(246, 242, 234, .08); border: 1px solid rgba(246, 242, 234, .16);
}
.result.show { display: block; animation: fade .5s ease both; }
.result h3 { color: var(--bone); margin-bottom: .3em; }
.result p { color: rgba(246, 242, 234, .78); font-size: .95rem; }
.result a { color: var(--sun); font-weight: 600; }
.quiz small { color: rgba(246, 242, 234, .55); font-size: .8rem; }

/* routine-stappen */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: s; }
.step { padding: 2rem 1.6rem; border-radius: var(--r-md); background: #fff8; border: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--jade); display: block; margin-bottom: 1rem; font-variation-settings: "SOFT" 100, "opsz" 144; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ingrediënten */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .5em 1em; border-radius: 999px; background: var(--sand);
  font-size: .9rem; color: var(--forest); text-decoration: none; font-weight: 500;
}
a.chip:hover { background: var(--jade-soft); color: var(--forest); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--jade); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.note {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.4rem 1.5rem; border-radius: var(--r-md);
  background: var(--clay-soft); color: var(--forest);
}
.note svg { width: 28px; height: 28px; flex: none; color: var(--clay); }
.note p { margin: 0; font-size: .95rem; }
.note strong { display: block; margin-bottom: .2em; }

/* artikelpagina's */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); position: relative; isolation: isolate; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--muted); }
.type-hero { display: grid; grid-template-columns: 1fr 260px; gap: 3rem; align-items: end; }
.type-hero .badge {
  aspect-ratio: 3 / 4; border-radius: 999px 999px var(--r-md) var(--r-md);
  background: var(--tint, var(--jade-soft)); display: grid; place-items: center;
}
.type-hero .badge svg { width: 96px; height: 96px; }

.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--jade); }

.ticklist { list-style: none; padding: 0 !important; display: grid; gap: .6rem; }
.ticklist li { display: flex; gap: .7rem; align-items: flex-start; margin: 0; }
.ticklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--jade-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%232F6553' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ticklist.avoid li::before {
  background: var(--clay-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='%23C26F50' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.routine { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0; }
.routine > div { padding: 1.5rem; border-radius: var(--r-md); background: #fff8; border: 1px solid var(--line); }
.routine h3 { margin-top: 0; display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; }
.routine h3 svg { width: 22px; height: 22px; color: var(--clay); }
.routine ol { margin: 0; padding-left: 1.2rem; }
.routine li { margin-bottom: .5em; font-size: .95rem; }

.doctor { margin: 2.4rem 0; padding: 1.6rem 1.7rem; border-radius: var(--r-md); background: var(--forest); color: var(--bone); }
.doctor h3 { color: var(--bone); margin: 0 0 .5em; font-size: 1.3rem; }
.doctor ul { margin: 0; padding-left: 1.2rem; color: rgba(246, 242, 234, .82); }
.doctor li { margin-bottom: .35em; }
.doctor li::marker { color: var(--sage); }

/* ingrediëntenlijst */
.ing-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.ing-filter button {
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--forest);
}
.ing-filter button[aria-pressed="true"] { background: var(--forest); color: var(--bone); border-color: var(--forest); }
.ing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.ing {
  padding: 1.5rem; border-radius: var(--r-md); background: #fff8; border: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.ing[hidden] { display: none; }
.ing h3 { margin-bottom: .2em; font-size: 1.3rem; }
.ing .also { font-size: .82rem; color: var(--muted); margin-bottom: .8rem; }
.ing p { font-size: .94rem; margin-bottom: .8rem; }
.ing .tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.ing .tags span { font-size: .75rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; background: var(--jade-soft); color: var(--jade-deep); }
.ing .tip { font-size: .85rem; color: var(--clay); margin: .8rem 0 0; }
.ing:target { border-color: var(--jade); box-shadow: 0 0 0 3px var(--jade-soft); }

/* andere huidtypes */
.others { display: flex; flex-wrap: wrap; gap: .5rem; }

/* footer */
.footer { background: var(--forest); color: rgba(246, 242, 234, .72); padding: 4rem 0 2rem; margin-top: 4rem; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.footer .logo { color: var(--bone); margin-bottom: 1rem; }
.footer .logo span b { color: var(--sage); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer a { color: var(--bone); text-decoration: none; font-size: .95rem; }
.footer a:hover { color: var(--sun); }
.footer-bottom a { font-size: inherit; text-decoration: underline; text-decoration-color: rgba(246, 242, 234, .35); text-underline-offset: 3px; }
.footer p { font-size: .92rem; max-width: 30em; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(246, 242, 234, .12); font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* scroll-onthulling */
@supports (animation-timeline: view()) {
  .reveal { animation: up linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}

@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }

@media (max-width: 1080px) {
  .types { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .quiz, .split, .type-hero { grid-template-columns: 1fr; }
  .arch { max-width: 360px; margin: 0 auto; }
  .type-hero .badge { display: none; }
  .steps, .principles ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; border-radius: 26px; padding: .55rem .55rem .45rem 1rem; row-gap: .35rem; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -.2rem; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: .88rem; }
  .lang { padding: .38em .6em; }
  .nav { column-gap: .45rem; }
  .nav .btn-sm { padding: .55em .95em; font-size: .85rem; }
  .types { grid-template-columns: 1fr 1fr; }
  .type-card { min-height: 280px; }
  .routine { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .types { grid-template-columns: 1fr; }
  .type-card { min-height: 0; border-radius: var(--r-md); flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 1rem; }
  .type-card .glyph { width: 48px; height: 48px; margin: 0; }
  .type-card h3 { margin: 0; }
  .type-card p, .type-card .more { flex-basis: 100%; }
  .type-card p { margin-top: .6rem; }
}
@media (max-width: 360px) {
  .logo span { font-size: 1.1rem; }
  .logo svg { width: 26px; height: 26px; }
  .nav { padding-left: .8rem; }
  .lang svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
