/* Einat Cohen Ceramics Design: her current site, modernised.
   Taken from einatcohen.com: a white page, her name as a bold capitals wordmark, Work / About /
   Contact, a three-column grid of her own 7:5 cover crops, and project pages that stack her
   photographs. Kept clean (Eyal, 8 Nov 2026: "extremely clean design portfolio"): no shapes,
   bands, frames or ornaments. Tokens only below; DESIGN.md records them. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-latin.woff2?v=1f21c6eaa0") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #6b6b6b;     /* nav, captions, years */
  --tile: #f1f1f1;      /* behind a photo while it loads */

  --m: clamp(20px, 4vw, 56px);      /* page margin */
  --g: clamp(14px, 1.7vw, 24px);    /* gutter */

  --t-head: clamp(28px, 2.6vw, 38px);
  --t-sub: clamp(19px, 1.6vw, 22px);
  --t-body: 17px;
  --t-small: 15px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #c8c8c8 var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/1.55 "Hanken Grotesk", system-ui, sans-serif;
  font-kerning: normal; caret-color: var(--ink); -webkit-font-smoothing: antialiased;
  min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 10; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 12px; }
.u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); transition: text-decoration-color 0.25s var(--ease); }
.u:hover { text-decoration-color: currentColor; }

/* ---------- bar: her wordmark and her three links ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px var(--m) 0; }
.wordmark { font-size: 21px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1; }
.bar nav { display: flex; gap: clamp(20px, 2.6vw, 36px); font-size: var(--t-small); }
.bar nav a { color: var(--ink-2); transition: color 0.2s; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }

/* ---------- Work: her covers, three across ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) var(--g);
  padding: clamp(56px, 6vw, 96px) var(--m) 0;
}
.cover img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; background: var(--tile); transition: opacity 0.3s var(--ease); }
.cover .title { display: block; margin-top: 12px; font-size: var(--t-small); line-height: 1.4; }
.cover:hover img { opacity: 0.86; }
.cover:hover .title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.cover:focus-visible { outline: none; }
.cover:focus-visible img { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- page heads ---------- */
.head { padding: clamp(64px, 7vw, 112px) var(--m) clamp(36px, 4vw, 56px); }
.head h1 { font-size: var(--t-head); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.head .cap { margin-top: 8px; color: var(--ink-2); }

/* ---------- piece pages: her photographs, one under another ---------- */
.photos { display: grid; row-gap: clamp(40px, 5vw, 72px); padding: 0 var(--m); }
.photo img { width: 100%; background: var(--tile); }
.photo.portrait img { width: min(100%, calc(88svh * var(--ar))); height: auto; }
.photo figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--ink-2); }
.also { padding-top: clamp(112px, 12vw, 176px); }
.also h2 { font-size: var(--t-body); font-weight: 500; padding: 0 var(--m); }
.also .grid { padding-top: 24px; }

/* ---------- About ---------- */
.about { padding: 0 var(--m); }
.about .studio img { width: 100%; max-height: 82svh; object-fit: cover; background: var(--tile); }
.statement { font-size: var(--t-sub); line-height: 1.55; max-width: 33em; margin-top: clamp(48px, 5vw, 72px); }
.cv { display: grid; row-gap: clamp(48px, 5vw, 72px); margin-top: clamp(80px, 9vw, 128px); }
.cv-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); }
.cv-group h2 { grid-column: 1; font-size: var(--t-body); font-weight: 500; }
.cv-group ol { grid-column: 2 / -1; }
.cv-group li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: var(--g); padding-bottom: 8px; }
.cv-group .yr { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */
.contact { padding: 0 var(--m); font-size: var(--t-sub); display: grid; row-gap: 8px; justify-items: start; }

/* ---------- footer ---------- */
.foot {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); align-items: baseline;
  margin-top: clamp(120px, 13vw, 200px); padding: 0 var(--m) 40px; font-size: var(--t-small);
}
.foot .links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot .top { grid-column: 3; justify-self: end; }

/* ---------- motion: covers and photographs fade in as they arrive; nothing else moves ---------- */
.js [data-reveal] > img { opacity: 0; transition: opacity 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].is-in > img { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] > img { opacity: 1; transition: none; }
  .u, .cover img, .bar nav a { transition: none; }
}

/* ---------- tablet and phone ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-group, .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-group li { grid-template-columns: 1fr; padding-bottom: 10px; }
  .foot .top { grid-column: 2; justify-self: end; margin-top: 12px; }
}
@media (max-width: 640px) {
  :root { --t-head: 28px; --t-sub: 19px; --t-body: 16px; --t-small: 15px; }
  .bar { padding-top: 24px; }
  .wordmark { font-size: 18px; }
  .bar nav { gap: 16px; }
  .grid { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .photo img, .photo.portrait img { max-height: none; width: 100%; }
  .cv-group { grid-template-columns: 1fr; row-gap: 12px; }
  .cv-group li { grid-template-columns: 1fr; padding-bottom: 10px; }
  .foot { grid-template-columns: 1fr; row-gap: 12px; }
  .foot .links { grid-column: 1; flex-direction: column; gap: 6px; }
  .foot .top { grid-column: 1; justify-self: start; }
  .cv-group h2, .cv-group ol { grid-column: 1; }
}
