/* Homnay website — styles. Palette, radii and type follow the Homnay app (src/theme.js):
   warm off-white background, deep green primary, orange accent, heavy system-font headings, rounded cards. */
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/Lora-Italic-wght.ttf') format('truetype');
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --bg: #f7f5ef; --surface: #ffffff; --ink: #15201c; --muted: #5d665f; --line: #dedbd2;
  --green: #27594b; --green-dark: #173d33; --green-soft: #e5eee9;
  --orange: #e96f46; --orange-soft: #fff0ea; --orange-ink: #953d22;
  --gold: #c6953f; --gold-soft: #f5ead4;
  --radius-md: 16px; --radius-lg: 22px; --radius-xl: 28px;
  --shadow: 0 10px 30px rgba(26, 38, 32, 0.08);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.02em; color: var(--green-dark); }
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--green-dark); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247, 245, 239, 0.94); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 40px; height: 40px; border-radius: 11px; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.04em; }
.sections { display: flex; gap: 22px; margin-left: auto; }
.sections a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.sections a:hover { color: var(--green); }
.lang { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.9rem; margin-left: auto; }
.sections + .lang { margin-left: 8px; }
.lang-current { color: var(--green-dark); padding: 6px 8px; border-radius: 999px; background: var(--green-soft); }
.lang-link { color: var(--muted); padding: 6px 8px; border-radius: 999px; text-decoration: none; }
.lang-link:hover { color: var(--green-dark); background: var(--green-soft); }
.lang-sep { color: var(--line); }

/* shared pieces */
.eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 14px; }
.eyebrow-light { color: #f3b79d; }
.lead { font-size: 1.15rem; max-width: 760px; }
.section { padding: 96px 0; }
.section-tint { background: var(--green-soft); }
.section-title { max-width: 820px; margin-bottom: 40px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow); border: 1px solid rgba(222, 219, 210, 0.6); }
.h3-lead { font-size: 1.45rem; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 1rem; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--green-dark); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--green); color: var(--green-dark); }
.btn-icon { width: 18px; height: 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; }
.tick { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--green); }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px;
  border-radius: 999px; background: var(--gold-soft); color: #6f4e14; white-space: nowrap; }

/* hero */
.hero { position: relative; padding: 72px 0 150px; overflow: hidden;
  background: radial-gradient(1000px 520px at 85% 15%, #fbe7d6 0%, rgba(247, 245, 239, 0) 60%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--green); line-height: 1.4; }
.hero-body { font-size: 1.15rem; max-width: 560px; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.name-note { font-size: 0.92rem; color: var(--muted); }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-sun { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, #fbd9c4 0%, rgba(251, 217, 196, 0) 70%); top: -30px; }
.hero-logo { position: relative; width: min(280px, 70vw); height: auto; border-radius: 22%; box-shadow: 0 24px 60px rgba(23, 61, 51, 0.22); }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; }

/* about */
.quote-card { margin: 28px 0 0; padding: 26px 30px; border-radius: var(--radius-lg); background: var(--orange-soft); border-left: 5px solid var(--orange); }
.quote-card p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--orange-ink); }

/* people band */
.band-green { background: var(--green-dark); color: #eef2ec; }
.band-green h2 { color: #fff; }
.band-green .lead { color: #dfe7e1; }
.card-dark { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: none; }
.card-dark h3 { color: #fff; }
.card-dark p { color: #d6e0d9; margin: 0; }
.band-green .grid { margin-top: 36px; }
.status-note { margin: 32px 0 0; padding: 18px 22px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.08); color: #eef2ec; max-width: 760px; }

/* inside: four tabs */
.tab-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tab-head h3 { margin: 0; font-size: 1.45rem; }
.tab-head .badge { margin-left: auto; }
.tab-icon { width: 48px; height: 48px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); flex: none; }
.tab-icon .icon { width: 26px; height: 26px; }
.tab-tagline { margin: 2px 0 0; font-weight: 700; color: var(--muted); font-size: 0.95rem; }
.tab-quote { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--green); }
.dev-note { font-size: 0.95rem; padding: 14px 16px; border-radius: var(--radius-md); background: var(--gold-soft); color: #5a3f10; margin: 0; }
.tab-wander .tab-icon { background: var(--orange-soft); color: var(--orange-ink); }

/* journal + scrapbook */
.feature { position: relative; }
.feature-icon { width: 54px; height: 54px; border-radius: 17px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-dark); color: #fff; margin-bottom: 18px; }
.feature-icon .icon { width: 28px; height: 28px; }
.feature-title { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.pin { display: flex; gap: 10px; margin: 4px 0 20px; }
.pin span { width: 14px; height: 14px; border-radius: 50%; background: var(--green); opacity: 0.85; }
.pages { position: relative; height: 70px; margin: 4px 0 22px; }
.pages span { position: absolute; top: 0; width: 86px; height: 64px; border-radius: 6px; background: #fff; border: 6px solid #fff;
  box-shadow: 0 6px 16px rgba(26, 38, 32, 0.16); background-clip: padding-box; }
.pages span:nth-child(1) { left: 0; background: #c9d6b4; transform: rotate(-6deg); }
.pages span:nth-child(2) { left: 70px; background: #f4c9b3; transform: rotate(4deg); }
.pages span:nth-child(3) { left: 140px; background: #f5ead4; transform: rotate(-2deg); }

/* mission + no ads */
.list-title { font-weight: 800; color: var(--green-dark); margin-top: 1.4em; font-size: 1.05rem; }
.closing { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--green); margin-top: 1.2em; }
.card-warm { background: var(--orange-soft); border-color: #f6d8c9; box-shadow: none; position: sticky; top: 96px; }
.card-warm h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* progress */
.priorities { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.priorities li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); padding: 16px 18px; border-radius: var(--radius-md); }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* legal + 404 */
.legal { min-height: 60vh; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 14px; }
.badge-draft { background: var(--orange-soft); color: var(--orange-ink); }

/* footer */
.site-footer { background: var(--green-dark); color: #dfe7e1; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 32px; }
.site-footer a { color: #fff; }
.brand-light { color: #fff; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin: 12px 0 0; color: #f3b79d; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #b9c8bf; margin: 0 0 4px; font-weight: 800; }
.site-footer .lang { margin-left: 0; }
.site-footer .lang-current { background: rgba(255, 255, 255, 0.14); color: #fff; }
.site-footer .lang-link { color: #dfe7e1; }
.site-footer .lang-link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.site-footer .lang-sep { color: rgba(255, 255, 255, 0.3); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.9rem; color: #b9c8bf; }

/* responsive */
@media (max-width: 980px) {
  .sections { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 40px 0 120px; }
  .hero-inner, .two-col, .grid-2, .grid-3, .priorities { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-logo { width: 150px; }
  .hero-sun { width: 200px; height: 200px; top: -20px; }
  .two-col { gap: 28px; }
  .card { padding: 24px; border-radius: var(--radius-lg); }
  .card-warm { position: static; }
  .tab-head { flex-wrap: wrap; }
  .tab-head .badge { margin-left: 62px; }
  .footer-inner { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
}
