:root {
  --sky-top: #c8dcec;
  --sky-bot: #e7efe6;
  --grass: #8fbc78;
  --grass-deep: #7aa866;
  --ink: #1d2b33;
  --ink-soft: #3a4a52;
  --panel: #1d2b33;
  --card: #ffffffee;
  --yellow: #f4c542;
  --yellow-ink: #3a2e0a;
  --fur: #a8683a;
  --fur-light: #e3b98a;
  --scarf: #c0392b;
  --shadow: 0 10px 40px #1d2b3322;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 42%, var(--grass) 42%, var(--grass-deep) 100%);
  line-height: 1.5;
}

.sky {
  position: fixed; inset: 0 0 55% 0;
  background: linear-gradient(180deg, #b9d4e8, #e8f2ea);
  z-index: -2;
}
.hills {
  position: fixed; left: -10%; right: -10%; bottom: 0; height: 58%;
  background:
    radial-gradient(120% 80% at 20% 100%, #93b878 0%, transparent 55%),
    radial-gradient(100% 70% at 80% 100%, #7fae62 0%, transparent 50%),
    linear-gradient(180deg, transparent, #6f9e58);
  z-index: -1;
  opacity: .9;
}

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px;
  background: #ffffffcc; backdrop-filter: blur(10px);
  border-bottom: 1px solid #ffffff88;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff6 0 18%, transparent 19%),
    radial-gradient(circle at 50% 55%, var(--fur-light) 0 22%, transparent 23%),
    var(--fur);
  box-shadow: inset 0 -8px 0 var(--scarf);
}
.brand strong { display: block; font-size: 15px; }
.brand span { display: block; font-size: 12px; color: var(--ink-soft); }
nav { display: flex; gap: 14px; }
nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600;
}
nav a:hover { color: var(--ink); }

main { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 80px; }

.hero {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  nav { display: none; }
}

.portrait {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(180deg, #d5e6f2 0%, #c5dcc8 100%);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.bear {
  position: relative;
  width: 110px;
  animation: bob 3.2s ease-in-out infinite;
}
.bear .ear {
  position: absolute; top: -2px; width: 28px; height: 28px;
  background: var(--fur); border-radius: 50%;
  z-index: 0;
}
.bear .ear.left { left: 4px; }
.bear .ear.right { right: 4px; }
.bear .head {
  width: 88px; height: 78px; margin: 0 auto;
  background: var(--fur); border-radius: 50%;
  position: relative; z-index: 1;
}
.bear .snout {
  position: absolute; left: 50%; bottom: 14px; width: 36px; height: 24px;
  margin-left: -18px; background: var(--fur-light); border-radius: 50%;
}
.bear .nose {
  position: absolute; left: 50%; bottom: 22px; width: 12px; height: 9px;
  margin-left: -6px; background: #2a1c14; border-radius: 50%;
  z-index: 2;
}
.bear .eye {
  position: absolute; top: 30px; width: 8px; height: 8px;
  background: #2a1c14; border-radius: 50%;
}
.bear .eye.left { left: 24px; }
.bear .eye.right { right: 24px; }
.bear .torso {
  width: 100px; height: 78px; margin: -10px auto 0;
  background: var(--fur); border-radius: 42% 42% 46% 46%;
  position: relative;
}
.bear .belly {
  position: absolute; left: 50%; top: 22px; width: 48px; height: 40px;
  margin-left: -24px; background: var(--fur-light); border-radius: 50%;
  opacity: .9;
}
.bear .scarf {
  position: absolute; top: 6px; left: 10px; right: 10px; height: 14px;
  background: var(--scarf); border-radius: 8px;
  box-shadow: 0 2px 0 #8e2a20;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px;
}
.hero-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.15; margin: 0 0 12px; font-weight: 750;
}
.lede { color: var(--ink-soft); margin: 0 0 20px; max-width: 40ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; padding: 11px 18px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.03); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.btn.primary { background: var(--yellow); color: var(--yellow-ink); }
.btn.wide { width: 100%; padding: 13px 18px; }
.btn.ghost.dark {
  background: transparent; color: var(--ink);
  border: 1px solid #c9d5cc;
}

.panel {
  background: var(--card);
  border-radius: 20px;
  padding: 24px 22px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.panel-head h2 { margin: 0 0 6px; font-size: 1.35rem; }
.panel-head p { margin: 0 0 18px; color: var(--ink-soft); }

.type-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
}
.tab {
  border: 1px solid #c9d5cc; background: #f4f8f4; color: var(--ink-soft);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 650;
  cursor: pointer;
}
.tab.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; border: 1px solid #c9d5cc; border-radius: 12px;
  padding: 11px 12px; font: inherit; background: #fff; color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid #f4c54288; border-color: #e0b93a;
}
.hint { display: block; text-align: right; font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

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

.status {
  margin-top: 20px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #eef6ee;
  border: 1px solid #c5dfc5;
  text-align: center;
}
.status.is-error {
  background: #fff5f3;
  border-color: #f0c4bc;
}
.status-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 750;
}
.status-body {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
}

.about h2 { margin: 0 0 16px; }
.about-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid article {
  background: #f3f7f3; border-radius: 14px; padding: 14px 14px 16px;
}
.about-grid h3 { margin: 0 0 6px; font-size: 15px; }
.about-grid p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.site-footer {
  width: min(920px, calc(100% - 32px)); margin: 0 auto 28px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #2f4a33;
}

.greet {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding: 20px;
  background: #17242ccc;
  backdrop-filter: blur(6px);
}
.greet-card {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 60px #0004;
  animation: rise .45s ease;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.greet-bear {
  width: 72px; margin: 0 auto 12px; position: relative;
  animation: bob 2.8s ease-in-out infinite;
}
.greet-bear .ear {
  position: absolute; top: -4px; width: 18px; height: 18px;
  background: var(--fur); border-radius: 50%;
}
.greet-bear .ear.left { left: 4px; }
.greet-bear .ear.right { right: 4px; }
.greet-bear .head {
  width: 64px; height: 58px; margin: 0 auto;
  background: var(--fur); border-radius: 50%; position: relative; z-index: 1;
}
.greet-bear .snout {
  position: absolute; left: 50%; bottom: 12px; width: 24px; height: 16px;
  margin-left: -12px; background: var(--fur-light); border-radius: 50%;
}
.greet-bear .eye {
  position: absolute; top: 22px; width: 7px; height: 7px;
  background: #2a1c14; border-radius: 50%;
}
.greet-bear .eye.left { left: 16px; }
.greet-bear .eye.right { right: 16px; }
.greet-bear .torso {
  width: 70px; height: 52px; margin: -8px auto 0;
  background: var(--fur); border-radius: 40%;
  position: relative;
}
.greet-bear .scarf {
  position: absolute; top: 6px; left: 8px; right: 8px; height: 12px;
  background: var(--scarf); border-radius: 8px;
}
.greet-kicker {
  margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-soft);
}
.greet-card h2 { margin: 6px 0 10px; font-size: 1.45rem; }
.greet-card p:not(.greet-kicker) {
  margin: 0 0 18px; color: var(--ink-soft); font-size: 15px;
}
.greet-card .btn { width: 100%; }

[hidden] { display: none !important; }
