/**
 * Rachaita public surfaces — shared tokens, grain, team sign-in link, login.
 * Baker React app: mirror these in index.html / theme.jsx for consistency.
 */
:root {
  --paper: #e8dfd3;
  --paper-hot: #f3ebe0;
  --surface: #faf6f0;
  --ink: #1c1410;
  --ink-faint: rgba(28, 20, 16, 0.5);
  --rust: #8b3a2b;
  --gold: #b8926a;
  --gold-bright: #c8a97e;
  --rule: rgba(28, 20, 16, 0.12);
  --line: #d2c4b4;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --serif: Georgia, "Times New Roman", Times, serif;
  --green: #166534;
  --red: #b91c1c;
  --grey: #7d6849;
  --dark: var(--ink);
  --cream: var(--paper);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Film grain ── */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.065;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Proof marks ── */
.marks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  padding: 10px;
}
.marks span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--rule);
  border-style: solid;
}
.marks .tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.marks .tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.marks .bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.marks .br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

/* ── Team sign-in (landing + order — links to /baker/login) ── */
.team-signin-foot {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 60;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.team-signin-foot a {
  color: var(--ink-faint);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.team-signin-foot a:hover,
.team-signin-foot a:focus-visible {
  color: var(--rust);
  border-bottom-color: var(--rust);
  outline: none;
}
.team-signin-foot a:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

/* ── Baker login (public-site/baker-login.html) ── */
body.page-login {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
}

.login-card {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 100%;
  background: var(--surface);
  border: 3px solid var(--ink);
  padding: clamp(1.75rem, 4vw, 2.25rem);
  box-shadow: 10px 10px 0 var(--gold);
}

.login-card h1 {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.login-card .login-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.75rem;
}

.login-card .sub {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.55;
  margin-bottom: 1.35rem;
}

.login-card label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.45rem;
}

.login-card input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
}
.login-card input:focus {
  outline: none;
  border-color: var(--rust);
}

.login-card button[type="button"] {
  margin-top: 1.1rem;
  width: 100%;
  padding: 0.85rem;
  border: none;
  background: var(--ink);
  color: var(--paper-hot);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.login-card button[type="button"]:hover:not(:disabled) {
  background: var(--rust);
}
.login-card button[type="button"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.login-card .err {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--red);
  display: none;
}

.login-card .back {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
}
.login-card .back a {
  color: var(--rust);
  font-weight: 600;
}
