/* Self-hosted fonts — no external requests, faster and privacy-friendly */
@font-face { font-family: 'CormorantG'; src: url('fonts/cormorant-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'CormorantG'; src: url('fonts/cormorant-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'CormorantG'; src: url('fonts/cormorant-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'ManropeW'; src: url('fonts/manrope-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'ManropeW'; src: url('fonts/manrope-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'ManropeW'; src: url('fonts/manrope-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* Nathalie van Berkel — Transformation through Colour */

:root {
  --ground: #FAF8F4;
  --ink: #1E1E24;
  --muted: #6B6B75;
  --soft: #E6E1D8;
  --accent: #D61C7B;
  --serif: 'CormorantG', 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'ManropeW', 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.serif { font-family: var(--serif); }
.caps {
  font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
.accent { color: var(--accent); }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- header ---------- */
header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px var(--pad);
  border-bottom: 1px solid var(--soft);
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .nm { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 25px); font-weight: 500; letter-spacing: .3px; line-height: 1; }
nav { display: flex; gap: clamp(18px, 3vw, 40px); }
nav a { font-size: 12px; letter-spacing: 2.2px; text-transform: uppercase; font-weight: 500; padding: 4px 0; }
nav a[aria-current="page"] { color: var(--accent); border-bottom: 1px solid var(--accent); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }

@media (max-width: 720px) {
  .menu-btn { display: block; }
  nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--soft);
    padding: 4px var(--pad) 18px;
  }
  nav[hidden] { display: none; }
  nav a { padding: 12px 0; border-bottom: 1px solid var(--soft); }
  nav a:last-child { border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding: clamp(40px, 7vw, 84px) var(--pad);
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 7.4vw, 92px); line-height: .98; letter-spacing: -1px;
  margin: 18px 0 0;
}
.hero p.lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: #4A4A55; max-width: 46ch; margin: 24px 0 0; }
.hero figure { margin: 0; }
.hero figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; }
.hero img { box-shadow: 0 26px 54px rgba(30, 30, 36, .16); width: auto; max-width: 100%; max-height: 74vh; }
.hero figure { display: flex; flex-direction: column; align-items: center; }
.hero figcaption { align-self: center; text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 30px;
  background: var(--ink); color: var(--ground);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn-line {
  display: inline-flex; align-items: center; min-height: 52px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
  border-bottom: 2px solid var(--accent);
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero img { max-height: 62vh; } }

/* ---------- section heads ---------- */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--soft); padding-top: 30px; margin-bottom: 32px;
}
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); margin: 0; }

/* ---------- grid of works ---------- */
.grid {
  display: grid; gap: clamp(26px, 3.4vw, 44px);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  padding-bottom: clamp(48px, 7vw, 90px);
}
.card { display: flex; flex-direction: column; gap: 12px; }
.card .ph {
  background: #fff; border: 1px solid var(--soft);
  aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center;
  padding: 14px; overflow: hidden;
}
.card .ph img { max-height: 100%; width: auto; object-fit: contain; transition: transform .45s ease; }
.card:hover .ph img { transform: scale(1.035); }
.card h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; margin: 0; }
.card .meta { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .card h3 { font-size: 17px; line-height: 1.25; }
  .card .meta { font-size: 11px; }
  .card .ph { padding: 8px; }
}

/* ---------- work detail ---------- */
.work { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: start; padding: clamp(28px, 4vw, 48px) var(--pad) clamp(50px, 7vw, 90px); }
.work .plate { background: #fff; border: 1px solid var(--soft); padding: clamp(16px, 2.4vw, 34px); display: flex; align-items: center; justify-content: center; }
.work .plate img { max-height: 74vh; width: auto; }
.work h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; margin: 0 0 20px; }
.work .desc { font-size: 17px; line-height: 1.75; color: #4A4A55; margin: 0 0 28px; }
.work dl { margin: 0 0 30px; }
.work .row { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--soft); font-size: 15px; }
.work .row dt { flex: none; width: 108px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-top: 3px; margin: 0; }
.work .row dd { margin: 0; }
.back { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); display: inline-block; margin-bottom: 18px; }
.pager { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--soft); padding: 26px var(--pad) 0; margin: 0 0 clamp(40px, 6vw, 70px); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; } .work .plate img { max-height: 60vh; } }

/* ---------- text pages ---------- */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 5vw, 76px); padding: clamp(36px, 5vw, 68px) var(--pad); align-items: start; }
.about h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 16px 0 28px; }
.about p { font-size: 17px; line-height: 1.8; color: #3A3A44; margin: 0 0 18px; max-width: 62ch; }
.about em { font-family: var(--serif); font-style: italic; font-size: 1.12em; }
.panel { background: var(--ink); color: var(--ground); padding: clamp(28px, 4vw, 44px); margin-top: 34px; }
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.8vw, 32px); margin: 12px 0 18px; }
.panel .caps { color: #F5D547; }
.panel a { border-bottom: 1px solid rgba(250,248,244,.35); }
.panel a:hover { color: #F5D547; border-color: #F5D547; }
.facts { font-size: 14px; line-height: 1.9; color: var(--muted); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 76px); padding: clamp(48px, 8vw, 100px) var(--pad); align-items: center; }
.contact h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.1; margin: 18px 0 30px; }
.contact .lines { font-size: 17px; line-height: 2.1; }
@media (max-width: 860px) { .about, .contact { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--soft); padding: 34px var(--pad) 44px;
  display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}
footer .links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 500; }

/* ---------- misc ---------- */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--ground); padding: 10px 16px; z-index: 50; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- selected works on home: two large works stacked + a contrasting pair ---------- */
.grid.sel { grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; gap: clamp(40px, 5vw, 64px); }
.grid.sel > .card .ph { aspect-ratio: auto; height: min(82vh, 860px); padding: clamp(14px, 2.5vw, 28px); }
.grid.sel > .card:not(.pair) .ph img { height: 100%; max-height: 100%; width: auto; }
.card.pair .ph { height: min(62vh, 620px); gap: 4%; padding: clamp(14px, 2.5vw, 28px) 6%; }
.card.pair .ph a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; height: 100%; }
.card.pair .ph img { max-width: 100%; max-height: 100%; height: auto; }
.card.pair .ph a:hover img { transform: scale(1.035); }
.card.pair h3 a { color: inherit; text-decoration: none; }
.card.pair h3 a:hover { color: var(--accent); }
.card.pair h3 span { font-style: normal; color: var(--muted); margin: 0 .15em; }
.grid.sel .card h3 { font-size: clamp(22px, 2.4vw, 28px); }
@media (max-width: 560px) {
  .grid.sel { grid-template-columns: 1fr; }
  .grid.sel > .card .ph { height: auto; }
  .grid.sel > .card:not(.pair) .ph img { height: auto; width: 100%; }
  .card.pair .ph { height: auto; aspect-ratio: 8 / 5; }
}
