:root {
  --bg: #f4efe6;
  --panel: rgba(255, 252, 247, 0.88);
  --panel-strong: #fffaf2;
  --text: #1f1c17;
  --muted: #6e655b;
  --line: rgba(65, 52, 33, 0.12);
  --accent: #1f6b5c;
  --accent-strong: #154d42;
  --shadow: 0 18px 50px rgba(46, 34, 17, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 107, 92, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(217, 166, 96, 0.2), transparent 30%),
    linear-gradient(180deg, #f8f2e8 0%, #efe7db 100%);
  min-height: 100vh;
}

.shell {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 20px;
}

.hero {
  padding: 28px;
  margin-bottom: 18px;
}

.eyebrow,
.meta-label,
.section-head span,
small {
  color: var(--muted);
  font-size: 0.88rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 0.96;
  max-width: 10ch;
  margin-bottom: 14px;
}

.lede {
  max-width: 56ch;
  font-size: 1.05rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.auth-card {
  width: min(460px, 100%);
}

.hero-meta,
.grid {
  display: grid;
  gap: 16px;
}

.hero-meta {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 22px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 18px;
}

.stack {
  display: grid;
  gap: 12px;
}

label span {
  display: block;
  margin-bottom: 6px;
}

input,
textarea,
button {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  font: inherit;
}

input,
textarea {
  padding: 12px 14px;
  background: var(--panel-strong);
  color: var(--text);
}

button {
  cursor: pointer;
  padding: 12px 16px;
  background: var(--accent);
  color: #fffdf8;
  border: none;
  transition: transform 140ms ease, background 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

button.secondary {
  background: #e6ddd0;
  color: var(--text);
}

button.compact {
  width: auto;
  min-width: 110px;
}

.section-head,
.item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.item {
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(65, 52, 33, 0.08);
}

.item.done h3,
.item.done p {
  text-decoration: line-through;
  color: var(--muted);
}

.item.note {
  display: block;
}

.empty {
  color: var(--muted);
  margin-bottom: 0;
}

.error {
  color: #8a1f11;
  background: rgba(184, 70, 49, 0.08);
  border: 1px solid rgba(184, 70, 49, 0.16);
  border-radius: 16px;
  padding: 12px 14px;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 16px, 1080px);
    padding-top: 16px;
  }

  .card,
  .hero {
    padding: 16px;
    border-radius: 20px;
  }

  .section-head,
  .item {
    flex-direction: column;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  button.compact {
    width: 100%;
  }
}
