:root {
  --bg-top: #f4fcf8;
  --bg-bottom: #e4f5ee;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #0b735b;
  --accent-soft: rgba(210, 247, 235, 0.82);
  --secondary-accent: #20c997;
  --warning: #fb7185;
  --success: #16a36a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Nunito", "Avenir Next", "Segoe UI Rounded", sans-serif;
  color: var(--text-primary);
  background: linear-gradient(145deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  line-height: 1.6;
  letter-spacing: 0.01em;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: 0;
  pointer-events: none;
}

body::before {
  width: 380px;
  height: 380px;
  left: -140px;
  top: -120px;
  background: radial-gradient(circle, rgba(32, 201, 151, 0.23) 0%, rgba(32, 201, 151, 0) 70%);
}

body::after {
  width: 360px;
  height: 360px;
  right: -130px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(11, 115, 91, 0.2) 0%, rgba(11, 115, 91, 0) 70%);
}

a {
  color: inherit;
}

.site-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 44px;
  position: relative;
  z-index: 1;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.67);
  box-shadow: 0 14px 36px rgba(11, 115, 91, 0.09);
  backdrop-filter: blur(8px);
}

.brand {
  text-decoration: none;
  font-family: "Fraunces", "Iowan Old Style", serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-agree {
  color: var(--text-primary);
}

.brand-mint {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 115, 91, 0.15);
  background: rgba(255, 255, 255, 0.45);
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 115, 91, 0.34);
  background: rgba(11, 115, 91, 0.06);
}

.nav-link.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.main-content {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.hero-card,
.surface-card {
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.hero-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.06);
}

.hero-card h1 {
  margin: 0.1rem 0 0.5rem;
  font-family: "Fraunces", "Iowan Old Style", serif;
  font-size: clamp(2.05rem, 4vw, 2.8rem);
  line-height: 1.08;
  font-weight: 600;
}

.hero-card p {
  margin: 0;
  max-width: 78ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
}

.surface-card {
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-card {
  text-decoration: none;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(11, 115, 91, 0.2);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 115, 91, 0.4);
  box-shadow: 0 12px 26px rgba(11, 115, 91, 0.11);
}

.home-card h3 {
  margin: 0 0 6px;
  font-family: "Fraunces", "Iowan Old Style", serif;
  font-size: 1.22rem;
  line-height: 1.2;
}

.home-card p {
  margin: 0;
  color: var(--text-secondary);
}

.legal-article {
  color: var(--text-primary);
  font-size: 1.02rem;
}

.legal-article > :first-child {
  margin-top: 0;
}

.legal-article > :last-child {
  margin-bottom: 0;
}

.legal-article h1,
.legal-article h2,
.legal-article h3 {
  font-family: "Fraunces", "Iowan Old Style", serif;
  margin: 1.2rem 0 0.55rem;
  line-height: 1.2;
}

.legal-article h1 {
  font-size: 1.8rem;
}

.legal-article h2 {
  font-size: 1.45rem;
}

.legal-article h3 {
  font-size: 1.18rem;
}

.legal-article p,
.legal-article li {
  color: var(--text-primary);
}

.legal-article ul,
.legal-article ol {
  padding-left: 1.25rem;
}

.legal-article code {
  background: rgba(11, 115, 91, 0.08);
  color: var(--accent);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  font-family: "Menlo", "Consolas", "SF Mono", monospace;
  font-size: 0.9em;
}

.privacy-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(11, 115, 91, 0.24);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-primary);
  padding: 11px 12px;
  font-size: 1rem;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(11, 115, 91, 0.28);
  border-color: rgba(11, 115, 91, 0.5);
}

textarea {
  line-height: 1.55;
  resize: vertical;
  min-height: 130px;
}

.checkbox-line {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.checkbox-line input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  padding: 0;
}

.primary-button {
  border: 1px solid var(--accent);
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 140ms ease, transform 140ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
}

.notice-success {
  color: #0f5132;
  background: rgba(22, 163, 106, 0.13);
  border-color: rgba(22, 163, 106, 0.3);
}

.notice-error {
  color: #842029;
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.28);
}

.inline-link {
  color: var(--accent);
  text-underline-offset: 3px;
}

.site-footer {
  margin-top: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.honeypot {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .home-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .surface-card {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 14px 10px 32px;
  }

  .top-nav {
    border-radius: 18px;
    padding: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-link {
    font-size: 0.88rem;
    padding: 7px 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-shell {
    animation: page-reveal 260ms ease-out;
  }

  @keyframes page-reveal {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
