/* ============================================================================
 * DESIGN: Notebook (Hobonichi / Moleskine)
 *
 * Fountain pen + ruled paper mood.
 *
 * Background:  cream + horizontal rule lines
 * Font:        Gowun Batang (handwritten feel)
 * Texture:     repeating-linear-gradient ruled lines
 * Corners:     subtle, slightly tilted cards
 * Highlight:   yellow highlighter on completed
 * ============================================================================ */

html[data-design="notebook"] {
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 0 rgba(120,90,30,0.06), 0 6px 14px -8px rgba(120,90,30,0.18);
  --shadow-lg: 0 12px 30px -16px rgba(120,90,30,0.32);
  --serif: 'Gowun Batang', 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Gowun Batang', 'Pretendard', 'Noto Sans KR', sans-serif;
}

html[data-design="notebook"] {
  --bg: #fbf5e6;
  --bg-tint: #f6efd9;
  --surface: #fffaeb;
  --surface-2: #f9f1d8;
  --border: #d9c89a;
  --border-soft: #e7dabb;
  --ink: #2a2114;
  --ink-soft: #4a3a20;
  --muted: #8a7858;
}
html[data-design="notebook"][data-theme="dark"] {
  --bg: #1f1a10;
  --bg-tint: #261f12;
  --surface: #2a221a;
  --surface-2: #332a1d;
  --border: #4a3a20;
  --border-soft: #3a2e1d;
  --ink: #f1e7d2;
  --ink-soft: #d8cbab;
  --muted: #a09277;
}

html[data-design="notebook"] body {
  font-family: var(--serif);
  background-image:
    repeating-linear-gradient(
      transparent 0,
      transparent 27px,
      rgba(120,90,30,0.10) 27px,
      rgba(120,90,30,0.10) 28px
    ),
    var(--bg);
}
html[data-design="notebook"][data-theme="dark"] body {
  background-image:
    repeating-linear-gradient(
      transparent 0,
      transparent 27px,
      rgba(220,200,150,0.10) 27px,
      rgba(220,200,150,0.10) 28px
    ),
    var(--bg);
}
html[data-design="notebook"] body::before { opacity: 0 !important; }
html[data-design="notebook"] .drift-orb { display: none !important; }

/* Cards: cream paper, slightly tilted */
html[data-design="notebook"] .day,
html[data-design="notebook"] .today-card,
html[data-design="notebook"] .palette-card,
html[data-design="notebook"] .task-breakdown {
  border-radius: 6px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 0 rgba(120,90,30,0.06), 0 6px 14px -8px rgba(120,90,30,0.18) !important;
  transform: rotate(-0.25deg);
}
html[data-design="notebook"] .day:nth-child(2n) { transform: rotate(0.15deg); }
html[data-design="notebook"] .day:nth-child(3n) { transform: rotate(-0.4deg); }

html[data-design="notebook"] .modal,
html[data-design="notebook"] .drawer {
  border-radius: 6px !important;
}

/* Handwritten day name */
html[data-design="notebook"] .day-name {
  font-family: var(--serif) !important;
  font-size: 1.3em;
  font-weight: 600;
  font-style: italic;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  margin-bottom: 6px;
}

/* Task input: ruled-line aware, no border */
html[data-design="notebook"] .task-input {
  font-family: var(--serif) !important;
  font-size: 14.5px;
  background: transparent !important;
  border-bottom: 1px dashed var(--border) !important;
  padding-bottom: 2px;
}

/* Yellow highlighter on completed */
html[data-design="notebook"] .task-input.done {
  background-image: linear-gradient(transparent 60%, #fff4a3 60%, #fff4a3 92%, transparent 92%);
  background-repeat: no-repeat;
  text-decoration: line-through;
  text-decoration-color: rgba(120,90,30,0.55);
}
html[data-design="notebook"][data-theme="dark"] .task-input.done {
  background-image: linear-gradient(transparent 60%, #847427 60%, #847427 92%, transparent 92%);
}

/* Section labels: hand-stamp feel */
html[data-design="notebook"] .section-label {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 12.5px;
  color: var(--accent-deep);
  letter-spacing: 0;
}

/* Buttons: ink-pen feel */
html[data-design="notebook"] button:not(.task-del):not(.weight-badge):not(.task-kr-dot) {
  border-radius: 5px !important;
  font-family: var(--serif) !important;
}

/* Custom checkbox: hand-drawn X */
html[data-design="notebook"] .chk {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transform: rotate(-2deg);
}
html[data-design="notebook"] .chk:checked {
  background:
    linear-gradient(45deg, transparent 45%, var(--ink) 45%, var(--ink) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--ink) 45%, var(--ink) 55%, transparent 55%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
