/* longlinelabs.com: the page's own rules. The shell (shell/tokens.css and shell/shell.css, from @longline/web) owns the
   colours, the type scale, the page frame, the header, the app cards and the footer; this file styles only what is this
   page's own. It names no font, defines no --ll-* variable and restyles no ll- class, so it passes the package's
   check-sites (sites.json there lists it). */

.lls-hide {
  display: none;
}

/* The hero's illustration: the six-colour longline at the width of its column, never wider than it reads well. */
.lls-hero-art {
  width: 100%;
  max-width: 560px;
  height: auto;
  justify-self: center;
}

@media (max-width: 767px) {
  .lls-hero-art {
    max-width: 420px;
    justify-self: start;
  }
}

.lls-hero-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hairline-strong);
}

/* About: the prose beside the promises; one column on a phone. */
.lls-about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-6) var(--space-7);
  align-items: start;
}

@media (max-width: 767px) {
  .lls-about {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lls-prose p {
  margin: 0 0 var(--space-4);
  max-width: 36em;
  font-size: var(--ll-body-lg-size);
  line-height: var(--ll-body-lg-line);
}

.lls-prose p:last-child {
  margin-bottom: 0;
}

.lls-promises {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lls-promise {
  padding: var(--space-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--paper-raised);
}

.lls-promise strong {
  display: block;
  margin-bottom: var(--space-1);
}

.lls-promise p {
  margin: 0;
  color: var(--ink-muted);
}

/* Links inside the page's own text take the family teal, as on every site. */
.lls-mail {
  color: var(--sea);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lls-mail:hover {
  color: var(--ll-accent-text);
}

/* The idea form. Inputs follow Harbor: sunk to paper-sunken, a hairline-strong resting edge, radius-sm. The shell's own
   focus ring applies. */
.lls-idea {
  display: grid;
  gap: var(--space-4);
  max-width: 44em;
  margin-top: var(--space-5);
}

/* Once sent, the page's script hides the form; display: grid above would otherwise outrank the hidden attribute. */
.lls-idea[hidden] {
  display: none;
}

.lls-field {
  display: grid;
  gap: var(--space-2);
}

.lls-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 599px) {
  .lls-field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lls-field input,
.lls-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper-sunken);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  width: 100%;
  box-sizing: border-box;
}

.lls-field textarea {
  resize: vertical;
  min-height: 8em;
}

.lls-field ::placeholder {
  color: var(--ink-faint);
}

/* The field people never see; bots fill it in. */
.lls-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lls-idea-status:empty {
  display: none;
}

/* The outcome lines: shown when the page's script reveals one, or when the Worker sends a browser without
   JavaScript back to its anchor. */
.lls-sent {
  display: none;
  margin-top: var(--space-5);
}

.lls-sent:target,
.lls-sent.is-shown {
  display: block;
}

/* The form page: its heading gets the same room under the header as the front page's hero. */
.lls-form-page {
  padding-top: var(--space-7);
}

.lls-form-page .ll-lede {
  max-width: 36em;
}
