/* Looks to try (looks.js). Each restyles the whole page through <html data-look> and lays out its own home.
   Calm is app.css as it is. */

.look-pick { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 40px auto 0; font-size: .8rem; color: var(--muted); }
.look-pick select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; max-width: 280px; }

/* ================= Lists: Things 3 / iOS ================= */
[data-look="lists"] { --bg: #fff; --card: #fff; --raised: #f5f5f7; --ink: #1c1c1e; --muted: #8a8a8e; --line: #e5e5ea; --brand: #2f7bf5; --brand-ink: #fff;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif; --serif: var(--sans); --shadow: none; }
@media (prefers-color-scheme: dark) { :root[data-look="lists"]:not([data-theme="light"]) { --bg: #000; --card: #000; --raised: #1c1c1e; --ink: #f2f2f7; --muted: #8e8e93; --line: #2c2c2e; --brand: #4a90ff; } }
[data-look="lists"] h1 { font-weight: 700; letter-spacing: -.02em; }
[data-look="lists"] .panel { border-radius: 14px; }
.lk-lists { max-width: 640px; }
.lk-lists header h1 { font-size: 2.2rem; }
.lk-lists header p { margin: 2px 0 20px; color: var(--muted); font-size: 1.05rem; }
.lk-lists .search { background: var(--raised); border: 0; border-radius: 11px; }
.lk-lists section { margin-top: 34px; }
.lk-lists h2 { text-transform: none; letter-spacing: 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.ll { list-style: none; margin: 0 0 8px; padding: 0; }
.ll a { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.ll .lic { margin: 9px 0; }
.ll a:hover { text-decoration: none; }
.ll .lb { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 10px; }
.ll li + li .lb { border-top: 1px solid var(--line); }
.ll .lr, .ll .chev { display: flex; align-items: center; }
.ll .lt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 10px 0; font-size: 1.02rem; }
.ll .lt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ll .lt small { color: var(--muted); font-size: .82rem; }
.ll .lr { color: var(--muted); font-size: .95rem; }
.ll .chev { color: #c4c4c7; }
.ll .chev svg { width: 15px; height: 15px; transform: rotate(180deg); }
.lic { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--c, var(--brand)); color: #fff; }
.lic svg { width: 17px; height: 17px; }
.lk-lists .none { color: var(--muted); margin: 4px 0 10px; }

/* ================= Widgets: Apple Health summary / iOS widgets ================= */
[data-look="widgets"] { --bg: #f2f2f7; --card: #fff; --raised: #fff; --ink: #1c1c1e; --muted: #8a8a8e; --line: #e5e5ea; --brand: #ff375f; --brand-ink: #fff;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif; --serif: var(--sans); --shadow: none; }
@media (prefers-color-scheme: dark) { :root[data-look="widgets"]:not([data-theme="light"]) { --bg: #000; --card: #1c1c1e; --raised: #1c1c1e; --ink: #f2f2f7; --muted: #8e8e93; --line: #2c2c2e; } }
[data-look="widgets"] h1 { font-weight: 700; letter-spacing: -.02em; }
[data-look="widgets"] .panel { border: 0; border-radius: 20px; }
.lk-widgets header h1 { font-size: 2.2rem; margin-bottom: 18px; }
.wgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
@media (min-width: 760px) { .wgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.wg { display: flex; flex-direction: column; gap: 4px; min-height: 128px; padding: 14px 16px; background: var(--card); border-radius: 20px; color: var(--ink); min-width: 0; transition: transform .12s; }
.wg:hover { text-decoration: none; transform: scale(1.015); }
.wg.wide { grid-column: span 2; }
.wh { display: flex; align-items: center; gap: 6px; color: var(--c, var(--brand)); font-weight: 600; font-size: .86rem; margin-bottom: auto; }
.wh svg { width: 16px; height: 16px; }
.wh em { margin-left: auto; font-style: normal; font-weight: 400; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.wg > b { font-size: 1.08rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wg > b.big { font-size: 2.4rem; line-height: 1; font-weight: 700; }
.wg > small, .nx small { color: var(--muted); font-size: .82rem; }
.nx { display: flex; gap: 14px; align-items: center; }
.nx b { display: block; font-size: 1.15rem; }
.nx .dt { flex: none; width: 54px; text-align: center; font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--c); }
.nx .dt small { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; color: var(--c); margin-bottom: 3px; }
.lk-widgets .search { border: 0; border-radius: 14px; }

/* ================= Journal: Day One / print ================= */
[data-look="journal"] { --bg: #f7f2e9; --card: #fffdf8; --raised: #f1eadd; --ink: #2b2620; --muted: #857b6d; --line: #e4dccd; --brand: #9a4a2c; --brand-ink: #fff;
  --sans: 'Newsreader', Georgia, serif; --shadow: none; }
@media (prefers-color-scheme: dark) { :root[data-look="journal"]:not([data-theme="light"]) { --bg: #1a1714; --card: #221e1a; --raised: #2a2520; --ink: #ece4d6; --muted: #a39887; --line: #3a332b; --brand: #e0936f; } }
[data-look="journal"] body { font-size: 18px; }
[data-look="journal"] h2 { font: italic 400 1.05rem var(--sans); text-transform: none; letter-spacing: 0; }
.lk-journal { max-width: 620px; margin: 0 auto; }
.lk-journal .kicker { margin: 8px 0 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: 'Inter', sans-serif; }
.lk-journal h1 { font-size: 2.6rem; line-height: 1.05; }
.standfirst { font-size: 1.25rem; line-height: 1.45; color: var(--muted); margin: 14px 0 0; }
.standfirst a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.ahead { margin-top: 30px; border-top: 2px solid var(--ink); padding-top: 12px; }
.ahead ul, .days ul { list-style: none; margin: 8px 0 0; padding: 0; }
.ahead li, .days li { display: flex; gap: 4px 12px; align-items: baseline; padding: 7px 0; flex-wrap: wrap; }
.ahead .by { flex-basis: 100%; padding-left: 76px; margin-top: -4px; font-size: .88rem; }
.ahead .dt { width: 64px; flex: none; font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 600; text-transform: uppercase; color: var(--c); }
.lk-journal li a { color: var(--ink); font-size: 1.12rem; }
.lk-journal .by { color: var(--muted); font-style: italic; font-size: .95rem; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; margin: 30px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.chips-row a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .92rem; }
.chips-row a:hover { text-decoration: none; border-color: var(--c); }
.chips-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.days { margin-top: 26px; }
.days article { padding: 18px 0; border-top: 1px solid var(--line); }
.days h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 500 1.3rem var(--serif); }
.days h3 .d { font: 400 .9rem var(--sans); color: var(--muted); }
.days li { padding-left: 16px; position: relative; }
.days li::before { content: ''; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.older { margin: 18px 0 30px; font-style: italic; }
.lk-journal .none { color: var(--muted); font-style: italic; }
.lk-journal .search { border-radius: 999px; box-shadow: none; }

/* ================= Orbit: a map, dark ================= */
[data-look="orbit"] { --bg: #0d1015; --card: #151a22; --raised: #1b212b; --ink: #e9ecf2; --muted: #8a93a3; --line: #252c38; --brand: #7dd3c0; --brand-ink: #08110f; --shadow: none; --danger: #ff8a7a;
  --a-family: #f07fa5; --a-home: #f0a066; --a-money: #6fcf98; --a-health: #f28079; --a-car: #7fb2f2;
  --a-projects: #a990f5; --a-work: #9fb2cc; --a-learning: #e3bd55; --a-other: #a8a198; --a-cooking: #ee9a6c; color-scheme: dark; }
.lk-orbit { max-width: 760px; margin: 0 auto; text-align: center; }
.lk-orbit header h1 { font-size: 2.3rem; }
.lk-orbit .sub { color: var(--muted); margin: 8px 0 0; }
.orb-wrap { margin: 10px auto 0; max-width: 520px; }
.orb { width: 100%; height: auto; overflow: visible; }
.orb .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.orb .ring.faint { stroke-dasharray: 2 5; }
.orb .spoke { stroke: var(--c); stroke-opacity: .35; stroke-width: 1.2; }
.orb .me { fill: var(--raised); stroke: var(--brand); stroke-width: 1.5; }
.orb .me-t { fill: var(--ink); font: 600 13px 'Inter', sans-serif; text-anchor: middle; }
.orb .node { fill: color-mix(in srgb, var(--c) 22%, var(--bg)); stroke: var(--c); stroke-width: 1.5; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 45%, transparent)); transition: transform .15s; transform-box: fill-box; transform-origin: center; }
.orb a:hover .node { transform: scale(1.08); }
.orb .node.has-open { stroke-dasharray: 4 3; }
.orb .n-t { fill: var(--ink); font: 700 14px 'Inter', sans-serif; text-anchor: middle; pointer-events: none; }
.orb .n-l { fill: var(--muted); font: 500 11.5px 'Inter', sans-serif; text-anchor: middle; }
.orb-under { max-width: 520px; margin: 4px auto 0; text-align: left; }
.orb-under h2 { margin-bottom: 8px; }
.orb-under ul { list-style: none; margin: 0 0 22px; padding: 0; }
.orb-under li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.orb-under .dt { width: 56px; flex: none; color: var(--c); font-size: .8rem; font-weight: 600; text-transform: uppercase; padding-top: 2px; }
.orb-under li a { color: var(--ink); }
.orb-under .none { color: var(--muted); margin: 0 0 22px; }
.lk-orbit .search { background: var(--card); }
.lk-orbit .alert { text-align: left; }
