/* ============================================================
   Burd & Co. - Site Access Gate
   Standalone splash styles. Self-contained (does not depend on
   style.css) and uses no inline styles, to satisfy the site CSP.
   ============================================================ */

:root {
  --bg:          #0d0d0d;
  --bg-alt:      #111111;
  --text:        #f0eeeb;
  --text-muted:  rgba(240, 238, 235, 0.70);
  --border:      rgba(240, 238, 235, 0.12);
  --field-bg:    rgba(240, 238, 235, 0.04);
  --accent:      #e3120b;
  --accent-hover:#ff2929;
  --accent-dim:  rgba(227, 18, 11, 0.14);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:         #f5f3f0;
    --bg-alt:     #edeae7;
    --text:       #111111;
    --text-muted: rgba(17, 17, 17, 0.60);
    --border:     rgba(0, 0, 0, 0.12);
    --field-bg:   rgba(0, 0, 0, 0.03);
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gate {
  width: 100%;
  max-width: 30rem;
}

/* ── Logo (swaps with theme, mirroring the directory) ── */
.gate-logo {
  display: block;
  height: 2.1rem;
  width: auto;
  margin-bottom: 2.75rem;
}
.gate-logo--light { display: none; }
@media (prefers-color-scheme: light) {
  .gate-logo--dark  { display: none; }
  .gate-logo--light { display: block; }
}

/* ── Copy ── */
.gate-eyebrow {
  margin: 0 0 1rem;
  font-family: "DM Mono", monospace;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gate-title {
  margin: 0 0 1.1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.95rem, 5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.gate-note {
  margin: 0 0 2.25rem;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Form ── */
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gate-field-label {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gate-row {
  display: flex;
  gap: 0.5rem;
}

.gate-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.gate-input::placeholder { color: var(--text-muted); }
.gate-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.gate-submit {
  flex: 0 0 auto;
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  color: #f0eeeb;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.gate-submit:hover { background: var(--accent-hover); }
.gate-submit:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.gate-error {
  margin: 0.35rem 0 0;
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--accent-hover);
}
@media (prefers-color-scheme: light) {
  .gate-error { color: var(--accent); }
}

/* ── Footer line ── */
.gate-foot {
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.gate-foot a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.15s ease;
}
.gate-foot a:hover { color: var(--accent-hover); }

/* ── Narrow screens: stack the field and button ── */
@media (max-width: 28rem) {
  body { padding: 1.5rem; }
  .gate-row { flex-direction: column; }
  .gate-submit { width: 100%; }
}

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