@import "tailwindcss";

:root {
  color-scheme: light;
  --bg: #e3e6d5;
  --bg-soft: #dce2c8;
  --surface: #ffffff;
  --surface-muted: #f7f8f2;
  --surface-strong: #eef2df;
  --accent: #84cc16;
  --accent-strong: #65a30d;
  --accent-deep: #166534;
  --text: #1c1917;
  --text-soft: #57534e;
  --border: rgba(28, 25, 23, 0.1);
  --shadow: 0 20px 45px rgba(45, 42, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(132, 204, 22, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.font-logo {
  font-family: "Cormorant Garamond", serif;
}

.page-shell {
  min-height: 100vh;
}

.container-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.soft-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.accent-button {
  background-image: linear-gradient(120deg, var(--accent) 0%, var(--accent-strong) 50%, var(--accent-deep) 100%);
}

.accent-button:hover {
  background-image: linear-gradient(120deg, #a3e635 0%, var(--accent) 45%, var(--accent-deep) 100%);
}

.outline-button:hover {
  border-color: rgba(101, 163, 13, 0.5);
  background: rgba(132, 204, 22, 0.08);
}

.hero-overlay {
  background:
    linear-gradient(120deg, rgba(28, 25, 23, 0.72), rgba(22, 101, 52, 0.48)),
    linear-gradient(180deg, rgba(28, 25, 23, 0.2), rgba(28, 25, 23, 0.66));
}

.grid-autofill {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-balance {
  text-wrap: balance;
}

.line-clamp-2,
.line-clamp-3,
.line-clamp-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.line-clamp-4 {
  -webkit-line-clamp: 4;
}

.input-base {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(28, 25, 23, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 1rem;
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.input-base:focus {
  outline: none;
  border-color: rgba(101, 163, 13, 0.6);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.15);
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.spinner-dark {
  border-color: rgba(28, 25, 23, 0.18);
  border-top-color: var(--accent-deep);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}