/* one dark screen: the reef behind, today's card at the bottom where a thumb reaches */
:root {
  color-scheme: dark;
  --teal: #5fd4c4;
  --ink: #f3f1ec;
  --soft: #d8d3ca;
  --muted: #9a958c;
  --line: #ffffff14;
  --serif: ui-serif, "New York", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; }

body {
  background: #0b0b0d;
  color: var(--ink);
  font: 16px/1.45 -apple-system, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* the reef drifts very slowly so the screen feels alive; it holds still for anyone who asks for less motion */
.world {
  position: fixed;
  inset: -4%;
  background: url(/reef.jpg) center 30% / cover;
  animation: drift 40s ease-in-out infinite alternate;
}
.world::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#0b0b0d99, #0b0b0d00 30%, #0b0b0dcc 75%);
}
@keyframes drift { to { transform: scale(1.06) translate(-1%, 1%); } }
@media (prefers-reduced-motion: reduce) { .world { animation: none; } }

main {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);
}
header { padding: 4px 6px; }
#date { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #c9c4ba; }
#season { font: 600 16px var(--serif); }

.card {
  margin-top: auto;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgb(22 22 26 / 0.74);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.chip {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgb(95 212 196 / 0.18);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}
h1 { font: 600 40px/1.05 var(--serif); letter-spacing: -0.01em; }
h2 { font: 600 20px var(--serif); }
.lead, .change b { color: var(--teal); font-weight: 600; }
.change, .note, .next { color: var(--soft); }

.steps { list-style: none; padding: 0; }
.steps li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.steps b { white-space: nowrap; }

button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #ffffff10;
  color: inherit;
  font: inherit;
  font-weight: 600;
}
.pill[aria-pressed="true"], .go { background: var(--teal); color: #08201d; }
.go { min-height: 52px; font-size: 17px; }
.quiet { min-height: 36px; background: none; color: var(--muted); font-weight: 500; }

.feel { display: grid; grid-template-columns: 52px repeat(3, 1fr); gap: 6px; align-items: center; }
.feel span { color: var(--muted); font-size: 14px; }

.result { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--soft); }
/* 16px or more stops iPhone zooming in when the box is tapped */
.result input {
  width: 110px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #ffffff10;
  color: var(--ink);
  font: 600 17px -apple-system, system-ui, sans-serif;
  text-align: right;
}

summary { list-style: none; cursor: pointer; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: " ⌄"; }
details[open] summary::after { content: " ⌃"; }
.why summary { color: var(--teal); }
.why p { margin-top: 8px; padding-left: 12px; border-left: 3px solid var(--teal); color: var(--soft); }
.ways-out summary { color: var(--muted); font-weight: 500; text-align: center; }
.ways-out div { display: grid; gap: 8px; margin-top: 10px; }
