/* =========================================================================
   Via Aventura — kleine, editorial site
   met Roman Forum hero-illustratie
   ========================================================================= */

:root {
  --paper:        #faf6ec;
  --paper-2:      #f3ebd8;
  --paper-3:      #ecdfc0;
  --paper-warm:   #f5e2bd;
  --card:         #ffffff;
  --ink:          #1f1610;
  --ink-2:        #4a3d31;
  --muted:        #8c7a64;
  --line:         rgba(31, 22, 16, 0.10);
  --line-strong:  rgba(31, 22, 16, 0.20);
  --terracotta:   #c0492a;
  --pompeii-dk:   #8a2b20;
  --ochre:        #b88736;
  --ochre-dk:     #7a4a1f;
  --sienna:       #a05a2a;

  --f-display: "Fraunces", Georgia, serif;
  --f-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pompeii-dk); }

em { font-style: italic; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.1;
  margin: 0;
  font-variation-settings: "opsz" 110;
}

h2 em, h3 em {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* =========================================================================
   HEADER
   ========================================================================= */

.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: rgba(250, 246, 236, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 8px;
  box-shadow: 0 2px 6px -2px rgba(31, 22, 16, .15);
}
.brand-name {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* =========================================================================
   HERO — quote + Roman Forum panorama
   ========================================================================= */

/* =========================================================================
   INTRO — quote + about side-by-side
   ========================================================================= */

.intro {
  padding: clamp(40px, 6vw, 80px) 32px;
  max-width: 1180px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 85% 50%, rgba(244, 199, 121, .18) 0%, transparent 55%);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.manifesto {
  margin: 0;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.manifesto p { margin: 0; }
.manifesto em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.intro-about h2 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -.01em;
  margin: 0 0 16px;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.intro-about p {
  font-family: var(--f-sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.intro-about p:last-child { margin: 0; }
.intro-about a {
  color: var(--terracotta);
  border-bottom: 1px solid rgba(192, 73, 42, .35);
  padding-bottom: 1px;
  transition: border-color .15s;
}
.intro-about a:hover { border-color: var(--terracotta); }

@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================================
   ORNAMENTAL DIVIDER
   ========================================================================= */

.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 28px 32px;
  max-width: var(--w);
  margin: 0 auto;
}
.orn-line {
  display: block; flex: 1; max-width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), var(--line-strong), transparent);
}
.orn-mark {
  width: 64px; height: 26px; opacity: .85;
  flex-shrink: 0;
}

/* =========================================================================
   ABOUT VIA AVENTURA
   ========================================================================= */

.about {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper-3) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31, 22, 16, .07) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: .5;
  pointer-events: none;
}
.about-inner {
  position: relative; z-index: 2;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text {
  max-width: 640px;
}
.kicker {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--terracotta);
  margin: 0 0 6px;
  font-variation-settings: "opsz" 144;
  letter-spacing: 0;
}
.about-text h2 {
  font-size: clamp(34px, 4.8vw, 56px);
  margin: 0 0 22px;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 144;
}
.about-body {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  font-variation-settings: "opsz" 110, "SOFT" 50;
  margin: 0 0 18px;
}
.about-body:last-child { margin-bottom: 0; }
.about-body a {
  color: var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
}

.about-mark {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.seal {
  width: 180px; height: 180px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 24px rgba(177, 56, 43, .35));
  position: relative; z-index: 2;
}
.branch {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 160px;
  opacity: .85;
  z-index: 1;
}
.branch-l { left: 6%; }
.branch-r { right: 6%; }

@media (max-width: 880px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-mark { order: -1; }
  .seal { width: 140px; height: 140px; }
}

/* =========================================================================
   SECTIONS — code & creative
   ========================================================================= */

.section {
  max-width: var(--w);
  margin: 0 auto;
  padding: 70px 32px;
}

.section-head {
  margin-bottom: 36px;
}
.section-head .kicker {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  color: var(--terracotta);
  margin: 0 0 6px;
  font-variation-settings: "opsz" 144;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 500;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 144;
}

/* =========================================================================
   FILTER
   ========================================================================= */

