/* Helpeep — one small, hand-written stylesheet. System fonts only. */

:root {
  color-scheme: light dark;
  --bg: #f6f4f1;
  --bg-alt: #ffffff;
  --bg-hero: #1a1f24;
  --text: #1a1d21;
  --text-muted: #3b424a;
  --heading: #14171a;
  --link: #0a5c55;
  --link-hover: #084741;
  --accent: #0a5c55;
  --accent-fg: #ffffff;
  --donate: #9b2f22;
  --donate-fg: #ffffff;
  --border: #d8d3cb;
  --hero-fg: #f7f4ef;
  --hero-muted: #d9d4cc;
  --focus: #0a5c55;
  --shadow: 0 1px 2px rgba(20, 23, 26, 0.06);
  --radius: 0.5rem;
  --space: 1.25rem;
  --gutter: 1.25rem;
  --measure: 68rem;
  --narrow: 42rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --line: 1.65;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --bg-alt: #1c2026;
    --bg-hero: #101318;
    --text: #eeece8;
    --text-muted: #c5c1b8;
    --heading: #f7f5f1;
    --link: #6ad7cb;
    --link-hover: #8fe3d9;
    --accent: #6ad7cb;
    --accent-fg: #102321;
    --donate: #f0a395;
    --donate-fg: #3a100c;
    --border: #3a4048;
    --hero-fg: #f7f5f1;
    --hero-muted: #c8c3bb;
    --focus: #6ad7cb;
    --shadow: none;
  }
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
    --step-2: 1.75rem;
    --step-3: 2.5rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: var(--line);
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--link-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--heading);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--bg-alt);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  z-index: 20;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--measure), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.wrap-narrow { width: min(var(--narrow), 100% - 2 * var(--gutter)); }

/* Header */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.site-header .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--heading);
  text-decoration: none;
  font-weight: 700;
}

.brand img { height: 1.75rem; width: auto; }

.brand:hover { color: var(--link); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-left: auto;
  align-items: center;
}

.site-nav a,
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.site-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.lang {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin-left: 0.25rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border);
  font-size: 0.9rem;
}

.lang a { font-weight: 600; }

/* Hero */
.hero {
  position: relative;
  color: var(--hero-fg);
  background: var(--bg-hero);
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem var(--gutter);
}

.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero .inner {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
}

.hero h1 {
  color: var(--hero-muted);
  font-size: var(--step-1);
  font-weight: 400;
  margin: 0.75rem 0 1.5rem;
}
.hero h1 span { display: block; }

.hero .wordmark {
  margin: 0 auto 0.5rem;
  height: 2.25rem;
  width: auto;
  display: inline-block;
}

.hero .mark {
  margin: 0 auto;
  width: 4.5rem;
  height: 4.5rem;
}

.hero p {
  color: var(--hero-muted);
  font-size: var(--step-1);
  margin-bottom: 1.5rem;
}

.hero p span { display: block; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 0;
  font: inherit;
  cursor: pointer;
}

.btn:hover { color: var(--accent-fg); filter: brightness(1.08); }

.btn-donate {
  background: var(--donate);
  color: var(--donate-fg);
}

.btn-donate:hover { color: var(--donate-fg); }

.btn-ghost {
  background: transparent;
  color: var(--hero-fg);
  box-shadow: inset 0 0 0 2px var(--hero-fg);
}

.btn-ghost:hover { color: var(--hero-fg); background: rgba(255,255,255,0.1); }

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt { background: var(--bg-alt); }

.lede {
  font-size: 1.05rem;
  max-width: 42rem;
}

.center { text-align: center; }

.center .lede,
.center > p { margin-inline: auto; }

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.pills li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-weight: 600;
}

.section-alt .pills li { background: var(--bg); }

/* Features */
.features {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .features { grid-template-columns: 1fr 1fr 1fr; gap: 1.75rem; }
}

.features article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.features img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.features .pad { padding: 1.15rem 1.15rem 1.35rem; }

.features h2 { font-size: 1.2rem; }

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  counter-reset: step;
}

@media (min-width: 48rem) {
  .steps { grid-template-columns: 1fr 1fr 1fr; }
}

.steps li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 0 0.5rem;
}

/* Team */
.team {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 0;
}

@media (min-width: 48rem) {
  .team { grid-template-columns: 1fr 1fr 1fr; }
}

.person {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.person img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 0.9rem;
}

.person h3 { margin-bottom: 0.15rem; text-align: center; }
.person .role {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* About */
.bio {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 40rem) {
  .bio { grid-template-columns: 10rem 1fr; align-items: start; }
}

.bio img {
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.bio.portrait img {
  width: 100%;
  height: auto;
  max-width: 16rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.caption {
  font-weight: 600;
  margin: 0.4rem 0 0.8rem;
}

blockquote {
  margin: 0 0 2.5rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-style: italic;
}

blockquote footer {
  font-style: normal;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Signup / CTA */
.cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.signup {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: 28rem;
}

.section-alt .signup { background: var(--bg); }

.signup label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.signup input[type="email"] {
  flex: 1 1 12rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Video facade — no third-party request until click */
.video {
  position: relative;
  margin: 2rem 0 0;
  background: var(--bg-hero);
  color: var(--hero-fg);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  justify-items: center;
}

.video button svg {
  width: 4rem;
  height: 4rem;
  fill: currentColor;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--text-muted);
}

.site-footer h2 { font-size: 1.1rem; color: var(--heading); }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
}

.social a:hover { color: var(--link); text-decoration: underline; }

.social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.fine { font-size: 0.9rem; margin: 0; }

/* 404 */
.notfound {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem var(--gutter);
}

/* Plain YouTube link (OPEN-13 default; click-to-load JS is not in public/) */
.video-link {
  margin: 2rem 0 0;
}
.video-link a {
  display: inline-block;
  font-weight: 600;
}

.video .video-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
}
.video .video-fallback a { color: var(--hero-fg); font-weight: 600; }
.video button[hidden],
.video .video-fallback[hidden] { display: none; }
