/* The calendar (2026-10-25): a wall calendar of every idea in the place, in plain shapes. One colour scheme, no dark
   mode switch (her standing rule). */
:root { --wall: #2a0a14; --velvet: #4e1230; --gold: #c9a24b; --cream: #f2e2c4; --paper: #fffdf6; --ink: #2a1c2e; --pink: #c4477a; --teal: #4fb3a9; --rose: #f3a6c6; --plum: #7a2e55; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--wall); color: var(--cream); font-family: 'Crimson Pro', Georgia, serif; }
main { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 30px 16px 120px; max-width: 1100px; margin: 0 auto; }
.quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { font: inherit; color: inherit; }
.back { position: fixed; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); background: var(--velvet); z-index: 5; }
.back::after { content: ""; position: absolute; left: 12px; top: 10px; width: 9px; height: 9px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); }
.back:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.line { margin: 0; font: italic 15px Lora, Georgia, serif; opacity: .9; }
.line a { color: var(--gold); }

/* the calendar itself: a paper sheet hung from a nail, a strip of months across its top */
.cal { position: relative; width: 100%; padding: 26px 16px 14px; background: var(--paper); color: var(--ink); border-radius: 3px; box-shadow: 6px 12px 22px #000b; }
.hook { position: absolute; left: 50%; top: -12px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff9, transparent 55%), var(--gold); box-shadow: 0 2px 3px #0009; }
.cal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--plum) 0 6px, transparent 6px 22px); opacity: .5; }
.years { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 12px; }
.yr { display: grid; grid-template-columns: 38px repeat(12, 1fr); gap: 3px; align-items: center; }
.yr .y { font: italic 12px Lora, Georgia, serif; color: var(--plum); }
.mo { height: 14px; padding: 0; border: 1px solid #d9c9a8; border-radius: 2px; background: none; cursor: pointer; }
.mo.busy { background: var(--pink); }
.mo.none { border-color: transparent; background: none; cursor: default; }
.mo:hover, .mo:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.mo.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.head { display: flex; align-items: center; justify-content: center; gap: 18px; border-top: 2px solid var(--ink); padding-top: 8px; }
.head h2 { margin: 0; min-width: 210px; text-align: center; font-size: 28px; color: var(--plum); }
.flip { width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 50%; background: var(--cream); font-size: 22px; line-height: 1; cursor: pointer; }
.flip:disabled { opacity: .25; cursor: default; }
.flip:not(:disabled):hover, .flip:focus-visible { background: var(--rose); outline: none; }

/* the month page: seven columns of squares; each thing a day touched is a tab */
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; margin-top: 10px; border-left: 1px solid #d9c9a8; border-top: 1px solid #d9c9a8; }
.dow { padding: 3px 0; text-align: center; font: italic 12px Lora, Georgia, serif; color: var(--plum); border-right: 1px solid #d9c9a8; border-bottom: 1px solid #d9c9a8; }
.day { min-height: 92px; padding: 3px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid #d9c9a8; border-bottom: 1px solid #d9c9a8; min-width: 0; }
.day.blank { background: #f3ecdc; }
.day.later { background: #faf6ec; }
.day.later .n { opacity: .4; }
.day.today { box-shadow: inset 0 0 0 3px var(--pink); }
.day .n { font-size: 14px; font-weight: 600; line-height: 1; }
.tab, .note, .more { display: block; width: 100%; padding: 1px 4px; border: 0; border-left: 4px solid; border-radius: 2px; text-align: left; font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.tab.thought { background: #f9e3ec; border-color: var(--pink); }
.tab.worked { background: #f4e7c4; border-color: var(--gold); }
.tab.idea { background: var(--plum); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.note { background: var(--cream); border-color: var(--ink); font-style: italic; }
.more { background: none; border-color: transparent; font-style: italic; opacity: .75; }
.tab:hover, .tab:focus-visible, .note:hover, .note:focus-visible, .more:hover, .more:focus-visible { outline: 2px solid var(--teal); outline-offset: -1px; }
.key { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; font: italic 13px Lora, Georgia, serif; }
.key .k { display: inline-block; width: 14px; height: 10px; margin-right: 4px; border-left: 4px solid; vertical-align: middle; }
.k.idea { background: var(--plum); border-color: var(--ink); } .k.worked { background: #f4e7c4; border-color: var(--gold); }
.k.thought { background: #f9e3ec; border-color: var(--pink); }

/* a thing's own line: a card pinned under the calendar, one bar per month since it first came up */
.life { position: relative; width: 100%; padding: 16px 18px 14px; background: var(--cream); color: var(--ink); border: 2px solid #7a5230; box-shadow: 3px 6px 12px #0009; }
.life h2 { margin: 0 30px 4px 0; font-size: 22px; color: var(--plum); }
.life .line { opacity: 1; }
.life .line a { color: var(--plum); font-weight: 600; }
.shut { position: absolute; right: 8px; top: 6px; width: 30px; height: 30px; border: 0; background: none; font-size: 24px; cursor: pointer; }
.shut:focus-visible { outline: 2px solid var(--teal); }
.track { display: flex; align-items: flex-end; gap: 1px; height: 110px; margin: 12px 0 8px; padding: 16px 0 0; overflow-x: auto; border-bottom: 2px solid var(--ink); }
.bar { position: relative; flex: 1 0 7px; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); background: var(--pink); border-radius: 2px 2px 0 0; }
.bar.made::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--h) + 2px); height: 5px; background: var(--gold); border-radius: 2px; }
.bar.jan { border-left: 1px dashed #7a523080; }
.bar .yl { position: absolute; left: 2px; top: -16px; font: italic 11px Lora, Georgia, serif; color: var(--plum); white-space: nowrap; }
.bar:hover::before, .bar:focus-visible::before { background: var(--plum); }
.bar:focus-visible { outline: none; }

.doors { display: flex; gap: 20px; margin-top: 10px; }
.door { position: relative; display: block; width: 46px; height: 76px; border: 3px solid var(--gold); border-radius: 23px 23px 4px 4px; background: #b64a1e; }
.door .knob { position: absolute; right: 8px; top: 44px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.door:hover, .door:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* a phone: the days get narrow, so a tab becomes a coloured dot and the day itself opens its list */
@media (max-width: 640px) {
  main { padding: 64px 10px 100px; }
  .cal { padding: 24px 8px 12px; }
  .head h2 { min-width: 0; font-size: 22px; }
  .yr { grid-template-columns: 30px repeat(12, 1fr); gap: 2px; }
  .day { min-height: 58px; flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 2px; padding: 2px; }
  .day .n { width: 100%; font-size: 12px; }
  .tab, .note { width: 9px; height: 9px; padding: 0; border-left: 0; border-radius: 50%; font-size: 0; }
  .tab.thought { background: var(--pink); } .tab.worked { background: var(--gold); }
  .tab.idea { background: var(--plum); box-shadow: 0 0 0 1px var(--ink); } .note { background: var(--ink); }
  .more { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
/* a day's list, opened from a phone */
.daylist { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 6px; }
.daylist .tab { width: 100%; height: auto; padding: 8px 10px; font-size: 16px; border-radius: 3px; border-left: 5px solid; white-space: normal; }
.daylist .when { margin: 8px 0 0; font-size: 17px; color: var(--plum); }
.daylist .tab.thought { background: #f9e3ec; border-color: var(--pink); } .daylist .tab.worked { background: #f4e7c4; border-color: var(--gold); }
.daylist .tab.idea { background: var(--plum); color: var(--paper); }
/* the story of a thing: every day something was done with it, oldest first */
.story { display: flex; flex-direction: column; gap: 3px; margin: 10px 0 6px; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.step { display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 5px 10px; border: 0; border-left: 4px solid var(--pink); border-radius: 2px; background: var(--paper); text-align: left; cursor: pointer; }
.step .d { min-width: 150px; font: italic 14px Lora, Georgia, serif; color: var(--plum); }
.step .w { font-size: 16px; }
.step.worked { border-color: var(--gold); } .step.idea { border-color: var(--plum); background: #f6e3ee; font-weight: 600; }
.step.here { box-shadow: inset 0 0 0 2px var(--pink); }
.step:hover, .step:focus-visible { outline: 2px solid var(--teal); outline-offset: -1px; }
/* what was considered: the short line everyone sees, and the detail only her own copy carries */
.daylist .tab .bul, .step .bul { display: block; font-size: 14px; font-style: italic; }
.det { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; opacity: .85; white-space: normal; }
.step .w { display: block; }
