/* quiniv.nl, "Eclipse" design (2026-11-18). Dark, one warm accent, glass layers, scroll-driven opening.
   Rules: Obsidian 03 Resources/website-design-rules.md. No external fonts or requests. Works without JS
   (everything is visible; the script only adds motion) and respects prefers-reduced-motion. */

:root {
  --bg:#060606; --ink:#f6f3ee; --dim:rgba(246,243,238,.64); --line:rgba(255,255,255,.12);
  --warm:#ffb661; --cool:#7cc8ff; --glass:rgba(255,255,255,.07);
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --ease:cubic-bezier(.23,1,.32,1);
  --pad:clamp(18px,4vw,56px);
  color-scheme: dark;
}
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--ink); font:400 17px/1.6 var(--font); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
img { display:block; max-width:100%; height:auto; }
a { color:inherit; text-underline-offset:3px; }
.k { font-size:12px; letter-spacing:.24em; text-transform:uppercase; color:var(--warm); margin:0 0 18px; }
.sticky { position:sticky; top:0; height:100svh; overflow:hidden; }

/* progress bar (rule: orientation) */
.prog { position:fixed; left:0; top:0; z-index:60; height:2px; width:100%; transform-origin:0 50%; transform:scaleX(var(--sp,0)); background:var(--warm); pointer-events:none; }

/* header: glass pill */
.site-header { position:fixed; inset:0 0 auto 0; z-index:50; display:flex; justify-content:space-between; align-items:center; padding:16px var(--pad); pointer-events:none; }
.site-header > * { pointer-events:auto; }
.brand { display:block; border-radius:12px; box-shadow:0 0 0 1px rgba(255,255,255,.28), 0 6px 18px rgba(0,0,0,.4); }
.brand img { width:38px; height:38px; border-radius:12px; }
.main-nav { display:flex; gap:4px; padding:5px; border-radius:999px; background:rgba(20,20,20,.45); -webkit-backdrop-filter:blur(18px) saturate(1.5); backdrop-filter:blur(18px) saturate(1.5); box-shadow:inset 0 0 0 1px rgba(255,255,255,.14); }
.main-nav a { font-size:14px; text-decoration:none; padding:8px 14px; border-radius:999px; transition:background .2s ease-out; }
.main-nav a:hover, .main-nav a[aria-current] { background:rgba(255,255,255,.12); }
.main-nav a:focus-visible, .cta a:focus-visible, .card:focus-visible { outline:2px solid var(--warm); outline-offset:2px; }

