@import url('fonts.css');

/* ==========================================================================
   ForensicReport.org — landing page
   Palette, type, and layout follow the designer's "conservative variation".
   Cream, panel tone, blue and ink carry the structure; red and orange are
   held back for two things only: the name and the value line.
   ========================================================================== */

:root {
  --cream: #f2f0e9;
  --canvas: #dedbd2;
  --panel: #e2ddd0;
  --blue: #1a2b7b;
  --red: #c41e3a;
  --ink: #0d1117;
  --body: #3d3d38;
  --muted: #5a5a55;
  --on-dark: #f2f0e9;
  --on-dark-muted: #c9c6bc;

  --rule: rgba(51, 51, 153, 0.25);
  --rule-mid: rgba(51, 51, 153, 0.3);
  --rule-strong: rgba(51, 51, 153, 0.4);

  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --measure: 1680px;
  --gutter: clamp(20px, 6vw, 96px);
  --section-y: clamp(38px, 6vw, 50px);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue);
  text-decoration: none;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

img,
svg {
  max-width: 100%;
}

/* --- shared bits ------------------------------------------------------- */

/* The page runs edge to edge; section backgrounds are full bleed and the
   padding grows on wide screens so the copy stays at a readable measure. */
.shell {
  background: var(--cream);
}

.pad {
  padding-inline: max(var(--gutter), calc((100% - var(--measure)) / 2));
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: var(--on-dark);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
}

.skip:focus {
  left: 0;
  color: var(--on-dark);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.tick {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--red);
}

/* The mark: a panel-tone square with a flush-right bar. */
.mark {
  display: flex;
  justify-content: flex-end;
  flex: none;
  width: 22px;
  height: 22px;
  background: var(--panel);
}

.mark > span {
  display: block;
  width: 5.5px;
  background: var(--blue);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--blue);
  white-space: nowrap;
}

.wordmark b {
  font-weight: 700;
}

.wordmark .r {
  color: var(--red);
}

.hipaa {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--blue);
  padding: 9px 16px;
}

.hipaa::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background: var(--cream);
  flex: none;
}

.hipaa span {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--cream);
  white-space: nowrap;
}

/* --- header ------------------------------------------------------------ */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
  border-bottom: 1px solid var(--rule-mid);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--body);
  white-space: nowrap;
}

.nav a {
  color: var(--body);
}

.nav a:hover {
  color: var(--blue);
}

@media (max-width: 900px) {
  .nav a {
    display: none;
  }
}

@media (max-width: 560px) {
  .hipaa span {
    font-size: 11.5px;
    white-space: normal;
  }
}

/* --- hero -------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 50px);
  align-items: start;
  padding-block: clamp(32px, 5vw, 44px) clamp(32px, 5vw, 40px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-kicker .tick {
  width: 30px;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--blue);
  text-wrap: balance;
}

.lede {
  font-size: clamp(15.5px, 1.5vw, 16.5px);
  line-height: 1.6;
  color: var(--body);
  margin-top: 22px;
}

.credential {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
  color: var(--blue);
  margin-top: 24px;
}

/* --- request-access panel ---------------------------------------------- */

.request {
  border: 1px solid var(--rule-mid);
  background: var(--cream);
}

.request > h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--blue);
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule-mid);
}

.request form {
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.request label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.request input,
.request select {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(13, 17, 23, 0.28);
  border-radius: 0;
  padding: 12px 13px;
  width: 100%;
}

.request input::placeholder {
  color: #6e6e66;
}

.request select:invalid {
  color: #6e6e66;
}

.request button {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cream);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 0;
  padding: 13px;
  cursor: pointer;
}

.request button:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.fineprint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.request-fallback {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- value band -------------------------------------------------------- */

.band {
  border-block: 1px solid var(--rule-mid);
  padding-block: clamp(26px, 4vw, 36px);
}

.band p {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 2.7vw, 29px);
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}

/* --- generic section --------------------------------------------------- */

.section {
  padding-block: var(--section-y);
}

.section--panel {
  background: var(--panel);
  border-top: 1px solid var(--rule-mid);
}

.section > .eyebrow {
  margin-bottom: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 38px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 38px) clamp(30px, 4vw, 50px);
}

.card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 21px);
  line-height: 1.25;
  color: var(--blue);
  margin: 14px 0 9px;
}

.card-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
}

/* --- three steps ------------------------------------------------------- */

.steps-rule {
  height: 1px;
  background: var(--rule-strong);
  margin-bottom: 20px;
}

.step-n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 40px);
  line-height: 1;
  color: var(--blue);
  margin-bottom: 12px;
}

.step-h {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 9px;
}

/* --- capabilities ------------------------------------------------------ */

.cap-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--blue);
  margin-bottom: 7px;
}

.cap {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

/* --- security ---------------------------------------------------------- */

.security-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
  max-width: 76ch;
  margin-bottom: 30px;
}

.security-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* --- about ------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 50px);
  align-items: start;
}

.about p {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
}

.about p + p {
  margin-top: 16px;
}

.pull {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.35;
  color: var(--blue);
  border-block: 1px solid var(--rule-strong);
  padding-block: 20px;
  margin-block: 24px;
}

.signature {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-top: 24px;
}

.signature .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.signature .role {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 3px;
}

.aside-card {
  border: 1px solid var(--rule-mid);
  padding: 22px 24px 24px;
  background: var(--cream);
}

.aside-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--blue);
  margin-bottom: 12px;
}

.aside-card dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

.aside-card dd {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--ink);
}

.aside-card dl {
  margin: 0;
}

/* --- footer ------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--rule-strong);
  padding-block: 34px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 40px);
  align-items: start;
}

.footer .wordmark {
  font-size: 18px;
  margin-bottom: 12px;
}

.footer .mark {
  width: 20px;
  height: 20px;
}

.footer .mark > span {
  width: 5px;
  background: var(--red);
}

.footer .credential {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 0;
}

.footer h2 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 11px;
}

.footer li + li,
.footer dd + dt {
  margin-top: 8px;
}

.footer li,
.footer dd {
  font-size: 13px;
  margin: 0;
}

.footer dd {
  color: var(--ink);
}

.legal {
  border-top: 1px solid var(--rule);
  padding-block: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
}

/* --- responsive -------------------------------------------------------- */

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

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .masthead {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body {
    background: #fff;
  }

  .shell {
    border: 0;
  }
}
