/*
  Live Oak Labs: shared styles for every page.
  Each page links this file first, then keeps a small <style> block for the
  styles only that page uses. A rule in a page's <style> block wins over the
  same rule here.
*/

/* ---------- Colors and base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0E1512;
  --card: #16211C;
  --border: #2A3A32;
  --text: #E8EFE9;
  --muted: #9AAA9F;
  --accent: #D8C3A0;
  --moss: #8FA876;
  --bark: #8B6A4F;
  --bg2: var(--card);
  --accent2: var(--moss);
}
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.7; }

/* ---------- Menu (filled in by site.js) ---------- */
nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 100; }
.logo { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.logo .logo-text span { color: var(--accent); }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo img { display: block; width: 72px; height: 28px; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
/* The Menu button only shows on phones and tablets (see "Menu on phones and tablets" below). */
.nav-toggle { display: none; }
/* With JavaScript turned off, the fallback links sit in the menu bar like normal menu items. */
.site-nav noscript { display: contents; }
/* With JavaScript turned off, phones show the fallback links wrapped under the logo, with 44px-tall tap areas. */
@media (max-width: 600px) { .site-nav:not(.is-ready) { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1rem; } .site-nav:not(.is-ready) .nav-links { gap: 0; padding: 0; margin: -10px 0 -10px -0.5rem; } .site-nav:not(.is-ready) .nav-links li { margin: 0; } .site-nav:not(.is-ready) .nav-links a { display: flex; align-items: center; min-height: 44px; padding: 10px 0.5rem; } }

/* ---------- Menu on phones and tablets ---------- */
/* The logo and a Menu button share one row. The button opens the links in a panel just under the menu bar.
   The panel floats over the page, so opening it never changes the menu bar's height or moves the page. */
@media (max-width: 900px) {
  .site-nav.is-ready { padding: 0.5rem 1rem; gap: 0.75rem; }
  .site-nav.is-ready .logo-text { white-space: nowrap; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.85rem; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1; cursor: pointer; flex-shrink: 0; }
  .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { border-color: var(--muted); }
  .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav-toggle svg { display: block; flex-shrink: 0; }
  .site-nav.is-ready .nav-links { position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0.5rem 0; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    max-height: calc(100vh - 100% - 1px); max-height: calc(100dvh - 100% - 1px); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-0.5rem); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s; }
  .site-nav.is-open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity 0.18s ease, transform 0.18s ease; }
  .site-nav.is-ready .nav-links a { display: flex; align-items: center; min-height: 44px; padding: 0 1rem; font-size: 1rem; }
  .site-nav.is-ready .nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  /* The current page: brighter words and a sand bar on the left. */
  .site-nav.is-ready .nav-links a.active { box-shadow: inset 3px 0 0 var(--accent); }
}
/* The narrowest phones: the button drops its icon so the logo and "Menu" still fit on one row. */
@media (max-width: 360px) { .site-nav.is-ready { gap: 0.5rem; } .nav-toggle { padding: 0 0.75rem; } .nav-toggle svg { display: none; } }
/* Reduced motion: the panel just appears and disappears, with no slide or fade. */
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .site-nav.is-ready .nav-links, .site-nav.is-open .nav-links { transform: none; transition: none; }
}

/* ---------- Page layout and headings ---------- */
.container { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.subtitle { color: var(--muted); font-size: 1.1rem; margin-bottom: 3rem; }
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; margin-bottom: 2rem; }
.app-icon { display: block; width: 80px; height: 80px; border-radius: 18px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.cta-btn { display: inline-block; background: var(--accent); color: #0E1512; font-weight: 600; padding: 0.65rem 1.25rem; border-radius: 8px; text-decoration: none; font-size: 0.9rem; }
.cta-btn:hover { background: #E6D5B8; text-decoration: none; }
.secondary-btn { display: inline-block; color: var(--accent); font-weight: 600; padding: 0.65rem 1.25rem; border-radius: 8px; text-decoration: none; font-size: 0.9rem; border: 1px solid var(--accent); }
.secondary-btn:hover { background: rgba(216, 195, 160, 0.15); text-decoration: none; }
.coming-soon { display: inline-block; background: var(--border); color: var(--muted); font-weight: 600; padding: 0.65rem 1.25rem; border-radius: 8px; font-size: 0.9rem; }

/* ---------- Phones ---------- */
@media (max-width: 600px) { .container { padding: 2.5rem 1rem; } h1 { font-size: 2rem; line-height: 1.2; } .card { padding: 1.5rem; } }

/* ---------- Footer (filled in by site.js) ---------- */
footer { border-top: 1px solid var(--border); padding: 2rem; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ---------- Links ---------- */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Space kept for the menu and footer until site.js fills them ---------- */
/* These are the smallest heights the menu and footer ever have, so they never change the finished page. */
.site-nav:not(.is-ready) { min-height: 62px; }
@media (max-width: 900px) { .site-nav:not(.is-ready) { min-height: 61px; } }
.site-footer:not(.is-ready) { min-height: 88px; }
