/* The public landing. Palette, type and the dark action come from base.css:
   the page is the product's own visual language, not a second one. */

.landing-page {
  --landing-width: 1120px;
  --landing-pad: clamp(24px, 5vw, 68px);
  min-height: 100dvh;
}

.landing-wrap {
  width: min(100%, var(--landing-width));
  margin-inline: auto;
  padding-inline: var(--landing-pad);
}

/* ---------- header ---------- */

.landing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.landing-top-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 15px;
  border-radius: 16px;
  color: var(--soft-ink);
  font-size: var(--text-meta);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.landing-quiet:hover {
  color: var(--ink);
  background: var(--celadon-soft);
}

/* On a phone the three header controls stay on one line rather than wrapping. */
@media (max-width: 560px) {
  .landing-top {
    gap: 10px;
  }

  .landing-top .page-brand,
  .landing-quiet {
    white-space: nowrap;
  }

  .landing-quiet {
    padding: 0 8px;
  }
}

/* ---------- type ---------- */

.landing-page h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(48px, 6.6vw, 94px);
  font-weight: 300;
  line-height: .93;
  letter-spacing: -.062em;
  text-wrap: balance;
}

.landing-sub {
  max-width: 44ch;
  margin: 0;
  color: var(--soft-ink);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
}

/* A statement carries a whole screen on its own, so it is set like a heading. */
.landing-said {
  max-width: 21ch;
  margin: 0;
  font-size: clamp(25px, 2.7vw, 36px);
  font-weight: 350;
  line-height: 1.22;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.landing-note {
  max-width: 38ch;
  margin: 20px 0 0;
  color: var(--soft-ink);
  font-size: var(--text-body);
  line-height: 1.7;
}

/* ---------- rhythm ---------- */

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  justify-items: start;
  padding-top: clamp(64px, 11vw, 168px);
}

.landing-room {
  margin-top: clamp(96px, 13vw, 190px);
}

/* ---------- drawings ---------- */

.landing-page figure {
  margin: 0;
}

/* The drawing runs edge to edge, so its empty middle becomes the page's air.
   Its paper is a shade warmer than ours, so the edges fade instead of seaming. */
.landing-band {
  margin-top: clamp(44px, 7vw, 104px);
}

.landing-band img {
  width: min(1560px, 100%);
  margin-inline: auto;
  aspect-ratio: 1536 / 600;
  object-fit: cover;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

.landing-drawing img {
  width: min(430px, 100%);
  margin-inline: auto;
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, #000 9%, #000 92%, transparent),
    linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent, #000 9%, #000 92%, transparent),
    linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}

/* ---------- screenshots ---------- */

/* A screenshot of a white interface on a white page needs an edge, nothing more. */
.landing-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.landing-shot img {
  width: 100%;
}

/* ---------- statements ---------- */

.landing-three {
  display: grid;
  gap: clamp(64px, 8vw, 118px);
}

/* ---------- person ---------- */

.landing-beside {
  display: grid;
  gap: clamp(34px, 5vw, 72px);
}

.landing-person {
  width: 294px;
}

@media (min-width: 900px) {
  .landing-beside {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 899px) {
  .landing-person {
    width: 100%;
    max-width: 330px;
  }
}

/* ---------- closing ---------- */

.landing-close {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.landing-close .primary-action {
  margin-top: 26px;
}

@media (min-width: 860px) {
  .landing-close {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  }
}

/* ---------- footer ---------- */

.landing-foot {
  display: flex;
  position: relative;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(88px, 11vw, 150px);
  padding-block: 26px 48px;
  color: var(--faint-ink);
  font-size: var(--text-meta);
}

/* The rule lines up with the content, not with the page gutter. */
.landing-foot::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: var(--landing-pad);
  height: 1px;
  background: var(--line);
}

.landing-foot-links {
  display: flex;
  gap: 18px;
}

.landing-foot a {
  text-decoration: none;
}

.landing-foot a:hover {
  color: var(--ink);
}

/* ---------- page not found ---------- */

.landing-not-found {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 22px;
  width: min(100%, var(--landing-width));
  min-height: 100dvh;
  margin-inline: auto;
  padding-inline: var(--landing-pad);
}

.landing-brand {
  color: var(--ink);
  font-size: var(--text-title);
  font-weight: 560;
  letter-spacing: -.03em;
  text-decoration: none;
}

.text-link {
  color: var(--soft-ink);
  font-size: var(--text-meta);
  text-decoration: none;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--ink);
  text-decoration: underline;
}
