/* FamTalk — official site */
:root {
  --brand: #1f6b3a;
  --brand-deep: #0f3d24;
  --brand-soft: #d8efe0;
  --ink: #16241b;
  --muted: #4a5c50;
  --paper: #f3f7f4;
  --line: rgba(15, 61, 36, 0.12);
  --warn: #8a4b00;
  --warn-bg: #fff6e8;
  --max: 720px;
  --wide: 1080px;
  --font-display: "Nunito", "Zen Maru Gothic", sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.05rem;
}
a { color: var(--brand); text-underline-offset: 0.15em; }
a:hover { color: var(--brand-deep); }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(243, 247, 244, 0.88);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
}
.logo span { color: var(--brand); font-weight: 600; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.92rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-deep); }

.hero {
  position: relative;
  min-height: auto;
  display: block;
  overflow: hidden;
  color: #f7fbf8;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(120, 190, 140, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(90, 160, 130, 0.35), transparent 50%),
    linear-gradient(165deg, #0c2a1a 0%, #1a4d30 42%, #2a6b45 78%, #3d7a55 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  animation: drift 48s linear infinite;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-60px, -60px, 0); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2.75rem;
}
.hero-brand-row {
  display: block;
  margin-bottom: 1rem;
  animation: rise 0.9s ease-out both;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  max-width: 18em;
  animation: rise 0.9s ease-out 0.12s both;
}
.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 28em;
  color: rgba(247, 251, 248, 0.88);
  font-size: 1.02rem;
  animation: rise 0.9s ease-out 0.22s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease-out 0.32s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #f7fbf8;
  color: var(--brand-deep);
}
.btn-primary:hover { background: #fff; color: var(--brand-deep); }
.btn-ghost {
  background: transparent;
  color: #f7fbf8;
  border-color: rgba(247, 251, 248, 0.45);
}
.btn-ghost:hover { background: rgba(247, 251, 248, 0.1); color: #fff; }
.btn-solid {
  background: var(--brand);
  color: #fff;
}
.btn-solid:hover { background: var(--brand-deep); color: #fff; }

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.75rem 1.25rem;
}
.section-narrow { max-width: var(--max); }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--brand-deep);
}
.section .lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 36em;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.feature-list li {
  padding: 0;
  border: none;
  background: none;
}
.feature-list strong {
  display: block;
  font-size: 1.08rem;
  color: var(--brand-deep);
  margin-bottom: 0.2rem;
}
.feature-list p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.band {
  background: linear-gradient(180deg, #e7f3eb 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: stretch;
}
.help-grid > li {
  display: flex;
  min-height: 0;
}
.help-grid a {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 8.5rem;
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.help-grid a:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(15, 61, 36, 0.08);
}
.help-grid strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.7em;
  line-height: 1.35;
  color: var(--brand-deep);
  margin-bottom: 0.4rem;
}
.help-grid span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  min-height: 2.9em;
}

.page-hero {
  background: linear-gradient(135deg, #123526, #1f6b3a 70%);
  color: #f7fbf8;
  padding: 2.75rem 1.25rem 2.25rem;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.page-hero .crumb {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}
.page-hero .crumb a { color: #d8efe0; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.page-hero p { margin: 0; opacity: 0.9; max-width: 34em; }

.prose { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2.25rem 0 0.75rem;
  color: var(--brand-deep);
}
.prose h3 {
  font-size: 1.08rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--brand-deep);
}
.prose p, .prose li { color: var(--ink); }
.prose ol, .prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.4rem 0; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: step; }
.prose ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.4rem;
  margin: 0 0 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.prose ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
}
.callout.warn {
  background: var(--warn-bg);
  border-left-color: var(--warn);
}
.callout strong { color: var(--brand-deep); }
.callout.warn strong { color: var(--warn); }

.site-footer {
  border-top: 1px solid var(--line);
  background: #e8f0ea;
  padding: 2.5rem 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.site-footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.site-footer .note { max-width: 28em; }

.draft-banner {
  background: #fff3cd;
  color: #664d03;
  padding: 0.65rem 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  border-bottom: 1px solid #ffe69c;
}

@media (max-width: 640px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
  }
  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.75rem;
    font-size: 0.88rem;
  }
  .nav a {
    padding: 0.2rem 0;
  }
  .hero-inner { padding: 1.75rem 1.25rem 2.25rem; }
  .help-grid a { min-height: 7.75rem; }
}
