/* ═══════════════════════════════════════════════════════════
   HARVEY L. PHELPS · VOLUME II — PLANNER TOKENS
   Calendars, dashboards, planners
   ═══════════════════════════════════════════════════════════ */

@import url('tokens.css');

.planner-body { background: #d8d3c6; padding: 32px 16px; }
.planner-stage-cap {
  max-width: 11in; margin: 0 auto 16px;
  font-family: var(--font-body); font-size: 0.68rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--hlp-navy); font-weight: 500;
  display: flex; justify-content: space-between;
}

/* Landscape sheet — 11×8.5in */
.planner-sheet {
  width: 11in; min-height: 8.5in;
  margin: 0 auto 24px;
  background: white;
  box-shadow: 0 40px 80px -20px rgba(15,24,48,0.35);
  position: relative;
  padding: 0.6in 0.7in;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--hlp-ink);
  page-break-after: always;
}
.planner-sheet::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: var(--hlp-gold-foil);
  z-index: 5;
}

.planner-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  padding-bottom: 0.2in;
  border-bottom: 1.5px solid var(--hlp-navy);
  gap: 0.3in;
  margin-bottom: 0.3in;
}
.planner-head .brand {
  display: flex; align-items: center; gap: 0.15in;
}
.planner-head .brand img { height: 0.55in; }
.planner-head .brand .divider { width: 1px; height: 0.4in; background: var(--hlp-gold); }
.planner-head .brand .lock {
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.18in; line-height: 1;
  color: var(--hlp-navy); letter-spacing: -0.005em;
}
.planner-head .brand .lock small {
  display: block;
  font-family: var(--font-body); font-size: 0.075in;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--hlp-gold-deep); font-weight: 500;
  margin-top: 0.04in;
}
.planner-head .title-block { text-align: center; }
.planner-head .title-block h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.36in; line-height: 1;
  color: var(--hlp-navy); margin: 0;
  letter-spacing: -0.02em;
}
.planner-head .title-block h1 em {
  font-style: italic; font-weight: 300;
  background: var(--hlp-gold-foil);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.planner-head .title-block .sub {
  font-family: var(--font-display); font-style: italic;
  font-size: 0.14in; color: var(--hlp-graphite);
  margin-top: 0.06in;
}
.planner-head .stamp {
  text-align: right;
}
.planner-head .stamp .type {
  font-family: var(--font-body); font-size: 0.075in;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--hlp-gold-deep); font-weight: 500;
}
.planner-head .stamp .id {
  font-family: var(--font-mono); font-size: 0.1in;
  color: var(--hlp-navy); margin-top: 0.04in;
}

/* Calendar month grid */
.month {
  border: 1px solid var(--hlp-rule);
  display: grid;
  grid-template-rows: auto auto 1fr;
}
.month-title {
  padding: 0.08in 0.1in;
  background: var(--hlp-navy);
  color: var(--hlp-ivory);
  display: flex; justify-content: space-between; align-items: center;
}
.month-title .m {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.13in; letter-spacing: 0.02em;
}
.month-title .y {
  font-family: var(--font-body); font-size: 0.075in;
  letter-spacing: 0.24em; color: var(--hlp-gold);
  font-weight: 500;
}
.day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--hlp-ivory-soft);
  border-bottom: 1px solid var(--hlp-rule-light);
}
.day-headers div {
  padding: 0.04in 0;
  text-align: center;
  font-family: var(--font-body); font-size: 0.065in;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--hlp-gold-deep); font-weight: 600;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 1fr;
}
.day {
  border-right: 1px solid var(--hlp-rule-light);
  border-bottom: 1px solid var(--hlp-rule-light);
  padding: 0.04in 0.05in;
  min-height: 0.4in;
  font-family: var(--font-body); font-size: 0.08in;
  color: var(--hlp-ink);
  position: relative;
}
.day:nth-child(7n) { border-right: none; }
.day.pad {
  background: var(--hlp-ivory-soft);
  color: var(--hlp-silver);
}
.day .n {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.1in;
  color: var(--hlp-navy);
  display: block;
}
.day.pad .n { color: var(--hlp-silver); }
.day .event {
  display: block;
  font-family: var(--font-body); font-size: 0.06in;
  letter-spacing: 0.05em;
  color: var(--hlp-gold-deep);
  font-weight: 600;
  margin-top: 0.02in;
  line-height: 1.3;
}
.day .event.filled {
  background: var(--hlp-gold);
  color: var(--hlp-navy);
  padding: 0.015in 0.04in;
  border-radius: 1px;
  font-weight: 600;
}
.day .event.speaking { background: var(--hlp-navy); color: var(--hlp-gold); padding: 0.015in 0.04in; }
.day .event.publish { background: transparent; color: var(--hlp-navy); border-left: 2px solid var(--hlp-gold); padding-left: 0.03in; }
.day.today {
  background: var(--hlp-navy-depth);
  color: var(--hlp-ivory);
}
.day.today .n { color: var(--hlp-gold); }

/* Foot */
.planner-foot {
  position: absolute;
  bottom: 0.35in; left: 0.7in; right: 0.7in;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0.2in;
  padding-top: 0.1in;
  border-top: 1px solid var(--hlp-rule-light);
  font-family: var(--font-body); font-size: 0.07in;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--hlp-graphite);
}
.planner-foot .c { text-align: center; color: var(--hlp-gold-deep); font-weight: 500; }
.planner-foot .r { text-align: right; }

/* Legend */
.legend {
  display: flex; gap: 0.2in; justify-content: center;
  margin-bottom: 0.2in;
  font-family: var(--font-body); font-size: 0.075in;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--hlp-graphite); font-weight: 500;
}
.legend .item { display: flex; align-items: center; gap: 0.06in; }
.legend .swatch { width: 0.1in; height: 0.1in; }
.legend .swatch.gold { background: var(--hlp-gold); }
.legend .swatch.navy { background: var(--hlp-navy); }
.legend .swatch.rule { border-left: 2px solid var(--hlp-gold); height: 0.1in; }
