:root {
  color-scheme: light;

  --sand-50: #fbf8f3;
  --sand-100: #f4ede3;
  --sand-200: #e9ddcc;
  --sand-300: #d8c6ae;
  --ink-900: #1f2a36;
  --ink-700: #3b4755;
  --ink-500: #5b6673;
  --clay-600: #a7532e;
  --clay-700: #8c4425;
  --apricot-100: #f7e1d0;
  --night-900: #1b2733;

  --font-display: "Cormorant Garamond", "Frank Ruhl Libre", Georgia, serif;
  --font-body: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: 1;
  --italic: italic;
  --tracking: 0.14em;
  --leading: 1.65;
  --heading-weight: 500;
  --voice-weight: 400;

  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.16vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.17rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.625rem, 1.46rem + 0.8vw, 2.125rem);
  --step-3: clamp(2.125rem, 1.8rem + 1.6vw, 3.125rem);
  --step-4: clamp(2.875rem, 2.2rem + 3.4vw, 4.75rem);

  --space-2xs: 0.375rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: clamp(2rem, 1.7rem + 1.4vw, 2.75rem);
  --space-xl: clamp(2.75rem, 2rem + 3.6vw, 5rem);
  --space-section: clamp(3.5rem, 1.3rem + 9vw, 8.5rem);

  --gutter: clamp(1.25rem, 0.75rem + 2.4vw, 2.5rem);
  --narrow: 30rem;
  --measure: 40rem;
  --wide: 72rem;

  --radius: 0.75rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* The page's only breakpoints, repeated in each file because media queries cannot read custom
   properties:
   40em, where the container (about 36rem) holds two columns of 17rem, or a photograph two
   fifths wide (at least 13rem) beside its text;
   60em, where two halves of 25rem (about 55 characters of text) or three columns of 16.5rem fit. */

/* At one size and weight Frank Ruhl's Hebrew stands taller and darker than Cormorant's Latin,
   and Hebrew has no italic to lighten a voice line: a step smaller, a weight lighter, and more
   room between lines. */
:root:lang(he) {
  --font-display: "Frank Ruhl Libre", Georgia, serif;
  --display: 0.84;
  --italic: normal;
  --tracking: 0.02em;
  --leading: 1.75;
  --heading-weight: 400;
  --voice-weight: 300;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* Spaces, digits and punctuation inside Hebrew headings, so they match the letters. */
@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-punctuation.woff2") format("woff2");
  unicode-range: U+0020-0040, U+005B-0060, U+007B-007E, U+00A0-00BF, U+2010-2027;
}

@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/assistant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/assistant-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @view-transition {
    navigation: auto;
  }
}

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink-900);
  font: 400 var(--step-0) / var(--leading) var(--font-body);
  font-kerning: normal;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg {
  display: block;
  max-inline-size: 100%;
}

img {
  block-size: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  line-height: 1.1;
  text-wrap: balance;
}

:is(h1, h2, h3):lang(he) {
  line-height: 1.25;
}

p,
ul,
dl,
dd,
blockquote {
  margin: 0;
}

ul[role="list"] {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 3px solid var(--clay-600);
  outline-offset: 3px;
}

::selection {
  background: var(--apricot-100);
  color: var(--ink-900);
}

.skip-link {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink-900);
  color: var(--sand-50);
  text-decoration: none;
  translate: 0 -200%;
}

.skip-link:focus {
  translate: none;
}

.eyebrow {
  color: var(--clay-600);
  font: 600 var(--step--1) / 1.4 var(--font-body);
  letter-spacing: var(--tracking);
  text-transform: uppercase;
}

.eyebrow + :is(h1, h2, h3) {
  margin-block-start: var(--space-xs);
}

.container {
  inline-size: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
}

.container-narrow {
  inline-size: min(100% - 2 * var(--gutter), var(--measure));
  margin-inline: auto;
}

.prose > * + * {
  margin-block-start: 1em;
}

.media {
  overflow: hidden;
  border-radius: var(--radius);
}

