/* RememberIt — shared stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400;1,600&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
  --ink:         #1B1930;
  --ink-muted:   #5C5880;
  --indigo-deep: #252361;
  --indigo:      #4E4BB5;
  --indigo-pale: #ECEAF8;
  --amber:       #C8892A;
  --amber-light: #F5E4C0;
  --ground:      #F7F6F2;
  --surface:     #FFFFFF;
  --border:      #E2E0F0;
  --nav-bg:      #1E1C4A;
  --nav-text:    #CBC8EE;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(37,35,97,.10);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:         #EAE8F8;
    --ink-muted:   #9490BB;
    --indigo-deep: #151335;
    --indigo:      #7B78D8;
    --indigo-pale: #1E1C45;
    --amber:       #D9A040;
    --amber-light: #2E2310;
    --ground:      #120F2E;
    --surface:     #1A1740;
    --border:      #2C2A5A;
    --nav-bg:      #0E0C25;
    --nav-text:    #9490BB;
    --shadow:      0 2px 16px rgba(0,0,0,.40);
  }
}

:root[data-theme="dark"] {
  --ink:         #EAE8F8;
  --ink-muted:   #9490BB;
  --indigo-deep: #151335;
  --indigo:      #7B78D8;
  --indigo-pale: #1E1C45;
  --amber:       #D9A040;
  --amber-light: #2E2310;
  --ground:      #120F2E;
  --surface:     #1A1740;
  --border:      #2C2A5A;
  --nav-bg:      #0E0C25;
  --nav-text:    #9490BB;
  --shadow:      0 2px 16px rgba(0,0,0,.40);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--ink);
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

p { max-width: 62ch; }
p + p { margin-top: .9em; }

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 30px; height: 30px;
  background: var(--indigo);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: .85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--nav-text);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(255,255,255,.08);
}

.nav-cta {
  background: var(--amber) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 7px 16px !important;
}
.nav-cta:hover { background: #a56f1a !important; }

/* ── Page wrapper ── */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.18); text-decoration: none; }
.btn:active { transform: none; }

.btn-primary {
  background: var(--amber);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--indigo-pale); }

/* ── Footer ── */
.site-footer {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 40px 28px;
  margin-top: 80px;
  font-size: .88rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-links a {
  color: var(--nav-text);
  font-size: .88rem;
}
.footer-links a:hover { color: #fff; }

/* ── Utilities ── */
.eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: .4em;
  margin-bottom: 1.1em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* ── Responsive nav ── */
@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }
  .nav-inner { padding: 0 16px; }
  .page-content { padding: 0 16px 60px; }
}
