/* Generated by scripts/fetch-fonts.mjs - do not edit by hand. */
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/literata-latin-italic-400.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: "Literata";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/literata-latin-400-500.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: "Sofia Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/sofia-sans-latin-400-700.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: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(/assets/fonts/sofia-sans-extra-condensed-latin-700-900.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;
}

/* lita.vc - a wheatpaste poster: grey sign-board paper, stencil-black type and one red,
   the red of the heart on Einstein's chest. The page ends on the brick wall where the sign hangs. */

:root {
  --paper: #edece7;
  --ink: #000;
  --ink-soft: #55524c;
  --heart: #cf232a;
  --night: #1f0e0a;
  --on-night: #ebeae5;
  --on-night-soft: #b9a69c;

  --display: "Sofia Sans Extra Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --ui: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5.5vw, 80px);
  --max: 1320px;
  --col-gap: 24px;
  --section: clamp(64px, 12vh, 152px);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background: var(--grain) var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--heart);
}

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

::selection {
  background: var(--heart);
  color: #fff;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.nw {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font: 600 1rem/1 var(--ui);
}

.skip:focus {
  top: 12px;
}

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

h2 {
  margin-bottom: 32px;
  font-size: clamp(2.5rem, 4.4vw, 4.25rem);
  font-weight: 850;
  line-height: 0.92;
}

/* Top bar */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  font: 900 1.875rem/1 var(--display);
  text-decoration: none;
}

.logo-heart {
  width: 0.78em;
  height: 0.78em;
  fill: var(--heart);
}

.top-mail {
  font: 500 0.9375rem/1 var(--ui);
  text-decoration: none;
}

.top-mail:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--heart);
}

/* Hero: the headline is the poster */

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-block: clamp(40px, 8vh, 112px) var(--section);
}