.filter {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 28px;
}
.filter-btn {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { color: var(--terracotta); border-color: var(--terracotta); }
.filter-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* =========================================================================
   WORKS — alinea/artikel-stijl
   ========================================================================= */

.works {
  border-top: 1px solid var(--line);
}

.work {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  padding: 72px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.work:nth-child(even) .work-media { order: 2; }

.work-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-3);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px -18px rgba(31, 22, 16, .25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.work:hover .work-media {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px -16px rgba(31, 22, 16, .3);
}
.work-media img,
.work-media .illustration {
  width: 100%; height: 100%;
  display: block;
}
.work-media img { object-fit: cover; }
.work-media .illustration { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-3) 100%); }

.work-body { max-width: 560px; }

.work-meta {
  display: flex; align-items: baseline; gap: 14px;
  margin: 0 0 14px;
}
.work-num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  color: var(--terracotta);
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.work-cat {
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.work-body h3 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
  font-variation-settings: "opsz" 144;
}
.work-body .work-tag {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ochre);
  margin: 0 0 18px;
  font-variation-settings: "opsz" 144;
}
.work-body > p:not(.work-tag):not(.work-meta) {
  font-family: var(--f-sans);
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0 0 20px;
}
.work-link {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px;
}
.work-link:hover { color: var(--terracotta); }
.work.is-hidden { display: none; }

.more-line {
  text-align: center;
  margin-top: 56px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  font-variation-settings: "opsz" 144;
}

@media (max-width: 820px) {
  .work {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }
  .work:nth-child(even) .work-media { order: 0; }
  .work-media { aspect-ratio: 5 / 3; }
}

/* =========================================================================
   CREATIVE — atelier rows
   ========================================================================= */

.creative {
  background: var(--paper-2);
  max-width: none;
  padding: 70px 0;
  border-top: 1px solid var(--line);
}
.creative .section-head,
.creative .atelier {
  max-width: var(--w);
  margin: 0 auto;
  padding-left: 32px; padding-right: 32px;
}

.atelier {
  border-top: 1px solid var(--line);
}
.atelier-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-left .25s;
}
.atelier-row:hover { padding-left: 12px; }

.atelier-letter {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 56px;
  line-height: .9;
  color: var(--terracotta);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.atelier-body { max-width: 760px; }
.atelier-body h3 {
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 4px;
  font-weight: 500;
}
.atelier-tag {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ochre);
  margin: 0 0 10px;
  font-variation-settings: "opsz" 144;
}
.atelier-body p {
  font-family: var(--f-sans);
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.atelier-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px;
}
.atelier-link:hover { color: var(--terracotta); }

/* =========================================================================
   FOOTER
   ========================================================================= */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 28px 32px;
}
.footer-inner {
  max-width: var(--w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-family: var(--f-sans);
  font-size: 14px;
}
.site-footer a { color: var(--ink); border-bottom: 1px solid var(--terracotta); padding-bottom: 1px; }
.site-footer a:hover { color: var(--terracotta); }
.site-footer .muted { color: var(--muted); }

/* =========================================================================
   Scroll reveal
   ========================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
  .hero { padding: 50px 22px 0; }
  .hero-inner { padding-bottom: 200px; }
  .about { padding: 60px 0; }
  .about-inner { padding: 0 22px; }
  .section { padding: 60px 22px; }
  .creative { padding: 60px 0; }
  .creative .section-head,
  .creative .atelier { padding-left: 22px; padding-right: 22px; }
  .atelier-row { grid-template-columns: 50px 1fr; gap: 18px; padding: 26px 0; }
  .atelier-letter { font-size: 42px; }
  .ornament { padding: 18px 22px; }
}

/* =========================================================================
   ACCESSIBILITY — skip-link, visually-hidden, focus, reduced motion
   ========================================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-family: var(--f-sans);
  font-size: 14px; font-weight: 600;
  border-radius: 4px;
  z-index: 100;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

/* Universal focus-visible ring */
*:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible,
.filter-btn:focus-visible,
.nav-toggle:focus-visible {
  outline-offset: 4px;
}

main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .work:hover .work-media { transform: none; }
}

