/* findings.pub public pages. Colours, type and fonts come from /tokens.css, generated from the design system;
   spacing, radii and type sizes stay on its scales. Check with: python3 design/public_site_design.py check */

:root {
  --gutter: var(--gutter-phone);
}

@media (min-width: 720px) {
  :root { --gutter: var(--gutter-tablet); }
}

@media (min-width: 1024px) {
  :root { --gutter: var(--gutter-desktop); }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--navy-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
}

h1, h2, h3, p, ul {
  margin: 0;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 120ms;
}

a:hover {
  color: var(--navy-hover);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Navy bands: masthead and footer */

.band {
  background: var(--navy-deep);
  color: var(--on-navy-deep);
}

.band a {
  color: var(--on-navy-deep);
}

.band a:hover {
  color: var(--on-navy-deep);
  text-decoration-thickness: 2px;
}

.band a:focus-visible {
  outline-color: var(--on-navy-deep);
}

.masthead .wrap {
  padding-block: 24px;
}

.logo {
  display: block;
  width: 177px;
  height: 28px;
}

.footer .wrap {
  padding-block: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 22px;
}

/* Hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px 64px;
  padding-block: 48px;
}

@media (min-width: 720px) {
  .hero { padding-block: 64px; }
}

@media (min-width: 1024px) {
  .hero { padding-block: calc(2 * var(--space-7)); }
}

.hero-text {
  flex: 1 1 480px;
  max-width: 640px;
  min-width: 0;
}

.eyebrow,
.label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow svg {
  flex: none;
}

.display {
  margin-top: 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.eyebrow + .display {
  margin-top: 16px;
}

@media (min-width: 560px) {
  .display {
    font-size: 44px;
    line-height: 52px;
  }
}

.lead {
  margin-top: 24px;
  font-family: var(--font-reading);
  font-size: 19px;
  line-height: 30px;
  text-wrap: pretty;
}

.body {
  font-family: var(--font-reading);
  font-size: 17px;
  line-height: 28px;
  text-wrap: pretty;
}

.hero-text .body {
  margin-top: 16px;
}

.contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 28px;
  font-weight: 600;
}

/* Record illustration: a page with one redaction lifted off the finding */

.record {
  flex: 0 1 360px;
  min-width: 0;
  padding: 48px 32px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.record .title {
  height: 10px;
  background: var(--ink-muted);
  border-radius: 2px;
}

.record .lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record .ln {
  height: 8px;
  background: var(--line);
  border-radius: 2px;
}

.record .finding {
  position: relative;
  height: 56px;
}

.record .seal {
  position: absolute;
  left: 0;
  top: 36px;
  height: 12px;
  background: var(--seal);
  border-radius: 2px;
}

.record .lid {
  position: absolute;
  left: 0;
  top: 20px;
  height: 12px;
  background: var(--redaction);
  border-radius: 2px;
  transform-origin: 0 100%;
  transform: rotate(-16deg);
}

.record .inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.record .bar {
  height: 12px;
  background: var(--redaction);
  border-radius: 2px;
}

.w-100 { width: 100%; }
.w-97 { width: 97%; }
.w-96 { width: 96%; }
.w-94 { width: 94%; }
.w-90 { width: 90%; }
.w-72 { width: 72%; }
.w-64 { width: 64%; }
.w-58 { width: 58%; }
.w-40 { width: 40%; }
.w-38 { width: 38%; }
.w-28 { width: 28%; }
.w-20 { width: 20%; }

/* Sections */

.section {
  border-top: 1px solid var(--line);
}

.section .wrap {
  padding-block: 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 720px) {
  .section .wrap { padding-block: 64px; }
}

@media (min-width: 1024px) {
  .section .wrap { padding-block: calc(var(--space-8) + var(--space-4)); }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

h3 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
}

.notes {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.notes li {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--navy-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* How a request moves: door states on a rail */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
}

.step {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.door {
  flex: none;
  display: block;
  width: 48px;
  height: 48px;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 56px;
  bottom: -24px;
  width: 2px;
  background: var(--line-strong);
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step {
    flex-direction: column;
    gap: 24px;
  }

  .step:not(:last-child)::after {
    left: 64px;
    right: -24px;
    top: 23px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

.quiet {
  padding: 24px;
  background: var(--paper-sunken);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiet .body {
  max-width: 680px;
}

/* Not found */

.notfound .hero-text,
.about .hero-text {
  flex-basis: auto;
}
