/* My Health Leaf: generic landing. System fonts only. No remote files, no script. */

:root {
  --ivory: #f3efe6;
  --paper: #fbf8f3;
  --ink: #1c2823;
  --muted: #3e5149;
  --forest: #16382f;
  --teal: #1a655c;
  --sage: #e5f2eb;
  --gold-line: #c6a36a;
  --line: rgba(22, 56, 47, 0.12);
  --serif: "Palatino Linotype", Palatino, Cambria, Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  color-scheme: light;
  background: var(--ivory);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f7f3ea 0%, var(--ivory) 46%, #e6f1eb 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--forest);
  line-height: 1.14;
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

p {
  margin: 0 0 0.75rem;
  overflow-wrap: break-word;
}

a {
  color: var(--teal);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.wrap {
  width: min(1040px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header and footer */

.site-header {
  background: rgba(247, 243, 234, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -2px 0 var(--gold-line);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--forest);
  line-height: 1.1;
}

.emblem {
  width: auto;
  height: 44px;
  flex: 0 0 auto;
}

.nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
}

.nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 101, 92, 0.45);
}

.nav a:hover,
.footer-nav a:hover {
  color: var(--teal);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--forest);
  font-weight: 600;
}

.site-footer {
  flex-shrink: 0;
  background: var(--forest);
  color: #e4ede8;
  padding: 1.1rem 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
}

.site-footer .fine {
  margin: 0;
  color: #e4ede8;
}

.site-footer a {
  color: #f3e2c2;
  border-bottom-color: rgba(243, 226, 194, 0.5);
}

.fine {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .operator-line {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: #b9cbc2;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-variant: small-caps;
  color: var(--teal);
}

/* Landing */

.hero {
  padding: 3.2rem 0 3.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
}

.contact-line {
  margin-top: 1.1rem;
  font-size: 1.05rem;
}

.contact-line a {
  font-weight: 600;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.emblem-lg {
  width: auto;
  height: clamp(150px, 22vw, 230px);
}

.values {
  padding: 2.6rem 0 2.8rem;
  background: rgba(231, 242, 236, 0.88);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

.card {
  padding: 1.15rem 1.2rem 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(22, 56, 47, 0.06);
}

.cta {
  padding: 2.8rem 0 3rem;
}

.cta-copy p {
  font-size: 1.1rem;
}

/* Privacy page */

.legal {
  padding: 2.4rem 0 3rem;
}

.legal-doc {
  max-width: 42rem;
}

.legal-doc h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal-doc h2 {
  margin-top: 1.7rem;
  font-size: 1.3rem;
}

.entity-line {
  font-weight: 700;
  color: var(--forest);
}

@media (max-width: 700px) {
  .hero {
    padding: 2rem 0 2.2rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .hero-art {
    justify-content: flex-start;
    order: -1;
  }

  .emblem-lg {
    height: 120px;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
