/* Odd1 site: colours from the penguin logo (components/desktop/logo) */
:root {
  --slate: #2C343F; --slate-deep: #1F2831; --cream: #F8F5F2; --orange: #DB8521; --orange-deep: #B96C14;
  --bg: var(--cream); --fg: var(--slate-deep); --muted: #5b6370; --line: #e2ddd5; --card: #ffffff;
  --accent: var(--orange-deep); --accent-soft: #f6e7d3; --code: #efe9e1;
  --maxw: 70rem;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161b21; --fg: #f1ede7; --muted: #a7adb6; --line: #2a313a; --card: #1c2229;
          --accent: var(--orange); --accent-soft: #2f2618; --code: #232a32; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em;
       background: var(--code); padding: .1em .35em; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }

/* header */
header.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--fg); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 1.1rem; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }
@media (max-width: 34rem) { nav a { margin-left: .7rem; } }

/* buttons */
.btn { display: inline-block; padding: .8rem 1.3rem; border-radius: 10px; text-decoration: none; font-weight: 650; }
.btn.primary { background: var(--orange); color: var(--slate-deep); }
.btn.primary:hover { background: #e8963a; }
.btn.ghost { border: 1px solid var(--line); color: var(--fg); }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* front page */
.hook { text-align: center; padding-block: clamp(2.5rem, 8vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); }
.hook .logo { width: clamp(150px, 26vw, 230px); margin: 0 auto 1.6rem; }
.hook h1 { font-size: clamp(2.3rem, 6.5vw, 4.2rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 auto 1rem; max-width: 16ch; }
.hook p.lede { font-size: clamp(1.1rem, 2.3vw, 1.35rem); color: var(--muted); max-width: 40rem; margin: 0 auto 2rem; }
.hook .cta { justify-content: center; }

.showcase { padding-block: 1rem clamp(2.5rem, 6vw, 4rem); }
.proof { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 2rem; }
.proof div { border-top: 3px solid var(--orange); padding-top: .8rem; }
.proof b { display: block; font-size: 1.15rem; margin-bottom: .2rem; }
.proof span { color: var(--muted); font-size: .97rem; }

/* media placeholders (screenshots, videos to come) */
.media { position: relative; border-radius: 14px; overflow: hidden; background: var(--slate-deep); color: var(--cream);
         aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; border: 1px solid var(--line); }
.media.small { aspect-ratio: 16 / 10; }
.media .ph { max-width: 34rem; padding: 1.5rem; }
.media .ph b { display: block; color: var(--orange); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: .5rem; }
.media .ph p { margin: 0; opacity: .85; }
.media .play { width: 64px; height: 64px; border-radius: 50%; background: var(--orange); margin: 0 auto 1rem;
               display: grid; place-items: center; }
.media .play::after { content: ""; border-left: 20px solid var(--slate-deep); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }

/* sub pages */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; margin: 0 0 .6rem; }
.page-head p { color: var(--muted); max-width: 44rem; font-size: 1.12rem; margin: 0; }
section { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; margin: 0 0 .6rem; }
section p.sub { color: var(--muted); max-width: 46rem; margin: 0 0 1.8rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.4rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1.07rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.split { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); align-items: center; }

ol.loop { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; counter-reset: s; }
ol.loop li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; align-items: start;
             background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; }
ol.loop li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
                     border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
ol.loop b { display: block; }
ol.loop span { color: var(--muted); font-size: .96rem; }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-top: 1.5rem; }
.stat { border-left: 3px solid var(--orange); padding: .2rem 0 .2rem 1rem; }
.stat b { display: block; font-size: 1.9rem; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .92rem; }

