/* =========================================
   AThetalife • base.css
   Purpose: site-wide resets and base styles
   ========================================= */

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

/* Smooth scrolling (respect reduced motion) */
:where(html) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  :where(html) { scroll-behavior: auto; }
}

/* -------- Global Defaults -------- */
:where(body) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Global page background + text color */
body {
  margin: 0;
  background: var(--bg);              /* -> --color-bg */
  color: var(--ink);                  /* -> --color-ink */
  font-family: var(--font-sans);
  line-height: var(--lh-base, 1.55);
}

/* Images */
img { max-width: 100%; height: auto; display: block; }

/* Containers */
.container {
  width: min(100% - 2rem, var(--maxw, 1120px));
  margin-inline: auto;
  padding-inline: var(--container-pad, 1rem);
}

/* -------- Type -------- */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight, 1.2);
  font-weight: 600;
  color: var(--ink);
}

p {
  margin-bottom: var(--space-4, 1.5rem);
  color: var(--muted);
}

/* -------- Links -------- */
a {
  color: var(--accent, #2f8e8c);
  text-decoration: none;
  transition: color var(--dur-2, .18s) var(--ease-std, cubic-bezier(.2,.65,.3,1));
}
a:hover { color: var(--brand, #4b3f72); }

/* -------- Buttons (baseline) -------- */
button {
  font-family: inherit;
  font-size: inherit;
  padding: var(--space-2, .5rem) var(--space-3, .75rem);
  border: none;
  border-radius: var(--radius-2, 10px);
  cursor: pointer;
  transition: background var(--dur-2, .18s) var(--ease-std, cubic-bezier(.2,.65,.3,1));
}

/* -------- Focus styles -------- */
:where(a, button, input, select, textarea):focus { outline: none; }
:where(a, button, input, select, textarea):focus-visible {
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(75,63,114,.35));
  border-radius: var(--radius-2, 10px);
}

/* Text selection (with fallback if color-mix unsupported) */
::selection { color: var(--ink); }
@supports (background: color-mix(in oklab, white, black)) {
  ::selection { background: color-mix(in oklab, var(--brand), white 70%); }
}
@supports not (background: color-mix(in oklab, white, black)) {
  ::selection { background: rgba(75,63,114,.25); }
}

/* =========================================
   AThetaLife • Shared Site Header
   Use on both WordPress and static pages
   ========================================= */

.site-header {
  background: linear-gradient(180deg, #d8c7ad 0%, #ccb89a 100%);
  border: 1px solid #5a3d2a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 100;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 220px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.theta-mark {
  font-size: 1.4rem;
  line-height: 1;
  color: #3f2a1d;
}

.site-title {
  font-family: Georgia, "Times New Roman", Bookman, serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: #3f2a1d;
  letter-spacing: 0.01em;
}

.site-logo:hover .site-title,
.site-logo:focus .site-title {
  color: #2f1f15;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #3f2a1d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a:hover,
.site-nav a:focus {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-nav .btn-nav-primary {
  margin-left: 0.25rem;
  white-space: nowrap;
}

@media (max-width: 780px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }
}

/* =========================================
   AThetaLife • Shared Site Footer
   ========================================= */
.site-footer {
  background: #d8c7ad;
  border-top: 1px solid #5a3d2a;
  margin-top: 4rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-logo {
  font-size: 1.3rem;
  color: #3f2a1d;
}

.footer-title {
  font-family: Georgia, "Times New Roman", Bookman, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #3f2a1d;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #5f4737;
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  text-decoration: none;
  color: #3f2a1d;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-meta {
  font-size: 0.9rem;
  color: #5f4737;
}

/* Mobile layout */

@media (max-width: 720px) {

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    order: 2;
  }

  .footer-meta {
    order: 3;
  }

}

/* =========================================
   Components (site-wide)
   ========================================= */

/* Cards & panels used across pages */
.card,
.panel {
  background: var(--surface);     /* -> --color-surface */
  border: 1px solid var(--border);/* -> --color-border */
  box-shadow: var(--shadow, 0 6px 24px rgba(0,0,0,.08));
  border-radius: var(--radius-3, 14px);
}
