:root {
  --bg-main: #f5efe1;
  --bg-tint: #e4f2e7;
  --ink: #1c2a2f;
  --ink-muted: #4b6169;
  --card: #fffaf1;
  --line: #d8ccba;
  --accent: #0f766e;
  --accent-2: #c95f1d;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #12623f;
  --shadow: 0 14px 28px rgba(16, 40, 55, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, #f3d8b8 0 18%, transparent 35%),
    radial-gradient(circle at 84% 22%, #c3ead5 0 16%, transparent 34%),
    linear-gradient(140deg, var(--bg-main), var(--bg-tint));
  padding: 24px 16px 56px;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-one {
  width: 240px;
  height: 240px;
  background: #f8bf7a;
  top: 8%;
  right: 4%;
  animation: float 9s ease-in-out infinite;
}

.orb-two {
  width: 290px;
  height: 290px;
  background: #79be9f;
  bottom: -60px;
  left: -40px;
  animation: float 11s ease-in-out infinite reverse;
}

.hero,
.board,
footer {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.hero {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid #d9cab3;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px;
  animation: rise 0.8s ease both;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 6px 0 12px;
  font-family: "Literata", serif;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.05;
}

.hero-copy {
  margin: 0;
  max-width: 66ch;
  color: var(--ink-muted);
}

.hero-nav {
  margin: 10px 0 0;
}

.hero-nav a {
  color: #0f5b55;
  font-weight: 700;
}

.hero-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.hero-chip-list span {
  background: #e6f3ef;
  border: 1px solid #b9d8d0;
  color: #0f5b55;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
}

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

.board > .panel:first-child {
  grid-column: 1 / -1;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  animation: rise 0.75s ease both;
}

.panel:nth-child(2) {
  animation-delay: 0.05s;
}

.panel:nth-child(3) {
  animation-delay: 0.09s;
}

.panel:nth-child(4) {
  animation-delay: 0.13s;
}

.panel:nth-child(5) {
  animation-delay: 0.17s;
}

.panel:nth-child(6) {
  animation-delay: 0.21s;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.panel-copy {
  color: var(--ink-muted);
  margin: 4px 0 12px;
}

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

.subpanel {
  border: 1px solid #d7c8b2;
  border-radius: 12px;
  padding: 10px;
  background: #fffdf9;
}

.compact-form {
  grid-template-columns: 1fr;
}

.compact-form button {
  margin-top: 4px;
}

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

label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
}

.full-width {
  grid-column: 1 / -1;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccbda8;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fffdfa;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #6fa692;
  outline: 2px solid #cde7dc;
  outline-offset: 1px;
}

button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(15, 118, 110, 0.28);
}

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

button.small {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}

button.ghost {
  background: #f2ece0;
  color: var(--ink);
}

.empty-state {
  display: none;
  margin: 10px 0;
  color: var(--ink-muted);
  font-size: 14px;
  border: 1px dashed #cab79e;
  border-radius: 10px;
  padding: 10px;
}

.empty-state.show {
  display: block;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

thead {
  background: #f3eadc;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #ddceb9;
  padding: 9px 8px;
  font-size: 13px;
}

td .inline-actions {
  display: flex;
  gap: 6px;
}

.card-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.card-list li {
  border: 1px solid #d4c4ac;
  border-radius: 12px;
  background: #fffdfa;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid transparent;
}

.badge.normal {
  color: #12524b;
  background: #d8ece6;
  border-color: #b5d9cd;
}

.badge.high {
  color: #9b5b00;
  background: #ffefcf;
  border-color: #f4d89f;
}

.badge.critical {
  color: #a11d16;
  background: #fee4e2;
  border-color: #f3b4b1;
}

.badge.info {
  color: #1f4f67;
  background: #dbeefa;
  border-color: #b7d8ef;
}

.badge.important {
  color: #7a4a0c;
  background: #faecce;
  border-color: #efcea1;
}

.badge.urgent {
  color: #9f1d16;
  background: #fde7e7;
  border-color: #efb6b4;
}

.badge.low {
  color: #105362;
  background: #d9f0f5;
  border-color: #b9dde5;
}

.badge.medium {
  color: #865907;
  background: #fceecf;
  border-color: #f1d69f;
}

.badge.pending {
  color: #8a5b10;
  background: #fff1d8;
  border-color: #f2d4a4;
}

.badge.done {
  color: #0f5a30;
  background: #daf2e4;
  border-color: #b8e0c9;
}

.meta-line {
  font-size: 13px;
  color: var(--ink-muted);
}

.reminder-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.metric {
  border: 1px solid #d3c4ad;
  border-radius: 10px;
  padding: 8px;
  background: #fffdf8;
}

.metric-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.metric-value {
  margin-top: 2px;
  font-size: 1.2rem;
  font-weight: 700;
}

.metric-danger {
  color: var(--danger);
}

.metric-warn {
  color: var(--warn);
}

.metric-ok {
  color: var(--ok);
}

.plan-list {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.plan-list li {
  line-height: 1.42;
}

footer {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

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

  .board {
    grid-template-columns: 1fr;
  }

  .basic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body {
    padding: 14px 10px 34px;
  }

  .hero,
  .panel {
    border-radius: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .reminder-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}
