/* BachelorPad+ Lite -- bpad.prompt-forge.dev
 *
 * Retro-futurist consumer appliance, per docs/brand/BRAND_GUIDE.md: chunky
 * industrial forms, status lights, mid-century future optimism, deadpan
 * product language. A broad genre, never an imitation of a specific one.
 *
 * NO THIRD-PARTY REQUESTS OF ANY KIND (ADR-0076). No analytics, no cookies,
 * no tracking, no web fonts. This product makes no network connection while
 * you use it, and a site that quietly loaded a tracker would contradict the
 * one thing it most wants to be believed about. System fonts only -- a font
 * from a CDN is a request to somebody else's server carrying the visitor's
 * address, which is the smallest possible version of the thing being refused.
 */

:root {
  --ink: #17150f;
  --ink-soft: #4a453a;
  --paper: #f2ede1;
  --panel: #fbf8f0;
  --rule: #16130d;
  --amber: #d9822b;
  --amber-deep: #a85c14;
  --lamp: #46b04a;
  --lamp-off: #b9b1a0;
  --shadow: 4px 4px 0 var(--rule);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece5d5;
    --ink-soft: #a79f8c;
    --paper: #17150f;
    --panel: #211e16;
    --rule: #4a4335;
    --amber: #e8a24f;
    --amber-deep: #f0b76e;
    --lamp-off: #4a4335;
    --shadow: 4px 4px 0 var(--rule);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 44rem; }

a { color: var(--amber-deep); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

/* --- the plate: a chunky bordered panel, the site's one motif ---------- */

.plate {
  background: var(--panel);
  border: 3px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

/* --- masthead ---------------------------------------------------------- */

header.masthead {
  border-bottom: 3px solid var(--rule);
  background: var(--panel);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.5rem;
  max-width: 62rem;
  margin: 0 auto;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.lamp {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--lamp);
  border: 2px solid var(--rule);
  flex: none;
}
.lamp.off { background: var(--lamp-off); }

nav.masthead-nav { margin-left: auto; display: flex; gap: 1.2rem; flex-wrap: wrap; }
nav.masthead-nav a {
  font-family: var(--mono);
  font-size: .85rem;
  text-decoration: none;
  color: var(--ink-soft);
}
nav.masthead-nav a:hover { color: var(--amber-deep); }

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

.hero { padding: 4rem 0 2.5rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 .9rem;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
}

.tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 1.2rem;
  color: var(--ink);
}

.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 40rem; margin: 0 0 1.8rem; }

/* --- buttons ----------------------------------------------------------- */

.buttons { display: flex; gap: .9rem; flex-wrap: wrap; align-items: stretch; }

.btn {
  display: inline-flex;
  flex-direction: column;
  gap: .15rem;
  padding: .8rem 1.3rem;
  border: 3px solid var(--rule);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--rule); color: var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn .sub { font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--ink-soft); }