.ms { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.ms:last-child { border-bottom: 0; }
.ms .tag { font-weight: 800; color: var(--accent); font-size: 1.2rem; }
.ms h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.ms p { margin: 0; color: var(--muted); }
.pill { display: inline-block; font-size: .76rem; padding: .1rem .55rem; border-radius: 999px; background: var(--accent-soft);
        color: var(--accent); margin-left: .4rem; vertical-align: middle; font-weight: 650; }
@media (max-width: 34rem) { .ms { grid-template-columns: 1fr; gap: .2rem; } }

.note { background: var(--accent-soft); border-radius: 10px; padding: 1rem 1.2rem; margin-top: 1.5rem; }
.placeholder { outline: 2px dashed var(--orange); outline-offset: 2px; border-radius: 4px; }
details { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1.1rem; background: var(--card); margin-bottom: .7rem; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: .6rem 0 0; }

footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* the animated work loop on the front page (flow.js) */
.flow { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #1c232c; }
.flow svg { width: 100%; height: auto; display: block; }
.flow .node .ring { fill: none; stroke: #3a4552; stroke-width: 4; transition: stroke .5s, filter .5s; }
.flow .node .disc { fill: #263040; transition: fill .5s; }
.flow .node .stroke { stroke: #aab1bb; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s; }
.flow .node .thick { stroke-width: 7; }
.flow .node .ink { fill: #aab1bb; transition: fill .5s; }
.flow .node .glyph { fill: #aab1bb; font: 700 34px ui-monospace, Menlo, Consolas, monospace; text-anchor: middle; transition: fill .5s; }
.flow .node .label { fill: #8b939e; font: 600 22px ui-sans-serif, system-ui, sans-serif; text-anchor: middle; transition: fill .5s; }
.flow .node.done .ring { stroke: #DB8521; }
.flow .node.done .stroke { stroke: #e5dfd6; } .flow .node.done .ink, .flow .node.done .glyph { fill: #e5dfd6; }
.flow .node.active .ring { stroke: #DB8521; filter: drop-shadow(0 0 14px rgba(219,133,33,.7)); }
.flow .node.active .disc { fill: #34404f; }
.flow .node.active .stroke { stroke: #F8F5F2; } .flow .node.active .ink, .flow .node.active .glyph { fill: #F8F5F2; }
.flow .node.active .label { fill: #F8F5F2; }
.flow #node-agent .disc { fill: #F8F5F2; } .flow #node-agent .ink { fill: #1f2831; } .flow #node-agent .stroke { stroke: #1f2831; }
.flow #progress { transition: width 1s ease; }
.flow .card { transition: transform 1.1s cubic-bezier(.4,.1,.2,1), opacity .5s; filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); }
.flow .card .c1 { fill: #B96C14; font: 800 20px ui-sans-serif, system-ui, sans-serif; }
.flow .card .c2 { fill: #1f2831; font: 600 15px ui-sans-serif, system-ui, sans-serif; }
.flow .pop { opacity: 0; transition: opacity .5s; }
.flow .codeline { opacity: 0; transition: opacity .4s; }
.flow .live1, .flow .live2 { stroke: #5fbf8f; stroke-width: 3; opacity: .0; transform-box: fill-box; transform-origin: center; }
.flow #node-live.active .live1 { animation: ping 1.6s infinite; } .flow #node-live.active .live2 { animation: ping 1.6s .4s infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.3); } }
.flow-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.4rem 2.6rem; color: #F8F5F2; text-align: center;
            background: linear-gradient(transparent, rgba(16,20,26,.92) 40%); margin: 0; }
.flow-cap b { display: block; font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: #F8F5F2; }
.flow-cap span { color: #c8ccd2; font-size: clamp(.85rem, 1.6vw, 1rem); }
.flow-dots { position: absolute; bottom: .8rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; }
.flow-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #56606c; cursor: pointer; }
.flow-dots button[aria-current="true"] { background: #DB8521; width: 26px; border-radius: 5px; }
@media (max-width: 40rem) { .flow-cap { padding-bottom: 2.4rem; } .flow-cap span { display: none; } }
@media (prefers-reduced-motion: reduce) { .flow * { transition: none !important; animation: none !important; } }
