/* Speak Your Piece: coming soon page
   Fonts are served from this site (see /fonts and its license files).
   No external requests of any kind. */

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

:root {
  --bg: #F4F5F2;
  --text: #1F2A2D;
  --text-2: #4A5659;
  --accent: #2C6A63;
  --accent-soft: #E2EDEA;
  --border: #DDE1DE;
  --card: #FFFFFF;
  --field-off: #ECEEEA;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

p, h1, h2 { margin: 0; }

/* Layout */
.wide {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.column {
  width: 100%;
  max-width: 720px;           /* 680px of content + 20px gutters */
  margin: 0 auto;
  padding: 56px 20px 64px;
  flex: 1;
}

/* Skip link: hidden until focused with the keyboard */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--card);
  color: var(--accent);
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid var(--accent);
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */
.site-header .wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.site-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.badge {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Intro */
.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text-2);
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: 20px;
}
.lede {
  font-size: 1.15rem;
  color: var(--text-2);
  margin-top: 20px;
}

/* Disabled preview */
.preview { margin-top: 36px; }
.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
textarea {
  display: block;
  width: 100%;
  min-height: 196px;
  resize: none;
  padding: 18px 20px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--field-off);
  border: 1.5px dashed #BFC6C2;
  border-radius: 10px;
  cursor: not-allowed;
}
textarea::placeholder { color: #5D686A; opacity: 1; }

.preview-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
button {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  min-height: 48px;
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  color: var(--text-2);
  cursor: not-allowed;
}

/* Cards */
.cards {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 16px 18px;
}
.card h2 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}
.card p {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-top: 4px;
  line-height: 1.5;
}

/* Purpose section */
.purpose {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.purpose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.25;
}
.purpose p {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-top: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 24px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  row-gap: 4px;
  align-items: center;
}
.footer-mission { grid-column: 1; grid-row: 1; }
.footer-privacy { grid-column: 2; grid-row: 1; text-align: right; }
.footer-crisis  { grid-column: 1; grid-row: 2; }

/* 988 link: a 44px-tall tap target without changing the look of the line */
.footer-crisis a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  margin: 0 -8px;
  padding: 0 8px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-crisis a:hover { text-decoration-thickness: 2px; }

/* Phones */
@media (max-width: 640px) {
  .column { padding-top: 32px; }
  .kicker { font-size: 1.15rem; }
  .lede { font-size: 1.075rem; }
  .cards { grid-template-columns: 1fr; }
  .preview-actions button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-privacy { grid-column: 1; grid-row: 2; text-align: left; }
  .footer-crisis  { grid-row: 3; }
}

/* Respect people who ask for less motion (there is none, but be explicit) */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
