/* Public home page. Loaded after landing.css.
   One type scale for the whole page, set here and nowhere else:
     small 14px, body 17px, lede 18-20px, h3 20-22px, h2 28-40px, h1 36-68px.
   Nothing is smaller than 14px. Written for a phone first; wider screens add columns. */

.field-notes {
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lede: 1.125rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 1.15rem + 4.9vw, 4.25rem);
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --gutter: 20px;
  --gap: 4rem;
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* Widths: the header, every section and the footer share one measure. */
.field-notes .landing-header,
.field-notes .landing-section,
.field-notes .landing-footer {
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
}

/* Header: one row on every screen. */
.field-notes .landing-header {
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0;
}

.field-notes .landing-brand {
  align-items: center;
  min-height: 44px;
}

.field-notes .landing-brand img {
  width: 128px;
}

.field-notes .landing-nav {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 14px;
  width: auto;
  font-size: var(--fs-small);
}

.field-notes .landing-nav > .landing-nav-section {
  display: none;
}

.field-notes .header-sign-in,
.field-notes .header-cta {
  min-height: 44px;
  font-size: var(--fs-small);
  white-space: nowrap;
}

.field-notes .header-cta {
  padding: 0 14px;
}

/* Headings and text. */
.field-notes h1,
.field-notes h2,
.field-notes h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.field-notes h1,
.field-notes h2 {
  font-family: var(--serif);
  font-weight: 400;
}

.field-notes h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.field-notes h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.field-notes h3 {
  font-family: inherit;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
}

.field-notes main p {
  margin: 0;
  max-width: 62ch;
}

.field-notes .button {
  min-height: 52px;
  padding: 0 22px;
  font-size: var(--fs-body);
}

/* Hero. */
.home-hero {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 0 var(--gap);
}

.home-lede {
  margin-top: 1.25rem !important;
  color: var(--muted);
  font-size: var(--fs-lede);
  line-height: 1.55;
}

.home-actions {
  display: grid;
  gap: 12px;
  margin-top: 1.75rem;
}

.home-note {
  margin-top: 1rem !important;
  color: var(--muted);
  font-size: var(--fs-small);
}

/* The example finding: the same parts a finding has in a real report. */
.home-finding {
  position: relative;
  margin: 0;
  padding: 22px 20px 24px;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--paper-deep);
}

.home-finding figcaption {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 600;
}

.home-finding-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-badge {
  padding: 3px 10px;
  border: 1px solid #b9d2c3;
  border-radius: 999px;
  color: #1e5b45;
  background: #e3efe7;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
}

.home-badge-importance {
  border-color: #e6cf9c;
  color: #7a5410;
  background: #fbf1dc;
}

.field-notes .home-finding-title {
  margin-top: 14px;
  font-family: inherit;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.home-finding blockquote {
  margin: 16px 0 0;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--line);
}

.home-finding blockquote p {
  font-family: var(--serif);
  font-size: var(--fs-lede);
  line-height: 1.45;
}

.home-finding cite {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-style: normal;
}

.home-finding-result {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: #eef5f0;
}

.home-finding-result strong {
  display: block;
  color: var(--green);
  font-size: var(--fs-small);
}

.home-finding-result p {
  margin-top: 2px !important;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.35;
}