/* =========================================================================
   MOBILE NAV TOGGLE
   ========================================================================= */

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  width: 42px; height: 42px;
  padding: 10px 8px;
  cursor: pointer;
  flex-direction: column; justify-content: space-between;
  align-items: stretch;
}
.nav-toggle-bar {
  display: block;
  height: 2px; width: 100%;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 12px 30px -16px rgba(31, 22, 16, .25);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    padding-top: 0; padding-bottom: 0;
  }
  .site-nav a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: none; }
  body.nav-open .site-nav {
    max-height: 320px;
    padding-top: 14px;
    padding-bottom: 22px;
  }
  /* prevent body scroll-bleed when menu open */
  body.nav-open { overflow: hidden; }
}

/* =========================================================================
   HERO ENTRANCE ANIMATION
   ========================================================================= */

@keyframes va-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes va-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.manifesto {
  animation: va-fade-up 1.1s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .15s;
}
.intro-about {
  animation: va-fade-up 1.1s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .3s;
}
.site-header {
  animation: va-fade-in .8s ease-out both;
}

/* =========================================================================
   MINI PAGES — 404, privacy
   ========================================================================= */

body.page-mini {
  display: flex; flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(214, 166, 87, .15), transparent 60%),
    var(--paper);
}
.mini-wrap {
  max-width: 560px;
  margin: auto;
  padding: 80px 32px;
  text-align: left;
}
.mini-wrap.mini-wide { max-width: 720px; }
.mini-kicker {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--terracotta);
  margin: 0 0 6px;
  font-variation-settings: "opsz" 144;
  letter-spacing: 0;
}
.mini-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 500;
  margin: 0 0 22px;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 144;
}
.mini-title em {
  font-style: italic;
  color: var(--terracotta);
}
.mini-deck {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--ink-2);
  margin: 0 0 30px;
  line-height: 1.45;
  font-variation-settings: "opsz" 110;
}
.mini-wrap h2 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  margin: 32px 0 10px;
  font-variation-settings: "opsz" 144;
}
.mini-wrap p {
  font-family: var(--f-sans);
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0 0 14px;
}
.mini-list {
  font-family: var(--f-sans);
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  padding-left: 18px;
  margin: 14px 0;
}
.mini-list strong { color: var(--ink); }
.mini-list em { color: var(--muted); font-style: italic; font-size: 14px; }
.mini-link {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px;
  display: inline-block;
}
.mini-link:hover { color: var(--terracotta); }
.mini-meta {
  font-family: var(--f-sans); font-size: 13px; color: var(--muted);
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line);
}
/* =========================================================================
   BUILD LOG — automatische GitHub-feed
   ========================================================================= */

.log-feed { margin-top: 24px; }

.log-loading,
.log-error {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  padding: 24px 0;
}
.log-error a { color: var(--terracotta); }

.log-day {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.log-day:first-child { border-top: none; padding-top: 8px; }

.log-date {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--terracotta);
  margin: 0 0 18px;
  font-variation-settings: "opsz" 144;
}

