/* ----- Tokens ----- */
:root {
  --paper: #FAF6EE;
  --ink: #1A1714;
  --highlight: #F5C638;
  --accent: #E4574A;
  --moss: #5C8D5E;
  --teal: #4A7C8C;
  --rule: rgba(26, 23, 20, 0.12);
}

/* ----- Resets ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}
a { color: inherit; }

/* ----- Typography ----- */
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; font-weight: 500; }

/* ----- Layout ----- */
main { max-width: 1200px; margin: 0 auto; }

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav .brand {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.nav .brand .ghost { margin-right: 4px; }
.nav .brand { transition: opacity 150ms ease-out; }
.nav .brand:hover { opacity: 0.7; }

/* ----- Footer ----- */
.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  opacity: 0.6;
  font-size: 14px;
}
.footer p { margin: 0; }

/* ----- Google sign-in button ----- */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  border: 1px solid rgba(26, 23, 20, 0.2);
  border-radius: 8px;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.btn-google .g-mark { display: inline-block; }
.btn-google:hover {
  background: #f6f6f4;
  border-color: rgba(26, 23, 20, 0.35);
}

/* ----- Centered card pages — login, empty state ----- */
.login {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
}
.login__title {
  font-size: 2rem;
  margin: 0 0 12px;
}
.login__sub {
  color: rgba(26, 23, 20, 0.7);
  margin: 0 0 24px;
}
.login__back {
  display: block;
  margin-top: 24px;
  color: var(--teal);
  text-decoration: none;
}
.login__back:hover {
  text-decoration: underline;
}

/* ----- Focus ----- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ----- Mobile ----- */
@media (max-width: 820px) {
  .nav { padding: 16px 24px; }
}
