/* ============================================================
   Yose — design tokens & shared primitives
   Used by: index.html, login.html, dashboard.html
   ============================================================ */

:root {
  /* Palette */
  --ink: #1A1814;
  --ink-soft: #2B2823;
  --parchment: #F8F6F1;
  --parchment-2: #EFEBE2;
  --rule: rgba(26, 24, 20, 0.12);
  --rule-strong: rgba(26, 24, 20, 0.24);
  --muted: rgba(26, 24, 20, 0.55);

  --forest: #1B4332;
  --forest-2: #2D6A4F;
  --mint: #52B788;
  --sage: #95D5B2;
  --pale: #D8F3DC;
  --charcoal: #0E0E0D;
  --error: #B23A3A;

  /* Type scale */
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Jost', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Container */
  --max-w: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1, h2, h3, p, li, a, span { overflow-wrap: break-word; word-wrap: break-word; }
img, svg, video, iframe { max-width: 100%; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ===== Typography primitives ===== */

.eyebrow {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.italic { font-style: italic; }

h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -0.01em; line-height: 1.08; }

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }

p { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }

/* ===== Container ===== */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: var(--parchment);
}
.btn-primary:hover { background: var(--charcoal); }

.btn-mint {
  background: var(--mint);
  color: var(--forest);
}
.btn-mint:hover { background: var(--sage); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--parchment); border-color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(248, 246, 241, 0.35);
}
.btn-ghost-light:hover { background: var(--parchment); color: var(--ink); border-color: var(--parchment); }

.btn-block { width: 100%; }

/* ===== Logo ===== */

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
}
.logo span { display: none; }

/* ===== Nav (used by all pages) ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 241, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link-login {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease);
}
.nav-link-login:hover { color: var(--ink); }

.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}
.hamburger svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .nav-links, .nav-link-login { display: none; }
  .hamburger { display: inline-flex; }
  .nav-cta .btn { padding: 0.7rem 1.1rem; font-size: 0.7rem; }
}

@media (max-width: 560px) {
  .nav-inner { gap: 0.6rem; padding: 0.9rem var(--gutter); }
  .nav-cta { gap: 0.5rem; }
  .nav-cta .btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
  .logo img { height: 30px; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--rule);
  background: var(--parchment);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}

/* ===== Footer ===== */

.footer {
  background: var(--ink);
  color: var(--parchment);
  padding: var(--space-16) 0 var(--space-6);
  margin-top: var(--space-24);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(248, 246, 241, 0.1);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.footer h4 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 246, 241, 0.55);
  margin-bottom: 1.25rem;
}

.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer ul a {
  color: rgba(248, 246, 241, 0.85);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.footer ul a:hover { color: var(--mint); }

.footer-tagline {
  margin-top: 1rem;
  color: rgba(248, 246, 241, 0.6);
  font-size: 0.95rem;
  max-width: 28ch;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 246, 241, 0.45);
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}

/* ===== Motion =====
   `.reveal` is a no-op marker on the markup — content is always visible. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
