/* Yael Aliza — quiet gallery: generous white space, thin type, one ink-wash accent.
   Layout: single centred column (1080px), image grids that stack to one column on phones. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("atkinson-next.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("atkinson-next-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Yael Hand";
  src: url("yael-hand.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #fbfbf9;
  --ink: #26262a;
  --mute: #6f6e72;
  --rule: #e3e2de;
  --wash: #f1f0ec;
  --accent: #4d5f86;            /* indigo ink wash */
  /* Two fonts only: Yael's own handwriting for headings and short words,
     Atkinson Hyperlegible Next for reading text. Characters the hand font
     doesn't have (such as @) fall back to Atkinson automatically. */
  --sans: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;
  --hand: "Yael Hand", "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;
  --measure: 36rem;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151618; --ink: #e9e8e4; --mute: #a3a2a6; --rule: #2e2f33; --wash: #1d1e21; --accent: #a8b6d6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151618; --ink: #e9e8e4; --mute: #a3a2a6; --rule: #2e2f33; --wash: #1d1e21; --accent: #a8b6d6;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 1.0625rem/1.75 var(--sans);
  letter-spacing: .01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: .5rem 1rem; z-index: 5; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; padding-block: 1.4rem; }
.logo { display: block; line-height: 0; }
.logo span {
  display: block; width: 190px; max-width: 55vw; aspect-ratio: 1493 / 497;
  background: var(--ink);
  -webkit-mask: url("logo.svg") center / contain no-repeat;
          mask: url("logo.svg") center / contain no-repeat;
}
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.8rem; }
nav a {
  text-decoration: none; font-family: var(--hand); font-size: 1.2rem; letter-spacing: .02em;
  color: var(--mute); padding-bottom: 4px; border-bottom: 1px solid transparent;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

/* Type */
h1, h2, h3 { font-family: var(--hand); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.45rem; }
.hand { font-family: var(--hand); color: var(--accent); font-size: 1.7rem; line-height: 1.2; margin: 0 0 .6rem; letter-spacing: .02em; }
.lede { max-width: var(--measure); color: var(--mute); font-size: 1.15rem; margin: 1.4rem 0 0; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1rem; }
.label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }

/* Sections */
main { padding-block: 4.5rem 2rem; }
.section { margin-top: 5.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2rem; }
.more { font-family: var(--hand); font-size: 1.15rem; letter-spacing: .02em; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }

.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; margin-top: 2rem; }
.btn {
  display: inline-block; padding: .8rem 1.8rem; border: 1px solid var(--ink); text-decoration: none;
  font-family: var(--hand); font-size: 1.15rem; letter-spacing: .02em; transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }

/* Grids */
.grid { display: grid; gap: 2.6rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.work { margin: 0; min-width: 0; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--wash); }
.work.tall img { aspect-ratio: 3 / 4; }
.work figcaption { margin-top: 1rem; }
.work figcaption p { margin: .35rem 0 0; color: var(--mute); font-size: .95rem; }

/* Two-column split */
.split { display: grid; gap: 3rem 4rem; grid-template-columns: 1fr; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 780px) { .split { grid-template-columns: 5fr 7fr; } }

