/* Lotte Rijkes — styles
   FONT: change the single line below to switch the typeface site-wide.
   (To use a webfont, add its <link> or @font-face and put its name first.) */
:root {
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --fg: #111;
  --bg: #fff;
  --muted: #8a8a8a;
  --header-h: 64px;
  --gutter: clamp(16px, 3vw, 40px);
  --wgap: clamp(40px, 6vw, 88px);   /* gap between photos on the Work page */
  --frame: clamp(28px, 8vw, 120px); /* white margin around photos (home + Work) */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
body:has(.menu[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover, button:hover { opacity: .55; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header + full-screen menu ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--bg);
}
.site-title { position: relative; z-index: 2; font-size: 15px; letter-spacing: .02em; }

.menu summary {
  position: relative; z-index: 2;
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; margin-right: -12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 24px; height: 1.5px; background: var(--fg); transition: transform .2s ease; }
.menu[open] summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu[open] summary span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.menu ul { display: none; }
.menu[open] ul {
  position: fixed; inset: 0; z-index: 1;
  margin: 0; padding: var(--header-h) var(--gutter) 0;
  list-style: none; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  font-size: clamp(28px, 6vw, 44px); letter-spacing: .02em; text-align: center;
}
.menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }

/* ---------- Home: one photo ---------- */
main { padding: calc(var(--header-h) + 24px) var(--gutter) 64px; }
.home {
  display: flex; justify-content: center;
  padding: calc(var(--header-h) + 40px) var(--frame) 64px;
}
.home a { display: block; }
.home img {
  width: auto; max-width: 100%;
  max-height: calc(100vh - var(--header-h) - 104px);
  max-height: calc(100dvh - var(--header-h) - 104px);
  background: #f2f2f2;
}

/* ---------- Work: I & II, III & IV, then V ---------- */
main.work-page { padding: calc(var(--header-h) + 40px) var(--frame) 140px; }
.work {
  max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--wgap);
}
.work-title {
  grid-column: 1 / -1;
  margin: 0 0 clamp(8px, 2vw, 24px);
  font-size: 15px; font-weight: 400; letter-spacing: .02em;
}
.work-title em { font-style: italic; }
.work-title .year { font-style: normal; }
.work figure { margin: 0; }
.work img { width: 100%; height: auto; background: #f2f2f2; }
/* Photo V: landscape, same width as one portrait photo, centred but nudged to the right */
.work .landscape {
  grid-column: 1 / -1;
  width: calc((100% - var(--wgap)) / 2);
  margin-left: calc((100% + var(--wgap)) / 4 + 5%);
}
@media (max-width: 700px) {
  .work { grid-template-columns: 1fr; }
  .work .landscape { grid-column: auto; width: 100%; margin-left: 0; }
}

/* ---------- Info ---------- */
.info { max-width: 620px; }
.info section { margin-bottom: 36px; }
.info h2 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.info p { margin: 0 0 1em; }
.reveal {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.hint { color: var(--muted); font-size: 12px; margin-left: 8px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

@media (max-width: 600px) { body { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .menu summary span { transition: none; } }
