:root {
    --jan: #e77e61;
    --feb: #a47351;
    --mar: #d39268;
    --apr: #f28d9d;
    --may: #b5a131;
    --jun: #9f9669;
    --jul: #8ab1ca;
    --aug: #979ebb;
    --sep: #d79277;
    --oct: #a885ad;
    --nov: #849f94;
    --dec: #f78887;
    /* main colours*/
    --bg-color: #fdfaf3;         
    --border-color: #e9e4d8;
    --sidebar-color: #faf8f2;
    --text-color: #3e3e3e;
    --header-bg-color: #f5f0e7;
  
  }
  @font-face {font-family: custom; src: url(/assets/font/000webfont.ttf)}


/*body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* full height */
    margin: 0;
    padding: 0;
}*/

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  font-family: 'custom', sans-serif;
}

article {
  border-width: 20px;
  border-color: #11111B;
  background-color: var(--background-color);
  padding: 10px;
  margin-left: 1em;
  margin-right: 1em;
  min-height: 90%;
}

p {
  overflow-y: auto; /* lets you scroll*/
  scrollbar-width: thin;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color);
  font-size: 0.8em;

}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  
}

#wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  max-width: 50%;
  height: 90vh;
  background-color: var(--bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 10px;
    height: 90vh; /* Give space on top and bottom */
    margin: 0 auto;
    
}

#column-left,
#column-right {
  background-color: var(--sidebar-color);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#column-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#timeline {
  flex-grow: 1;
  line-height: 1.4;
  display: grid;
  grid-template-columns: 2fr 10fr; /* 2 grid squares vs 10 */
  gap: 4px;
  height: 100%;
  font-size: 14px;

  background-size: 20px 20px;
  padding: 10px;
  box-sizing: border-box;
}

#tasks {
  border-bottom: 1px dashed var(--border-color);
  margin-bottom: 1em;
  padding-bottom: 1em;
  font-weight: bold;
  height: 60px;
}

#dot-grid {
  background-image: radial-gradient(#ccc 0.5px, transparent 0.5px);
  background-size: 10px 10px;
}
#date .small {
  font-size: 0.8em;
  color: #999;
}

#timeline, #column-right {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px; /* Adjust to taste — 20px ~ 5mm on most screens */
}

.date-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  padding: 0.5rem;
  border: 1px solid var(--jul);
  width: fit-content;
  background-color: #fdfcf7; /* Hobonichi-style paper color */
  font-family: sans-serif;
}

.date-top-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-month {
  font-size: 1rem;
  color: var(--jul);
}

.date-day {
  font-size: 2rem;
  font-weight: bold;
  color: var(--jul);
}

.date-weekday {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--jul);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  font-size: 0.75rem;
}

.weekday-jp {
  font-size: 0.8rem;
}

.weekday-en {
  font-size: 0.65rem;
  letter-spacing: 1px;
}

.date-moon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--jul);
  font-size: 0.7rem;
}

.moon-icon {
  font-size: 1rem;
  line-height: 1;
}

.date-subtext {
  font-size: 0.7rem;
  color: var(--jul);
}

.timeline-text div {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* TIMELINE CONTAINER */
.timeline-time {
  width: 12px;
  margin: 0px;
  padding: 0px;
  font-size: 12px;
  line-height: 12px; /* each "row" is one grid square */
  white-space: pre-line;
  background-size: 20px 20px;
  padding-left: 4px;
  box-sizing: border-box;
  user-select: none;
  color: var(--jul);
}



/* === Grid container === */
#timeline {
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  overflow: hidden;
}

/* === Shared timeline style (grid background) === */
.timeline-time,
.timeline-text {
  background-size: 20px 20px;
  line-height: 20px; /* matches grid size */
  box-sizing: border-box;
  overflow: hidden;
}

/* === Timeline Time column === */
.timeline-time {
  margin-top: 0px;
  width: 17px; /* ~2ch wide */
  font-size: 12px;
  color: var(--jul);
  white-space: pre-line;
  text-align: center;
  user-select: none;
}

/* === Timeline Text column === */
.timeline-text {
  margin-top: -8px;
  margin-left: 10px;
  flex: 1;
  font-size: 12px;
  color: var(--text-color);
  font-family: sans-serif;
}

.checkbox {
  accent-color: var(--jul);
  height: 0.8em;
}