.log-events {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.log-event {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px 12px;
  align-items: baseline;
}

.log-event-icon {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  color: var(--ochre);
  text-align: center;
  line-height: 1.4;
}

.log-event-line {
  font-family: var(--f-sans);
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.log-event-repo {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper-3);
  padding: 2px 7px;
  border-radius: 3px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.log-event-repo:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.log-commits {
  grid-column: 2;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.log-commits li {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
  word-break: break-word;
}
.log-commits li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ochre);
}

.log-foot {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.log-foot a { color: var(--terracotta); }

/* =========================================================================
   INTERACTIVE FORUM — hover landmarks
   ========================================================================= */

.forum .landmark {
  cursor: pointer;
  transition: stroke .25s ease;
}
.forum .landmark:hover,
.forum .landmark:focus-visible {
  stroke: #c0492a;
}
.forum .landmark:hover line,
.forum .landmark:hover rect,
.forum .landmark:hover path,
.forum .landmark:focus-visible line,
.forum .landmark:focus-visible rect,
.forum .landmark:focus-visible path {
  stroke: #c0492a;
}

.forum-tip {
  position: absolute;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity .2s ease;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.4);
}
.forum-tip::after {
  content: ""; position: absolute;
  left: 50%; bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
  border-bottom: 0;
}
.forum-tip em {
  font-style: italic; color: var(--ochre-2, #d6a657);
  display: block; font-size: 11px;
  margin-top: 2px; letter-spacing: 1px;
  text-transform: uppercase;
}
.forum-tip.show { opacity: 1; }

/* =========================================================================
   WAX-SEAL STAMP ANIMATION (about section)
   ========================================================================= */

@keyframes va-stamp-press {
  0%   { transform: rotate(-22deg) scale(0.6); opacity: 0; }
  60%  { transform: rotate(-6deg) scale(1.08); opacity: 1; }
  78%  { transform: rotate(-6deg) scale(0.96); }
  100% { transform: rotate(-6deg) scale(1); opacity: 1; }
}
@keyframes va-stamp-shadow {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
.about-mark .seal {
  /* baseline state — will be set by class on .in */
  transform: rotate(-6deg);
}
.about-inner.stamp .seal {
  animation: va-stamp-press 1s cubic-bezier(.4, 1.6, .5, 1) .15s both;
}
.about-inner.stamp .branch-l {
  animation: va-stamp-shadow 1.2s ease-out .35s both;
  transform-origin: center;
}
.about-inner.stamp .branch-r {
  animation: va-stamp-shadow 1.2s ease-out .45s both;
  transform-origin: center;
}

/* =========================================================================
   GITHUB STATS chip on work-link
   ========================================================================= */

.work-stats {
  display: inline-flex; align-items: center; gap: 10px;
  margin-left: 14px;
  font-family: var(--f-sans);
  font-size: 12px; font-weight: 500;
  color: var(--muted);
  opacity: 0;
  transition: opacity .4s ease;
}
.work-stats.loaded { opacity: 1; }
.work-stats .gh-star::before {
  content: "★ "; color: var(--ochre);
}
.work-stats .gh-dot { color: var(--muted); opacity: .5; }
.work-stats .gh-update::before {
  content: "↻ "; color: var(--muted);
}

@media (max-width: 600px) {
  .work-stats { margin-left: 0; margin-top: 8px; }
  .work-link { display: block; }
}

/* =========================================================================
   PROJECT DETAIL PAGE
   ========================================================================= */

body.project-page main {
  max-width: 880px; margin: 0 auto;
  padding: 50px 32px 80px;
}
.breadcrumb {
  font-family: var(--f-sans); font-size: 13px;
  color: var(--muted); margin-bottom: 36px;
}
.breadcrumb a { color: var(--ink-2); border-bottom: 1px solid transparent; padding-bottom: 1px; }
.breadcrumb a:hover { color: var(--terracotta); border-color: var(--terracotta); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

.project-hero {
  margin-bottom: 40px;
}
.project-num-big {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--terracotta);
  margin: 0 0 8px;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 500;
}
.project-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  font-variation-settings: "opsz" 144;
}
.project-hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}
.project-tagline {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 26px);
  font-style: italic;
  color: var(--ochre);
  margin: 0 0 22px;
  font-variation-settings: "opsz" 144;
}
.project-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.project-pill {
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  background: var(--paper-2);
}
.project-pill.status-live { color: #2c6e3a; border-color: #a6c5a9; background: #eaf2eb; }
.project-pill.status-wip { color: #9b6b1a; border-color: #d8c08a; background: #f7eecf; }
.project-pill.status-idea { color: var(--muted); }

.project-image {
  margin: 30px 0 50px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px -22px rgba(31, 22, 16, .3);
  background: var(--paper-3);
}
.project-image img,
.project-image .illustration {
  width: 100%; height: auto; display: block;
}

.project-body h2 {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500; font-style: italic;
  margin: 40px 0 14px;
  font-variation-settings: "opsz" 144;
}
.project-body p {
  font-family: var(--f-sans);
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 16px;
}
.project-body .chips {
  margin: 16px 0 24px;
}
.project-body .chip {
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  background: var(--paper-3);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 5px 12px;
  border-radius: 4px;
}

.project-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 40px 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-cta .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  font-family: var(--f-sans);
  font-size: 13px; font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.project-cta .btn-primary {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.project-cta .btn-primary:hover {
  background: var(--terracotta); border-color: var(--terracotta);
  transform: translateY(-1px);
}
.project-cta .btn-outline {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.project-cta .btn-outline:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

.project-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 50px;
}
.project-nav a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--card);
  transition: border-color .2s, transform .2s;
}
.project-nav a:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
}
.project-nav a span {
  display: block;
  font-family: var(--f-sans); font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.project-nav a strong {
  font-family: var(--f-display); font-weight: 500;
  font-size: 18px; font-style: italic;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.project-nav a.next { text-align: right; }

@media (max-width: 600px) {
  body.project-page main { padding: 30px 22px 60px; }
  .project-nav { grid-template-columns: 1fr; }
  .project-nav a.next { text-align: left; }
}

/* =========================================================================
   Project-card image as link
   ========================================================================= */

a.work-media {
  display: block;
  cursor: pointer;
}
a.work-media::after {
  content: "Lees meer →";
  position: absolute; bottom: 12px; right: 14px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 600;
  color: var(--paper);
  background: rgba(31, 22, 16, .82);
  padding: 6px 12px; border-radius: 4px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s;
  backdrop-filter: blur(4px);
}
a.work-media:hover::after,
a.work-media:focus-visible::after {
  opacity: 1; transform: translateY(0);
}

/* =========================================================================
   EASTER EGG — mosaic overlay
   ========================================================================= */

.mosaic-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 99;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(192, 73, 42, .08) 0 12px,
      rgba(214, 166, 87, .08) 12px 24px,
      rgba(31, 22, 16, .04) 24px 36px);
  opacity: 0;
  transition: opacity .8s ease;
}
.mosaic-overlay.show { opacity: 1; }

