@import '/assets/app/shared/styles/site/index.a580f70f49ee34c8.css';

/* printedletter.com home: the forest band with the heading, then the letter form beside the
   sample letter, then the service terms and the disclaimer in fine print. Below 56rem the sample moves under the form, as it did
   on the Render site. Controls, type and spacing are the site system's. */

.letter-hero {
  padding-block: var(--space-12) var(--space-10);
  text-align: center;
}

.letter-hero h1 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.letter-hero p {
  max-width: var(--site-measure);
  margin: 0 auto;
}

.letter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
  padding-block: var(--space-12);
}

.letter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

/* Each part of the form under its own heading, a hairline between parts. */
.letter-part {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.letter-part + .letter-part {
  padding-top: var(--space-10);
  border-top: 1px solid var(--rule);
}

.letter-part h2 {
  margin: 0;
  font-size: var(--text-h3);
}

.letter-hint {
  margin: 0 0 var(--space-4);
  color: var(--ink-soft);
}

/* City takes the room; state and ZIP sit beside it, and below 30rem drop to their own row. */
.letter-place {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0 var(--space-4);
}

.letter-message textarea {
  min-height: 14rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.letter-send {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.letter-send .button {
  align-self: stretch;
}

.letter-alert {
  margin: 0;
}

/* The sample stays in view beside a long form. */
.letter-sample {
  position: sticky;
  top: var(--space-6);
  margin: 0;
}

.letter-sample img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--rule);
  background: #ffffff;
}

.letter-sample figcaption {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
}

.letter-about {
  padding-block: var(--space-10) var(--space-16);
  border-top: 1px solid var(--rule);
}

.letter-about > * {
  max-width: var(--site-measure);
}

.letter-about h2 {
  margin: 0 0 var(--space-4);
}

.letter-about p {
  margin: 0 0 var(--space-4);
}

/* The disclaimer is fine print (the site's .meta) under the terms. */
.letter-about .letter-fine {
  margin-top: var(--space-8);
}

.letter-about .letter-fine p {
  margin: 0;
}

@media (max-width: 56rem) {
  .letter-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10);
  }

  .letter-sample {
    position: static;
    max-width: 28rem;
    margin-inline: auto;
  }
}

@media (max-width: 30rem) {
  .letter-hero {
    padding-block: var(--space-10) var(--space-8);
  }

  .letter-place {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .letter-place > :first-child {
    grid-column: 1 / -1;
  }
}
