/* Weekes, weekes.nl. One flat surface: cream ground, paper panels, beige bands, 1px sand
   dividers. Fraunces light for headings (italic for emphasis), Manrope for everything else.
   Red is for "too much" only, deep sage for actions and the current week. */

/* The two typefaces, self-hosted (OFL, latin subsets from Google Fonts): Fraunces light roman and
   italic, Manrope as one variable file for 400 to 600. swap: the text shows at once in a fallback. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/fraunces-300.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/fraunces-italic-300.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/manrope-400-600.woff2) format("woff2"); }

:root {
    --cream: #fcf8f1;
    --paper: #fffdf9;
    --beige: #f1e8d8;
    --sand: #e6dbc9;
    --espresso: #2c2219;
    --ink: #4a3d31;
    --muted: #6f6052;
    --sage: #8fa98a;
    --sage-deep: #4e6b4f;
    --sage-pale: #e3eadf;
    --over: #b0533b;
    --over-pale: #f6e3dc;
    --gutter: 32px;
    --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--espresso);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--sage-deep); }
a:hover { color: var(--espresso); }
img { display: block; max-width: 100%; }

.serif, h1, h2, h3 {
    font-family: "Fraunces", Georgia, serif;
    font-variation-settings: "SOFT" 100, "opsz" 144;
    font-weight: 300;
    margin: 0;
}
h1 em, h2 em, h3 em, .serif em { font-style: italic; }
h1 { font-size: 76px; line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: 42px; line-height: 1.14; letter-spacing: -0.01em; }
h3 { font-size: 22px; line-height: 1.3; }
.lead { font-size: 19px; line-height: 1.58; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }

/* Buttons: pills, no shadow. */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 26px; border-radius: 999px; border: 0;
    font: 600 15px/1.2 "Manrope", system-ui, sans-serif; text-decoration: none; cursor: pointer;
    background: var(--sage-deep); color: var(--cream); transition: background 120ms ease-out;
}
.btn:hover { background: var(--espresso); color: var(--cream); }
.btn.dark { background: var(--espresso); }
.btn.dark:hover { background: var(--sage-deep); }
.link {
    font-weight: 500; color: var(--espresso); text-decoration: none;
    border-bottom: 1px solid var(--sage); padding-bottom: 2px;
}
.link:hover { color: var(--sage-deep); }

