/* "An open studio": colours taken from Yaron's own paintings and mural, gold from the cover's light.
   Blue hero, paper everywhere else, no gradients, no dividers; his art carries the colour. */
:root {
  --blue: #315f9c;
  --blue-deep: #26497a;
  --paper: #f7f4eb;
  --sky: #dce8e5;
  --terra: #ce8064;
  --gold: #e9b85b;
  --ink: #202b30;
  --ink-soft: #4b575c;
  --line: rgba(32, 43, 48, 0.14);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --wrap: 1160px;
  --gut: clamp(20px, 5vw, 48px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.62; font-size: 18px; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
section { position: relative; scroll-margin-top: 64px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 20px; }
h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 18px; background: var(--terra); border-radius: 2px; }
h2.big { font-size: clamp(34px, 4.4vw, 54px); }
h3 { font-size: 26px; margin-bottom: 14px; }
section p { color: var(--ink-soft); max-width: 62ch; }
p + p { margin-top: 16px; }
.stack span { display: block; }
figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

.prevbar { background: #000; color: rgba(255, 255, 255, 0.62); font-size: 12.5px; text-align: center; padding: 7px 12px; }
.prevbar a { color: rgba(255, 255, 255, 0.85); }

/* nav sits on the hero blue */
.nav { position: sticky; top: 0; z-index: 50; background: var(--blue-deep); color: var(--paper); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { font-family: var(--serif); font-size: 21px; text-decoration: none; white-space: nowrap; }
.links { display: flex; align-items: center; gap: 28px; }
.links a { font-size: 15px; text-decoration: none; color: rgba(247, 244, 235, 0.82); }
.links a:hover { color: #fff; }
.links a.nav-cta { color: var(--ink); min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.menu { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--paper); transition: transform 0.25s; }
.menu span:first-child { top: 18px; } .menu span:last-child { top: 25px; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 6px; font: 600 15.5px var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: background 0.2s; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f0c677; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2e3c43; }
.textlink { font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 3px; border-bottom: 1.5px solid rgba(247, 244, 235, 0.35); transition: background-size 160ms ease; }
.textlink:hover, .textlink:focus-visible { background-size: 100% 1.5px; }
.textlink.light { color: var(--paper); }

/* hero: who he is first, a real photo of him living */
.hero { background: var(--blue); color: var(--paper); padding: clamp(56px, 7vw, 96px) 0; }
.hero-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-title { font-size: clamp(48px, 6vw, 84px); line-height: 0.98; }
.hero-who { margin-top: 22px; font-family: var(--serif); font-size: clamp(21px, 2vw, 27px); line-height: 1.35; color: rgba(247, 244, 235, 0.92); max-width: 520px; }
.actions { margin-top: 32px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
/* his photo and one of his paintings, set like prints on a studio wall */
.hero { overflow: hidden; }
.hero-prints { position: relative; justify-self: end; width: min(100%, 440px); padding: 0 0 70px 60px; }
.print { background: var(--paper); padding: 10px 10px 12px; border-radius: 2px; box-shadow: 0 30px 50px -24px rgba(8, 18, 36, 0.6); }
.print img { border-radius: 1px; }
.print-main { transform: rotate(-2deg); animation: settle 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both 120ms; }
.print-main img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; }
.print-art { position: absolute; left: 0; bottom: 0; width: 56%; transform: rotate(3.5deg); padding: 7px 7px 9px;
  animation: settle 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both 320ms; }
@keyframes settle { from { translate: 0 8px; opacity: 0.001; } }

/* memoir: the book and its story */
.memoir { padding: clamp(80px, 10vw, 128px) 0 clamp(72px, 8vw, 110px); }
.memoir-in { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.memoir .book { width: 100%; max-width: 320px; border-radius: 3px 6px 6px 3px; box-shadow: 0 30px 56px -26px rgba(20, 20, 40, 0.6); position: sticky; top: 100px; }
.memoir h2 i { font-style: normal; }
.memoir-sub { font-family: var(--serif); font-size: 21px; color: var(--ink); }
.memoir-line { margin: 28px 0 10px; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; color: var(--ink); }
.notify { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }

/* forms */
.form { display: grid; gap: 16px; max-width: 620px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-soft); }
.form input, .form select, .form textarea { font: 400 16px var(--sans); color: var(--ink); background: #fff; border: 1px solid rgba(32, 43, 48, 0.2); border-radius: 6px; padding: 12px 14px; width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; }
.form .is-err { border-color: #b3261e; }
.status { font-size: 15px; min-height: 1.4em; color: var(--ink); }

/* speaking: the lectern photo against sky */
.speaking { background: var(--sky); padding: clamp(72px, 9vw, 120px) 0; }
.speak-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.speak-photo { width: 100%; max-width: 400px; border-radius: 4px; }
.talks { list-style: none; margin: 30px 0 34px; display: grid; gap: 18px; }
.talks li { display: grid; gap: 2px; }
.talks b { font-weight: 600; font-size: 17px; }
.talks span { color: var(--ink-soft); font-size: 16px; }

/* story */
.story { padding: clamp(80px, 10vw, 130px) 0 clamp(64px, 8vw, 100px); }
.story-top { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(36px, 6vw, 88px); align-items: end; }
.lead { font-size: 20px; line-height: 1.6; }
.mural { width: 100%; max-width: 420px; border-radius: 4px; justify-self: end; }
.timeline { list-style: none; margin-top: clamp(56px, 7vw, 88px); max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline b { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; color: var(--blue); }
.timeline p { font-size: 18px; }

/* art: an uneven wall of his paintings */
.art { padding: clamp(72px, 9vw, 120px) 0; }
.art-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.art-words { position: sticky; top: 100px; }
.art-wall { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.art-wall img { border-radius: 3px; box-shadow: 0 18px 36px -24px rgba(32, 43, 48, 0.55); }
.art-wall .a1 { grid-column: 1 / span 2; max-width: 480px; }
.art-wall .a2 { grid-column: 1 / span 2; justify-self: end; max-width: 480px; margin-top: -8px; }
.art-wall .a3 { grid-column: 1; max-width: 340px; }
.art-wall .a4 { grid-column: 2; grid-row: 3; max-width: 260px; justify-self: end; }

/* research: a narrower reading column, lab photo in the margin */
.research { background: var(--sky); padding: clamp(72px, 9vw, 120px) 0; }
.research-in { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.lab { width: 100%; max-width: 400px; border-radius: 4px; }

/* voices: straight on the paper, two widths */
.voices { padding: clamp(80px, 10vw, 130px) 0; }
.voices-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.voices blockquote { font-family: var(--serif); line-height: 1.35; }
.v-strong blockquote { font-size: clamp(28px, 3vw, 38px); }
.v-quiet { margin-top: clamp(24px, 6vw, 90px); }
.v-quiet blockquote { font-size: clamp(19px, 1.6vw, 21px); color: var(--ink-soft); }

/* contact */
.contact { padding: 0 0 clamp(80px, 10vw, 130px); }
.contact-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 88px); align-items: start; padding-top: clamp(64px, 8vw, 100px); border-top: 1px solid var(--line); }
.portrait { margin-top: 28px; width: min(100%, 300px); border-radius: 4px; }

/* footer */
.foot { background: var(--blue-deep); color: rgba(247, 244, 235, 0.8); padding: 56px 0 64px; }
.foot-in { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-size: 14.5px; }
.foot .mark { display: inline-block; margin-bottom: 8px; color: var(--paper); }
.land { max-width: 460px; justify-self: end; }

/* motion: art groups rise 12px once when they reach the screen */
.js .group { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .group.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .print-main, .print-art { animation: none; }
  .js .group { opacity: 1; transform: none; transition: none; }
  .textlink { transition: none; }
}

@media (max-width: 900px) {
  .links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--blue-deep); padding: 8px var(--gut) 24px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
  .links.open { opacity: 1; visibility: visible; transform: none; }
  .links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(247, 244, 235, 0.1); }
  .links a.nav-cta { margin-top: 16px; border: 0; justify-content: center; }
  .menu { display: block; }
  .hero { padding: 36px 0 48px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-prints { justify-self: center; width: min(88%, 360px); padding: 0 0 56px 44px; }
  .memoir .book { position: static; max-width: 200px; }
  .memoir-in, .speak-in, .story-top, .art-in, .research-in, .voices-in, .contact-in, .foot-in { grid-template-columns: 1fr; }
  .art-words { position: static; }
  .mural { justify-self: start; }
  .land { justify-self: start; }
  .v-quiet { margin-top: 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .row2 { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .art-wall { grid-template-columns: 1fr; }
  .art-wall .a1, .art-wall .a2, .art-wall .a3, .art-wall .a4 { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0; }
  .lead { font-size: 18px; }
}
