@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/fraunces-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/fraunces-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* WeekManager – warm paper planner. Colors: cream paper + ink blue (plus near-black/white). */
:root {
  --bg: #f6f0e4; --paper: #fffcf6; --ink: #1c2230; --muted: #5b6070; --accent: #24507a; --accent-strong: #1b3f62;
  --accent-soft: rgba(36, 80, 122, .07); --rule: rgba(36, 80, 122, .2); --line: rgba(28, 34, 48, .12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif; --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px; color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid rgba(36, 80, 122, .45); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.3rem); margin: 0 0 .35em; font-optical-sizing: auto; }
h2 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2.05rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.3rem/1 var(--serif); letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; flex: none; }
.topnav { display: flex; gap: 4px; }
.topnav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.topnav a:hover, .topnav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); }

/* intro + breadcrumbs */
.crumbs { font-size: .9rem; color: var(--muted); margin: 18px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.intro { padding: 26px 0 10px; max-width: 60rem; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 46rem; margin: 0; }

/* tool + toolbar */
.tool { margin: 18px 0 8px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 14px; }
.weeknav, .actions, .seg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn, .seg button, .paper select { font: 600 .95rem/1 var(--sans); color: var(--accent-strong); background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; min-height: 44px; padding: 0 16px; cursor: pointer; }
.btn:hover, .seg button:hover { border-color: var(--accent); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-icon { width: 44px; padding: 0; font-size: 1.25rem; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); }
.seg { gap: 0; }
.seg button { border-radius: 0; }
.seg button:first-child { border-radius: 10px 0 0 10px; }
.seg button:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.paper { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.paper select { padding: 0 10px; }
@media (max-width: 480px) { .paper-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .toolbar { gap: 10px; } }
.week-label { font: 600 1rem/1 var(--sans); color: var(--muted); margin-left: 4px; min-width: 6.5em; }
.tool-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: .92rem; color: var(--muted); margin: 12px 2px 0; }
.save-status { margin: 0; }
.save-status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .55; margin-right: 8px; vertical-align: 1px; }

