:root {
  --paper: #efe6da;
  --cream: #fffaf4;
  --ink: #2c211c;
  --mute: #74665c;
  --sage: #4f6149;
  --line: rgba(44, 33, 28, 0.08);
  --shadow: 0 22px 48px rgba(44, 33, 28, 0.08);
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(90% 55% at 0% -10%, rgba(79, 97, 73, 0.16), transparent 52%),
    radial-gradient(70% 45% at 100% 110%, rgba(44, 33, 28, 0.1), transparent 48%),
    var(--paper);
}
h1, h2, .lead { text-wrap: pretty; }
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 80% 12%, rgba(255, 250, 244, 0.45), transparent);
}
.grain { z-index: 5; opacity: 0.04; }
.island, .stage { position: relative; z-index: 2; }

.island {
  background: rgba(255, 250, 244, 0.62);
  box-shadow: var(--shadow);
  gap: 0.75rem;
}
.brand {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  padding-left: 0.55rem;
}
.who {
  display: none;
  color: var(--mute);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.island button:hover { color: var(--ink); }

.shell {
  background: rgba(44, 33, 28, 0.04);
  box-shadow: none;
}
.core {
  box-shadow: inset 0 1px 1px rgba(255, 255, 244, 0.85), var(--shadow);
}

.hero {
  margin: 0 0 1.4rem;
  max-width: 18ch;
}
.hero h1 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.88;
}
.hero .lead { margin-top: 1rem; max-width: 36rem; }

.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.pagehead h2 { margin: 0; }

.meter {
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  background: conic-gradient(var(--sage) calc(var(--p) * 1%), rgba(44, 33, 28, 0.08) 0);
  flex: 0 0 auto;
}
.meter span {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--cream);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  line-height: 1.15;
  text-align: center;
  color: var(--mute);
}
.meter b {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 560;
}

.check {
  position: relative;
  grid-template-columns: 1.25rem 1fr;
  cursor: pointer;
  border-top-color: var(--line);
}
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.tick {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.38rem;
  background: rgba(44, 33, 28, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 244, 0.8);
  position: relative;
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
}
.check input:checked + .tick { background: var(--sage); }
.check input:checked + .tick::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.14rem;
  width: 0.28rem;
  height: 0.52rem;
  border: solid var(--cream);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.check:hover .tick { transform: scale(1.04); }
.lbl em { color: var(--mute); font-style: italic; }

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #edf3ec;
  color: #346538;
}
.tag.open { background: #fbf3db; color: #7a5400; }

.salida-list li {
  grid-template-columns: 2.1rem 1fr auto;
  align-items: center;
}
.salida-list .name { font-weight: 500; }
.is-set .name { text-decoration: none; opacity: 1; }
.when { grid-column: 2; }
.salida-list .text-btn { grid-column: 3; grid-row: 1 / span 2; }

.reto-list li {
  grid-template-columns: 1.6rem 1fr auto;
  align-items: baseline;
}
.reto-list b { font-family: var(--display); font-weight: 560; }

.pick {
  margin: 0;
  border-radius: 1rem;
  background: rgba(44, 33, 28, 0.045);
}
.pick:hover { background: rgba(79, 97, 73, 0.14); }
.ghost:hover, .text-btn:hover, .icon-btn:hover {
  background: rgba(44, 33, 28, 0.1);
}

.cell {
  background: transparent;
  border-radius: 0.9rem;
}
.cell:hover { background: rgba(79, 97, 73, 0.1); }
.cell.wknd { background: rgba(44, 33, 28, 0.03); }
.cell.today { background: rgba(79, 97, 73, 0.18); }
.cell.picked { background: var(--ink); color: var(--cream); }
.cell.picked .dots i { background: var(--cream); }
.cell.picked .chip { background: var(--cream); color: var(--ink); }

.agenda {
  background: rgba(44, 33, 28, 0.035);
  border-radius: 1.4rem;
  padding: 1.1rem 1rem 1.2rem;
}
.empty {
  color: var(--mute);
  font-style: italic;
  border: 0;
}

blockquote p {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.35;
  max-width: 28rem;
}
.giro span:last-child { font-weight: 600; color: var(--sage); }

.stat {
  display: flex;
  gap: 1.2rem;
  margin: 0 0 1.2rem;
  color: var(--mute);
  font-size: 0.85rem;
}
.stat b { color: var(--ink); font-variant-numeric: tabular-nums; }

@media (min-width: 768px) {
  .who { display: inline; padding-right: 0.4rem; }
  .hero { max-width: 12ch; }
}

@media (max-width: 767px) {
  .brand { display: none; }
  .meter { width: 4rem; height: 4rem; }
  .meter span { width: 3.05rem; height: 3.05rem; }
  .pagehead { align-items: center; }
}
