/* ============================================================
   DILEDGER — SITE STYLES (v3, 2026.09.21)
   Structure and restraint carried from the Foundation 1 landing
   page; color and type from the DiLedger wordmark.
   ============================================================ */

/* Poppins: geometric sans, single-story g, the closest web match
   to the wordmark's lettering. Swap for the licensed face once the
   wordmark typeface is confirmed. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');

/* ---- Color ---- */
:root {
  --navy:       #003153;   /* wordmark primary: "Ledger" */
  --slate:      #536878;   /* wordmark secondary: "Di" */
  --ink:        #1A2530;   /* body text */
  --paper:      #ffffff;   /* white ground; the wordmark's own background */
  --rule:       #d8dde2;   /* hairline */

  --text-body:  var(--ink);
  --text-muted: var(--slate);
  --line:       var(--rule);
}

/* ---- Type ---- */
:root {
  --font-text:  'Poppins', 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  --lh-body:    1.55;
  --track-foot: 0.20em;
}

/* ---- Geometry and motion: square corners, hairlines, quiet ---- */
:root {
  --rule-hair:  0.5px;
  --rule-thin:  1px;
  --radius:     0;
  --ease:       cubic-bezier(0.2, 0, 0, 1);
  --dur-quiet:  140ms;
}


/* ===================== PAGE ===================== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: var(--lh-body);
}

.page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Full-height column: header at top, statement centered, footer at base */
.site-main {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

img { display: block; height: auto; }

/* ---------- Header ---------- */
.site-header { border-bottom: var(--rule-thin) solid var(--navy); }
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px 18px;
}
.site-header .brand img { width: 128px; }

/* ---------- Login: hairline box, upper-right ---------- */
.site-header .login {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  border: var(--rule-thin) solid var(--navy);
  padding: 9px 16px;
  line-height: 1;
  transition: background-color var(--dur-quiet) var(--ease),
              color var(--dur-quiet) var(--ease);
}
.site-header .login:hover {
  background: var(--navy);
  color: var(--paper);
}

/* ---------- Hero: centered wordmark, statement, email ---------- */
.hero {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 0;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}
.hero .hero-mark img { width: 380px; max-width: 100%; }
.hero .statement {
  font-size: 30px;
  font-weight: 300;
  line-height: 1.35;
  max-width: 24em;
  text-wrap: pretty;
  margin: 0;
  color: var(--navy);
}
.hero .hero-email {
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: var(--rule-thin) solid var(--line);
  padding-bottom: 2px;
  transition: border-color var(--dur-quiet) var(--ease);
}
.hero .hero-email:hover { border-bottom-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { border-top: var(--rule-hair) solid var(--line); }
.site-footer .legal {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 16px 0 26px;
  font-size: 11px;
  letter-spacing: var(--track-foot);
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ---------- Login page: one hairline card, centered ---------- */
.auth {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 0;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  border: var(--rule-thin) solid var(--navy);
  padding: 40px 40px 36px;
}
.auth-card h1 {
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 28px;
}
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.field input {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: var(--rule-thin) solid var(--rule);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
  transition: border-color var(--dur-quiet) var(--ease);
}
.field input:focus { outline: none; border-color: var(--navy); }
.auth-error {
  min-height: 1.4em;
  margin: 0 0 16px;
  font-size: 13px;
  color: #963447;
}
.auth-error[hidden] { display: block; visibility: hidden; }
.button {
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--navy);
  border: var(--rule-thin) solid var(--navy);
  padding: 12px 20px;
  width: 100%;
  cursor: pointer;
  transition: background-color var(--dur-quiet) var(--ease), color var(--dur-quiet) var(--ease);
}
.button:hover { background: var(--paper); color: var(--navy); }
.auth-help { margin: 22px 0 0; font-size: 13px; color: var(--slate); }
.auth-help a { color: var(--navy); text-decoration: none; border-bottom: var(--rule-thin) solid var(--line); }
.auth-help a:hover { border-bottom-color: var(--navy); }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .page { padding: 0 24px; }
  .site-header .bar { padding: 18px 24px 16px; }
  .site-header .brand img { width: 108px; }
  .hero { padding: 64px 0; }
  .hero .hero-mark img { width: 260px; }
  .hero .statement { font-size: 20px; }
  .hero .hero-email { font-size: 16px; }
  .site-footer .legal { flex-wrap: wrap; gap: 8px 12px; }
  .auth { padding: 40px 0; }
  .auth-card { padding: 28px 22px 24px; border-left: 0; border-right: 0; }
}
