/* MiseTable — shared design system */

:root {
  --bg:            #f7f3ee;
  --bg-elev:       #ffffff;
  --bg-sunk:       #efe9e1;
  --text:          #1c1c1e;
  --text-soft:     #55504b;
  --text-mute:     #8a827a;
  --line:          #e3dbd1;
  --accent:        #e2542a;
  --accent-soft:   #fbeae3;
  --accent-text:   #b53f1c;
  --green:         #1f8a4c;
  --green-soft:    #e4f3ea;
  --shadow-sm:     0 1px 2px rgba(40, 26, 16, .05), 0 4px 14px rgba(40, 26, 16, .05);
  --shadow-lg:     0 2px 6px rgba(40, 26, 16, .06), 0 24px 60px rgba(40, 26, 16, .12);
  --radius-lg:     24px;
  --radius-md:     16px;
  --radius-sm:     12px;
  --maxw:          1080px;
  --maxw-prose:    680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #14110f;
    --bg-elev:     #1e1a17;
    --bg-sunk:     #0e0c0a;
    --text:        #f5f1ec;
    --text-soft:   #bcb3a9;
    --text-mute:   #8b8279;
    --line:        #2e2823;
    --accent:      #ff7648;
    --accent-soft: #38201a;
    --accent-text: #ff9670;
    --green:       #4fce85;
    --green-soft:  #16291e;
    --shadow-sm:   0 1px 2px rgba(0,0,0,.4);
    --shadow-lg:   0 2px 6px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.5);
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.wordmark .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .9rem;
}
.site-header nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--text); }
@media (max-width: 560px) {
  .site-header nav { gap: 16px; font-size: .85rem; }
  .site-header nav .hide-sm { display: none; }
}

/* ---------- shared bits ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--maxw-prose); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 46ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 14px 26px;
  text-decoration: none;
  font-weight: 650;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-secondary {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--line);
}

footer.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 36px 24px 48px;
  text-align: center;
  color: var(--text-mute);
  font-size: .82rem;
}
footer.site-footer nav {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
footer.site-footer nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
}
footer.site-footer nav a:hover { text-decoration: underline; }
