/* The public Holotend site (20 November 2026): big words, big drawings, short pages. The colours are measured from
   the logo: dark #17351f, name green #0d7847, bright #108f5d, lime #84c443. Beside them sit a sun yellow #f4c542,
   a sky blue #5aa9e6 and a night blue #26335c. Nothing is told by colour alone: every tile has a shape and a name. */
:root {
  --dark: #17351f; --green: #0d7847; --bright: #108f5d; --mid: #117646; --lime: #84c443;
  --bg: #fbfaf4; --raised: #ffffff; --ink: #17251e; --soft: #4d5f55; --line: #dfe6d9; --tint: #eef4e6;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Avenir Next Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hue: #84c443;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1a14; --raised: #17251e; --ink: #f3f5e9; --soft: #b4c3b6; --line: #2a3d31; --tint: #142119; --green: #84c443; --dark: #f3f5e9; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
main { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 1.2rem; line-height: 1.55; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--round); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
b, strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 0; padding: .6rem 1rem; background: var(--raised); border-radius: 0 0 12px 0; }
.skip:focus { left: 0; z-index: 20; }
.wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow, .narrow > * { max-width: 46rem; }
.wrap.narrow { margin-inline: auto; }
.pad, .band > .wrap { padding-block: clamp(3.5rem, 9vw, 7rem); }
section { scroll-margin-top: 5rem; }

