﻿:root {
  --bg: #f4f1ec;
  --surface: #fffdfa;
  --surface-soft: #f8f5f1;
  --text: #292725;
  --muted: #5e5851;
  --line: #ddd5cc;
  --primary: #3f5b6a;
  --primary-hover: #334a56;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(37, 31, 25, 0.08);
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top right, rgba(90, 117, 132, 0.1), transparent 36%),
    radial-gradient(circle at 10% 50%, rgba(117, 102, 88, 0.08), transparent 42%),
    var(--bg);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #1f1d1b;
  line-height: 1.25;
  font-family: "Merriweather", Georgia, serif;
}

h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(780px, 92%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(121, 108, 97, 0.2);
  background-color: rgba(244, 241, 236, 0.86);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.logo {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.text-link {
  color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 3rem;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 62ch;
  color: #3b3834;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.section {
  padding: 2.25rem 0 4.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.35rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-card {
  margin-top: 1rem;
}

.form-card {
  margin-top: 1.6rem;
}

.note-card {
  margin-top: 1rem;
  background: var(--surface-soft);
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bdb5aa;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  color: var(--text);
  font-size: 1rem;
  background: #fff;
}

input:focus,
select:focus,
button:focus {
  outline: 2px solid rgba(63, 91, 106, 0.3);
  outline-offset: 1px;
}

small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.button-primary {
  color: #fff;
  border-color: var(--primary);
  background-color: var(--primary);
}

.button-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.button-secondary {
  color: #2e4d5b;
  border-color: rgba(63, 91, 106, 0.4);
  background: transparent;
}

.button-secondary:hover {
  border-color: rgba(63, 91, 106, 0.7);
  background: rgba(63, 91, 106, 0.06);
}

.button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-message {
  margin-top: 0.75rem;
  min-height: 1.2em;
  color: #30414a;
}

.site-footer {
  border-top: 1px solid rgba(121, 108, 97, 0.2);
  padding: 1rem 0 1.3rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
