:root {
  --black: #111110;
  --off-white: #f5f4f0;
  --mid-gray: #8a8880;
  --light-gray: #e8e6e0;
  --border: #d4d2cc;
  --error: #a83434;
  --error-bg: #fbeaea;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', 'Arial', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { opacity: 0.7; }

/* NAV */
nav.site-nav {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: normal;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--black);
}
.nav-pill {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.nav-spacer { flex: 1; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--mid-gray);
  text-decoration: none;
}
.nav-links a:hover { color: var(--black); opacity: 1; }

/* MAIN */
main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 2rem;
}

/* CARDS */
.card {
  width: 100%;
  max-width: 520px;
}
.card-tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 1.25rem;
}
.card h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.card p {
  font-size: 15px;
  color: #3a3a38;
  margin-bottom: 1rem;
}
.card .lead {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 15px;
  padding: 0.65rem 1.25rem;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-solid {
  border-color: var(--black);
  color: var(--off-white);
  background: var(--black);
  font-weight: 500;
}
.btn-solid:hover:not(:disabled) {
  opacity: 0.85;
}
.btn-outline {
  border-color: var(--border);
  color: var(--black);
  background: transparent;
}
.btn-outline:hover:not(:disabled) {
  background: var(--light-gray);
}
.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--mid-gray);
  font-size: 14px;
  padding: 0.5rem 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: auto;
}
.btn-quiet:hover:not(:disabled) {
  color: var(--black);
  opacity: 1;
}

/* INPUTS */
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 13px;
  color: var(--mid-gray);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.field input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: white;
  color: var(--black);
}
.field input:focus {
  outline: none;
  border-color: var(--black);
}

/* DIVIDERS */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--mid-gray);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* MESSAGES */
.error {
  background: var(--error-bg);
  border-left: 3px solid var(--error);
  color: var(--error);
  padding: 0.75rem 1rem;
  font-size: 14px;
  margin-bottom: 1rem;
  border-radius: 0 3px 3px 0;
}
.notice {
  background: var(--light-gray);
  border-left: 3px solid var(--mid-gray);
  color: #3a3a38;
  padding: 0.75rem 1rem;
  font-size: 14px;
  margin-bottom: 1rem;
  border-radius: 0 3px 3px 0;
}
.helper {
  font-size: 13px;
  color: var(--mid-gray);
  margin-top: 0.4rem;
  margin-bottom: 1.25rem;
}

/* DISCLAIMER BANNER (chat) */
.disclaimer-banner {
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
  font-size: 13px;
  color: #3a3a38;
  line-height: 1.55;
  text-align: center;
}

/* FOOTER */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  background: var(--off-white);
  flex-shrink: 0;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 15px;
  text-decoration: none;
  color: var(--black);
}
.footer-copy {
  font-size: 12px;
  color: var(--mid-gray);
  line-height: 1.6;
  flex: 1;
  min-width: 280px;
}

/* INDETERMINATE LOADING BAR — single-segment sweep, brand-styled */
.loading-bar {
  position: relative;
  width: 100%;
  max-width: 200px;
  height: 2px;
  margin: 0.6rem auto 0;
  background: var(--light-gray);
  overflow: hidden;
  border-radius: 2px;
}
.loading-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%;
  background: var(--black);
  border-radius: 2px;
  animation: loading-bar-sweep 1.4s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes loading-bar-sweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@media (prefers-reduced-motion: reduce) {
  .loading-bar::after {
    animation: none;
    width: 100%;
    opacity: 0.4;
  }
}

/* UTILITY */
.hidden { display: none !important; }
