/* The landing page above the form and the search: a lead paragraph, three
   links drawn as the design system's Button, and a note under them. The
   controls package is only here for its tokens and its fonts — nothing on this
   page is a form control. */

.lpd-intro {
  --lpd-serif: "adobe-caslon-pro", Georgia, "Times New Roman", serif;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding-bottom: 120px;
  color: var(--lp-ink);
  font: var(--lp-weight-regular) var(--lp-text-md) / var(--lp-text-md-line)
    var(--lp-font);
}
.lpd-intro *,
.lpd-intro *::before,
.lpd-intro *::after {
  box-sizing: border-box;
}

/* Theme reset — Chaplin styles bare <a> and <p>, and those rules outrank
   anything class-based here. */
.lpd-intro a,
.lpd-intro a:hover,
.lpd-intro a:focus {
  border-radius: 0;
  text-decoration: none;
  transition: none;
}
.lpd-intro p {
  margin: 0;
}

.lpd-intro__lead {
  font-family: var(--lpd-serif);
  font-size: 32px;
  line-height: 40px;
  color: rgba(0, 0, 0, 0.6);
}

/* The frame's 12px gap is to the row's own container, which carries the
   padding the buttons sit inside. */
.lpd-intro__actions {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  padding: 24px 0 32px;
}

/* Qualified by element and scoped, which is more than a class needs to be:
   Chaplin paints .entry-content a its own green at a specificity an
   unqualified class loses to, and the label would come out that green on both
   the outlined buttons and the filled one. */
.lpd-intro a.lpd-intro__button {
  display: flex;
  height: 60px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--lp-brand);
  color: var(--lp-brand);
  font: var(--lp-weight-regular) var(--lp-text-md) / var(--lp-text-md-line)
    var(--lp-font);
  letter-spacing: 0.032px;
}
.lpd-intro a.lpd-intro__button--primary {
  background: var(--lp-brand);
  color: #ffffff;
}
/* Hover fills the outlined button and turns its label white, which is the one
   thing that makes the icon's colour a live question: it is drawn inline so it
   can follow the label. Pressed is the same fill for both types. */
.lpd-intro a.lpd-intro__button:hover {
  background: var(--lp-brand);
  color: #ffffff;
}
.lpd-intro a.lpd-intro__button--primary:hover {
  background: var(--lp-brand-hover);
}
.lpd-intro a.lpd-intro__button:active {
  background: var(--lp-brand-active);
  color: #ffffff;
}

/* Both icons are drawn inside the Button component's 24px slot rather than
   filling it, and both export with preserveAspectRatio="none", so each keeps
   the size it was drawn at.

   The frame draws every icon lighter than the label beside it, and not by the
   same amount: the component fades the whole slot by half, and the outlined
   button's arrow is drawn in a half-strength sage on top of that — a quarter
   of the label, which is what the frame's pixels measure. Filled, and outlined
   once it fills on hover, the icon is the label's colour at half. Opacity
   rather than a colour of its own, because the icon follows currentColor. */
.lpd-intro__icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  opacity: 0.25;
}
.lpd-intro a.lpd-intro__button--primary .lpd-intro__icon,
.lpd-intro a.lpd-intro__button:hover .lpd-intro__icon,
.lpd-intro a.lpd-intro__button:active .lpd-intro__icon {
  opacity: 0.5;
}
.lpd-intro__icon svg {
  display: block;
}

.lpd-intro__note {
  color: rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .lpd-intro__actions {
    flex-direction: column;
  }
}