/* Kop */
.top { padding-top: 24px; }
.top nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--sand); padding-bottom: 16px; }
.top .logo img { height: 48px; width: auto; margin-left: -12px; }
.top .menu { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.top .menu a { color: var(--espresso); text-decoration: none; }
.top .menu a:hover { color: var(--sage-deep); }

/* Opening */
.hero { padding-top: 80px; padding-bottom: 88px; align-items: center; }
.hero .copy { display: flex; flex-direction: column; gap: 22px; }
.hero .copy p { margin: 0; max-width: 30em; }
.hero h1 { font-size: 64px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 6px; }

/* De jaarstrook onder de tekst: 52 weken, de hoogte is wat er gepland staat. */
.year { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.year .bars { display: grid; grid-template-columns: repeat(52, minmax(0, 1fr)); gap: 2px; align-items: end; height: 64px; border-bottom: 1px solid var(--espresso); }
.year .bars div { border-radius: 2px 2px 0 0; transform-origin: bottom; }
.year .bars .ok { background: var(--sage); }
.year .bars .over { background: var(--over); }
.year .bars .now { background: var(--sage-deep); }
.year .bars .empty { background: var(--sand); }
.year .legend { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; color: var(--muted); }

/* Het bord: de kern van Weekes, als bewegend beeld. Uren slepen van wie te vol zit naar wie ruimte heeft. */
.board {
    background: var(--paper); border: 1px solid var(--sand); border-radius: 16px;
    padding: 22px 24px 20px; margin: 0; position: relative; overflow: hidden;
}
.board .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.board .head .title { font-size: 20px; }
.board .head .week { font-size: 13px; color: var(--muted); }
.row {
    display: grid; grid-template-columns: 88px minmax(0, 1fr) 104px; gap: 12px; align-items: center;
    padding: 10px 0; border-top: 1px solid var(--sand);
    transition: background 200ms ease-out, box-shadow 200ms ease-out;
    border-radius: 10px;
}
.row.target { background: var(--sage-pale); box-shadow: 0 0 0 6px var(--sage-pale); }
.row .who { font-size: 14px; font-weight: 600; }
.row .who small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.row .pills { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; min-width: 0; }
.pill {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
    border-radius: 999px; background: var(--sage-pale); color: var(--espresso);
    font-size: 13px; font-weight: 500; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.pill .h { color: var(--sage-deep); font-weight: 600; }
.pill.ghost { visibility: hidden; }
.row .sum { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row .sum b { display: block; font-size: 15px; font-weight: 600; color: var(--espresso); white-space: nowrap; transition: color 300ms ease-out; }
.row.over .sum b { color: var(--over); }
.row .sum .room { color: var(--sage-deep); font-weight: 600; display: none; }
.row.target .sum .room { display: block; }
.row.target .sum .plain { display: none; }
.board .note {
    margin-top: 14px; min-height: 20px; font-size: 13px; color: var(--sage-deep); font-weight: 600;
    opacity: 0; transform: translateY(4px); transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.board .note.on { opacity: 1; transform: none; }

/* The pill in flight and the hand that drags it. */
.drag {
    position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; opacity: 0;
    transform: translate(var(--x, 0px), var(--y, 0px));
    transition: transform 900ms cubic-bezier(0.3, 0.8, 0.2, 1), opacity 200ms ease-out;
}
.drag.on { opacity: 1; }
.drag .pill { background: var(--sage-pale); box-shadow: 0 14px 30px -10px rgba(44, 34, 25, 0.35); }
.drag .hand { position: absolute; left: 50%; top: 50%; transform: translate(-6px, -4px); }

/* Secties */
.band { padding: 88px 0; }
.band.paper { background: var(--paper); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.band.beige { background: var(--beige); }
.band .intro { display: flex; flex-direction: column; gap: 12px; }
.band .intro p { margin: 0; }
.rows { border-top: 1px solid var(--espresso); }
.rows > div { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--sand); }
.rows p { margin: 0; color: var(--muted); }

/* Prijs */
.price { display: flex; flex-direction: column; gap: 12px; }
.price .amount { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.price .amount .big { font-size: 76px; line-height: 1; letter-spacing: -0.02em; }
.price .amount .per { font-size: 22px; color: var(--muted); font-style: italic; }
.price p { margin: 0; }
.origin { border-left: 1px solid var(--sand); padding-left: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.origin p { margin: 0; }
.origin .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

footer { border-top: 1px solid var(--sand); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--espresso); }
footer .links { display: flex; gap: 24px; }

/* Telefoon */
@media (max-width: 900px) {
    :root { --gutter: 20px; }
    h1 { font-size: 40px; }
    h2 { font-size: 30px; }
    h3 { font-size: 20px; }
    .lead { font-size: 17px; }
    .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: auto; }
    .top .menu { gap: 18px; }
    .top .menu .hide-sm { display: none; }
    .hero { padding-top: 44px; padding-bottom: 56px; }
    .hero h1 { font-size: 36px; }
    .board { padding: 18px 16px 16px; }
    .board .head .week { font-size: 12px; }
    .year .legend span:nth-child(2) { display: none; }
    /* On a phone the name and the sum share the first line, the pills get the whole second. */
    .row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; }
    .row .pills { grid-column: 1 / -1; }
    .row .who small { display: inline; margin-left: 6px; }
    .row .sum { font-size: 12px; display: flex; gap: 6px; align-items: baseline; }
    .row .sum b { font-size: 14px; }
    .pill { font-size: 12px; padding: 0 10px; height: 28px; }
    .band { padding: 56px 0; }
    .rows > div { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0; }
    .price .amount .big { font-size: 56px; }
    .origin { border-left: 0; padding-left: 0; border-top: 1px solid var(--sand); padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .drag, .row, .board .note, .year .bars div { transition: none !important; animation: none !important; }
}