/* buttons (rule: one primary, one secondary) */
.cta { display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }
.cta.center { justify-content:center; }
.cta a { display:inline-flex; align-items:center; text-decoration:none; font-weight:600; font-size:15px; padding:14px 22px; border-radius:999px; transition:transform .16s var(--ease), background .2s ease-out; }
.cta a:active { transform:scale(.97); }
.cta .p { background:var(--ink); color:#000; }
.cta .s { box-shadow:inset 0 0 0 1.5px currentColor; }
@media (hover:hover) { .cta .s:hover { background:rgba(255,255,255,.08); } }

/* reveal on scroll (only when the script runs) */
.js .rv { opacity:0; transform:translateY(28px); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity:1; transform:none; }

/* ---------- 1 opening ---------- */
.intro { height:280vh; position:relative; }
.intro .sticky { display:grid; place-items:center; }
.intro .photo { position:absolute; inset:0; clip-path:circle(var(--r,75%) at 50% 50%); will-change:clip-path; }
.js .intro .photo { clip-path:circle(var(--r,9%) at 50% 50%); }
.intro .photo img { width:100%; height:100%; object-fit:cover; transform:scale(var(--s,1)); filter:brightness(.8); }
.intro .ring { position:absolute; left:50%; top:50%; width:calc(var(--rpx,0px) * 2); height:calc(var(--rpx,0px) * 2); transform:translate(-50%,-50%); border-radius:50%; box-shadow:0 0 0 2px rgba(255,214,150,.9),0 0 60px 12px rgba(255,170,80,.55),0 0 160px 40px rgba(255,140,60,.25); opacity:var(--ro,0); pointer-events:none; }
.intro h1 { position:absolute; z-index:2; margin:0; font-size:clamp(56px,13vw,210px); font-weight:800; letter-spacing:-.06em; line-height:.85; mix-blend-mode:difference; opacity:var(--o,1); transform:scale(var(--hs,1)); }
.intro .cap { position:absolute; z-index:2; left:var(--pad); right:var(--pad); bottom:clamp(28px,7vh,64px); opacity:var(--co,1); transform:translateY(calc((1 - var(--co,1)) * 20px)); }
.intro .cap p { margin:0; max-width:34ch; font-size:clamp(17px,1.6vw,22px); line-height:1.4; }

/* ---------- glass rows ---------- */
.glassrow { position:relative; padding:clamp(90px,14vw,170px) var(--pad); overflow:hidden; }
.glassrow::before { content:""; position:absolute; inset:-30%; background:radial-gradient(circle at 25% 40%,rgba(255,170,80,.3),transparent 40%),radial-gradient(circle at 75% 60%,rgba(124,200,255,.25),transparent 42%); filter:blur(40px); animation:drift 18s ease-in-out infinite alternate; pointer-events:none; }
@keyframes drift { to { transform:translate3d(6%,-4%,0) rotate(8deg); } }
.glassrow > * { position:relative; }
.glassrow.narrow { padding-top:40px; padding-bottom:40px; }
.glassrow h2, .about h2 { font-size:clamp(36px,5.5vw,84px); letter-spacing:-.045em; line-height:.98; margin:0 0 48px; max-width:16ch; }
.cards { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.card { text-decoration:none; border-radius:26px; padding:28px; min-height:280px; display:flex; flex-direction:column; justify-content:space-between; background:var(--glass); -webkit-backdrop-filter:blur(22px) saturate(1.5); backdrop-filter:blur(22px) saturate(1.5); box-shadow:inset 0 0 0 1px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.22); transition:transform .5s var(--ease), background .3s ease-out; }
@media (hover:hover) { .card:hover { transform:translateY(-6px); background:rgba(255,255,255,.12); } }
.card .k { margin:0; }
.card h3 { font-size:24px; letter-spacing:-.02em; line-height:1.15; margin:0; }
.card p { color:var(--dim); font-size:15px; line-height:1.5; margin:10px 0 0; }
.more { margin:34px 0 0; font-weight:600; }
.more a { text-decoration:none; }

/* ---------- galaxy ---------- */
.galaxy { position:relative; min-height:100svh; display:grid; place-items:center; overflow:hidden; padding:120px var(--pad); }
.galaxy canvas { position:absolute; inset:0; width:100%; height:100%; }
.gt { position:relative; max-width:1100px; text-align:center; }
.lyric { font-size:clamp(28px,4.2vw,62px); font-weight:600; letter-spacing:-.035em; line-height:1.1; margin:0 auto 64px; max-width:22ch; }
.facts { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.facts div { padding:26px; border-radius:24px; background:rgba(255,255,255,.06); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); box-shadow:inset 0 0 0 1px var(--line); }
.facts b { display:block; font-size:clamp(40px,5vw,72px); letter-spacing:-.05em; font-variant-numeric:tabular-nums; background:linear-gradient(180deg,#fff,#ffcf94); -webkit-background-clip:text; background-clip:text; color:transparent; }
.facts span { color:var(--dim); font-size:15px; }

/* ---------- sea ---------- */
.sea { height:220vh; }
.sea .sticky > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transform:scale(calc(1.25 - var(--p,1) * .25)); }
.sea .sticky::after { content:""; position:absolute; inset:0; background:rgba(0,0,0,calc(.15 + var(--p,1) * .45)); }
.sea .t { position:absolute; z-index:1; left:50%; top:50%; transform:translate(-50%,-50%); width:min(90%,1000px); text-align:center; }
.big { font-size:clamp(64px,13vw,210px); font-weight:800; letter-spacing:-.06em; line-height:.85; margin:0; background:linear-gradient(90deg,#fff calc(var(--p,1) * 140% - 20%),rgba(255,255,255,.18) calc(var(--p,1) * 140%)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.sub { font-size:clamp(16px,1.5vw,20px); color:var(--dim); max-width:44ch; margin:24px auto 0; line-height:1.5; }
.sea .sub { opacity:calc(var(--p,1) * 2 - .8); }

/* ---------- full texts (kept, folded) ---------- */
details.full { margin:40px auto 0; max-width:760px; text-align:left; }
details.full summary { cursor:pointer; font-weight:600; color:var(--warm); list-style:none; display:inline-flex; gap:8px; align-items:center; }
details.full summary::-webkit-details-marker { display:none; }
details.full summary::after { content:"+"; font-size:20px; line-height:1; transition:transform .25s var(--ease); }
details.full[open] summary::after { transform:rotate(45deg); }
details.card-like { padding:24px 28px; border-radius:24px; background:var(--glass); box-shadow:inset 0 0 0 1px var(--line); }

/* ---------- about ---------- */
.about .split { display:grid; grid-template-columns:1fr 1.2fr; gap:clamp(28px,5vw,80px); align-items:center; max-width:1240px; margin:0 auto; }
.about figure { margin:0; border-radius:999px 999px 28px 28px; overflow:hidden; aspect-ratio:4/5; }
.about figure img { width:100%; height:100%; object-fit:cover; }
.prose.clamp { max-height:16em; overflow:hidden; -webkit-mask-image:linear-gradient(#000 70%,transparent); mask-image:linear-gradient(#000 70%,transparent); }

/* ---------- contact / end ---------- */
.end { min-height:90vh; display:grid; place-items:center; text-align:center; padding:100px var(--pad) 120px; background:radial-gradient(ellipse at 50% 120%,rgba(255,182,97,.18),transparent 60%); }
.end h2 { font-size:clamp(44px,8vw,120px); letter-spacing:-.05em; line-height:.92; margin:0 0 10px; }

/* ---------- prose (articles and folded texts) ---------- */
.prose { color:rgba(246,243,238,.86); font-size:18px; line-height:1.7; }
.prose h2, .prose h3 { color:var(--ink); letter-spacing:-.02em; line-height:1.2; margin:1.8em 0 .6em; }
.prose a { color:var(--warm); }
.prose img { border-radius:16px; margin:1.4em 0; }
/* Post pictures span the full text width, like the title and the text (owner 2026-11-19). Browsers indent a
   <figure> by 40px on each side by default, which made the picture narrower than the page. */
.prose figure { margin:1.4em 0; }
.prose figure.item-image img { width:100%; margin:0; }
/* ...and on a wide screen it steps out of the text column to the width of the home page sections (1240px),
   centred; on a phone that is simply the screen minus the side margins. */
/* A tall or square picture is not taller than the screen: it is cropped at the bottom and kept aligned to
   the top of the photo (owner 2026-11-19, "uitgelijnd naar de top"). */
.prose figure.item-image img { max-height:min(80vh, 760px); object-fit:cover; object-position:center top; }
/* The date line and title start at the same left edge as the wide picture (and the logo), so the top of a
   post lines up instead of the title sitting indented above the photo (owner 2026-11-19). */
/* Post opening (owner 2026-11-19, "this is how the photos should be"): the post's own picture fills the
   screen from the very top, behind the header, like the home page opening; date and title sit on it at the
   bottom left, on a soft dark gradient so they stay readable. */
.post-hero { position:relative; height:100svh; min-height:520px; overflow:hidden; display:flex; align-items:flex-end; }
.post-hero > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center top; filter:brightness(.8); }
.post-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(6,6,6,.35) 0%,transparent 22%,transparent 50%,rgba(6,6,6,.85) 100%); pointer-events:none; }
.post-hero-text { position:relative; z-index:1; padding:0 var(--pad) clamp(36px,8vh,80px); max-width:1100px; }
.post-hero-text h1 { font-size:clamp(40px,7vw,110px); letter-spacing:-.05em; line-height:.92; margin:0; text-wrap:balance; }
.post-hero-text .entry-meta { margin-bottom:18px; }
.post-hero-credit { position:absolute; z-index:1; right:var(--pad); bottom:14px; margin:0; font-size:12px; color:var(--dim); }
.entry.has-hero, .index.has-hero { padding-top:clamp(56px,8vw,96px); }
.prose figure.item-image figcaption { color:var(--dim); font-size:13px; margin-top:8px; }
.prose pre, .prose code { font:14px/1.6 ui-monospace,"SF Mono",Menlo,monospace; background:rgba(255,255,255,.06); border-radius:8px; }
.prose pre { padding:16px 18px; overflow-x:auto; }
.prose code { padding:2px 6px; }
.prose pre code { padding:0; background:none; }
.prose blockquote { margin:1.6em 0; padding-left:20px; border-left:3px solid var(--warm); color:var(--ink); }
.prose table { border-collapse:collapse; width:100%; display:block; overflow-x:auto; }
.prose td, .prose th { border-bottom:1px solid var(--line); padding:8px 10px; text-align:left; }

/* ---------- blog index + article ---------- */
.index, .entry { max-width:820px; margin:0 auto; padding:clamp(110px,14vw,170px) var(--pad) 100px; }
.index-title, .entry h1 { font-size:clamp(44px,7vw,96px); letter-spacing:-.05em; line-height:.95; margin:0 0 40px; }
.entry h1 { font-size:clamp(36px,5.5vw,72px); }
.blog-index { list-style:none; margin:0; padding:0; }
.blog-index li { padding:26px 0; border-top:1px solid var(--line); }
.index-link { display:inline-block; font-size:clamp(22px,2.4vw,30px); font-weight:600; letter-spacing:-.02em; line-height:1.2; text-decoration:none; transition:color .2s ease-out; }
@media (hover:hover) { .index-link:hover { color:var(--warm); } }
.blog-index .meta { display:flex; gap:14px; font-size:13px; color:var(--dim); margin-top:8px; }
.blog-index p { color:var(--dim); margin:10px 0 0; overflow-wrap:anywhere; }
/* long URLs and commands in excerpts made the blog page 684px wide on an iPhone (menu off-screen) */
.blog-index li, .index-link, .prose { overflow-wrap:anywhere; }
.cat { color:var(--dim); }
.entry-meta { display:flex; gap:14px; }
.entry-meta .cat { color:inherit; opacity:.75; }
.back { margin-top:60px; font-weight:600; }
.back a { text-decoration:none; color:var(--warm); }

/* ---------- footer ---------- */
.site-footer { border-top:1px solid var(--line); padding:36px var(--pad) 48px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; color:var(--dim); font-size:14px; }
.site-footer a { text-decoration:none; }

@media (max-width:820px) {
  .cards, .facts, .about .split { grid-template-columns:1fr; }
  .about figure { aspect-ratio:3/2; border-radius:28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation:none !important; transition:none !important; }
  .js .rv { opacity:1; transform:none; }
}