/* Photograph and text side by side from 60em, in equal halves, so the edge between them falls
   at the same place in every section that uses it. */
.split {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

@media (min-width: 60em) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-xl);
  }
}

.section-title {
  font-size: calc(var(--step-3) * var(--display));
}

.section-head {
  max-inline-size: var(--measure);
  margin-inline: auto;
  text-align: center;
}

.centered {
  text-align: center;
}

.lead {
  font-size: var(--step-1);
  line-height: calc(var(--leading) - 0.05);
}

/* The page's second voice: the tagline, the lead lines, the signature, the quote, the closing. */
.voice {
  color: var(--ink-700);
  font: var(--italic) var(--voice-weight) calc(var(--step-2) * var(--display)) / 1.3
    var(--font-display);
}

.centered,
.lead,
.voice {
  text-wrap: balance;
}

/* Each item carries the dot before it, and the dot of an item that starts a line falls into
   the clipped margin, so no line begins or ends with one. The second content hides it from
   screen readers where that syntax is known. */
.inline-list {
  overflow: hidden;
}

.inline-list ul {
  display: flex;
  flex-wrap: wrap;
  margin-inline-start: -1.5em;
}

.inline-list li {
  white-space: nowrap;
}

.inline-list li::before {
  content: "·";
  content: "·" / "";
  display: inline-block;
  inline-size: 1.5em;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-block-size: 3.25rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  background: var(--clay-600);
  color: #fff;
  font: 600 var(--step-0) / 1 var(--font-body);
  text-decoration: none;
}

.button--quiet {
  background: transparent;
  color: var(--ink-900);
  box-shadow: inset 0 0 0 1.5px var(--ink-500);
}

.button svg {
  flex: none;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  padding-inline: 1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink-500);
  font: 600 var(--step--1) / 1 var(--font-body);
  text-decoration: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  font-weight: 600;
}

/* Only for a pointer that can hover: after a tap on a touch screen a hover state would stick. */
@media (hover: hover) {
  .button:hover {
    background: var(--clay-700);
  }

  .button--quiet:hover {
    background: var(--sand-100);
    box-shadow: inset 0 0 0 1.5px var(--ink-900);
  }

  .pill-link:hover {
    background: var(--sand-100);
  }

  .text-link:hover {
    color: var(--clay-700);
    text-decoration-thickness: 2px;
  }
}

/* After the hover rules, so a press shows over a hover. */
.button:active {
  background: var(--clay-700);
}

.button--quiet:active,
.pill-link:active {
  background: var(--sand-200);
}

.text-link:active {
  color: var(--clay-700);
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .pill-link {
    transition:
      background-color 0.18s var(--ease),
      box-shadow 0.18s var(--ease),
      translate 0.18s var(--ease);
  }

  .button:active {
    translate: 0 1px;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-block-size: 4.5rem;
}

/* Baseline, so the mark's horizon rests on the name's baseline in either font; the padding
   makes the link a thumb's height. */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
  padding-block: 0.875rem;
  font: var(--heading-weight) calc(var(--step-1) * var(--display)) / 1 var(--font-display);
  text-decoration: none;
}

.mark {
  block-size: 0.72em;
  inline-size: auto;
}

.mark__sun {
  fill: var(--clay-600);
}

.mark__horizon {
  fill: none;
  stroke: currentColor;
}

.hero {
  padding-block: var(--space-xs) var(--space-xl);
}

/* The photograph comes first on a phone; the text keeps its place in the document. */
.hero__media {
  order: -1;
}

/* Square on an upright phone, where a letterbox would leave Anat a seventh of its width. */
.hero__media img {
  inline-size: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 44% 50%;
}

.hero__title {
  font-size: calc(var(--step-4) * var(--display));
  letter-spacing: -0.01em;
}

.hero__tagline {
  margin-block-start: var(--space-xs);
}

.hero__lead {
  max-inline-size: var(--narrow);
  margin-block-start: var(--space-m);
  color: var(--ink-700);
}

.hero__actions {
  margin-block-start: var(--space-l);
}