/* the paper sheet */
.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(60, 40, 10, .04), 0 18px 40px -28px rgba(60, 40, 10, .35); padding: clamp(16px, 2.6vw, 34px); }
.sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; border-bottom: 2px solid var(--accent); padding-bottom: 12px; margin-bottom: 20px; }
.sheet-kicker { margin: 0; font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sheet-week { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sheet-range { font: 500 1rem/1.3 var(--sans); color: var(--muted); letter-spacing: 0; }
.sheet-foot { display: none; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
.days { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
.sec, .day { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 10px; min-width: 0; }
.sec-title { margin: 0 0 4px; font: 700 .76rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1.5px solid var(--accent); padding-bottom: 6px; }
.day-name { margin: 0; font-size: 1.3rem; }
.day-date { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.day.is-today { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.day.is-today .day-date::before { content: "Today · "; color: var(--accent); font-weight: 600; }
.lines, .habits { list-style: none; margin: 0; padding: 0; }
.line { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--rule); min-height: 44px; }
.line:focus-within { border-bottom-color: var(--accent); }
.txt { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); font: 400 16px/1.4 var(--sans); padding: 9px 0; border-radius: 0; }
.txt:focus { outline: none; }
.txt::placeholder, .note::placeholder { color: #8b8f99; opacity: 1; }
.chk { appearance: none; -webkit-appearance: none; flex: none; width: 21px; height: 21px; margin: 0; border: 1.6px solid rgba(36, 80, 122, .5); border-radius: 6px; background: #fff; display: inline-grid; place-content: center; cursor: pointer; }
.chk:checked { background: var(--accent); border-color: var(--accent); }
.chk:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.chk:disabled { cursor: default; opacity: .55; }
.line.done .txt { text-decoration: line-through; text-decoration-color: rgba(28, 34, 48, .45); color: var(--muted); }
.note { display: block; width: 100%; border: 0; resize: vertical; background: transparent linear-gradient(transparent calc(2.6rem - 1px), var(--rule) 0) 0 0 / 100% 2.6rem; color: var(--ink); font: 400 16px/2.6rem var(--sans); padding: 0; min-height: 7.8rem; }
.note:focus { outline: none; }
.sec-text:focus-within, .sec-list:focus-within, .day:focus-within { border-color: rgba(36, 80, 122, .45); }
.slot, .hour { display: block; border-bottom: 1px solid var(--rule); }
.slot-name { display: block; padding-top: 9px; font: 700 .72rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.slot .txt { padding: 4px 0 9px; }
.hour { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.hour-name { flex: none; width: 3.4em; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.habit-head, .habit { display: grid; grid-template-columns: minmax(0, 1fr) repeat(7, 28px); gap: 4px; align-items: center; }
.habit-head { font: 700 .72rem/1 var(--sans); color: var(--muted); text-align: center; padding: 4px 0; }
.habit { border-bottom: 1px solid var(--rule); min-height: 44px; }
.habit .chk { justify-self: center; }

@media (min-width: 700px) {
  body { font-size: 18px; }
  .row.n2, .row.n3, .row.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row.n3 > :first-child { grid-column: 1 / -1; }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .row.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row.n3 > :first-child { grid-column: auto; }
  .row.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .days-hours { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
  .days-hours .day { padding: 10px 10px 6px; }
  .days-hours .day-name { font-size: 1.1rem; }
  .days-hours .day-head { flex-direction: column; align-items: flex-start; gap: 0; }
  .days-hours .day-date { font-size: .8rem; }
  .days-hours .hour { gap: 6px; }
  .days-hours .hour-name { width: 2.9em; font-size: .72rem; }
  .days-hours .txt { font-size: 15px; }
}

/* content below the tool */
.content { padding-bottom: 40px; }
.content.wide { max-width: none; }
.content > section > p, .content li { max-width: 46rem; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: .6em; }
.steps li::marker { font-family: var(--serif); font-weight: 600; color: var(--accent); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); max-width: none; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; max-width: none !important; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: #fff; border-bottom: 1px solid var(--line); }
.card-body { padding: 12px 16px 16px; }
.card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }
.card:hover { border-color: var(--rule); }
.printables { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 10px 0 8px; }
.printable { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.printable img { border: 1px solid var(--line); border-radius: 4px; background: #fff; margin-bottom: 12px; height: 300px; width: auto; max-width: 100%; object-fit: contain; object-position: left top; }
.printable h3 { margin: 0 0 8px; font-size: 1.1rem; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; }
.dl a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; }
.dl a:hover { border-color: var(--accent); }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style-position: outside; }
.faq details p { color: var(--ink); }
.note-box { background: var(--paper); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 18px 0; }
.more { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; }
.site-foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 0 36px; font-size: .92rem; color: var(--muted); }
.site-foot p { margin: 0 0 .5em; }
.ad-slot[hidden] { display: none !important; }
.notfound { padding: 40px 0 20px; max-width: 44rem; }

/* print: one page, portrait or landscape, Letter or A4 (size set by the app via @page) */
@media print {
  @page { margin: 10mm; }
  html, body { background: #fff !important; font-size: 9pt; }
  .topbar, .crumbs, .intro, .toolbar, .tool-meta, .content, .site-foot, .ad-slot, .skip { display: none !important; }
  main.wrap { max-width: none; padding: 0; }
  .tool { margin: 0; }
  .sheet { --ph: 257mm; height: var(--ph); overflow: hidden; border: 0; border-radius: 0; box-shadow: none; padding: 0; background: #fff; display: flex; flex-direction: column; gap: 2.2mm; break-inside: avoid; }
  html[data-paper="a4"] .sheet { --ph: 275mm; }
  html[data-orient="landscape"] .sheet { --ph: 193mm; }
  html[data-paper="a4"][data-orient="landscape"] .sheet { --ph: 188mm; }
  .sheet-head { margin: 0; padding-bottom: 1.6mm; border-bottom-width: .5mm; flex: none; }
  .sheet-kicker { font: 600 16pt/1.1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
  .sheet-week { font-size: 13pt; color: var(--accent); }
  .sheet-range { font-size: 8.5pt; }
  .row, .days { margin: 0; gap: 2.2mm; }
  .row { flex: none; display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)) !important; }
  .row.n2 { --n: 2; } .row.n3 { --n: 3; } .row.n4 { --n: 4; }
  .row > * { grid-column: auto !important; }
  .days > * { contain: size; }
  .days { flex: 1 1 0; min-height: 0; contain: size; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .days-hours { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; grid-template-rows: 1fr; gap: 0; border: .3mm solid var(--rule); }
  .sec, .day { border: .3mm solid rgba(36, 80, 122, .45); border-radius: 1.5mm; padding: 1.6mm 2.4mm 1mm; overflow: hidden; min-height: 0; background: #fff; box-shadow: none !important; }
  .day.is-today { border-color: rgba(36, 80, 122, .45); }
  .day.is-today .day-date::before { content: none; }
  .days-hours .day { border-radius: 0; border: 0; border-left: .3mm solid var(--rule); padding: 1mm 1.2mm; }
  .day-head { padding-bottom: .8mm; border-bottom-width: .35mm; }
  .day-name { font-size: 10.5pt; }
  .day-date { font-size: 7.5pt; }
  .sec-title { font-size: 6.6pt; margin-bottom: .4mm; }
  .line, .habit { min-height: 5.6mm; gap: 1.6mm; border-bottom-width: .2mm; }
  .txt { font-size: 8.4pt; padding: .6mm 0; }
  .chk { width: 2.8mm; height: 2.8mm; border-width: .25mm; border-radius: .6mm; }
  .chk:checked::after { width: 1.4mm; height: .7mm; border-width: 0 0 .35mm .35mm; }
  .chk:disabled { opacity: 1; }
  .txt::placeholder, .note::placeholder { color: transparent; }
  .note { font-size: 8.4pt; line-height: 5.6mm; background-size: 100% 5.6mm; background-image: linear-gradient(transparent calc(5.6mm - .2mm), var(--rule) 0); min-height: 0; height: 100%; resize: none; overflow: hidden; }
  .sec-text { display: flex; flex-direction: column; }
  .sec-text .note { flex: 1; min-height: 11.2mm; }
  .row .sec-text .note { height: 16.8mm; flex: none; }
  .habit-head, .habit { grid-template-columns: minmax(0, 1fr) repeat(7, 5mm); gap: .6mm; }
  .habit-head { font-size: 6pt; padding: 0; }
  .slot-name { font-size: 5.8pt; padding-top: .6mm; }
  .slot .txt { padding: 0 0 .5mm; }
  .hour { min-height: 0; flex: 1; gap: 1mm; border-bottom-width: .2mm; }
  .days-hours .hours { display: flex; flex-direction: column; height: calc(100% - 9mm); }
  .hour-name { font-size: 5.8pt; width: auto; min-width: 6mm; }
  .days-hours .txt { font-size: 7pt; }
  .days-hours .day:not(:first-child) .hour-name { display: none; }
  .sheet-foot { display: flex; justify-content: space-between; margin: 0; font-size: 6.5pt; color: var(--muted); flex: none; }
  /* landscape: 4 x 2 day grid, all side sections in one row above the days */
  html[data-orient="landscape"] .sheet { display: grid; grid-template-columns: repeat(var(--k, 1), minmax(0, 1fr)); grid-template-rows: auto auto minmax(0, 1fr) auto; }
  html[data-orient="landscape"] .sheet[data-k="2"] { --k: 2; }
  html[data-orient="landscape"] .sheet[data-k="3"] { --k: 3; }
  html[data-orient="landscape"] .sheet[data-k="4"] { --k: 4; }
  html[data-orient="landscape"] .sheet-head, html[data-orient="landscape"] .days, html[data-orient="landscape"] .sheet-foot { grid-column: 1 / -1; }
  html[data-orient="landscape"] .row { display: contents; }
  html[data-orient="landscape"] .sec-top, html[data-orient="landscape"] .sec-bottom { grid-row: 2; }
  html[data-orient="landscape"] .sheet-head { grid-row: 1; }
  html[data-orient="landscape"] .days { grid-row: 3; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  html[data-orient="landscape"] .days-hours { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; grid-template-rows: 1fr; }
  html[data-orient="landscape"] .sheet-foot { grid-row: 4; }
  html[data-orient="landscape"] .sec-text .note { height: 16.8mm; flex: none; }
}
