/* Littleweek: a sunny kitchen in the morning, and the same kitchen in the evening in dark mode (the app's
   "Morning" look: warm paper and sage, a colour per person). The page layout is the shared Little Lamp Labs one
   (home/site.css, the same file as littlelamplabs.com's); this file brings the colours, the type, the scene and
   the support box. No scripts (see _headers), so everything that moves is CSS. Person colours are the app's
   (docs/DESIGN.md "Person colours"): solid, tint and ink, light and dark. */
@font-face { font-family: "Manrope"; src: url("/home/Manrope-Bold.ttf") format("truetype"); font-weight: 600 800; font-style: normal; font-display: swap; }

.site { --bg: #F4F2EC; --ink: #1F2A24; --muted: #56635B; --card: #FFFFFF; --line: #E0DCD1;
  --hero-bg: #EEF0E6; --hero-ink: #1F2A24; --hero-sub: #46544B; --button: #2F6B55; --accent: #2F6B55;
  --soft: #EAE7DE; }
@media (prefers-color-scheme: dark) {
  .site { --bg: #111714; --ink: #E8EFEA; --muted: #A6B5AC; --card: #1A231E; --line: #27312B;
    --hero-bg: #16201B; --hero-ink: #E8EFEA; --hero-sub: #B9C7BF; --button: #7CC7A6; --accent: #7CC7A6;
    --soft: #1A231E; }
  .button-main { color: #0F1A14 !important; }
  .button-quiet { background: rgba(255, 255, 255, 0.1); }
}

/* Manrope for headings, as in the app. */
.site .hero h1, .site .tiles .tile h2, .site .about h2, .site .support h2, .site .doc h1, .site .doc h2 {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; letter-spacing: -0.025em; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); }

/* Each tile carries a person's colour down its side, like a note on the board. */
.tiles .tile { border-left: 6px solid var(--p); }
.tiles .tile:nth-child(5n+1) { --p: #B85A16; } .tiles .tile:nth-child(5n+2) { --p: #2F62C9; } .tiles .tile:nth-child(5n+3) { --p: #7448BF; }
.tiles .tile:nth-child(5n+4) { --p: #237A40; } .tiles .tile:nth-child(5n+5) { --p: #C2387A; }
@media (prefers-color-scheme: dark) {
  .tiles .tile:nth-child(5n+1) { --p: #D9772F; } .tiles .tile:nth-child(5n+2) { --p: #5A88E6; } .tiles .tile:nth-child(5n+3) { --p: #9C72E0; }
  .tiles .tile:nth-child(5n+4) { --p: #3FAE62; } .tiles .tile:nth-child(5n+5) { --p: #E0609E; }
}

/* Phones: the kitchen sits under the words, centred on the board. */
@media (max-width: 760px) { .art { height: 460px; margin-top: 12px; } }

/* "Like what we're making?" */
.support { text-align: center; padding: 40px 24px; margin-bottom: 48px; border-radius: 32px; background: var(--soft); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.support h2 { font-size: clamp(28px, 4vw, 38px); }
.support p { max-width: 32em; color: var(--muted); }

/* The privacy, help and Raspberry Pi pages: the bar on a short band of wall, then plain reading. */
.hero-slim { min-height: 0 !important; }
.doc { max-width: 720px; margin: 0 auto; padding: 40px 0 56px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin-bottom: 8px; }
.doc .meta { color: var(--muted); margin-bottom: 24px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.2em; margin: 12px 0 0; }
.doc li { margin: 8px 0; }
.doc li > p + p, .doc li > pre { margin-top: 8px; }
.doc .actions { margin-top: 20px; }
.doc code { font: 0.9em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--soft); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.doc pre { margin: 12px 0 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; max-width: 100%; }
.doc pre code { background: none; padding: 0; font-size: 13.5px; overflow-wrap: normal; white-space: pre; }
.doc blockquote { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 12px 12px 0; }

/* Morning and evening: some things only come out at one time of day. */
.night { display: none; }
@media (prefers-color-scheme: dark) { .day { display: none; } .night { display: inline; } }

/* Person colours for the scene (0 orange, 1 blue, 2 purple, 3 green, 4 pink) */
.p0 .solid, .p0-solid { fill: #B85A16; } .p0 .tint, .p0-tint { fill: #FBE3CC; } .p0 .ink { stroke: #5E2C06; }
.p1 .solid, .p1-solid { fill: #2F62C9; } .p1 .tint, .p1-tint { fill: #DCE7FB; } .p1 .ink { stroke: #1A3A80; }
.p2 .solid, .p2-solid { fill: #7448BF; } .p2 .tint, .p2-tint { fill: #E9DEFA; } .p2 .ink { stroke: #432578; }
.p3 .solid, .p3-solid { fill: #237A40; } .p3 .tint, .p3-tint { fill: #D5F0DC; } .p3 .ink { stroke: #134A25; }
.p4 .solid, .p4-solid { fill: #C2387A; } .p4 .tint, .p4-tint { fill: #FADCE9; } .p4 .ink { stroke: #6B1640; }
.ink { stroke-width: 4; stroke-linecap: round; fill: none; opacity: 0.55; }
.head-dots circle:nth-child(1) { fill: #B85A16; } .head-dots circle:nth-child(2) { fill: #2F62C9; } .head-dots circle:nth-child(3) { fill: #7448BF; }
.head-dots circle:nth-child(4) { fill: #FFFFFF; } .head-dots circle:nth-child(5) { fill: #C2387A; } .head-dots circle:nth-child(6) { fill: #0E6E74; }
.head-dots circle:nth-child(7) { fill: #8A6800; }

/* The kitchen in the morning */
.wall { fill: #EEF0E6; }
.splash { fill: #E4E8DC; } .splash-lines { stroke: #D6DCCD; stroke-width: 3; }
.floor { fill: #C9B28F; } .floor-lines { stroke: #B89F7B; stroke-width: 3; }
.frame { fill: #FFFFFF; }
.glass { fill: url(#sky-day); }
.sun { fill: #F0A24A; } .rays path { stroke: #F0A24A; stroke-width: 6; stroke-linecap: round; fill: none; }
.hill { fill: #9CC3A6; } .trunk { fill: #7A5A3C; } .leaves { fill: #6FA387; }
.beam { fill: url(#beam); opacity: 0.6; }
.board-frame { fill: #B98A5E; } .board { fill: #FFFDF8; } .board-head { fill: #2F6B55; }
.board-today { fill: #F4EED8; } .board-lines { stroke: #E6E1D4; stroke-width: 2; }
.nobody { fill: none; stroke: #7E877F; stroke-width: 2.5; stroke-dasharray: 6 5; }
.fridge { fill: #F8F7F2; stroke: #DAD7CC; stroke-width: 3; } .fridge-line { stroke: #DAD7CC; stroke-width: 3; }
.handle { fill: #C9C5B8; }
.paper { stroke: rgba(0, 0, 0, 0.06); stroke-width: 2; } .drawing { fill: #FFFFFF; }
.tick { fill: none; stroke: #5E2C06; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.crayon-sun { fill: none; stroke: #F0A24A; stroke-width: 5; } .crayon { fill: none; stroke: #237A40; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.counter-top { fill: #FBFAF5; } .cabinet { fill: #6E9C86; } .cabinet-lines { stroke: #5E8B76; stroke-width: 3; }
.knob circle { fill: #E9E4D6; } .toe-kick { fill: #567F6C; }
.lunchbox { fill: #2F62C9; } .lunchbox-handle { fill: none; stroke: #2F62C9; stroke-width: 6; }
.mug { fill: #F0A24A; } .mug-handle { fill: none; stroke: #F0A24A; stroke-width: 7; }
.steam path { fill: none; stroke: #FFFFFF; stroke-width: 5; stroke-linecap: round; opacity: 0; }
.fruit-bowl { fill: #FFFFFF; stroke: #DAD7CC; stroke-width: 3; }
.orange { fill: #F09A3A; } .apple { fill: #C9452F; } .stem { fill: none; stroke: #5E8B3A; stroke-width: 4; stroke-linecap: round; }
.leaf { fill: #4E9A6E; } .leaf-2 { fill: #6FB487; } .pot { fill: #C77B4E; }
.cord { stroke: #3E4A43; stroke-width: 3; } .shade { fill: #2F6B55; }
.lamp-glow { fill: url(#lamp); }

/* The same kitchen in the evening */
@media (prefers-color-scheme: dark) {
  .wall { fill: #16201B; }
  .splash { fill: #1A251F; } .splash-lines { stroke: #212D26; }
  .floor { fill: #1E1A15; } .floor-lines { stroke: #26211A; }
  .frame { fill: #27312B; }
  .glass { fill: url(#sky-night); }
  .moon { fill: #F3EBD3; } .moon-bite { fill: #142035; } .star { fill: #E9E6DA; }
  .hill { fill: #16241D; } .trunk { fill: #1E1A15; } .leaves { fill: #1C2E24; }
  .board-frame { fill: #4A3826; } .board { fill: #E9E6DC; } .board-head { fill: #24503F; }
  .board-today { fill: #DCD6C2; } .board-lines { stroke: #D2CDBF; }
  .fridge { fill: #C9CCC4; stroke: #A9ADA3; } .fridge-line { stroke: #A9ADA3; } .handle { fill: #8E928A; }
  .drawing { fill: #E9E6DC; }
  .counter-top { fill: #B9BCB2; } .cabinet { fill: #2A4538; } .cabinet-lines { stroke: #223A2F; }
  .knob circle { fill: #8E928A; } .toe-kick { fill: #1E3329; }
  .steam path { stroke: #CFD8D2; }
  .fruit-bowl { fill: #D6D8D0; stroke: #A9ADA3; }
  .shade { fill: #7CC7A6; }
}

/* Motion. Small and slow: the sun comes up, coffee steams, the plant sways, a note lifts in a draft. */
.sun-wrap { animation: sunrise 36s ease-in-out infinite alternate; }
@keyframes sunrise { from { transform: translateY(16px); } to { transform: translateY(-14px); } }
.rays { transform-box: fill-box; transform-origin: 50% 100%; animation: rays 6s ease-in-out infinite; }
@keyframes rays { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.steam path { animation: rise 5s ease-in-out infinite; }
.steam .s2 { animation-delay: -2.4s; }
@keyframes rise { 0% { transform: translateY(14px); opacity: 0; } 30% { opacity: 0.7; } 100% { transform: translateY(-26px); opacity: 0; } }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.flutter { transform-box: fill-box; transform-origin: 50% 0%; animation: flutter 9s ease-in-out infinite; }
.flutter.f2 { animation-delay: -4s; animation-duration: 11s; }
@keyframes flutter { 0%, 80%, 100% { transform: rotate(0deg); } 85% { transform: rotate(3deg); } 90% { transform: rotate(-2deg); } 95% { transform: rotate(1deg); } }
.today-dot { animation: pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.star { animation: twinkle 6s ease-in-out infinite; }
.star.s1 { animation-delay: -2s; animation-duration: 7s; } .star.s2 { animation-delay: -4s; animation-duration: 9s; }
@keyframes twinkle { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.35; } }

/* Reduce Motion: nothing sways, flutters or pulses; the sun still rises, slower, and the steam holds still. */
@media (prefers-reduced-motion: reduce) {
  .sway, .flutter, .today-dot, .rays { animation: none; }
  .steam path { animation: none; opacity: 0.4; }
  .sun-wrap { animation-duration: 90s; }
}
