/*
 * The about page: the founder's story, contact, and the sub-processors list.
 *
 * Built as a string through src/web/layout.ts (src/web/about/views.ts). The
 * frame, palette, fonts, masthead, footer and buttons come from tokens.css,
 * which is linked ahead of this one — a <link> rather than an @import, because
 * a server-rendered page controls its own head and can simply state the order
 * instead of paying for a second round trip.
 *
 * The design is a fixed 1240px layout of inline styles (the /about artifact).
 * This is the same language rebuilt with the landing page's two breakpoints;
 * the founder and the section rows are unreadable side by side below ~1000px
 * otherwise.
 *
 * Where a rule already exists on the landing page in the same form — the
 * headings, the lede, the section heads, the numbered rows — it is repeated
 * here rather than shared, because landing.css is that page's stylesheet and
 * pulling a third file in between the two would cost every page a request to
 * save sixty lines.
 */

/* --- typography ------------------------------------------------------------ */

h1 {
  font-size: clamp(34px, 7.4vw, 92px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 22px 0 0;
}

h2 {
  font-size: clamp(26px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
  /*
   * The German heading "Unterauftragsverarbeiter" is one word, 24 characters
   * wide in these settings — wider than a 390px viewport, so it would take
   * the page into horizontal scroll. `anywhere` only ever bites on a word
   * longer than its line, so the short English headings are untouched.
   */
  overflow-wrap: anywhere;
  margin: 0;
}

.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg);
  max-width: 34em;
  margin: 26px 0 0;
  text-wrap: pretty;
}

/* --- the founder ------------------------------------------------------------ */

.about-hero {
  padding: 48px 0 40px;
  border-bottom: 2px solid var(--rule-heavy);
}
.about-hero h1 {
  font-size: clamp(32px, 6.2vw, 76px);
  line-height: 0.94;
  max-width: 18em;
}

.about-found {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: 48px;
  padding: 44px 0 0;
}

.about-found__portrait {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 3px solid var(--rule-heavy);
  filter: saturate(0.85) contrast(1.05);
}
.about-found__name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
}
.about-found__role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-muted);
  margin: 6px 0 0;
}

.about-found__blurb {
  font-size: 21px;
  line-height: 1.6;
  color: var(--fg-body);
  max-width: 42em;
  margin: 0;
  text-wrap: pretty;
}
.about-found__blurb p {
  margin: 0;
}
.about-found__blurb p + p {
  margin-top: 26px;
}

/* --- the bands -------------------------------------------------------------- */

/*
 * Every band below is the same shape: a section head in the narrow rail and
 * the content in the wide one, the same 0.32/0.68 split the landing page and
 * the blog set the founder and the featured post in. One rule, three sections.
 */
.about-band {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 2px solid var(--rule-heavy);
}
.about-band:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.about-band h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.about-band__intro {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin: 0 0 24px;
  max-width: 40em;
}

/* --- contact ---------------------------------------------------------------- */

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.about-contact__email {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.about-contact__email:hover {
  color: var(--accent-text);
}
.about-contact__note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  margin: 0;
}
.about-contact__linkedin {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* --- sub-processors --------------------------------------------------------- */

.about-subprocessors {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-heavy);
}

.about-subprocessor {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.about-subprocessor__name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.about-subprocessor__purpose {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
}
.about-subprocessor__url {
  font-family: var(--font-mono);
  font-size: 13px;
  justify-self: end;
}

/* --- breakpoints ------------------------------------------------------------ */

@media (max-width: 1040px) {
  .about-found,
  .about-band {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-subprocessor {
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }
  .about-subprocessor__url {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 22px;
  }

  .about-hero {
    padding: 40px 0 32px;
  }
  .about-found__blurb {
    font-size: 19px;
  }
  .about-contact__email {
    font-size: 26px;
  }
  .about-subprocessor {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  /* Forced line breaks are a desktop measure; at this width the text wraps. */
  h1 br {
    display: none;
  }
}