/* Weekwall site: one stylesheet, no build step. */

:root {
  --bg: #F6F1E9;
  --surface: #FFFDF9;
  --surface-2: #EFE7DA;
  --line: #E4D9C9;
  --text: #1E1A15;
  --muted: #62584D;
  --accent: #D9572F;          /* decorative: dots, marks, rules */
  --accent-ink: #B4441F;      /* links and text on light backgrounds (4.9:1) */
  --button-bg: #C24D27;       /* white text on it reaches 4.8:1 */
  --button-text: #FFFFFF;
  --shadow: 0 1px 2px rgba(30, 26, 21, .06), 0 12px 32px rgba(30, 26, 21, .08);
  --m1: #D9572F; --m2: #3E7CB1; --m3: #4F9A6B; --m4: #B5739D; --m5: #D4A030;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1612;
    --surface: #241F1A;
    --surface-2: #2E2822;
    --line: #3A332B;
    --text: #F3ECE2;
    --muted: #B9AD9E;
    --accent: #E8714A;
    --accent-ink: #F08A62;
    --button-bg: #E0663D;
    --button-text: #1E1A15;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --m1: #E8714A; --m2: #6FA3D4; --m3: #73BD8D; --m4: #D195BB; --m5: #E6B850;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1612; --surface: #241F1A; --surface-2: #2E2822; --line: #3A332B;
  --text: #F3ECE2; --muted: #B9AD9E; --accent: #E8714A; --accent-ink: #F08A62;
  --button-bg: #E0663D; --button-text: #1E1A15;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --m1: #E8714A; --m2: #6FA3D4; --m3: #73BD8D; --m4: #D195BB; --m5: #E6B850;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 19px/1 var(--font-round); letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; padding: 24px 0 48px; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 40px 0 64px; } }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent-ink); letter-spacing: .02em; margin: 0 0 12px; }
h1 { font: 800 clamp(34px, 6vw, 54px)/1.06 var(--font-round); letter-spacing: -.025em; margin: 0 0 18px; text-wrap: balance; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  background: var(--button-bg); color: var(--button-text); border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: var(--shadow);
}
.button:hover { filter: brightness(1.05); text-decoration: none; }
.button svg { width: 20px; height: 20px; fill: currentColor; }
.fine { font-size: 14px; color: var(--muted); margin: 0; }

/* Wall mock-up (decorative) */
.device {
  background: #15120F; border-radius: 28px; padding: 14px; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; width: 100%; max-width: 620px; justify-self: center;
}
.screen {
  height: 100%; min-width: 0; background: var(--surface); border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 26%; gap: 10px; padding: 12px; font-family: var(--font-round);
}
.board { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; }
.board-top { display: flex; justify-content: space-between; align-items: baseline; font-size: clamp(9px, 1.6vw, 13px); font-weight: 800; }
.board-top span:last-child { color: var(--muted); font-weight: 600; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; min-height: 0; }
.day { background: var(--surface-2); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.day b { font-size: clamp(7px, 1.2vw, 10px); color: var(--muted); font-weight: 700; }
.day.today { background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }
.day.today b { color: var(--accent-ink); }
.ev { border-radius: 6px; padding: 4px 5px; font-size: clamp(6px, 1.05vw, 9px); line-height: 1.25; font-weight: 700; color: #fff; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.ev i { display: block; font-style: normal; font-weight: 600; opacity: .85; }
.ev.c1 { background: var(--m1); } .ev.c2 { background: var(--m2); } .ev.c3 { background: var(--m3); }
.ev.c4 { background: var(--m4); } .ev.c5 { background: var(--m5); color: #1E1A15; }
.side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card { background: var(--surface-2); border-radius: 10px; padding: 7px; font-size: clamp(6px, 1.05vw, 9px); }
.card h3 { margin: 0 0 4px; font-size: clamp(7px, 1.2vw, 10px); }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.card li { display: flex; gap: 5px; align-items: center; white-space: nowrap; overflow: hidden; }
.card li::before { content: ""; width: 7px; height: 7px; border-radius: 3px; border: 1.5px solid var(--muted); flex: none; }
.card li.done { color: var(--muted); text-decoration: line-through; }
.card li.done::before { background: var(--accent); border-color: var(--accent); }
.card.star li::before { content: "\2605"; border: 0; width: auto; height: auto; color: var(--m5); font-size: 1.1em; line-height: 1; }
.clock { font-size: clamp(14px, 3vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }

/* Sections */
section { padding: 32px 0; }
h2 { font: 800 clamp(24px, 3.4vw, 32px)/1.15 var(--font-round); letter-spacing: -.02em; margin: 0 0 8px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.section-lede { color: var(--muted); margin: 0 0 24px; }

.tiers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 800px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tier.plus { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tier header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tier header h3 { font: 800 21px/1.2 var(--font-round); margin: 0; }
.tag { font-size: 13px; font-weight: 700; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 3px 10px; border-radius: 999px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.ticks strong { font-weight: 650; }

.promise { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.promise div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.promise p { margin: 0; color: var(--muted); font-size: 15px; }

/* Long-form pages (privacy, terms, support) */
.doc { max-width: 720px; padding: 16px 0 48px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { margin: 24px 0 6px; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.updated { color: var(--muted); font-size: 15px; margin: -6px 0 24px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 20px; margin: 0 0 8px; }
.summary p { margin: 0; }
.summary ul { margin: 8px 0 0; }
.path { font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) { .path { white-space: normal; } }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin: 0 0 12px; }
details[open] { padding-bottom: 8px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-ink); font-size: 22px; line-height: 1; flex: none; }
details[open] summary::after { content: "\2013"; }

.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .lede { font-size: 17px; }
  .nav { gap: 12px; font-size: 14px; }
  .device { border-radius: 20px; padding: 9px; }
  .screen { grid-template-columns: 1fr; padding: 8px; }
  .side { display: none; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .board-top span:last-child { display: none; }
  .day:nth-child(5) { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: filter .2s ease; }
}