.hero h1 {
  grid-column: 1 / -1;
  font-size: clamp(3.5rem, 9.2vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.012em;
}

.hero h1 span {
  display: block;
  text-wrap: balance;
}

.hero-lead {
  grid-column: 7 / -1;
  margin-top: clamp(40px, 7vh, 88px);
}

.hero-lead p {
  max-width: 32em;
  margin: 0 0 36px;
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.cta {
  display: inline-block;
  padding: 16px 20px 15px;
  background: var(--ink);
  color: var(--paper);
  font: 600 1.0625rem/1.2 var(--ui);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta:hover {
  background: var(--heart);
}

/* Speech and portfolio share one rhythm: heading on the left, large text on the right */

.speech,
.portfolio {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-block: var(--section);
}

.speech h2,
.portfolio h2 {
  grid-column: 1 / span 4;
}

.speech-text,
.portfolio-text {
  grid-column: 5 / -1;
}

.speech-text p,
.portfolio-text {
  max-width: 25em;
  margin: 0 0 0.85em;
  font-size: clamp(1.5rem, 2.5vw, 2.375rem);
  line-height: 1.3;
  letter-spacing: -0.006em;
  text-wrap: pretty;
}

.speech-text p:last-child {
  margin-bottom: 0;
}

.portfolio {
  padding-bottom: calc(var(--section) * 1.3);
}

.portfolio-text {
  margin: 0;
}

.portfolio-text a {
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
}

.portfolio-text a:hover {
  color: var(--heart);
}

/* Method: a real sequence, so it is numbered */

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px var(--col-gap);
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 18px;
  font: 900 clamp(4.5rem, 7vw, 6.5rem)/0.8 var(--display);
}

.steps h3 {
  margin-bottom: 12px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.steps p {
  max-width: 21em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Finale: the brick wall with Einstein, and the founder's letter pasted next to him */

.finale {
  --overlap: 18vw;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
}

.wall {
  position: relative;
  margin: 0;
}

.wall-img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 26%);
  mask-image: linear-gradient(to top, transparent 0, #000 26%);
}

.finale-inner {
  position: relative;
  margin-top: calc(-1 * var(--overlap));
  padding-bottom: clamp(64px, 10vh, 112px);
}

.letter {
  display: grid;
  gap: 28px;
  padding: 24px 24px 32px;
  background: var(--grain) var(--paper);
  color: var(--ink);
  box-shadow:
    0 2px 0 rgb(0 0 0 / 0.3),
    0 36px 64px -24px rgb(0 0 0 / 0.75);
  transform: rotate(-0.6deg);
}

.letter-photo {
  width: 100%;
  max-width: 420px;
}

.letter h2 {
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 3.4vw, 3.25rem);
}

.letter p {
  max-width: 34em;
  margin: 0 0 1em;
  font-size: 1.0625rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.letter .sign {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 28px 0 0;
}

.sign-name {
  font: italic 400 1.5rem/1.2 var(--text);
}

.sign-role {
  color: var(--ink-soft);
  font: 500 0.9375rem/1.3 var(--ui);
}

.contact {
  margin: clamp(56px, 9vh, 104px) 0 0;
  font: 900 clamp(3rem, 7.2vw, 7rem)/0.9 var(--display);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact a {
  padding-bottom: 0.04em;
  background: linear-gradient(var(--heart), var(--heart)) 0 100% / 100% 0.07em no-repeat;
  color: var(--on-night);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact a:hover {
  color: var(--heart);
}

.foot {
  background: var(--night);
  color: var(--on-night-soft);
  font: 500 0.875rem/1.4 var(--ui);
}

.foot p {
  margin-block: 0;
}

.foot .legal {
  margin-top: 4px;
  padding-bottom: 40px;
  font-size: 0.75rem;
}

/* Tablet: the wall is a wide strip above the letter, the letter has two columns */
@media (min-width: 700px) {
  .wall-img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 72% 22%;
  }

  .finale {
    --overlap: 14vw;
  }

  .letter {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 36px;
    padding: 36px;
  }
}

/* Desktop: Einstein stands on the right at full height, the letter is pasted on the wall to his left */
@media (min-width: 1200px) {
  .finale {
    --overlap: 0px;
    min-height: 100vh;
  }

  .wall {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    height: 100%;
    aspect-ratio: 794 / 1059;
  }

  .wall-img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 100% 50%;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 36%),
      linear-gradient(to top, transparent 0, #000 14%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0, #000 36%),
      linear-gradient(to top, transparent 0, #000 14%);
    mask-composite: intersect;
  }

  .finale-inner {
    padding-block: clamp(96px, 14vh, 160px) clamp(72px, 10vh, 120px);
  }

  .letter {
    width: min(840px, 60vw);
    grid-template-columns: clamp(220px, 19vw, 300px) minmax(0, 1fr);
    gap: 40px;
    padding: 40px;
    transform: rotate(-1deg);
  }
}

@media (max-width: 1023px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .hero-lead,
  .speech h2,
  .portfolio h2,
  .speech-text,
  .portfolio-text {
    grid-column: 1 / -1;
  }
}

@media (max-width: 599px) {
  :root {
    --section: 64px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps li::before {
    font-size: 4rem;
  }
}

/* One orchestrated moment: when the wall comes into view the light comes on, then the letter is pasted */
@media (prefers-reduced-motion: no-preference) {
  .finale.is-armed .wall-img {
    transition:
      opacity 1.4s ease,
      filter 1.4s ease;
  }

  .finale.is-armed .letter {
    transition:
      opacity 0.7s ease 0.45s,
      transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s;
  }

  .finale.is-armed:not(.is-lit) .wall-img {
    opacity: 0.35;
    filter: brightness(0.55);
  }

  .finale.is-armed:not(.is-lit) .letter {
    opacity: 0;
    transform: translateY(28px) rotate(1deg);
  }
}

/* 404 */
.not-found main {
  padding-block: 12vh 20vh;
}

.not-found h1 {
  margin-bottom: 32px;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.9;
}

.not-found p {
  margin: 0 0 8px;
}
