:root {
  color-scheme: light;
  --pine: #173d31;
  --pine-dark: #102d25;
  --ink: #202b26;
  --muted: #4c6055;
  --cream: #f7f4ed;
  --line: #d8e0d9;
  --cranberry: #921e35;
  --light-green: #e8f0e8;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
[hidden] { display: none !important; }
.wrap { width: min(1060px, calc(100% - 36px)); margin-inline: auto; }
.hero {
  color: #fffaf1;
  background: radial-gradient(ellipse at 85% 15%, #315b47 0%, transparent 64%), var(--pine-dark);
  border-bottom: 5px solid #b45460;
}
.hero-inner { padding-block: clamp(32px, 6vw, 74px); }
.region { margin: 0 0 8px; color: #f1d9b3; font-size: .9rem; font-weight: 650; }
h1, h2 { margin: 0; line-height: 1.12; font-family: Georgia, serif; }
h1 { font-size: clamp(2.65rem, 7vw, 5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); color: var(--pine-dark); }
.intro { max-width: 60ch; margin: 12px 0 0; color: #f5ebda; font-size: clamp(1rem, 2vw, 1.15rem); }
main { padding-top: clamp(18px, 4vw, 42px); }
.planner { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { min-width: 0; padding: clamp(14px, 3vw, 26px); border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.weekdays { margin: 18px 0 6px; color: var(--muted); font-size: .76rem; font-weight: 650; }
.day {
  position: relative;
  min-width: 0;
  min-height: 44px;
  aspect-ratio: 1.1;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f4f6f3;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.day.has-projects { background: var(--light-green); color: var(--pine-dark); padding-bottom: 9px; }
.day:hover { border-color: var(--pine); }
.day[aria-current="date"] { text-decoration: underline; text-underline-offset: 3px; }
.day[aria-pressed="true"] { background: var(--pine); color: #fff; }
.day.has-projects::after, .legend span { border-radius: 50%; background: var(--cranberry); width: 6px; height: 6px; }
.day.has-projects::after { content: ""; position: absolute; bottom: 6px; left: calc(50% - 3px); }
.day[aria-pressed="true"]::after { background: #f5c4a8; }
.legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .83rem; margin: 14px 0 0; }
.count { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.count:empty, .projects:empty { display: none; }
.projects { display: grid; gap: 10px; list-style: none; padding: 0; margin: 15px 0 0; }
.project {
  display: block;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.project:hover { border-color: var(--pine); background: #fbfcf9; }
.project-copy { display: grid; gap: 2px; }
.project-title { color: var(--pine-dark); line-height: 1.35; }
.project-meta, #empty { color: var(--muted); }
.project-meta { font-size: .88rem; }
.project-action { font-size: .85rem; color: var(--cranberry); font-weight: 650; margin-top: 5px; }
.project:hover .project-action { text-decoration: underline; }
footer { margin-top: 34px; padding-block: 4px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
footer a { color: var(--pine); }
:focus-visible { outline: 3px solid var(--cranberry); outline-offset: 2px; }
@media (max-width: 680px) {
  .planner { grid-template-columns: minmax(0, 1fr); }
  .planner { gap: 12px; }
  .calendar { padding-inline: clamp(9px, 3vw, 18px); }
  .day { aspect-ratio: auto; }
  .wrap { width: calc(100% - 24px); }
}
