@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;600;800&display=swap");

:root {
  --bg: #eef4ef;
  --panel: #fbfdf9;
  --ink: #1a2e24;
  --muted: #4f6458;
  --line: #c8d8cc;
  --accent: #2f6b4f;
  --accent-soft: #d8ebe0;
  --warn: #8a5a1f;
}

body.high-contrast {
  --bg: #000;
  --panel: #111;
  --ink: #fff;
  --muted: #ddd;
  --line: #666;
  --accent: #9dff9d;
  --accent-soft: #222;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-name {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.side-btn {
  margin-top: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
}

.content-wrap {
  padding: 24px clamp(16px, 4vw, 48px) 40px;
}

.hero {
  min-height: 58vh;
  border-radius: 22px;
  background-image: linear-gradient(120deg, rgba(18, 46, 34, 0.55), rgba(18, 46, 34, 0.2)), var(--hero);
  background-size: cover;
  background-position: center;
  color: #f4fff8;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(24px, 5vw, 56px);
  box-shadow: 0 18px 40px rgba(20, 40, 30, 0.18);
}

.hero.small { min-height: 36vh; }

.eyebrow {
  letter-spacing: 0.14em;
  font-size: 12px;
  margin: 0;
}

.hero h1 {
  margin: 8px 0;
  font-size: clamp(30px, 4.8vw, 54px);
  line-height: 1.1;
}

.pill-link {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  background: #f4fff8;
  color: var(--accent);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
}

.section {
  margin-top: 34px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

#spotSearch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  min-width: 220px;
  background: var(--panel);
  color: var(--ink);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.spot {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spot:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30, 60, 45, 0.12); }
.spot.wide { grid-column: span 2; }
.spot h3 { margin-top: 0; }
.badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}

.season-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.season-tab {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.season-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.season-panel,
.info-card,
.step-card,
.values article,
.plain-list,
.legal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.values article { margin: 0; }

.plain-list { list-style: none; padding-left: 18px; }
.plain-list li::before { content: "• "; color: var(--accent); font-weight: 800; }

.muted { color: var(--muted); font-size: 14px; }

.stepper { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.step-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.step-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.species-grid { display: grid; gap: 10px; }
.species { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.species-toggle {
  width: 100%;
  text-align: left;
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
}
.species-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 14px;
}
.species.open .species-body {
  max-height: 120px;
  padding-bottom: 12px;
}

.fake-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  max-width: 520px;
}
.fake-form label { display: grid; gap: 6px; font-weight: 600; }
.fake-form input,
.fake-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: var(--panel);
  color: var(--ink);
}
.fake-form button {
  width: fit-content;
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}
.form-msg { min-height: 1.2em; color: var(--warn); font-size: 14px; }

.site-footer {
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.show { opacity: 1; transform: none; }

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 360px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  z-index: 50;
  display: grid;
  gap: 10px;
}
.cookie-banner p { margin: 0; font-size: 14px; }
.cookie-banner button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 900px) {
  body { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side-btn { margin-top: 0; }
  .bento { grid-template-columns: 1fr; }
  .spot.wide { grid-column: auto; }
  .values { grid-template-columns: 1fr; }
}