.home-margin-note {
  margin-top: 16px !important;
  color: var(--red);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: var(--fs-body);
  line-height: 1.4;
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

/* Sections. */
.home-section {
  padding: var(--gap) 0;
  border-top: 1px solid var(--line);
}

.home-heading p {
  margin-top: 0.9rem !important;
  color: var(--muted);
  font-size: var(--fs-lede);
  line-height: 1.5;
}

/* How it works: three steps in order. */
.home-steps {
  display: grid;
  gap: 2.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.home-step-verb {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 2px 10px;
  color: var(--ink);
  background: var(--lime-bright);
  font-family: var(--serif);
  font-size: var(--fs-body);
  font-weight: 700;
  transform: rotate(-2deg);
}

.home-steps p,
.home-receipt-list dd,
.home-limits p {
  color: var(--muted);
}

.home-steps p {
  margin-top: 0.5rem !important;
}

/* What you get. */
.home-receipt-list {
  margin: 2rem 0 0;
}

.home-receipt-list > div {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.home-receipt-list > div:last-child {
  padding-bottom: 0;
}

.home-receipt-list dt {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
}

.home-receipt-list dd {
  max-width: 62ch;
  margin: 0.35rem 0 0;
}

/* Double check. */
.home-double {
  display: grid;
  gap: 1.5rem;
  margin-bottom: var(--gap);
  padding: 2rem 20px 2.25rem;
  color: var(--paper);
  background: var(--green);
}

.field-notes .home-double h2 {
  color: var(--paper);
}

.home-double p {
  margin-top: 1rem !important;
  color: #dbe7e0;
}

.home-double-stamp {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--lime-bright);
  border-radius: 50%;
  color: var(--lime-bright);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-6deg);
}

/* Limits. */
.home-limits {
  display: grid;
  gap: 1.5rem;
}

.home-limits p + p {
  margin-top: 1rem !important;
}

/* Request access. */
.home-access {
  display: grid;
  gap: 1.25rem;
  margin-bottom: var(--gap);
  padding: 1.75rem 20px 2rem;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--lime);
}

.home-access img {
  width: 56px;
  height: 56px;
}

.home-access-status {
  margin-bottom: 0.5rem !important;
  color: var(--green);
  font-size: var(--fs-small);
  font-weight: 700;
}

.home-access-copy > h2 + p {
  margin-top: 1rem !important;
  color: var(--muted);
}

.home-access-steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: access-step;
}

.home-access-steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: baseline;
  counter-increment: access-step;
}

.home-access-steps li::before {
  content: counter(access-step) ".";
  color: var(--green);
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 700;
}

.home-access .button {
  width: 100%;
}

.home-access-aside {
  margin-top: 1rem !important;
  color: var(--muted);
  font-size: var(--fs-small);
  overflow-wrap: anywhere;
}

.home-access-aside a {
  color: var(--ink);
  font-weight: 700;
}

/* Footer. */
.field-notes .landing-footer {
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0 2.5rem;
  font-size: var(--fs-small);
}

.field-notes .landing-footer p {
  text-align: left;
}

.field-notes .landing-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Small phones: the header still fits on one row. */
@media (max-width: 379px) {
  .field-notes {
    --gutter: 16px;
  }

  .field-notes .landing-brand img {
    width: 100px;
  }

  .field-notes .landing-nav {
    gap: 8px;
  }

  .field-notes .header-cta {
    padding: 0 10px;
  }
}

@media (max-width: 339px) {
  .field-notes .landing-brand img {
    width: 88px;
  }
}

/* From here on there is room for more than one column. */
@media (min-width: 600px) {
  .home-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .home-access .button {
    width: auto;
  }
}

@media (min-width: 760px) {
  .field-notes {
    --fs-lede: 1.25rem;
    --fs-h3: 1.375rem;
    --gutter: 5vw;
    --gap: 6.5rem;
  }

  .field-notes .landing-header {
    min-height: 88px;
    gap: 2rem;
  }

  .field-notes .landing-brand img {
    width: 176px;
  }

  .field-notes .landing-nav {
    gap: 1.5rem;
  }

  .field-notes .landing-nav > .landing-nav-section {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .field-notes .header-cta {
    padding: 0 18px;
  }

  .home-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .home-receipts,
  .home-limits {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
    align-items: start;
  }

  .home-receipts {
    display: grid;
  }

  .home-receipt-list {
    margin-top: 0;
  }

  .home-receipt-list > div:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .home-double {
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 3.5rem 4rem;
  }

  .home-double-stamp {
    width: 120px;
    height: 120px;
    font-size: 2.75rem;
  }

  .home-access {
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    padding: 3rem 3.5rem;
  }

  .home-access img {
    width: 72px;
    height: 72px;
  }

  .field-notes .landing-footer {
    flex-direction: row;
    align-items: center;
  }

  .field-notes .landing-footer p {
    text-align: right;
  }
}

@media (min-width: 1000px) {
  .home-hero {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: center;
    padding-top: 4.5rem;
  }

  .home-finding {
    padding: 28px 28px 30px;
    transform: rotate(1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .field-notes .button {
    transition: none;
  }
}