.hero__facts {
  margin-block-start: var(--space-m);
  color: var(--ink-500);
  font: 600 var(--step--1) / 1.4 var(--font-body);
}

@media (min-width: 40em) {
  .hero__media img {
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 60em) {
  .hero {
    padding-block: var(--space-l) var(--space-xl);
  }

  .hero__media {
    order: 0;
  }

  .hero__media img {
    aspect-ratio: 4 / 3;
  }
}

.intro {
  padding-block-end: var(--space-section);
  color: var(--ink-700);
}

.dimensions {
  padding-block: var(--space-section);
  background: var(--sand-100);
}

.dimensions__grid {
  display: grid;
  gap: var(--space-xl);
  margin-block-start: var(--space-xl);
}

.dimension__media img {
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.dimension__head {
  margin-block-start: var(--space-m);
}

.dimension__title {
  font-size: calc(var(--step-2) * var(--display));
}

.dimension__text p {
  margin-block-start: var(--space-s);
  color: var(--ink-700);
}

/* The photograph beside its text, the text centred against it. */
@media (40em <= width < 60em) {
  .dimension {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: var(--space-l);
  }

  .dimension__media {
    grid-row: 1 / -1;
  }

  .dimension__head {
    grid-row: 2;
    margin-block-start: 0;
  }

  .dimension__text {
    grid-row: 3;
  }
}

/* Three columns sharing their rows, so the paragraphs start level whatever wraps above. */
@media (min-width: 60em) {
  .dimensions__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 var(--space-l);
  }

  .dimension {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

.beyond {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-block-size: min(46rem, 100svh);
  padding-block: var(--space-section) var(--space-xl);
  overflow: hidden;
  background: var(--night-900);
  color: var(--sand-50);
}

.beyond__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.beyond__media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 44% 25%;
}

/* Measured from the bottom, where the text sits, so it stays dark under every line of it
   however tall the band grows; the sun near the top keeps its light. */
.beyond::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgb(27 39 51 / 0.88) 0,
    rgb(27 39 51 / 0.78) 30rem,
    rgb(27 39 51 / 0.1) 46rem
  );
}

.beyond .eyebrow {
  color: var(--sand-100);
}

.beyond__title {
  font-size: calc(var(--step-4) * var(--display));
}

.beyond__text {
  margin-block-start: var(--space-m);
  color: rgb(251 248 243 / 0.9);
}

.everyone {
  padding-block: var(--space-section);
}

