/* Base */
:root{
  --bg:#ffffff;
  --text:#222222;
  --muted:#6b7280;
  --teal:#2EC4C9;           /* accent (teal glow) */
  --teal-ink:#10979B;       /* darker tone for focus/visited */
  --card:#f7f7f8;
  --border:#e6e7ea;
  --radius:14px;
  --maxw:1040px;
}

*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

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

.container{
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  padding: clamp(16px, 2vw, 24px);
}

/* Header & Nav */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,0.9);
  backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px clamp(16px, 2vw, 24px);
}

.site-header img {
  max-height: 48px;   /* scale logo taller for desktop */
  width: auto;        /* avoid compression */
  margin-right: 12px; /* breathing room before text */
}

.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.brand-text{ font-weight:700; letter-spacing:.2px; }

.site-nav{ display:flex; align-items:center; gap:14px; }
.site-nav a{
  text-decoration:none;
  color:var(--text);
  padding:8px 10px;
  border-radius:10px;
}
.site-nav a[aria-current="page"]{ font-weight:600; }
.site-nav a:hover{ background:var(--card); }

/* Sections */
.section{ padding-block: clamp(36px, 8vw, 84px); }

.hero h1{
  font-size: clamp(28px, 4.2vw, 44px);
  line-height:1.15;
  margin:0 0 12px 0;
}
.subhead{
  font-size: clamp(16px, 2.2vw, 20px);
  color:var(--muted);
  max-width: 60ch;
}

.hook-quote{
  font-size: clamp(20px, 3vw, 28px);
  margin:0 0 6px 0;
  color:var(--teal);
  font-weight:700;
}
.hook-copy{ color:var(--muted); max-width:70ch; }

.cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding: clamp(16px, 2vw, 22px);
}
.card h3{ margin-top:0; }

/* About teaser */
.about-teaser-inner{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:18px;
  align-items:center;
}
.about-logo{ filter: drop-shadow(0 0 18px rgba(46,196,201,.35)); }

/* CTA */
.cta{ text-align:center; }
.cta-line{
  font-size: clamp(22px, 3.2vw, 30px);
  margin:0 0 8px 0;
}

/* Page hero */
.page-hero .subhead{ margin-top:6px; }

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  background:#fff;
  color:var(--muted);
}
.site-footer .container{
  display:flex; gap:10px; align-items:center; justify-content:space-between;
  flex-wrap:wrap;
}
.site-footer a{ color:var(--teal-ink); text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }

/* Buttons */
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  text-decoration:none;
  font-weight:500;
}
.btn:hover{ background:var(--card); }
.btn:focus-visible{ outline:3px solid rgba(46,196,201,.35); outline-offset:2px; }

.btn-primary{
  border-color: transparent;
  background: var(--teal);
  color: #05383A;
  box-shadow: 0 8px 24px rgba(46,196,201,.28), 0 0 0 1px rgba(46,196,201,.12) inset;
}
.btn-primary:hover{
  filter:saturate(110%);
  box-shadow: 0 10px 28px rgba(46,196,201,.38);
}
.btn-lg{ padding:12px 18px; font-size:1.05rem; }

/* Typographic utilities */
.lead{ font-weight:600; }
.small{ font-size:.925rem; color:var(--muted); }
.note{ margin-top:4px; }
.bullets{ line-height:1.6; }
.bullets li+li{ margin-top:6px; }
.divider{ border:0; border-top:1px solid var(--border); margin:24px 0; }

/* Screen-reader only */
.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* Responsive */
@media (max-width: 900px){
  .cards{ grid-template-columns:1fr; }
  .about-teaser-inner{
    grid-template-columns:1fr;
    text-align:left;
  }
  .site-nav a.btn{ padding:8px 12px; }
}
/* --- Puzzled Sphinx: spacing + logo tune v1 --- */
:root{
  /* slightly tighter default section spacing */
  --section-pad-min: 28px;
  --section-pad-max: 64px;
}

.section{ padding-block: clamp(var(--section-pad-min), 6vw, var(--section-pad-max)); }

/* Home hero: reduce bottom space */
.hero{ padding-bottom: clamp(16px, 4vw, 32px); }

/* Pull the brand-hook up closer to the hero */
.hero + .hook{ padding-top: 0; }

/* About page hero: reduce top/bottom */
.page-hero{ padding-block: clamp(20px, 5vw, 44px); }
/* Tighten the gap between the About hero and first content section */
.page-hero + .section{ padding-top: clamp(12px, 4vw, 28px); }

/* Nav logo: keep it crisp and not cramped */
.site-header .brand img{ height: 40px; width: auto; }

/* --- Puzzled Sphinx: responsive header logo (v2) --- */
:root{
  --logo-desktop: 56px;   /* big desktop */
  --logo-laptop: 48px;    /* 1200px and down */
  --logo-tablet: 40px;    /* ~900px and down */
  --logo-mobile: 32px;    /* narrow phones */
}

/* Give the header a bit more presence on desktop */
.site-header{
  padding: 14px clamp(16px, 2vw, 24px);
}

/* Force the logo to a real height (don’t let intrinsic size keep it tiny) */
.site-header .brand img{
  height: var(--logo-desktop) !important;
  width: auto !important;        /* preserve aspect ratio */
  margin-right: 12px;            /* room before brand text */
}

/* Scale down smoothly as the viewport narrows */
@media (max-width: 1200px){
  .site-header .brand img{ height: var(--logo-laptop) !important; }
}
@media (max-width: 900px){
  .site-header .brand img{ height: var(--logo-tablet) !important; }
  .site-header{ padding: 12px clamp(12px, 3vw, 18px); }
}
@media (max-width: 520px){
  .site-header .brand img{ height: var(--logo-mobile) !important; }
}

