/* Laura Guercio — a numbered exercise book, page by page, on a desk (reference: nothingonpurpose.com document pages, noma.dk written as a letter) */
:root { --desk: #4B4741; --desk2: #3F3B36; --paper: #FFFDF8; --rule: #CFE0F0; --margin: #E9A3A3; --ink: #1A2E5A; --red: #D62828; --hl: #FFF3A3; --text: #1F2433; --muted: #5C6478; --line: #DDD6C6; --cover: #1F3A6E;
  --display: 'Literata', Georgia, serif; --body: 'Public Sans', system-ui, sans-serif; --hand: 'Caveat', cursive; --ease: cubic-bezier(.16, 1, .3, 1); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--desk); background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 6px 6px; color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: inherit; } button { font: inherit; } [hidden] { display: none !important; }
::selection { background: var(--hl); color: var(--ink); }

.book { width: min(820px, 100% - 32px); margin: 40px auto 80px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; } .book > * { min-width: 0; }
.page { position: relative; background: var(--paper); min-height: 1100px; padding: 56px 64px 72px 96px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 0 2px 0 rgba(0,0,0,.2); background-image: repeating-linear-gradient(0deg, transparent 0 31px, var(--rule) 31px 32px); background-position: 0 56px; }
.page::before { content: ''; position: absolute; left: 72px; top: 0; bottom: 0; width: 2px; background: var(--margin); } .page::after { content: attr(data-n); position: absolute; right: 24px; bottom: 20px; font-family: var(--hand); font-size: 22px; color: var(--muted); }
.page .hdr { display: flex; justify-content: space-between; gap: 12px; font-family: var(--hand); font-size: 22px; color: var(--red); margin: -8px 0 24px; line-height: 32px; }
.page h2 { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 32px; margin: 0 0 32px; color: var(--ink); } .page h2 small { font-family: var(--hand); font-weight: 600; font-size: 22px; color: var(--red); margin-left: 10px; }
.page p { margin: 0 0 32px; line-height: 32px; } .page p.short { margin-bottom: 0; }
.note { font-family: var(--hand); font-size: 24px; color: var(--red); line-height: 1.1; transform: rotate(-1.5deg); display: inline-block; }
.margin-note { position: absolute; left: 12px; width: 52px; font-family: var(--hand); font-size: 18px; color: var(--red); line-height: 1; text-align: center; transform: rotate(-6deg); }
.hl { background: linear-gradient(transparent 30%, var(--hl) 30%, var(--hl) 92%, transparent 92%); padding: 0 .1em; }
.stamp { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); border: 2px solid var(--red); border-radius: 6px; padding: 4px 10px; transform: rotate(-4deg); opacity: .85; mix-blend-mode: multiply; }

