/* =========================================================
   Heike Fleming — Portfolio
   A small, framework-free stylesheet. Edit freely.
   ========================================================= */

:root {
  /* Palette pulled from Heike's paintings: warm cream, deep teal, soft coral. */
  --color-bg:        #faf7f1;
  --color-bg-alt:    #f1ebdf;
  --color-text:      #2b2a28;
  --color-muted:     #6b665c;
  --color-accent:    #2f5d62;   /* deep teal — Vondelpark heron water */
  --color-accent-2: #c2664a;    /* warm terracotta — apples */
  --color-line:      #e6dfd0;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);

  --max-w: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover { color: var(--color-accent-2); border-bottom-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.4em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
  display: block;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  border-bottom: none;
}
.brand:hover { color: var(--color-accent); }

.nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  border-bottom: none;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}
.hero__text h1 { margin-top: 0.3rem; }
.hero__text p.lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 36ch;
}
.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  background: var(--color-bg-alt);
}
.hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero__image { aspect-ratio: 4 / 3; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  border-radius: var(--radius);
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn:hover {
  background: transparent;
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.btn--ghost {
  background: transparent;
  color: var(--color-accent);
}
.btn--ghost:hover {
  background: var(--color-accent);
  color: #fff;
}
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}

.gallery__item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
  cursor: zoom-in;
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
}
.gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery__thumb {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  background: var(--color-bg-alt);
}
.gallery__caption {
  padding: 0.9rem 1rem 1rem;
}
.gallery__caption h3 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}
.gallery__caption .meta {
  color: var(--color-muted);
  font-size: 0.85rem;
}
.gallery__caption .price {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-accent-2);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__caption {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #f1ebdf;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  top: 1.2rem;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  line-height: 1;
}
.lightbox__close { right: 1.2rem; }
.lightbox__nav   { top: 50%; transform: translateY(-50%); font-size: 2.5rem; }
.lightbox__nav--prev { left: 0.6rem; }
.lightbox__nav--next { right: 0.6rem; }
.lightbox__close:hover,
.lightbox__nav:hover { color: var(--color-accent-2); }

/* ---------- Bio / About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__portrait {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__body p:last-child { margin-bottom: 0; }

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

/* ---------- CV cards ---------- */
.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.cv-card {
  border: 1px solid var(--color-line);
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.cv-card h3 { margin-top: 0; }
.cv-card .flag { font-size: 1.4rem; margin-right: 0.4rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 2rem 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0.2rem 0; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