.everyone__media img {
  inline-size: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Stacked on a tablet, the text would otherwise run the container's whole width. */
.everyone__text {
  max-inline-size: var(--measure);
}

.everyone__lead {
  margin-block-start: var(--space-m);
}

.everyone__body {
  margin-block-start: var(--space-s);
  color: var(--ink-700);
}

.everyone__paths {
  display: grid;
  gap: var(--space-l);
  align-items: center;
  margin-block-start: var(--space-xl);
}

.path__title {
  font-size: calc(var(--step-2) * var(--display));
}

.path p {
  margin-block-start: var(--space-xs);
  color: var(--ink-700);
}

/* Anat's own colour-pencil drawing, never recoloured; multiply lets the sand show through its
   white paper. */
.everyone__drawing {
  justify-self: center;
}

.everyone__drawing img {
  inline-size: clamp(12rem, 22vw, 17rem);
  mix-blend-mode: multiply;
}

.everyone__note {
  margin-block-start: var(--space-xl);
}

/* The drawing above the two paths. */
@media (40em <= width < 60em) {
  .everyone__paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .everyone__drawing {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

/* The two paths face the drawing from either side. */
@media (min-width: 60em) {
  .everyone__paths {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: var(--space-xl);
  }

  .path:first-child {
    text-align: end;
  }
}

.ways {
  padding-block: var(--space-section);
  background: var(--sand-100);
}

/* 56rem keeps the text column near 60 characters. */
.ways__grid {
  display: grid;
  gap: var(--space-l);
  max-inline-size: 56rem;
  margin: var(--space-xl) auto 0;
}

/* On a phone the photograph is a thumbnail beside the title, with the text below both. */
.way {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  grid-template-areas:
    "media title"
    "text text";
  gap: var(--space-xs) var(--space-s);
  align-items: center;
}

.way__media {
  grid-area: media;
}

.way__media img {
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.way__title {
  grid-area: title;
  font-size: calc(var(--step-2) * var(--display) * 0.85);
}

.way p {
  grid-area: text;
  color: var(--ink-700);
}

.ways__notes {
  max-inline-size: var(--narrow);
  margin: var(--space-l) auto 0;
  color: var(--ink-700);
}

/* The photograph two fifths of the row, the title and text beside it. */
@media (min-width: 40em) {
  .way {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "media title"
      "media text";
    column-gap: var(--space-l);
    align-items: start;
  }
}

.about {
  padding-block: var(--space-section);
}

.about__inner {
  align-items: start;
}

.about__media {
  inline-size: 100%;
  max-inline-size: 26rem;
  margin-inline: auto;
}

.about__media img {
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Stacked under the photograph on a tablet, the text keeps a reading measure, centred with it. */
.about__text {
  inline-size: 100%;
  max-inline-size: var(--measure);
  margin-inline: auto;
}

/* The heading's capital top meets the photograph's top edge, where browsers support it. */
.about__text > :first-child {
  text-box: trim-start cap alphabetic;
}

.about__bio {
  margin-block-start: var(--space-m);
  color: var(--ink-700);
}

.about__name {
  margin-block-start: var(--space-m);
  text-align: end;
}

.about__quote {
  margin-block-start: var(--space-xl);
}

.about__quote p {
  font-size: calc(var(--step-3) * var(--display));
  line-height: 1.25;
}

@media (min-width: 60em) {
  .about__media {
    position: sticky;
    inset-block-start: var(--space-l);
    max-inline-size: none;
    margin-inline: 0;
  }
}

.glance {
  padding-block: var(--space-section);
  background: var(--sand-100);
}

.glance__list {
  display: grid;
  gap: var(--space-l);
  margin-block-start: var(--space-xl);
}

/* A hairline over each column, decorative: the labels carry the structure. */
.glance__row {
  padding-block-start: var(--space-s);
  border-block-start: 1px solid var(--sand-300);
}

.glance__row dd {
  margin-block-start: var(--space-s);
}

.glance__row li {
  font: var(--heading-weight) calc(var(--step-1) * var(--display) * 1.1) / 1.35 var(--font-display);
}

.glance__row li + li {
  margin-block-start: 0.35rem;
}

/* Main focus has the longest entries, Languages the shortest. */
@media (min-width: 60em) {
  .glance__list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.7fr);
    column-gap: var(--space-xl);
  }
}

/* The page ends in the dawn's warmth, and the footer below is part of it. */
.contact {
  padding-block: var(--space-section);
  background: linear-gradient(var(--sand-50) 30%, var(--apricot-100));
}

.contact__text {
  max-inline-size: var(--narrow);
  margin: var(--space-m) auto 0;
  color: var(--ink-700);
}

.contact__closing {
  margin-block-start: var(--space-l);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s);
  margin-block-start: var(--space-l);
}

.contact__details {
  margin-block-start: var(--space-m);
  color: var(--ink-700);
}

.contact__details span {
  white-space: nowrap;
}

.site-footer {
  background: var(--apricot-100);
  color: var(--ink-700);
  font-size: var(--step--1);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding-block: var(--space-xs);
}

.notfound {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-s);
  min-block-size: 100svh;
  padding-block: var(--space-xl);
  text-align: center;
}

.notfound__mark {
  inline-size: 3.5rem;
  block-size: 3.5rem;
  margin-block-end: var(--space-s);
}

.notfound__title {
  display: grid;
  gap: var(--space-2xs);
  font-size: var(--step-3);
}

.notfound__text {
  color: var(--ink-700);
}

.notfound__text a {
  color: var(--clay-600);
  font-weight: 600;
}