/* Services */
.services { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.services div { border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.services p { margin: .5rem 0 0; color: var(--mute); font-size: .98rem; }

/* Case study */
.case { border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.case + .case { margin-top: 4rem; }
.case .pair { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 2rem; }
.meta { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .2rem; }
.meta li { color: var(--mute); font-size: .95rem; }
.meta strong { font-weight: 400; color: var(--ink); }

blockquote { margin: 0; max-width: var(--measure); font-family: var(--hand); font-size: 1.6rem; line-height: 1.4; }
blockquote footer { margin-top: .8rem; }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: .75rem 0; border-bottom: 1px solid var(--rule); }

/* Footer / contact */
.site-footer { border-top: 1px solid var(--rule); margin-top: 5rem; }
.site-footer .wrap { padding-block: 4rem 3rem; }
.email { font-family: var(--sans); font-weight: 300; font-size: clamp(1.4rem, 4vw, 2rem); text-decoration: none; border-bottom: 1px solid var(--accent); overflow-wrap: anywhere; }
.fineprint { margin-top: 3.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; color: var(--mute); font-size: .8rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Real artwork: shown whole at its own shape, never cropped */
.work.natural img { aspect-ratio: auto; height: auto; object-fit: contain; background: none; }
.grid.three { align-items: start; }
.feature { display: grid; gap: 2rem 4rem; grid-template-columns: 1fr; align-items: start; }
.feature > * { min-width: 0; }
@media (min-width: 900px) { .feature { grid-template-columns: 7fr 5fr; } }
.statement p { margin: 0 0 1.1rem; }
.statement .closing { font-family: var(--hand); font-size: 1.5rem; line-height: 1.4; margin-top: 1.6rem; }
.social { margin: 1.2rem 0 0; color: var(--mute); }
.social a { color: var(--ink); text-decoration-color: var(--accent); }
.case .stack { display: grid; gap: 2.6rem; margin-top: 2rem; }
@media (min-width: 900px) { .feature.portrait { grid-template-columns: 4fr 6fr; } }
.award { margin: 0 0 1.4rem; color: var(--accent); font-size: .95rem; }
.grid.about-photos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; }
/* small originals are shown no larger than their real size, so they stay sharp */
.work.natural.small img { width: auto; max-width: 100%; }

/* Artwork zoom: gentle lift on hover (computers), full-screen view on click or tap (everywhere) */
.work.natural img { transition: transform .35s ease, box-shadow .35s ease; }
.work.natural a, .zoomable { cursor: zoom-in; }
@media (hover: hover) {
  .work.natural a:hover img, .zoomable:hover { transform: scale(1.03); box-shadow: 0 14px 36px rgba(0,0,0,.14); }
}
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: transparent; display: none; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; }
.lightbox::backdrop { background: rgba(12,12,14,.97); }
.lightbox img { max-width: calc(100vw - 2rem); max-height: calc(100dvh - 6rem); width: auto; height: auto; object-fit: contain; cursor: zoom-out; }
.lightbox-caption { margin: 0; color: #e9e8e4; font-family: var(--hand); font-size: 1.2rem; text-align: center; padding: 0 1rem; }
.lightbox-close { position: absolute; top: max(.6rem, env(safe-area-inset-top)); right: .8rem; width: 2.75rem; height: 2.75rem;
  border: 0; background: none; color: #e9e8e4; font: 300 2.2rem/1 var(--sans); cursor: pointer; }
@media (max-width: 480px) { nav ul { gap: .2rem 1.1rem; } nav a { font-size: 1.1rem; } }

/* Home: text beside a photo of Yael at work, then rows of real work.
   Each figure's flex value is its image's width/height, so every image in a row
   is the same height and nothing is cropped. */
.hero { display: grid; gap: 3rem 4rem; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 6fr 5fr; } }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.row { display: flex; gap: 1.6rem; align-items: flex-start; }
.row .work figcaption { margin-top: .8rem; }
.row .work h3 { font-size: 1.25rem; }
.row .work figcaption p { font-size: .85rem; margin-top: .15rem; }
@media (max-width: 760px) { .row { flex-direction: column; gap: 2.4rem; } .row .work { flex: none !important; width: 100%; } }
.worked p:last-child { margin: .6rem 0 0; color: var(--mute); max-width: 44rem; }
/* Visitor responses beside a painting */
.responses { display: grid; gap: 2rem 3rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); align-items: start; }
@media (min-width: 780px) { .responses { grid-template-columns: 4fr 7fr; } }
.responses .small-card img { max-width: 360px; }
.responses .label { margin: 0 0 1.4rem; }
blockquote.quote { font-family: var(--sans); font-style: italic; font-weight: 300; font-size: 1.05rem; line-height: 1.6; margin: 0 0 1rem; padding-left: 1rem; border-left: 2px solid var(--accent); }
.in-use { margin-top: 2rem; max-width: 480px; }
.hero-image { justify-self: end; }
.hero-image figcaption p { font-size: .85rem; }
.in-room { display: grid; gap: 2rem 4rem; align-items: center; }
.in-room .work { max-width: 380px; }
@media (min-width: 780px) { .in-room { grid-template-columns: 4fr 7fr; } }

/* Contact form */
.contact-form { max-width: 40rem; }
.contact-form .field { margin: 0 0 1.3rem; }
.field-row { display: grid; gap: 0 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.contact-form label { display: block; font-family: var(--hand); font-size: 1.2rem; letter-spacing: .02em; margin-bottom: .35rem; }
.contact-form input, .contact-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-bottom-color: var(--mute); border-radius: 0; padding: .7rem .8rem;
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.contact-form .btn { background: none; color: var(--ink); cursor: pointer; }
.contact-form .btn:hover { background: var(--ink); color: var(--paper); }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 1rem 0 0; color: var(--mute); font-size: .95rem; min-height: 1.5em; }
.form-thanks { max-width: 40rem; margin-top: 2rem; }
.form-thanks:focus { outline: none; }
.form-thanks p:last-child { margin: 0; color: var(--mute); }
.alt-contact { margin: 2rem 0 0; color: var(--mute); }
.alt-contact a { color: var(--ink); text-decoration-color: var(--accent); }

/* Testimonial */
.testimonial { border-left: 2px solid var(--accent); padding-left: 1.4rem; margin-top: 2rem; }
.section > .testimonial { margin-top: 0; }
.testimonial footer { font-family: var(--sans); }

/* Menu button: shown only when the menu would not fit on one line (see nav.js) */
.menu-toggle { display: none; }
.site-header.compact .wrap { flex-wrap: nowrap; }
.site-header.compact nav { position: static; }
.site-header.compact .menu-toggle {
  display: inline-flex; align-items: center; gap: .6rem; background: none; border: 0; padding: .5rem 0 .5rem .5rem;
  color: var(--ink); font-family: var(--hand); font-size: 1.2rem; letter-spacing: .02em; cursor: pointer;
}
.menu-icon { display: inline-grid; gap: 5px; width: 22px; }
.menu-icon span { display: block; height: 2px; border-radius: 1px; background: var(--accent); transition: transform .2s, opacity .2s; }
.menu-open .menu-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-icon span:nth-child(2) { opacity: 0; }
.menu-open .menu-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header { position: relative; }
.site-header.compact nav ul { display: none; }
.site-header.compact.menu-open nav ul {
  display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px -16px rgba(0,0,0,.35);
  padding: .4rem max(16px, env(safe-area-inset-left, 0px)) 1rem;
}
.site-header.compact.menu-open nav li { border-top: 1px solid var(--rule); }
.site-header.compact.menu-open nav li:first-child { border-top: 0; }
.site-header.compact.menu-open nav a { display: block; padding: .85rem 0; font-size: 1.35rem; border-bottom: 0; }
.site-header.compact.menu-open nav a[aria-current="page"] { color: var(--accent); }
