/* SchoLehr coming soon page.
   Values come from the SchoLehr Brand Guide, Working Edition (October 2026). */

@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  --green-900: #10231d; /* Deep Green */
  --green-800: #1c3a30; /* Lehr Green */
  --green-500: #4a725f;
  --green-400: #739886;
  --green-300: #a8c0b3;
  --green-200: #d3dfd8;
  --green-100: #edf2ef;

  --brass-800: #54401a;
  --brass-700: #6e5522; /* Deep Brass */
  --brass-600: #a98a4b; /* Brass */
  --brass-400: #c9ac6a; /* Light Brass */

  --paper: #f7f5ef;
  --ink: #14181a;
  --slate-700: #4b5357; /* Slate */
  --slate-400: #7a8286;
  --white: #ffffff;
  --error: #a23e3e;

  --font-display: "Libre Caslon Text", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 5rem);
  --dur-fast: 160ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, ol { margin: 0; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
}

[hidden] { display: none !important; }

::selection { background: #dfcb9e; color: var(--green-900); }

/* Deep Brass, not Brass: every focusable element sits on Paper, where Brass
   falls just short of the 3:1 that WCAG 2.2 requires. */
:focus-visible {
  outline: 2px solid var(--brass-700);
  outline-offset: 2px;
}

/* The spread: a green page and a paper page, joined by a brass edge. */

.spread {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: 100vh;
  min-height: 100svh;
}

/* Green page. It stays put if the form grows, so error messages never move the headline. */

.green-page {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.cover {
  flex: 1;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter) clamp(2.5rem, 4vw, 3.5rem);
  background: var(--green-800);
  color: var(--paper);
}

.wordmark {
  display: block;
  width: clamp(9.5rem, 34cqi, 16.5rem);
  height: auto;
}

h1 {
  font-size: clamp(2rem, 13cqi, 6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 span,
h1 em {
  display: block;
}

/* Emphasis by color, never italic. */
h1 em {
  font-style: normal;
  color: var(--brass-400);
}

.deck {
  max-width: 36rem;
  margin-top: 1.75rem;
  color: var(--green-200);
  font-size: 1.125rem;
  line-height: 1.55;
}

/* Paper page */

.reply {
  display: grid;
  align-items: center;
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--gutter);
  border-left: 2px solid var(--brass-600);
  background: var(--paper);
}

.reply-inner {
  width: 100%;
  max-width: 28rem;
}

.reply h2 {
  color: var(--green-800);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin-top: 0.75rem;
  color: var(--slate-700);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.lead strong {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

form { margin-top: 1.75rem; }

.field + .field { margin-top: 1.125rem; }

label {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--green-800);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.req { color: var(--error); }

.optional {
  color: var(--slate-700);
  font-weight: 400;
}

input,
textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--slate-400);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color var(--dur-fast) var(--ease-out);
}

input:hover,
textarea:hover { border-color: var(--green-800); }

textarea {
  min-height: 5.25rem;
  resize: vertical;
}

input[aria-invalid="true"] { border-color: var(--error); }

.field-error,
.field-hint {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.field-error { color: var(--error); }

.field-hint { color: var(--slate-700); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.5rem;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 4px;
  background: var(--brass-700);
  color: var(--paper);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.btn:hover { background: var(--brass-800); }

.btn[aria-disabled="true"] {
  background: var(--brass-800);
  cursor: progress;
}

.fine {
  margin-top: 0.875rem;
  color: var(--slate-700);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.alert {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(162, 62, 62, 0.3);
  border-radius: 8px;
  background: rgba(162, 62, 62, 0.05);
  font-size: 0.875rem;
  line-height: 1.5;
}

.alert-title {
  color: var(--ink);
  font-weight: 600;
}

.alert ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.alert a {
  color: var(--error);
  font-weight: 500;
  text-underline-offset: 3px;
}

.badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--green-300);
  border-radius: 2px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.8125rem;
  font-weight: 500;
}

#sent-title:focus { outline: none; }

/* Keeps the spam trap out of sight without display:none, which some bots skip. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The pipeline */

.steps {
  padding: 2rem var(--gutter) 1.5rem;
  background: var(--green-900);
  color: var(--paper);
}

.steps-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
}

.steps h2 {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.steps-head p {
  color: var(--green-200);
  font-size: 0.875rem;
  line-height: 1.45;
}

.pipe {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.pipe li {
  position: relative;
  padding-right: 1rem;
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

/* The line that joins each step to the next. */
.pipe li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: 2rem;
  right: 0;
  height: 1px;
  background: var(--green-500);
}

.pip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.625rem;
  border: 1px solid var(--green-400);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1;
}

.pipe .yours { color: var(--brass-400); }

.yours .pip {
  border-color: var(--brass-600);
  background: var(--brass-600);
  color: var(--ink);
}

.colophon {
  margin-top: 1.75rem;
  color: var(--green-300);
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* Tablet and mobile: one column, with the form straight after the claim. */

@media (max-width: 60rem) {
  .spread {
    display: flex;
    flex-direction: column;
  }

  .green-page { display: contents; }

  .cover {
    order: 1;
    gap: 3.5rem;
  }

  .reply {
    order: 2;
    padding-block: 3rem;
    border-left: 0;
    border-top: 4px solid var(--brass-600);
  }

  .reply-inner { max-width: 34rem; }

  .steps {
    order: 3;
    padding-block: 2.5rem 1.75rem;
  }
}

@media (max-width: 40rem) {
  .deck { font-size: 1.0625rem; }

  .btn { width: 100%; }

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

  .pipe li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0 1rem;
  }

  .pipe li:last-child { padding-bottom: 0; }

  .pipe li:not(:last-child)::after {
    top: 2rem;
    bottom: 0;
    left: 1rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .pip {
    flex: none;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}
