
:root {
  --green: #345b3f;
  --green-dark: #243e2d;
  --lime: #d5e58c;
  --paper: #f6f4ec;
  --white: #fffef9;
  --ink: #202d24;
  --muted: #687268;
  --line: #e3e4d8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

button, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  padding: 20px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 22px;
  font-weight: 800;
}

.logo span {
  color: #71894e;
}

.navbar p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 25px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 65px 0 45px;
}

.eyebrow {
  color: #718466;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -1px;
}

h1 {
  font-size: clamp(45px, 6vw, 72px);
  margin: 0 0 20px;
}

h1 span {
  color: #71894e;
}

.hero-text {
  color: var(--muted);
  max-width: 380px;
  line-height: 1.8;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  border-bottom: 1px solid #91a083;
  padding-bottom: 5px;
  font-weight: bold;
  font-size: 13px;
}

.hero-art {
  position: relative;
  height: 300px;
  border-radius: 25px;
  overflow: hidden;
  background: #e6edce;
}

.sun {
  position: absolute;
  right: 17%;
  top: 13%;
  width: 85px;
  height: 85px;
  background: #f4bd70;
  border-radius: 50%;
}

.hill {
  position: absolute;
  bottom: -30%;
  width: 120%;
  height: 70%;
  border-radius: 50% 50% 0 0;
}

.hill-back {
  left: -25%;
  background: #a9c18a;
}

.hill-front {
  right: -25%;
  bottom: -40%;
  background: #63885a;
  transform: rotate(-10deg);
}

.art-label {
  position: absolute;
  z-index: 2;
  bottom: 15px;
  left: 25px;
  color: white;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 2px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 70px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}

.stat:last-child {
  border: 0;
}

.stat > span {
  font-size: 25px;
}

.stat strong, .stat small {
  display: block;
}

.stat strong {
  font-size: 21px;
}

.stat small {
  color: var(--muted);
  font-size: 10px;
}

.mission-section {
  margin-bottom: 70px;
}

h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 10px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 25px 0 20px;
}

.filter {
  background: var(--white);
  color: #596557;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 15px;
  font-size: 12px;
}

.filter.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.mission-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.mission-art {
  background: #dfe9c9;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  text-align: center;
  position: relative;
}

.art-icon {
  font-size: 100px;
  color: #63885a;
}

.mission-art p {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: bold;
  color: #405b3a;
}

.mission-art small {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: bold;
  color: #405b3a;
}

.mission-content {
  padding: 32px;
}

.mission-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}

.category-tag {
  color: #577348;
  background: #edf1e3;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
}

h3 {
  font-size: 29px;
  margin-bottom: 12px;
}

.mission-content > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.tip {
  background: #f5f4eb;
  padding: 13px;
  border-radius: 12px;
  font-size: 12px;
  margin: 20px 0;
}

.tip strong {
  color: #526e42;
}

.tip p {
  color: var(--muted);
  margin: 5px 0 0;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary, .secondary {
  border: 0;
  border-radius: 9px;
  padding: 12px 15px;
  font-size: 12px;
  font-weight: bold;
}

.primary {
  background: var(--green);
  color: white;
}

.primary:hover {
  background: var(--green-dark);
}

.secondary {
  background: #f0f1e8;
  color: #425341;
  border: 1px solid #e4e6da;
}

.timer-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #edf2e4;
  padding: 14px;
  border-radius: 12px;
  margin-top: 18px;
}

.timer-panel small, .timer-panel strong {
  display: block;
}

.timer-panel small {
  color: #6c8061;
  font-size: 9px;
}

.timer-panel strong {
  font-size: 27px;
}

.timer-actions {
  display: flex;
  gap: 7px;
}

.hidden {
  display: none !important;
}

.safety {
  text-align: center;
  color: #858b7e;
  font-size: 10px;
  margin-top: 15px;
}

.reflection {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 25px;
  background: #e8eddb;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 70px;
}

.reflection h2 {
  font-size: 25px;
}

#reflection-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #d5ddc7;
  border-radius: 10px;
  padding: 13px;
  background: #fbfcf6;
  outline: none;
}

#reflection-form textarea:focus {
  border-color: #8da57a;
}

.reflection-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.reflection-bottom small {
  color: var(--muted);
}

.status {
  color: #426c3c;
  font-size: 11px;
}

.history-section {
  margin-bottom: 60px;
}

.history-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.clear-button {
  background: transparent;
  border: 0;
  text-decoration: underline;
  color: var(--muted);
  font-size: 11px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.history-item, .empty-state {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px;
}

.history-item .history-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #78856b;
  font-size: 10px;
}

.history-item h3 {
  font-size: 15px;
  letter-spacing: 0;
  margin: 12px 0 8px;
}

.history-item p {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 0;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 25px 0;
  color: var(--muted);
}

footer p, footer small {
  font-size: 10px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-dark);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.toast.show {
  opacity: 1;
}

@media (max-width: 700px) {
  .navbar p {
    max-width: 140px;
    text-align: right;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 45px;
  }

  .hero-art {
    height: 240px;
  }

  .stats {
    padding: 15px 8px;
    gap: 8px;
  }

  .stat {
    display: block;
    text-align: center;
    padding: 0 4px;
  }

  .stat > span {
    display: block;
  }

  .stat strong {
    font-size: 17px;
  }

  .stat small {
    font-size: 9px;
  }

  .mission-card {
    grid-template-columns: 1fr;
  }

  .mission-art {
    min-height: 210px;
  }

  .mission-content {
    padding: 22px;
  }

  h3 {
    font-size: 25px;
  }

  .reflection {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .history-list {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
