:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --text: #2a2a2a;
  --muted: #5b5b5b;
  --accent: #3f4b57;
  --border: #e2e0da;
}

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

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfaf7 0%, var(--bg) 60%, #f1f0eb 100%);
  line-height: 1.7;
}

main {
  display: block;
}

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

.site-header,
.site-footer {
  background: #fdfcf9;
  border-bottom: 1px solid var(--border);
}

.site-header {
  padding: 3rem 0 2.5rem;
}

.site-title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.site-subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.section {
  padding: 2.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
  color: var(--accent);
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--accent);
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  color: var(--accent);
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

li {
  margin-bottom: 0.5rem;
}

.emphasis {
  font-weight: 700;
  color: var(--accent);
}

.subtle-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.subtle-link:hover,
.subtle-link:focus {
  text-decoration: underline;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(47, 47, 47, 0.06);
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack-tight {
  display: grid;
  gap: 0.5rem;
}

label {
  font-size: 0.95rem;
  color: var(--muted);
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 1rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: var(--accent);
}

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

.pill-group {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #faf9f6;
  color: var(--muted);
  font-size: 0.9rem;
}

.status {
  font-size: 0.95rem;
  color: var(--muted);
}

.list {
  display: grid;
  gap: 0.75rem;
}

.list-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: #fff;
}

.list-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-shell {
  max-width: 460px;
}

.hidden {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--muted);
}

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

@media (min-width: 768px) {
  .site-header {
    padding: 4.5rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }
}
