/* About page: one screen. "Selene" + a single explanation on the left,
   the logo in a moon-like circle on the right, cut off by the screen edge. */

.about {
  --d: min(78vh, 50vw, 760px);          /* circle diameter */
  --about-moon-shadow: 0 0 80px rgb(236 235 229 / 0.06);   /* soft moonlight halo */
  position: relative;
  padding: calc(var(--header-h) + 48px) 0 clamp(80px, 10vw, 140px);
}
:root[data-theme="light"] .about {
  /* Day: a light halo can't show on paper, and an outer shadow would be
     clipped square by .about-moon-wrap, so give the disc a hairline edge and
     a faint inner shade on its far side instead. */
  --about-moon-shadow:
    inset 0 0 0 1px rgb(20 21 28 / 0.07),
    inset -36px -24px 90px rgb(20 21 28 / 0.06);
}
.about-inner { position: relative; z-index: 1; }
.about-copy { max-width: min(600px, 52%); }

/* Selene */
.about-title {
  margin: 0 0 32px;
  font: 400 clamp(72px, 9.5vw, 144px)/0.9 var(--font-serif);
  letter-spacing: -0.02em;
}

/* Opening address */
.about-address-head { margin-bottom: 28px; }
.about-kicker {
  margin: 0 0 12px;
  font: 400 12px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signature-text);
}
.about-address-title {
  margin: 0;
  font: 400 clamp(30px, 3.4vw, 44px)/1.1 var(--font-serif);
  font-style: italic;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.about-text .about-pull {
  margin-block: 1.6em;
  padding-left: 20px;
  border-left: 2px solid var(--signature);
  font: 400 clamp(21px, 2vw, 26px)/1.4 var(--font-serif);
  color: var(--ink);
}

.about-sign {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 36em;
}
.about-sign p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.about-sign .about-sign-name { font-size: 17px; font-weight: 600; color: var(--ink); }
.about-sign .about-sign-date { margin-top: 10px; font: 400 13px/1.4 var(--font-mono); color: var(--ink-3); }

/* Explanation */
.about-text { max-width: 36em; }
.about-text p {
  margin: 0 0 1.1em;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.about-text p:last-child { margin-bottom: 0; }
.about-text .about-lead {
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--ink);
}

/* Logo circle (right ~22% falls off the screen) */
.about-moon-wrap {
  position: absolute;
  top: calc(var(--header-h) + 24px); right: 0;   /* beside the start of the address */
  width: calc(var(--d) * 0.78);
  height: var(--d);
  margin: 0;
  overflow: hidden;
}
.about-moon {
  position: absolute; left: 0; top: 0;
  width: var(--d); height: var(--d);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    color-mix(in srgb, var(--ink) 9%, var(--bg-raised)) 0%,
    var(--bg-raised) 70%);
  box-shadow: var(--about-moon-shadow);
}
.about-logo {
  position: absolute;
  left: 44%; top: 50%;                   /* a little left of center so it stays in view */
  translate: -50% -50%;
  width: 42%;
  color: var(--ink);
}
.about-logo-img, .about-logo-temp { width: 100%; height: auto; }
.about-logo.has-logo .about-logo-temp { display: none; }

@media (max-width: 860px) {
  .about {
    --d: 86vw;
    flex-direction: column; align-items: stretch;
    padding-bottom: 64px;
  }
  .about-copy { max-width: 36rem; }
  .about-moon-wrap {
    position: relative;
    top: auto;
    translate: none;
    align-self: flex-end;
    margin-top: 48px;
  }
}
