/* =====================================================================
   GREYFOX PROPERTIES — shared styles
   Same editorial system as Superscapes, re-skinned to charcoal/grey.
   Display: Fraunces (close to the logo's serif). Labels/body: Questrial
   (the logo's "PROPERTIES" face). One accent: --accent (proposed copper).
   ===================================================================== */

:root {
  --charcoal:        #1d1f21;
  --charcoal-dark:   #141517;
  --charcoal-deep:   #0c0d0e;
  --fox:             #606060;
  --accent:          #b4683c;
  --accent-deep:     #96542e;

  --bg:              #f6f5f2;
  --panel:           #ffffff;
  --ink:             #1b1c1d;
  --muted:           #64676a;
  --line:            rgba(27, 28, 29, 0.10);
  --line-strong:     rgba(27, 28, 29, 0.16);
  --on-dark:         #f2f1ee;
  --on-dark-soft:    rgba(242, 241, 238, 0.68);
  --line-on-dark:    rgba(242, 241, 238, 0.14);

  --hero-gradient: linear-gradient(165deg, #2a2c2f 0%, #1a1b1d 58%, #0c0d0e 100%);
  --shadow-sm: 0 2px 10px rgba(20, 21, 23, 0.06);
  --shadow-md: 0 20px 44px -16px rgba(20, 21, 23, 0.22);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Questrial', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121314;
    --panel: #1a1b1d;
    --ink: #eeedea;
    --muted: #9c9fa2;
    --line: rgba(238, 237, 234, 0.10);
    --line-strong: rgba(238, 237, 234, 0.18);
    --accent: #d38a5c;
    --accent-deep: #a85f35;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 20px 44px -16px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 32px; } }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 15px var(--font-body);
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .4s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover, .btn-accent:active { background: var(--accent-deep); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-ghost { border-color: var(--line-on-dark); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark-soft); }

/* --- Top bar (private pages) --- */
.topbar { border-bottom: 1px solid var(--line); background: var(--panel); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.topbar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.topbar .brand img { height: 26px; width: auto; }
.topbar .brand .wm-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .topbar .brand .wm-light { display: none; }
  .topbar .brand .wm-dark { display: block; }
}
.topbar nav { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover, .topbar nav a.on { color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 28px 0 40px;
}
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }

/* --- Deals login gate --- */
body.checking > *:not(#gate) , body.locked > *:not(#gate) { display: none !important; }
body.checking::after {
  content: ""; position: fixed; inset: 0; background: var(--hero-gradient);
}
#gate {
  min-height: 100svh;
  background: var(--hero-gradient);
  color: var(--on-dark);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.gate-card { width: 100%; max-width: 360px; text-align: center; }
.gate-card img { width: 170px; height: auto; margin: 0 auto; }
.gate-card h1 { font-family: var(--font-display); font-weight: 400; font-size: 32px; margin-top: 28px; }
.gate-sub { color: var(--on-dark-soft); margin-top: 4px; }
#gateForm { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; text-align: left; }
#gateForm label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--on-dark-soft); }
#gateForm input {
  font: 16px var(--font-body); color: var(--on-dark);
  background: rgba(242, 241, 238, 0.06);
  border: 1px solid var(--line-on-dark); border-radius: 10px;
  padding: 12px 14px;
}
#gateForm input:focus { outline: none; border-color: var(--accent); }
#gateForm .btn { justify-content: center; margin-top: 6px; cursor: pointer; }
#gateForm .btn:disabled { opacity: .7; cursor: default; }
.gate-msg { min-height: 1.4em; font-size: 14px; color: #f0a37a; text-align: center; }
.gate-link {
  background: none; border: 0; font: 13px var(--font-body); color: var(--on-dark-soft);
  cursor: pointer; text-decoration: underline; align-self: center;
}

/* --- Signed-in user chip in the top bar --- */
.who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.who button {
  font: 13px var(--font-body); color: var(--ink); background: transparent;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 6px 12px; cursor: pointer;
}
.who button:hover { border-color: var(--accent); }
@media (max-width: 560px) { .who [data-user-email] { display: none; } }
