/* ==========================================================================
   byostack.ai/scale — page stylesheet (deploy as css/scale.css)
   Externalized from the former inline style blocks for strict-CSP
   compliance: style-src does not permit inline styles, so all page
   styling lives here. Brand tokens per BYOStack Brand Guidelines V1.0.
   ========================================================================== */

@font-face { font-family: 'Spectral'; src: url('/fonts/Spectral-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('/fonts/Spectral-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('/fonts/Spectral-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('/fonts/Spectral-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --field: #F6F4EF;
  --card: #FBFAF6;
  --hairline: #D7D3CA;
  --secondary: #B7A287;
  --gold: #A07A54;
  --vermilion: #C8451B;
  --ink: #1C1A17;
  --ink-75: rgba(28,26,23,.75);
  --ink-50: rgba(28,26,23,.5);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--field);
  color: var(--ink);
  font-family: 'Spectral', Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
}
.wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 28px;
  text-wrap: balance;
}
.intro p { margin-bottom: 18px; color: var(--ink); }
.rule {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 40px 0;
}
form {
  background: var(--card);
  border: 1px solid var(--hairline);
  padding: 40px 36px 44px;
}
.form-row { margin-bottom: 26px; }
label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-75);
  margin-bottom: 8px;
}
label .opt {
  color: var(--ink-50);
  letter-spacing: .14em;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: 'Spectral', Georgia, serif;
  font-size: 16px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 11px 12px;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1A17' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--vermilion);
  outline-offset: 0;
  border-color: var(--vermilion);
}
.hint {
  font-size: 14.5px;
  font-style: italic;
  color: var(--ink-50);
  margin-top: 7px;
}
button[type="submit"] {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #F6F4EF;
  background: var(--vermilion);
  border: none;
  border-radius: 0;
  padding: 16px 30px;
  cursor: pointer;
  margin-top: 6px;
}
button[type="submit"]:hover { background: #A93A17; }
button[type="submit"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
/* Bare-footer rules retired 2026-07-16 — /scale now carries the shared
   .site-footer from site.css; element-level footer styles would fight it. */
@media (max-width: 480px) {
  .wrap { padding: 48px 18px 72px; }
  form { padding: 28px 20px 32px; }
}
