/* =========================================
   AThetaLife • base.css
   Purpose: site-wide resets, defaults, shared header/footer, and shared components
   ========================================= */

/* -------- Reset / Normalization -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Smooth scrolling (respect reduced motion) */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* -------- Global Defaults -------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Bookman, serif;
  line-height: var(--lh-base, 1.55);
}

/* Images */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 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 -------- */
::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
   Authoritative shared header for 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: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

/* Header navigation alignment + spacing */
header nav {
  display: flex;
  justify-content: flex-end;   /* pushes nav to right */
  align-items: center;
  gap: var(--space-4);         /* clean spacing between links */
}

header nav a {
  font-family: Arial, Helvetica, sans-serif;
}

/* Optional: tighten or loosen spacing */
header nav a {
  text-decoration: none;
  font-weight: 500;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 180px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.site-logo-img {
  width: auto;
  height: 44px;
}

.theta-mark {
  font-size: 1.25rem;
  line-height: 1;
  color: #3f2a1d;
}

.site-title {
  font-family: Georgia, "Times New Roman", Bookman, serif;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.02;
  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.55rem 0.85rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #3f2a1d;
  text-decoration: none;
  margin-left: 0.4rem;
  margin-right: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
}

.site-nav a:hover,
.site-nav a:focus {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-nav .btn-nav-primary {
  margin-left: 0.2rem;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--btn-primary-bg);
  color: #fff;
}

.site-nav .btn-nav-primary:hover,
.site-nav .btn-nav-primary:focus {
  color: #fff;
}

/* =========================================
   AThetaLife • Shared Site Footer
   Authoritative shared footer for static pages
   ========================================= */
.site-footer {
  background: linear-gradient(0deg, #d8c7ad 0%, #ccb89a 100%);
  border: 1px solid #5a3d2a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin-top: auto;
  width: 100%;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  box-sizing: border-box;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-title {
  font-family: Georgia, "Times New Roman", Bookman, serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.05;
  color: #3f2a1d;
}

.footer-tagline {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.2;
  color: #5f4737;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.footer-nav a {
  color: #3f2a1d;
  text-decoration: none;
  font-weight: 600;
  font-size: 16pt;
  line-height: 1.1;
}

.footer-nav a:hover,
.footer-nav a:focus {
  text-decoration: underline;
}

.footer-meta {
  font-size: 0.84rem;
  line-height: 1.2;
  color: #5f4737;
}

@media (max-width: 720px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 1.5rem;
  }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-logo-img {
  width: auto;
  height: 28px;
}

.footer-title {
  font-family: Georgia, "Times New Roman", Bookman, serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.05;
  color: #3f2a1d;
}

.footer-tagline {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.2;
  color: #5f4737;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #3f2a1d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.1;
}

.footer-nav a:hover,
.footer-nav a:focus {
  text-decoration: underline;
}

.footer-meta {
  font-size: 0.84rem;
  line-height: 1.2;
  color: #5f4737;
}

/* -------- Shared responsive behavior -------- */
@media (max-width: 780px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 1rem;
  }

  .site-branding {
    min-width: 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
  }

  .footer-nav {
    order: 2;
  }

  .footer-meta {
    order: 3;
  }
}

/* =========================================
   Components (site-wide)
   ========================================= */
.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow, 0 6px 24px rgba(0,0,0,.08));
  border-radius: var(--radius-3, 14px);
}