/* Lisanne Faber: editorial HR-portfolio + themas */
:root,
[data-theme="editorial"] {
  --ink: #1c2430;
  --ink-soft: #3d4a5c;
  --paper: #f4efe6;
  --paper-deep: #e8e0d2;
  --cream: #fbf8f2;
  --sage: #4f6f62;
  --sage-deep: #3a5449;
  --terracotta: #c45c3e;
  --line: rgba(28, 36, 48, 0.12);
  --shadow: 0 24px 60px rgba(28, 36, 48, 0.1);
  --contact-from: #1c2430;
  --contact-to: #2a3544;
  --contact-text: #fbf8f2;
  --contact-muted: rgba(251, 248, 242, 0.75);
  --contact-accent: #e8a090;
  --contact-btn: #c45c3e;
  --contact-btn-hover: #d46a4c;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grain-opacity: 0.04;
}

/* Donker elegant */
[data-theme="midnight"] {
  --ink: #e8ecf4;
  --ink-soft: #a8b3c7;
  --paper: #0f1419;
  --paper-deep: #1a222d;
  --cream: #161d27;
  --sage: #7eb8a8;
  --sage-deep: #9ad0c0;
  --terracotta: #e08b6d;
  --line: rgba(232, 236, 244, 0.1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --contact-from: #1a2433;
  --contact-to: #0d1218;
  --contact-text: #e8ecf4;
  --contact-muted: rgba(232, 236, 244, 0.7);
  --contact-accent: #e08b6d;
  --contact-btn: #7eb8a8;
  --contact-btn-hover: #9ad0c0;
  --grain-opacity: 0.06;
}

/* Fris blauw */
[data-theme="ocean"] {
  --ink: #0c2d48;
  --ink-soft: #3d5a73;
  --paper: #eef6fb;
  --paper-deep: #d6e8f5;
  --cream: #f7fbfd;
  --sage: #1b6ca8;
  --sage-deep: #145285;
  --terracotta: #e07a3d;
  --line: rgba(12, 45, 72, 0.12);
  --shadow: 0 24px 60px rgba(12, 45, 72, 0.12);
  --contact-from: #0c2d48;
  --contact-to: #145285;
  --contact-text: #f7fbfd;
  --contact-muted: rgba(247, 251, 253, 0.75);
  --contact-accent: #f0b27a;
  --contact-btn: #e07a3d;
  --contact-btn-hover: #ec8c52;
  --grain-opacity: 0.03;
}

/* Zacht rose */
[data-theme="rose"] {
  --ink: #3d2c32;
  --ink-soft: #6b555c;
  --paper: #faf4f2;
  --paper-deep: #f0e2dd;
  --cream: #fff9f7;
  --sage: #b76e79;
  --sage-deep: #9a5560;
  --terracotta: #8b5e4b;
  --line: rgba(61, 44, 50, 0.12);
  --shadow: 0 24px 60px rgba(61, 44, 50, 0.1);
  --contact-from: #3d2c32;
  --contact-to: #5c3f48;
  --contact-text: #fff9f7;
  --contact-muted: rgba(255, 249, 247, 0.75);
  --contact-accent: #e8b4b8;
  --contact-btn: #b76e79;
  --contact-btn-hover: #c7828c;
  --grain-opacity: 0.035;
}

/* Modern grijs */
[data-theme="slate"] {
  --ink: #1e293b;
  --ink-soft: #475569;
  --paper: #f1f5f9;
  --paper-deep: #e2e8f0;
  --cream: #ffffff;
  --sage: #334155;
  --sage-deep: #0f172a;
  --terracotta: #0ea5e9;
  --line: rgba(30, 41, 59, 0.12);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  --contact-from: #0f172a;
  --contact-to: #1e293b;
  --contact-text: #f8fafc;
  --contact-muted: rgba(248, 250, 252, 0.72);
  --contact-accent: #7dd3fc;
  --contact-btn: #0ea5e9;
  --contact-btn-hover: #38bdf8;
  --grain-opacity: 0.025;
}

/* Diep bosgroen */
[data-theme="forest"] {
  --ink: #1a2e24;
  --ink-soft: #3d5c4c;
  --paper: #eef5ef;
  --paper-deep: #d5e5d8;
  --cream: #f7fbf7;
  --sage: #2d6a4f;
  --sage-deep: #1b4332;
  --terracotta: #bc6c25;
  --line: rgba(26, 46, 36, 0.12);
  --shadow: 0 24px 60px rgba(26, 46, 36, 0.1);
  --contact-from: #1b4332;
  --contact-to: #2d6a4f;
  --contact-text: #f7fbf7;
  --contact-muted: rgba(247, 251, 247, 0.75);
  --contact-accent: #d8a15e;
  --contact-btn: #bc6c25;
  --contact-btn-hover: #d07a30;
  --grain-opacity: 0.04;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: var(--grain-opacity, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Soepele overgang bij themaswitch */
body:not(.admin-body) {
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

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

a {
  color: var(--sage-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.header-cv {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s,
    border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.btn-primary:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  box-shadow: 0 8px 24px rgba(79, 111, 98, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--cream);
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem)
    clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1rem;
}

.hero-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: -0.4rem 0 1rem;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: min(100%, 360px);
  border-radius: 20px 20px 60px 20px;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--cream);
  color: var(--sage-deep);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(28, 36, 48, 0.08);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .portrait-frame {
    width: min(100%, 280px);
  }
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto 1rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.highlight {
  background: var(--cream);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.highlight-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--sage-deep);
  display: block;
  line-height: 1.1;
}

.highlight-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 0.35rem;
  display: block;
}

@media (max-width: 560px) {
  .highlights {
    grid-template-columns: 1fr;
  }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem 3rem;
  align-items: start;
}

.about-grid h2 {
  margin: 0;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.6s var(--ease) both;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-period {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage);
  padding-top: 0.2rem;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.2rem;
}

.timeline-company {
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
}

.timeline-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

@media (max-width: 560px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.skill-cloud {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-cloud li {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.skill-cloud li:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
  background: #fff;
}

.edu-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.edu-item h3 {
  font-size: 1.1rem;
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-weight: 500;
}

.edu-meta {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

.lang-list {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
}

.lang-row span:last-child {
  color: var(--sage);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Contact */
.contact-section {
  border-top: none;
  padding-top: 1rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.contact-card {
  background: linear-gradient(
    145deg,
    var(--contact-from) 0%,
    var(--contact-to) 100%
  );
  color: var(--contact-text);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow);
}

.contact-card .section-label {
  color: var(--contact-accent);
}

.contact-card h2 {
  color: var(--contact-text);
  max-width: 18ch;
}

.contact-lead {
  color: var(--contact-muted);
  max-width: 42ch;
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

.contact-links a {
  color: var(--contact-text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid color-mix(in srgb, var(--contact-text) 35%, transparent);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.contact-links a:hover {
  border-color: var(--contact-text);
}

.contact-card .btn-primary {
  background: var(--contact-btn);
  border-color: var(--contact-btn);
  color: #fff;
}

.contact-card .btn-primary:hover {
  background: var(--contact-btn-hover);
  border-color: var(--contact-btn-hover);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--contact-btn) 35%, transparent);
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: var(--max);
  margin: 0 auto;
}

.footer-sep {
  opacity: 0.5;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy > * {
  animation: fadeUp 0.7s var(--ease) both;
}

.hero-copy > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.12s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.18s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.24s;
}
.hero-copy > *:nth-child(5) {
  animation-delay: 0.3s;
}

.portrait-frame {
  animation: fadeUp 0.8s var(--ease) 0.15s both;
}

/* Admin */
.admin-body {
  background: #eef1f4;
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
}

.admin-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-top h1 {
  font-size: 1.75rem;
  margin: 0;
}

.admin-card {
  background: #fff;
  border: 1px solid rgba(28, 36, 48, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(28, 36, 48, 0.05);
}

.admin-card h2 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.98rem;
  background: #fafbfc;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(79, 111, 98, 0.15);
  background: #fff;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.login-box {
  max-width: 400px;
  margin: 12vh auto;
  text-align: center;
}

.login-box h1 {
  font-size: 1.6rem;
}

.login-box p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.login-error {
  color: var(--terracotta);
  font-size: 0.9rem;
  min-height: 1.3em;
  margin: 0.5rem 0 0;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  z-index: 200;
}

.toast.show {
  transform: none;
  opacity: 1;
}

.toast.error {
  background: #8b3a2a;
}

.repeat-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #fafbfc;
}

.repeat-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.btn-danger {
  background: transparent;
  color: var(--terracotta);
  border-color: rgba(196, 92, 62, 0.35);
}

.btn-danger:hover {
  background: #fdf0ec;
  border-color: var(--terracotta);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: sticky;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(28, 36, 48, 0.1);
}

.file-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
}

.hidden {
  display: none !important;
}

.preview-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-top: 0.5rem;
}

/* Theme picker (admin) */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.theme-option {
  position: relative;
  display: block;
  cursor: pointer;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.theme-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28, 36, 48, 0.08);
}

.theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-option.is-selected,
.theme-option:has(input:checked) {
  border-color: #4f6f62;
  box-shadow: 0 0 0 3px rgba(79, 111, 98, 0.2);
}

.theme-swatch {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.6fr;
  height: 52px;
}

.theme-swatch span {
  display: block;
}

.theme-meta {
  padding: 0.55rem 0.7rem 0.7rem;
}

.theme-meta strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c2430;
}

.theme-meta small {
  color: #5a6678;
  font-size: 0.78rem;
}

.delivery-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #f4f7f5;
  border: 1px solid rgba(28, 36, 48, 0.1);
}

.delivery-status strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.btn.is-busy {
  opacity: 0.65;
  cursor: wait;
}
