/* ============================================================
   Salita — shared base styles
   Used by: index.html, privacy/index.html, changelog/index.html
   ============================================================ */

/* The palette is the app's own Paper theme (cream page, white tile, near-black
   ink), so the site and the product are the same object. Text pairs, against
   both --bg and --surface: ink 14.9 / 16.6, muted 5.5 / 6.2. Against --bg-alt
   muted is 5.0. The lines and tile border are decoration, not text.

   One corner radius, 10px, on every card, button and image frame: no pills and
   no circles. There is no dark scheme, as on the sibling sites. */
:root {
  --bg: #EEF0E6;
  --bg-alt: #E4E7D9;
  --surface: #FFFFFF;
  --text: #1E2320;
  --text-muted: #5A625C;
  --border: #C9CDBF;
  --tile-border: #B4B9AA;
  --accent: #1E2320;
  --accent-contrast: #FFFFFF;

  --radius: 10px;

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ NAV ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ============ EYEBROW ============ */

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  text-decoration: underline;
}

/* Coming-soon label in the nav: no link, the app is not on Play yet. */
.nav-cta {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--tile-border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
}

/* ============ BURGER / MOBILE DRAWER ============ */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.nav-drawer {
  display: none;
  flex-direction: column;
  padding: 8px 20px 16px;
  border-top: 1px solid var(--border);
}

.nav-drawer a {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 8px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.nav-drawer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.nav-drawer .nav-cta {
  margin: 14px 0 0;
  text-align: center;
  padding: 12px 16px;
  font-size: 15px;
}

.nav.open .nav-drawer {
  display: flex;
}

.nav.open .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.open .nav-burger span:nth-child(2) {
  opacity: 0;
}

.nav.open .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }
}

/* ============ LAYOUT ============ */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ FOOTER ============ */

footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

/* Tall enough to tap: the text alone is 22px. */
.footer-links a {
  display: inline-block;
  color: var(--text-muted);
  padding: 11px 0;
}

.footer-links a:hover {
  color: var(--text);
}