/* the top */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem; padding: .6rem max(1.25rem, env(safe-area-inset-left)); padding-top: max(.6rem, env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand img { width: 9.5rem; }
/* A quiet tag beside the name on every page: the product is in beta. An outline and a word, no colour to read. */
.beta { margin-left: -.45rem; padding: .12rem .5rem .1rem; border: 2px solid var(--green); border-radius: 999px; font-family: var(--round); font-weight: 800; font-size: .72rem; line-height: 1.2; letter-spacing: .09em; text-transform: uppercase; color: var(--green); white-space: nowrap; }
@media (max-width: 480px) { .top { gap: .6rem; } .brand img { width: 8rem; } .beta { margin-left: -.2rem; padding: .08rem .38rem .06rem; font-size: .6rem; border-width: 1.5px; } }
@media (max-width: 350px) { .beta { display: none; } }
.top-nav { display: flex; gap: 1.3rem; margin-left: auto; font-family: var(--round); font-weight: 700; font-size: 1rem; }
.top-nav a, .top-menu { text-decoration: none; color: var(--soft); padding: .4rem 0; border-bottom: 3px solid transparent; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--lime); }
.top-menu { display: none; margin-left: auto; font-family: var(--round); font-weight: 700; font-size: 1rem; }
@media (max-width: 1060px) { .top-nav { display: none; } .top-menu { display: block; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.4rem; padding: .7rem 1.8rem; border-radius: 999px; border: 3px solid var(--green); background: var(--green); color: #fff; font-family: var(--round); font-weight: 800; font-size: 1.2rem; text-decoration: none; cursor: pointer; margin: 0; }
.btn.quiet { background: transparent; color: var(--green); }
.btn.light { background: #f3f5e9; border-color: #f3f5e9; color: #17351f; }
.btn.ghost { background: transparent; border-color: #f3f5e9; color: #f3f5e9; }
.btn.small { min-height: 2.6rem; padding: .3rem 1.1rem; font-size: 1rem; border-width: 2px; }
@media (prefers-color-scheme: dark) { .btn { color: #0f1a14; } .btn.quiet { color: var(--green); } .btn.light { color: #17351f; } .btn.ghost { color: #f3f5e9; } }
.acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.2rem; }
.more { margin-top: 2.5rem; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .15s ease; } .btn:hover { transform: translateY(-2px); }
  .tile .ico, .rows .ico { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
  .tile:hover .ico, .tile:focus-visible .ico { transform: translateY(-6px) rotate(-4deg) scale(1.04); }
}

/* the first page's opening */
.home-hero { width: min(64rem, 100% - 2.5rem); margin-inline: auto; padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem); text-align: center; }
.home-logo { display: block; width: min(30rem, 78%); height: auto; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); }
/* The logo's colours, light then dark (the same ones as public/art/holotend.svg and holotend-dark.svg). */
.lg-holo { fill: #18351f; } .lg-tend { fill: #147846; } .lg-words { fill: #108f5e; } .lg-deep { fill: #18351f; }
@media (prefers-color-scheme: dark) { .lg-holo { fill: #f3f5e9; } .lg-tend { fill: #82c343; } .lg-words { fill: #8fd3a9; } .lg-deep { fill: #2f6b45; } }
/* The two inner rings turn around the person, who stays still, and so does the swirl. Slow enough to read as calm:
   the outer one once in 26 seconds, the inner one the other way once in 34. Each turns about its own middle. Still for anyone who asked for less motion. */
.lg-ring { transform-box: view-box; } .lg-outer { transform-origin: 812.36px 835.7px; } .lg-inner { transform-origin: 812.3px 839.52px; }
@media (prefers-reduced-motion: no-preference) {
  .lg-outer { animation: lg-turn 26s linear infinite; } .lg-inner { animation: lg-turn 34s linear infinite reverse; }
}
@keyframes lg-turn { to { transform: rotate(360deg); } }
/* The spark on the inner ring twinkles once as the page opens, then only rides along. */
.lg-spark { transform-box: view-box; transform-origin: 0 0; }
@media (prefers-reduced-motion: no-preference) { .lg-spark { animation: lg-twinkle 1.6s ease-out .4s both; } }
@keyframes lg-twinkle { 0% { transform: scale(0) rotate(-90deg); } 55% { transform: scale(1.7) rotate(0deg); } 100% { transform: scale(1) rotate(0deg); } }
.home-hero h1 { font-size: clamp(2.7rem, 8.6vw, 6.2rem); }
.home-hero h1 b, .say b, .page-hero .lede b, .lede b, .close h2 b { color: var(--green); }
.lede { margin: 1.8rem auto 0; max-width: 38ch; font-family: var(--round); font-weight: 500; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.3; color: var(--soft); }
.lede b { font-weight: 800; }

/* a band: a tinted stretch whose top edge rises like a low hill */
.band { background: var(--tint); }
.band.hill { border-radius: 50% 50% 0 0 / clamp(1.8rem, 5vw, 4.5rem) clamp(1.8rem, 5vw, 4.5rem) 0 0; margin-inline: -4vw; padding-inline: 4vw; }
.band + .pad, .band + section.wrap { position: relative; }

/* the big sentences */
.say { font-size: clamp(2.1rem, 6vw, 4.2rem); text-align: center; max-width: 18ch; margin-inline: auto; }
.under { margin: 1rem auto 0; text-align: center; font-family: var(--round); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--soft); max-width: 32ch; }
/* the one line under a row of tiles that says what holds for all of it */
.under.keep { margin-top: clamp(2.5rem, 6vw, 4rem); max-width: 34ch; color: var(--ink); }
.under.keep a { color: inherit; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.big { margin-top: 1.6rem; font-size: clamp(1.3rem, 2.8vw, 1.7rem); line-height: 1.4; text-align: center; margin-inline: auto; }
.big b { font-family: var(--round); color: var(--green); }
.eyebrow { font-family: var(--round); font-size: 1rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }

/* tiles: a drawing and its name */
.tiles { display: grid; gap: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem); margin-top: clamp(2.2rem, 5vw, 3.5rem); justify-content: center; }
.tile { display: grid; justify-items: center; align-content: start; gap: .7rem; text-align: center; text-decoration: none; color: var(--ink); border-radius: 24px; }
.tile strong { font-family: var(--round); line-height: 1.15; }
.tile span:not(.ico) { color: var(--soft); max-width: 22ch; line-height: 1.35; }
/* A tile is drawn as the app draws its own: a rounded square, deep green lightening to the top left, a soft shine
   across its upper half, and the thing's two-tone picture in a warm white. A few carry another tone. */
.ico { --s: 6rem; flex: none; position: relative; overflow: hidden; display: grid; place-items: center; width: var(--s); height: var(--s); border-radius: 22%; font-size: calc(var(--s) * .56); color: #f5f1e3; background: linear-gradient(155deg, #3a6b53 0%, #24483a 55%, #1a3329 100%); box-shadow: 0 calc(var(--s) * .14) calc(var(--s) * .26) calc(var(--s) * -.14) rgba(16, 32, 24, .75), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ico::before { content: ""; position: absolute; inset: 0 0 52% 0; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)); pointer-events: none; }
.ico i { position: relative; }
.ico i::before { opacity: .34; }
.ico.t-gold { background: linear-gradient(155deg, #f7d877 0%, #e9b83a 55%, #c9952a 100%); color: #2b2410; }
.ico.t-sky { background: linear-gradient(155deg, #7fbdea 0%, #4a8fcb 55%, #2f6ea8 100%); }
.ico.t-night { background: linear-gradient(155deg, #4a5a8f 0%, #2c3966 55%, #1d2748 100%); }
.ico.t-open { background: none; box-shadow: none; color: var(--green); border: calc(var(--s) * .035) dashed var(--green); }
.ico.t-open::before { display: none; }
.tiles.big .ico { --s: clamp(8.5rem, 22vw, 13rem); }
.tiles.big strong { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-top: .4rem; }
.tiles.big span:not(.ico) { font-size: clamp(1.1rem, 2vw, 1.3rem); }
.tiles.big.two { grid-template-columns: repeat(2, minmax(0, 20rem)); }
.tiles.big.one { grid-template-columns: minmax(0, 30rem); }
.tiles.big.one span:not(.ico) { max-width: 28ch; }
.tiles.big.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles.big.four .ico { --s: clamp(7rem, 15vw, 10rem); }
.tiles.big.four strong { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.tiles.small { display: flex; flex-wrap: wrap; max-width: 62rem; margin-inline: auto; }
.tiles.small .tile { width: clamp(7.4rem, 14vw, 9.5rem); }
.tiles.small .ico { --s: clamp(6rem, 13vw, 7.5rem); }
.tiles.small strong { font-size: 1.15rem; }
@media (max-width: 760px) { .tiles.big.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tiles.small .tile { width: calc(50% - .5rem); } .tiles.big.two { gap: 1rem; } }
.p-index .top-menu { display: none; } .p-index .top .btn { margin-left: auto; } @media (min-width: 1061px) { .p-index .top .btn { margin-left: 0; } }

/* the opening of an inner page: its drawing, its name in very large letters, one sentence */
.page-hero { text-align: center; padding: clamp(2.5rem, 7vw, 5rem) 1.25rem clamp(3.5rem, 8vw, 6rem); background: color-mix(in srgb, var(--hue) 20%, var(--bg)); border-radius: 0 0 50% 50% / 0 0 clamp(1.8rem, 5vw, 4.5rem) clamp(1.8rem, 5vw, 4.5rem); margin-inline: -4vw; padding-inline: calc(4vw + 1.25rem); }
.page-hero .ico { --s: clamp(8rem, 20vw, 12rem); margin: 0 auto 1.6rem; }
.page-hero h1 { font-size: clamp(3rem, 10.5vw, 7.5rem); margin-top: .5rem; max-width: 14ch; margin-inline: auto; }
.p-connections .page-hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); max-width: 16ch; }
.p-companion .page-hero h1, .p-how .page-hero h1 { font-size: clamp(2.6rem, 8.5vw, 6rem); }
.page-hero .lede { color: var(--ink); }

/* three short points, side by side */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.5rem); }
.points li { padding-top: 1.1rem; border-top: 6px solid var(--lime); font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--soft); line-height: 1.4; }
.points strong { display: block; font-family: var(--round); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; color: var(--ink); margin-bottom: .4rem; }
@media (max-width: 720px) { .points { grid-template-columns: 1fr; } }

/* rows: a number or a drawing, a short heading, a line or two */
.rows { display: grid; gap: clamp(2rem, 5vw, 3.2rem); max-width: 48rem; margin: clamp(2.2rem, 5vw, 3.5rem) auto 0; }
.pad > .rows:first-child { margin-top: 0; }
.rows article { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; scroll-margin-top: 6rem; }
.rows h3 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.rows p { margin-top: .5rem; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.4; color: var(--soft); }
.rows .ico { --s: clamp(4.8rem, 13vw, 7.5rem); }
.rows .tag { margin: 0 0 .2rem; font-family: var(--round); font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.rows .btn { margin-top: 1rem; min-height: 2.8rem; padding: .3rem 1.3rem; font-size: 1.05rem; }
.rows article:target h3 { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 6px; text-underline-offset: 6px; }
.num { display: grid; place-items: center; width: clamp(3.6rem, 10vw, 5.5rem); aspect-ratio: 1; border-radius: 34%; background: var(--dark); color: var(--bg); font-family: var(--round); font-weight: 800; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; }
.rows article:nth-child(even) .num { border-radius: 50%; background: var(--lime); color: #17351f; }

/* pills: a short list of things */
.chips { list-style: none; margin: clamp(2rem, 5vw, 3rem) auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; max-width: 52rem; }
.chips li { padding: .7rem 1.4rem; border-radius: 999px; background: var(--raised); border: 2px solid var(--line); font-family: var(--round); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.45rem); }

/* the working examples' buttons, drawn like the site's own */
.btn.try { min-height: 3.4rem; padding: .7rem 1.8rem; font-size: 1.2rem; margin-top: 0; border-width: 3px; }
.btn.quiet.try { background: transparent; color: var(--green); }

/* the close */
.close { background: #17351f; color: #f3f5e9; text-align: center; border-radius: 50% 50% 0 0 / clamp(1.8rem, 5vw, 4.5rem) clamp(1.8rem, 5vw, 4.5rem) 0 0; margin-inline: -4vw; padding-inline: 4vw; }
.close .wrap { padding-block: clamp(4rem, 10vw, 7.5rem) calc(clamp(3rem, 7vw, 5rem) + env(safe-area-inset-bottom)); }
.close h2 { font-size: clamp(2.2rem, 6.4vw, 4.4rem); max-width: 16ch; margin-inline: auto; }
.close h2 b { color: #84c443; }
.close p { margin: 1.4rem auto 0; max-width: 40ch; font-size: clamp(1.2rem, 2.4vw, 1.45rem); color: #d5dccb; }
.close .fine { margin-top: 3rem; font-size: 1rem; color: #b4c3b6; }
@media (prefers-color-scheme: dark) { .close { background: #0a120e; border-top: 1px solid var(--line); } }
/* pictures of the app, taken from the public demo */
.shot { margin: clamp(2.2rem, 5vw, 3.5rem) auto 0; max-width: 62rem; }
.shot img { width: 100%; border-radius: clamp(12px, 2vw, 22px); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(16, 32, 24, .55), 0 2px 0 rgba(255, 255, 255, .4) inset; }
.shot figcaption { margin-top: 1rem; text-align: center; font-family: var(--round); font-weight: 600; font-size: 1.05rem; color: var(--soft); }
.shot.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); } .shot.duo figcaption { grid-column: 1 / -1; margin-top: 0; }
.shot.with-phone { position: relative; padding-right: clamp(0rem, 8vw, 6rem); }
.shot.with-phone .phone { position: absolute; right: 0; bottom: 2.4rem; width: clamp(7rem, 21%, 13rem); border-radius: clamp(14px, 2.4vw, 28px); border: clamp(3px, .6vw, 6px) solid #17251e; }
.home-hero .shot { margin-top: clamp(3rem, 7vw, 5rem); }
@media (max-width: 640px) { .shot.duo { grid-template-columns: 1fr; } .shot.with-phone { padding-right: 0; } .shot.with-phone .phone { position: static; display: block; width: 62%; margin: 1.2rem auto 0; } }
/* What's new: a date, then one plain line for each change */
.day { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-top: clamp(2.5rem, 6vw, 3.5rem); color: var(--green); }
.day:first-child { margin-top: 0; }
.news { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.news li { padding: 1rem 1.3rem; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); border-left: 8px solid var(--lime); font-size: clamp(1.15rem, 2.3vw, 1.4rem); line-height: 1.4; text-align: left; }
.band .news { margin-top: 2rem; }

/* ------------------------------------------------------------------ working examples (18 November 2026)
   Four Gaias can be tried with a made-up household. The panel is one dialog; holotend-demo.js draws its inside. */
.mods article.live { border-color: var(--green); }
.try { margin-top: .9rem; min-height: 2.6rem; padding: .35rem 1.1rem; border-radius: 999px; border: 2px solid var(--green); background: var(--green); color: #fff; font-family: var(--round); font-weight: 700; font-size: .95rem; cursor: pointer; }
@media (prefers-color-scheme: dark) { .try { color: #0f1a14; } }
.try:hover, .try:focus-visible { filter: brightness(1.08); }
.demo { width: min(46rem, calc(100vw - 1.5rem)); max-height: min(46rem, calc(100dvh - 1.5rem)); padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.demo[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.demo::backdrop { background: rgba(8, 16, 12, .6); backdrop-filter: blur(3px); }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem .6rem; font-family: var(--round); }
.demo-head strong { font-size: 1.25rem; margin-right: .7rem; }
.demo-badge { display: inline-block; padding: .15rem .65rem; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); color: var(--soft); font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.demo-close, .demo-reset { min-height: 2.5rem; padding: .3rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font-family: var(--round); font-weight: 700; font-size: .95rem; cursor: pointer; }
.demo-tabs { display: flex; gap: .4rem; padding: 0 1.2rem .8rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.demo-tabs button { flex: none; min-height: 2.6rem; padding: .3rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--soft); font-family: var(--round); font-weight: 700; font-size: .95rem; cursor: pointer; }
.demo-tabs button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
@media (prefers-color-scheme: dark) { .demo-tabs button[aria-pressed="true"] { color: #0f1a14; } }
.demo-body { overflow-y: auto; padding: 1.1rem 1.2rem; display: grid; gap: 1rem; align-content: start; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.2rem calc(.7rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--soft); font-size: .9rem; }
.demo-lead { margin: 0; font-family: var(--round); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.demo-lead span { font-size: 1rem; font-weight: 600; color: var(--soft); }
.demo-hint { margin: 0; padding: .7rem .9rem; border-radius: 14px; background: var(--tint); color: var(--soft); font-size: .95rem; }
.demo-quiet { margin: 0; color: var(--soft); }
.demo-group { display: grid; gap: .45rem; }
.demo-group h4 { margin: 0; font-family: var(--round); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.dj { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; padding: .6rem .8rem; border-radius: 16px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; cursor: pointer; }
.dj:hover, .dj:focus-visible { border-color: var(--green); }
.dj-tick { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--green); color: #fff; font-weight: 800; }
.dj.done .dj-tick { background: var(--green); } @media (prefers-color-scheme: dark) { .dj.done .dj-tick { color: #0f1a14; } }
.dj-words { display: grid; } .dj-words small { color: var(--soft); font-size: .9rem; }
.dj.done strong { text-decoration: line-through; color: var(--soft); }
.dm-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem; }
.dm-night { display: grid; gap: .3rem; align-content: start; padding: .7rem; border-radius: 16px; border: 1px solid var(--line); background: var(--raised); min-height: 8.5rem; }
.dm-night.tonight { border-color: var(--green); border-width: 2px; }
.dm-night.open { border-style: dashed; border-color: var(--green); cursor: pointer; }
.dm-night.over { background: var(--tint); }
.dm-night > small { font-family: var(--round); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.dm-sides { display: flex; flex-wrap: wrap; gap: .3rem; }
.dm-side { padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--tint); color: var(--ink); font: inherit; font-size: .88rem; cursor: grab; touch-action: manipulation; }
.dm-side.held { background: var(--green); border-color: var(--green); color: #fff; } @media (prefers-color-scheme: dark) { .dm-side.held { color: #0f1a14; } }
.dm-buy { display: flex; align-items: center; gap: .35rem; margin-top: auto; font-size: .88rem; color: var(--soft); cursor: pointer; }
.dm-buy input { width: 1.1rem; height: 1.1rem; accent-color: var(--green); }
.dm-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .2rem; }
.dw-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.dw-now strong { font-family: var(--round); font-size: 3.2rem; line-height: 1; }
.dw-now span { font-size: 1.15rem; } .dw-low { color: var(--soft); }
.dw-flag { margin: 0; padding: .75rem .9rem; border-radius: 14px; border: 2px solid #2f7fd0; background: color-mix(in srgb, #2f7fd0 12%, var(--raised)); }
.dw-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.dw-day { display: grid; justify-items: center; gap: .15rem; padding: .6rem .2rem; border-radius: 14px; border: 1px solid var(--line); background: var(--raised); }
.dw-day span { font-size: 1.5rem; } .dw-day small { color: var(--soft); font-size: .82rem; }
.dt-word { margin: 0; padding: .9rem 1rem; border-radius: 18px; border-left: 4px solid var(--green); background: var(--raised); font-size: 1.1rem; line-height: 1.5; }
.dt-word cite { display: block; margin-top: .5rem; font-style: normal; font-size: .85rem; color: var(--soft); }
.dt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .5rem; }
.dt-tile { display: grid; gap: .15rem; text-align: left; padding: .8rem .9rem; border-radius: 16px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; cursor: pointer; }
.dt-tile:hover, .dt-tile:focus-visible { border-color: var(--green); }
.dt-tile small { font-family: var(--round); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.dt-tile strong { font-family: var(--round); font-size: 1.5rem; line-height: 1.15; } .dt-tile span { color: var(--soft); font-size: .92rem; }
@media (max-width: 520px) { .demo { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; } .demo-foot span { font-size: .82rem; } .dw-day { padding: .45rem .1rem; } .dw-day span { font-size: 1.2rem; } }
.dw-zip { display: grid; grid-template-columns: minmax(0, 9rem) auto; gap: .4rem .5rem; align-items: center; padding: .8rem .9rem; border-radius: 16px; border: 1px solid var(--line); background: var(--raised); }
.dw-zip label, .dw-zip small { grid-column: 1 / -1; } .dw-zip label { font-family: var(--round); font-weight: 700; } .dw-zip small { color: var(--soft); font-size: .88rem; }
.dw-zip input { min-height: 2.6rem; padding: .3rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 1.1rem; letter-spacing: .08em; }
.dw-zip .try { margin: 0; justify-self: start; } .dw-zip .try[disabled] { opacity: .6; }
/* The scripted companion example. */
.dc-log { display: grid; gap: .5rem; align-content: start; max-height: 19rem; overflow-y: auto; padding: .2rem; }
.dc { margin: 0; max-width: 85%; padding: .6rem .9rem; border-radius: 18px; line-height: 1.45; }
.dc.her { justify-self: start; background: var(--raised); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.dc.me { justify-self: end; background: var(--green); color: #fff; border-bottom-right-radius: 6px; }
@media (prefers-color-scheme: dark) { .dc.me { color: #0f1a14; } }
.dc.wait { display: inline-flex; gap: .3rem; padding: .8rem .9rem; }
.dc.wait i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--soft); opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .dc.wait i { animation: dc-dot 1s ease-in-out infinite; } .dc.wait i:nth-child(2) { animation-delay: .15s; } .dc.wait i:nth-child(3) { animation-delay: .3s; } @keyframes dc-dot { 50% { opacity: 1; transform: translateY(-2px); } } }
.dc-asks { display: flex; flex-wrap: wrap; gap: .4rem; }
.dc-asks button { min-height: 2.6rem; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--green); background: transparent; color: var(--ink); font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.dc-asks button:hover, .dc-asks button:focus-visible { background: var(--tint); }
.dc-asks button[disabled] { opacity: .5; }

/* Connections: the short list of things already read from, as pills. */
.links { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.links li { padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); font-family: var(--round); font-weight: 600; font-size: 1rem; }
.prose .try { margin-top: 0; }
.side .try { justify-self: start; }
/* The later examples: animals, supplies, mood and a sample business. */
.da-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .5rem; }
.da-card { display: grid; gap: .25rem; align-content: start; padding: .9rem; border-radius: 16px; border: 1px solid var(--line); background: var(--raised); }
.da-card strong { font-family: var(--round); font-size: 1.3rem; } .da-card small { color: var(--soft); font-size: .92rem; } .da-art { font-size: 2rem; line-height: 1; }
.da-card .try { justify-self: start; margin-top: .5rem; }
.da-count { display: inline-flex; align-items: center; gap: .6rem; }
.da-count button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--green); background: var(--raised); color: var(--ink); font-size: 1.5rem; font-weight: 700; line-height: 1; cursor: pointer; }
.da-count button[disabled] { opacity: .4; }
.da-count strong { min-width: 1.6ch; text-align: center; font-family: var(--round); font-size: 1.7rem; } .da-count span { color: var(--soft); }
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; align-items: end; height: 9.5rem; }
.bar { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; gap: .2rem; height: 100%; }
.bar i { align-self: end; width: 70%; min-height: 3px; border-radius: 8px 8px 3px 3px; background: color-mix(in srgb, var(--green) 45%, var(--raised)); border: 1px solid var(--green); }
.bar.now i { background: var(--green); } .bar small { font-size: .82rem; color: var(--soft); } .bar.now small { color: var(--ink); font-weight: 700; }
.ds { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem .8rem; border-radius: 16px; border: 1px solid var(--line); background: var(--raised); }
.ds.low { border: 2px solid #b26a00; } .ds-words { display: grid; } .ds-words small { color: var(--soft); font-size: .9rem; } .ds.low .ds-words small { color: var(--ink); font-weight: 700; }
.dmo-faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.dmo-faces button { display: grid; justify-items: center; gap: .2rem; padding: .6rem .2rem; border-radius: 16px; border: 2px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.dmo-faces button span { font-size: 2rem; line-height: 1; } .dmo-faces button[aria-pressed="true"] { border-color: var(--green); background: var(--tint); box-shadow: inset 0 0 0 2px var(--green); }
.dmo-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; max-width: 22rem; }
.dmo-grid span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); font-size: 1.25rem; } .dmo-grid .now { border: 2px solid var(--green); }
.db-pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.db-pick button { min-height: 2.6rem; padding: .3rem 1rem; border-radius: 999px; border: 1px solid var(--green); background: transparent; color: var(--ink); font-family: var(--round); font-weight: 700; font-size: .95rem; cursor: pointer; }
.db-pick button[aria-pressed="true"] { background: var(--green); color: #fff; } @media (prefers-color-scheme: dark) { .db-pick button[aria-pressed="true"] { color: #0f1a14; } }
.db-pick.small button { border-color: var(--line); font-size: .9rem; } .db-pick.small button[aria-pressed="true"] { border-color: var(--green); }
.dt-tile.still { cursor: default; } .dt-tile.still:hover { border-color: var(--line); }