.toast-ave {
  position: fixed;
  top: 24px; left: 50%; transform: translateX(-50%) translateY(-100%);
  background: var(--pompeii-dk);
  color: var(--paper);
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  font-variation-settings: "opsz" 144;
  z-index: 100;
  opacity: 0;
  transition: opacity .3s ease, transform .4s cubic-bezier(.4,1.6,.5,1);
  box-shadow: 0 14px 40px -10px rgba(177, 56, 43, .5);
}
.toast-ave.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================================
   PRINT STYLESHEET
   ========================================================================= */

@media print {
  body {
    background: #fff !important; color: #000 !important;
    font-size: 11pt; line-height: 1.45;
  }
  body::before, body::after { display: none !important; }
  .site-header, .site-footer,
  .nav-toggle, .site-nav,
  .filter, .ornament,
  .skip-link, .forum, .columns,
  .seal, .branch, .about-bg,
  .work-link, .work-stats,
  .project-cta, .project-nav, .breadcrumb,
  .mosaic-overlay, .toast-ave,
  .forum-tip { display: none !important; }

  main, main * { color: #000 !important; background: transparent !important; }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt; color: #555 !important;
    word-break: break-all;
  }
  .hero { padding: 0 0 18pt 0 !important; min-height: auto !important; }
  .hero-inner { padding-bottom: 0 !important; }
  .manifesto {
    font-size: 18pt !important;
    color: #000 !important;
    page-break-after: avoid;
  }
  .manifesto em { color: #000 !important; font-style: italic; }
  .about, .section { padding: 18pt 0 !important; page-break-inside: avoid; }
  .about-mark { display: none !important; }
  .about-inner { grid-template-columns: 1fr !important; }
  .work {
    grid-template-columns: 1fr !important;
    page-break-inside: avoid;
    padding: 12pt 0 !important;
    gap: 8pt !important;
  }
  .work-media { display: none !important; }
  .work-num { color: #000 !important; }
  .atelier-row { page-break-inside: avoid; }
  h2, h3 { color: #000 !important; }
  h2 { page-break-after: avoid; }
}
