/* [HX] Hermes contract-build artifact — contractor-owned (not CTO/founder). See notes/OWNERSHIP.md. */
/* PUBLIC surface (logged-out landing + sign-in) — ported from the CTO design sources   */
/* LANDING_index_2026-10-05 / LANDING_signin_2026-10-05 (REQUEST_2026-10-05).              */
/* Stand-alone sheet: these pages extend public_base.html, NOT base.html, so dob.css    */
/* (fixed 1440px workstation canvas) is never loaded here and stays verbatim.           */
/* Tokens are the design source's own (--bg/--ink/--muted/--oxblood/--line/--card);     */
/* R7: --muted is the landing value #6E665E on BOTH pages (AA on the #F8F6F1 card).      */

:root {
  --bg: #ECE7E0;
  --card: #F8F6F1;
  --ink: #1F1B18;
  --muted: #6E665E;
  --oxblood: #84302E;
  --line: #D8D0C6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
header, footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--oxblood);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ---- landing (GET / logged-out) ---- */
main.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 24px 80px;
}
.landing h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.landing h1 em {
  font-style: italic;
  color: var(--oxblood);
}
.landing .sub {
  margin-top: 24px;
  font-size: 17px;
  color: var(--muted);
}
.landing .contact {
  margin-top: 36px;
  font-size: 15px;
}
.landing .contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.landing .contact a:hover { border-color: var(--oxblood); color: var(--oxblood); }
footer {
  font-size: 13px;
  color: var(--muted);
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover { color: var(--oxblood); }

/* ---- sign-in (GET /login) ---- */
main.signin {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
}
.card {
  width: 100%;
  max-width: 384px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px 36px 32px;
  box-shadow: 0 18px 40px rgba(60, 40, 30, 0.08);
}
.card h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  text-align: center;
  margin-bottom: 28px;
}
/* R2: error slot carried over from the previous login template, restyled to the new tokens. */
.card .login-error {
  background: #F3E0DC;
  color: var(--oxblood);
  border: 1px solid var(--oxblood);
  border-radius: 6px;
  font-size: 13px;
  padding: 10px 12px;
  margin-bottom: 20px;
}
.card label {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.card input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 15px;
  background: #fff;
  margin-bottom: 20px;
}
.card input:focus { outline: 2px solid var(--oxblood); outline-offset: 1px; }
.card button {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 6px;
  background: var(--oxblood);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.card button:hover { filter: brightness(1.08); }

@media (max-width: 600px) {
  header, footer { padding: 20px 16px; }
  .wordmark { font-size: 22px; }
  .card { padding: 32px 22px 24px; }
}