/* cover */
.cover { background: var(--cover); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 6px, transparent 6px 12px); padding: 80px 64px; min-height: 1100px; display: grid; align-content: start; gap: 40px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); position: relative; }
.cover::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 26px; background: rgba(0,0,0,.25); }
.label { background: var(--paper); border: 2px solid var(--ink); padding: 26px 28px; max-width: 520px; margin: 40px auto 0; display: grid; gap: 14px; box-shadow: 4px 4px 0 rgba(0,0,0,.25); }
.label .row { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: baseline; border-bottom: 1.5px solid var(--ink); padding-bottom: 4px; } .label .row span { font-family: var(--display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); } .label .row b { font-family: var(--hand); font-weight: 600; font-size: 26px; color: var(--ink); line-height: 1; }
.cover .title { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 64px); color: #fff; letter-spacing: -.02em; line-height: 1; margin: 0; text-align: center; } .cover .title small { display: block; font-family: var(--hand); font-weight: 600; font-size: 28px; color: var(--hl); margin-top: 10px; }
.stickers { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sticker { font-family: var(--hand); font-weight: 600; font-size: 22px; line-height: 1; padding: 8px 14px; background: var(--hl); color: var(--ink); border: 0; cursor: pointer; transform: rotate(-3deg); box-shadow: 2px 2px 0 rgba(0,0,0,.25); text-decoration: none; } .sticker:nth-child(2n) { transform: rotate(2deg); background: #fff; } .sticker.is-on { background: var(--red); color: #fff; }

/* tabs on the page edge */
.tabs { position: fixed; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; z-index: 5; }
.tab { writing-mode: vertical-rl; text-orientation: mixed; padding: 12px 8px; font-family: var(--hand); font-weight: 600; font-size: 18px; border: 0; border-radius: 0 6px 6px 0; cursor: pointer; color: var(--ink); box-shadow: 2px 2px 0 rgba(0,0,0,.25); transition: transform .3s var(--ease); } .tab:hover { transform: translateX(-4px); } .tab.is-on { transform: translateX(-6px); }
.tab:nth-child(1) { background: #FFD166; } .tab:nth-child(2) { background: #CFE0F0; } .tab:nth-child(3) { background: #F4A3A3; } .tab:nth-child(4) { background: #BFF3E0; } .tab:nth-child(5) { background: #E4DBFF; } .tab:nth-child(6) { background: #FFF3A3; }

/* worksheet */
.rows { display: grid; gap: 0; } .row2 { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 16px; align-items: baseline; line-height: 32px; } .row2 label { font-weight: 600; } .row2 label small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 8px; }
.row2 input { width: 100%; border: 0; border-bottom: 2px dotted var(--ink); background: transparent; font: 600 26px var(--hand); color: var(--ink); text-align: right; padding: 0; border-radius: 0; height: 32px; } .row2 input:focus { outline: none; background: var(--hl); }
.out { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: center; margin: 32px 0 0; }
.gauge { position: relative; width: 170px; padding-bottom: 26px; } .gauge svg { width: 100%; display: block; overflow: visible; } .g-bg { fill: none; stroke: var(--rule); stroke-width: 14; stroke-linecap: round; } .g-fg { fill: none; stroke: var(--red); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); } .g-val { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-family: var(--hand); font-weight: 600; font-size: 40px; color: var(--ink); line-height: 1; } .g-val small { display: block; font-family: var(--body); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.res div { display: flex; justify-content: space-between; gap: 12px; line-height: 32px; border-bottom: 1px dotted var(--line); } .res b { font-family: var(--hand); font-size: 26px; color: var(--ink); }

/* timetable + report card + calendar + coupon */
.tt { width: 100%; border-collapse: collapse; margin: 0 0 32px; font-size: 14px; } .tt th, .tt td { border: 1.5px solid var(--ink); padding: 8px 10px; vertical-align: top; text-align: left; background: rgba(255,255,255,.7); } .tt th { font-family: var(--display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; background: var(--hl); } .tt td b { font-family: var(--display); font-size: 16px; display: block; color: var(--ink); } .tt .pr { font-family: var(--hand); font-size: 24px; color: var(--red); white-space: nowrap; }
.tt.pagella td.v { font-family: var(--hand); font-size: 26px; color: var(--red); text-align: center; }
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; } .month { border: 1.5px solid var(--ink); padding: 10px; background: rgba(255,255,255,.7); } .month b { font-family: var(--display); display: block; margin-bottom: 6px; } .month .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 11px; text-align: center; } .month .g span { padding: 3px 0; } .month .g .d { color: var(--muted); font-size: 9px; } .month .g .sat { position: relative; font-weight: 700; color: var(--red); } .month .g .sat::after { content: ''; position: absolute; inset: -2px -1px; border: 2px solid var(--red); border-radius: 50%; transform: rotate(-8deg); }
.evl { display: grid; gap: 0; } .evl div { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; line-height: 32px; } .evl b { font-family: var(--hand); font-size: 24px; color: var(--red); } .evl small { color: var(--muted); }
.coupon { border: 2px dashed var(--ink); padding: 22px 24px; position: relative; margin: 8px 0 32px; background: rgba(255,255,255,.75); } .coupon::before { content: '✂'; position: absolute; left: -14px; top: -14px; font-size: 22px; background: var(--paper); padding: 0 4px; } .coupon b { font-family: var(--display); font-size: 22px; color: var(--ink); display: block; } .coupon .hand { font-family: var(--hand); font-size: 22px; color: var(--red); }
.check { display: grid; gap: 0; } .check div { line-height: 32px; display: flex; gap: 10px; } .check div::before { content: '☐'; color: var(--red); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 700; font-size: 14px; text-decoration: none; padding: 10px 16px; border-radius: 8px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; box-shadow: 3px 3px 0 var(--red); } .btn--ghost { background: #fff; color: var(--ink); } .btn--red { background: var(--red); border-color: var(--red); box-shadow: 3px 3px 0 var(--ink); }
.form { display: grid; gap: 10px; margin: 0 0 32px; } .form input, .form select { border: 0; border-bottom: 2px dotted var(--ink); background: transparent; font: 600 22px var(--hand); color: var(--ink); padding: 0; height: 32px; border-radius: 0; width: 100%; } .form input:focus { outline: none; background: var(--hl); } .form small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.snap { float: right; position: relative; margin: 2px 4px 14px 22px; padding: 5px 5px 14px; background: #fff; box-shadow: 1px 2px 4px rgba(0,0,0,.22); transform: rotate(3deg); }
.snap img { display: block; width: 72px; height: 72px; object-fit: cover; }
.snap::before { content: ''; position: absolute; top: -9px; left: 50%; width: 46px; height: 16px; margin-left: -23px; background: rgba(255,243,163,.8); box-shadow: 0 1px 2px rgba(0,0,0,.12); transform: rotate(-6deg); }
.sig { font-family: var(--hand); font-size: 40px; color: var(--ink); transform: rotate(-4deg); display: inline-block; margin-top: 10px; }

@media (max-width: 720px) { .book { width: calc(100% - 20px); margin: 16px auto 60px; } .page { padding: 40px 22px 60px 52px; min-height: 0; } .page::before { left: 36px; } .cover { padding: 48px 24px; min-height: 0; } .label { padding: 18px; } .label .row b { font-size: 22px; } .tabs { top: auto; bottom: 0; right: 0; left: 0; transform: none; display: flex; overflow-x: auto; gap: 4px; background: var(--desk2); padding: 6px; } .tab { writing-mode: horizontal-tb; padding: 8px 12px; border-radius: 6px; font-size: 16px; flex: none; } body { padding-bottom: 56px; } .out { grid-template-columns: 1fr; justify-items: center; } .row2 { grid-template-columns: minmax(0, 1fr) 110px; } .months { grid-template-columns: 1fr; } .margin-note { display: none; } .tt, .tt tbody, .tt tr, .tt td { display: block; } .tt thead { display: none; } .tt tr { border: 1.5px solid var(--ink); margin-bottom: 12px; background: rgba(255,255,255,.7); } .tt td { border: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; } .tt td:last-child { border-bottom: 0; } .tt td::before { content: attr(data-l); display: block; font-family: var(--display); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); } .tt.pagella td.v { text-align: left; } }
@media print { body { background: #fff; } .tabs, .stickers { display: none; } .page, .cover { box-shadow: none; page-break-after: always; min-height: 0; } }
.doc { max-width: 46em; margin: 40px auto; padding: 32px; background: var(--paper); font-size: 15px; } .doc h1 { font-family: var(--display); font-size: 30px; margin: 0 0 16px; color: var(--ink); } .doc h3 { font-family: var(--display); font-size: 18px; margin: 20px 0 6px; color: var(--ink); } .doc p { color: var(--muted); }

/* logo files (sites/_brand/build.py) */
.cv-logo { height: 46px; width: auto; max-width: 100%; display: block; justify-self: center; }

/* == legal == cookie banner + seller block (generated by sites/_legal/gen.py; the banner look comes from _legal/cookie-styles.css) */
.ck { position: fixed; left: 16px; bottom: 16px; z-index: 9999; max-width: 400px; font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: left; }
.ck, .ck * { box-sizing: border-box; } .ck .ck-k { display: block; } .ck .ck-t, .ck .ck-p { margin: 0; } .ck .b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ck button, .ck a.more { cursor: pointer; text-decoration: none; line-height: 1.2; margin: 0; }
/* banner: laura-guercio */
.ck { left: auto; right: 30px; bottom: 28px; width: 300px; background: var(--hl); color: var(--ink); padding: 22px 18px 18px; transform: rotate(-1.6deg); box-shadow: 3px 5px 0 rgba(0,0,0,.28); }
.ck::before { content: ''; position: absolute; top: -10px; left: 50%; width: 96px; height: 22px; margin-left: -48px; background: rgba(255,255,255,.55); box-shadow: 0 1px 2px rgba(0,0,0,.15); transform: rotate(2deg); }
.ck .ck-k { font: 600 24px/1 var(--hand); color: var(--red); margin-bottom: 4px; } .ck .ck-t b { font: 700 17px/1.2 var(--display); display: block; margin-bottom: 6px; } .ck .ck-p { font-size: 13.5px; color: #2B3350; }
.ck button { border-radius: 8px; padding: 9px 14px; font: 700 13px/1 var(--body); border: 2px solid var(--ink); } .ck .ok { background: var(--ink); color: #fff; } .ck .no { background: transparent; color: var(--ink); } .ck .more { font: 600 21px/1 var(--hand); color: var(--red); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }

/* seller block: a paper card under the notebook (the default inherits the page text colour, which is unreadable on the dark desk) */
footer.seller { width: min(820px, 100% - 32px); margin: 0 auto 80px; background: var(--paper); color: var(--text); border-top: 0; border-left: 5px solid var(--margin); padding: 26px 32px 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
footer.seller b { opacity: 1; color: var(--red); }

@media (max-width: 600px) { .ck { left: 10px; right: 10px; bottom: var(--ck-bottom, 10px); width: auto; max-width: none; transform: none; } }
.seller { font-size: 12.5px; line-height: 1.6; color: inherit; padding: 22px 24px 26px; border-top: 1px solid rgba(128,128,128,.35); letter-spacing: 0; text-transform: none; font-family: inherit; }
.seller-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.seller b { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; font-weight: 700; }
.seller a { color: inherit; } .seller address { font-style: normal; } .seller strong { font-weight: 700; }
.seller.panel { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998; background: #fff; color: #111; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); max-width: 940px; margin: 0 auto; border-top: 0; padding: 24px 26px 22px; }
.seller.panel:target { display: block; }
.seller .x { position: absolute; top: 6px; right: 12px; text-decoration: none; font-size: 22px; line-height: 1; padding: 6px 8px; }
.ck-page .st { padding: 10px 14px; border: 1px solid rgba(128,128,128,.4); border-radius: 8px; margin: 10px 0 14px; font-weight: 700; } .ck-page .b { display: flex; gap: 8px; flex-wrap: wrap; } .ck-page button { font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
@media (max-width: 760px) { table.lgl-t, table.lgl-t tbody, table.lgl-t tr, table.lgl-t td { display: block; width: auto; } table.lgl-t thead { display: none; } table.lgl-t tr { padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,.35); } table.lgl-t td { border: 0 !important; padding: 2px 0 !important; overflow-wrap: anywhere; } table.lgl-t td::before { content: attr(data-l) ": "; font-weight: 700; } }
table.lgl-t code { overflow-wrap: anywhere; }
.lead-note.lead-note { font-size: 12px; line-height: 1.5; margin: 0; letter-spacing: 0; text-transform: none; font-weight: 400; font-style: normal; text-align: left; max-width: 62ch; } .lead-note.lead-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) { .seller-in { grid-template-columns: 1fr; } .seller.panel { left: 8px; right: 8px; bottom: 8px; max-height: 80dvh; overflow: auto; } }
