/*
Theme Name: Raise Health
Description: Minimal single-brand theme for Raise Health.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: raisehealth
*/

:root {
  --ink: #001c71;
  --font: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
}

a { color: inherit; }

/* Menu */
.menu {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
}

.menu-toggle {
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ink);
}

.menu-list {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin: 8px 0 0;
  padding: 12px 24px;
  list-style: none;
  background: #fff;
  font-size: 0.85rem;
  min-width: 120px;
  box-shadow: 0 2px 12px rgba(0, 28, 113, 0.12);
}

.menu.open .menu-list { display: block; }

.menu-list a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
}

.menu-list a:hover,
.menu-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.menu-toggle:focus-visible,
.menu-list a:focus-visible,
.brand:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Gentle entrance */
.about { animation: fade-in 0.9s ease-out both; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero > *, .about { animation: none; }
}

/* Home */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.hero h1 {
  margin: 0;
  padding-left: 0.12em; /* offsets trailing letter-spacing so text stays centered */
  font-family: var(--serif);
  font-size: clamp(2.2rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.05;
}

.hero-rule {
  display: block;
  width: 72px;
  height: 1px;
  margin: 32px 0;
  background: var(--ink);
  opacity: 0.4;
}

.hero p {
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.7rem);
  letter-spacing: 0.06em;
}

.hero > * { animation: fade-in 0.9s ease-out both; }
.hero > :nth-child(2) { animation-delay: 0.15s; }
.hero > :nth-child(3) { animation-delay: 0.3s; }

/* About */
.about {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 24px 24px;
  text-align: center;
  line-height: 1.75;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 40px;
  text-decoration: none;
}

.wordmark {
  padding-left: 0.12em; /* offsets trailing letter-spacing so text stays centered */
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.05;
}

.brand::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 32px;
  background: var(--ink);
  opacity: 0.4;
}

.about p { margin: 0 0 1.6em; }

/* Footer */
.footer {
  text-align: center;
  color: #000;
  opacity: 0.35;
  font-size: 0.85rem;
  padding: 24px;
  margin: 0;
}

@media (min-width: 1200px) {
  body { font-size: 1rem; }
  .about { padding-top: 96px; }
}