.btn.primary { background: var(--amber); color: #17150f; }
.btn.primary .sub { color: #3a2a10; }

/* --- notices ----------------------------------------------------------- */

.notice {
  border-left: 5px solid var(--amber);
  background: var(--panel);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
  font-size: .95rem;
}
.notice strong { display: block; margin-bottom: .3rem; }

/* --- sections ---------------------------------------------------------- */

section { padding: 2.6rem 0; }
section + section { border-top: 2px solid var(--rule); }

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -.015em;
  margin: 0 0 .5rem;
}
h3 { font-size: 1.08rem; margin: 0 0 .4rem; }

.section-note { color: var(--ink-soft); margin: 0 0 1.6rem; max-width: 42rem; }

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.card { background: var(--panel); border: 2px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.card .tag {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: block;
  margin-bottom: .35rem;
}

/* --- specimen: a mock status bar --------------------------------------- */

.specimen {
  font-family: var(--mono);
  font-size: .82rem;
  background: var(--panel);
  border: 3px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 2rem 0 0;
}
.specimen .bar {
  display: flex;
  gap: 1.2rem;
  padding: .5rem .9rem;
  border-bottom: 2px solid var(--rule);
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.specimen .body { padding: 1rem .9rem; white-space: pre-wrap; color: var(--ink); }
.specimen .status {
  display: flex;
  gap: 1.2rem;
  padding: .5rem .9rem;
  border-top: 2px solid var(--rule);
  color: var(--ink-soft);
  flex-wrap: wrap;
}

/* --- tables and code --------------------------------------------------- */

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .93rem; }
th, td { border: 2px solid var(--rule); padding: .5rem .7rem; text-align: left; vertical-align: top; }
th { background: var(--panel); font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

code { font-family: var(--mono); font-size: .88em; background: var(--panel); padding: .1rem .3rem; border-radius: 3px; }
pre {
  font-family: var(--mono);
  font-size: .84rem;
  background: var(--panel);
  border: 2px solid var(--rule);
  border-radius: 6px;
  padding: .9rem 1rem;
  overflow-x: auto;
}
pre code { background: none; padding: 0; }

/* --- the form ---------------------------------------------------------- */

form.waitlist { margin: 1.5rem 0 0; }
.field { display: flex; gap: .8rem; flex-wrap: wrap; align-items: stretch; }

input[type="email"] {
  flex: 1 1 18rem;
  font: inherit;
  font-size: 1rem;
  padding: .8rem 1rem;
  border: 3px solid var(--rule);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
}
input[type="email"]:focus { outline: 3px solid var(--amber); outline-offset: 1px; }

button.btn { cursor: pointer; font: inherit; font-weight: 700; align-items: center; }
button.btn[disabled] { opacity: .6; cursor: progress; }

.form-note { font-size: .88rem; color: var(--ink-soft); margin: .9rem 0 0; max-width: 38rem; }

.result { margin: 1.1rem 0 0; padding: .9rem 1.1rem; border-radius: 6px; border: 2px solid var(--rule); font-size: .95rem; }
.result.ok { background: var(--panel); border-color: var(--lamp); }
.result.bad { background: var(--panel); border-color: var(--amber-deep); }

/* The honeypot. Off-screen rather than display:none -- some autofill agents
   skip hidden fields and this should be filled by a bot and by nothing else. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

footer {
  border-top: 3px solid var(--rule);
  background: var(--panel);
  padding: 2rem 0;
  margin-top: 2rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
footer .cols { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
footer h4 { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .5rem; color: var(--ink); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: .3rem; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.colophon { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 2px solid var(--rule); font-size: .85rem; }

/* --- motion ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --- open source badges, and the language switcher ---------------------
 *
 * Added when the site started saying "free and open source" out loud rather
 * than only in the footer. The pills are text, not images: an SVG badge from
 * shields.io would be a third-party request, and this site does not make any
 * (ADR-0076).
 */

.oss-line {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.pill {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border: 2px solid var(--rule);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-soft);
  white-space: nowrap;
}
.pill:first-child { background: var(--amber); color: #17150f; border-color: var(--rule); }

nav.lang { display: flex; flex-direction: column; gap: .3rem; }
nav.lang a, nav.lang .lang-current { font-size: .9rem; }
nav.lang .lang-current { color: var(--ink); font-weight: 700; }

/* --- the release-notes sign-up, which is not the waitlist -------------- */

.signup {
  background: var(--panel);
  border: 3px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  margin: 1.4rem 0 0;
}
.signup h3 { margin-top: 0; }
.signup .field { margin-top: 1rem; }
.signup .form-note { margin-top: .9rem; }

/* A second form on the same page needs its own result box, and the two must
   never be mistaken for each other: joining one list does not join the other,
   and the page says so. */
.result + .form-note { margin-top: .8rem; }

/* --- the open source credits ------------------------------------------
 *
 * Text, not badge images. A shields.io badge is a request to somebody else's
 * server carrying the reader's address, which is the smallest possible
 * version of the thing this whole site refuses (ADR-0076).
 */

.built-h { margin-top: 2rem; font-size: 1.05rem; }

ul.credits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: .4rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  font-size: .93rem;
  color: var(--ink-soft);
}
ul.credits li {
  padding-left: .9rem;
  border-left: 3px solid var(--rule);
  line-height: 1.45;
}
ul.credits a { font-weight: 700; }

/* --- the consent tick --------------------------------------------------
 *
 * Unticked by default and never styled to look pre-selected. GDPR Art 4(11)
 * wants a clear affirmative action, and a box that looks ticked is neither
 * clear nor affirmative.
 */

label.consent {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin: .9rem 0 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
  max-width: 42rem;
}
label.consent input {
  margin-top: .2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  accent-color: var(--amber-deep);
}
label.consent:hover { color: var(--ink); }
