/* blog-new base template — calm single-column notebook (Onsen DNA, generalized).
   The :root token block below is the THEME LAYER. blog-new replaces these values
   with the style picked from the design catalog (style-apply tokens). Structure stays;
   only the tokens change. Neutral defaults shipped so the page renders before theming. */

/* {{FONT_IMPORT}} — blog-new injects the chosen style's webfont here (vendored locally). */

@font-face {
  font-family: "Inconsolata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inconsolata-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inconsolata";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inconsolata-700.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --theme-base: #f7f8fb;
  --theme-mantle: #eef0f6;
  --theme-surface0: #d2d5e0;
  --theme-surface1: #bfc3d3;
  --theme-text: #363a4f;
  --theme-heading: #2b2f43;
  --theme-body-rgb: 54, 58, 79;
  --theme-body-alpha: .82;
  --theme-subtext0: #6f7489;
  --theme-overlay0: #9498ab;
  --theme-accent: #1f3df2;          /* Catppuccin Latte blue */
  --theme-hover: #5b6dff;
  --theme-link: #1f3df2;
  --theme-good: #40a02b;
  --theme-bad: #d20f39;
  --theme-font: "Inconsolata", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-y: scroll; }
body {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  color: var(--theme-text);
  background: var(--theme-base);
  font: 16px/1.5 var(--theme-font);
}
a { color: var(--theme-link); text-decoration: none; }
a:hover { color: var(--theme-hover); text-decoration: underline; }
main a, article a { text-decoration: underline; }
code, kbd {
  padding: 1px 5px;
  color: var(--theme-text);
  background: var(--theme-mantle);
  border: 1px solid var(--theme-surface0);
  border-radius: 4px;
  font-family: inherit;
  font-size: .92em;
}
p, li, figcaption {
  color: rgba(var(--theme-body-rgb), var(--theme-body-alpha));
  font-weight: 400;
}
p { margin: .75rem 0; }
ul { padding-left: 1.2rem; margin: .65rem 0; }
li { margin: .35rem 0; line-height: 1.5; }
li::marker { color: var(--theme-overlay0); }
b, strong { color: var(--theme-text); font-weight: 700; }
em { color: var(--theme-subtext0); }
h1, h2, h3, h4 {
  color: var(--theme-heading);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

/* Topbar: brand mark + title, optional nav, primary action button — emphasized header band */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0 1.4rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--theme-surface0);
}
.nav-left, .nav-right, nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.blog-title {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  color: var(--theme-text);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.brand-mark {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  display: block;
  border-radius: 5px;
}
nav a { color: rgba(var(--theme-body-rgb), .6); font-size: 1rem; line-height: 1; }
nav a.active { color: var(--theme-text); text-decoration: none; }

/* Primary action button — Play / Try / Download / Download and Build (label per project type) */
.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: .18rem .7rem;
  color: var(--theme-base);
  background: var(--theme-accent);
  border: 1px solid var(--theme-accent);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.action-link:hover { color: var(--theme-base); text-decoration: none; filter: brightness(.95); }

/* Secondary action button — quieter outline variant (e.g. "Get in touch") */
.action-link.secondary {
  color: var(--theme-accent);
  background: transparent;
  border: 1px solid var(--theme-surface1);
  font-weight: 400;
}
.action-link.secondary:hover {
  color: var(--theme-hover);
  background: var(--theme-mantle);
  filter: none;
}

/* Hero: strong teaser title + short description (+ optional shot) — the product intro */
.hero {
  padding: 3.5rem 0 4.5rem;
}
.hero-with-shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
  gap: 1.5rem;
  align-items: start;
}
.hero h1 { margin-top: .3rem; color: var(--theme-accent); font-size: 2.1rem; font-weight: 700; }
.hero-icon { width: 4rem; height: 4rem; display: block; border-radius: 12px; }
.tagline { margin-top: .6rem; color: var(--theme-subtext0); font-size: 1.1rem; }
.short { max-width: 38rem; margin-top: 1.1rem; color: var(--theme-subtext0); font-size: 1.1rem; }
.hero-cta { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: .6rem; margin-top: 1.8rem; }
.cta-primary { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.cta-note { color: var(--theme-overlay0); font-size: .8rem; padding-left: .5rem; }
.action-link { white-space: nowrap; }
.hero-shot { position: relative; width: 92%; margin: 0; }
.shots {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1144 / 1004;
  border-radius: 8px;
  overflow: hidden;
}
.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border: 0;
  border-radius: 8px;
  opacity: 0;
  transition: opacity .4s ease;
}
.shot.is-active { opacity: 1; }
.thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  display: flex;
  justify-content: center;
  gap: .55rem;
  z-index: 2;
}
.thumb {
  width: 64px;
  aspect-ratio: 1144 / 1004;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--theme-mantle);
  cursor: pointer;
  overflow: hidden;
  opacity: .55;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transition: opacity .15s ease;
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
}
.thumb:hover { opacity: .85; }
.thumb.is-active {
  opacity: 1;
}
.kicker, .date, .tag, .badge { color: var(--theme-overlay0); font-size: .9rem; }

/* Features — preset cards with a visual processing chain */
section#features { padding-top: 1rem; border-bottom: 0; }
section#features > h2 { margin-bottom: .5rem; color: var(--theme-accent); font-size: 1.35rem; font-weight: 700; }

/* Tabs — Features | Presets */
.tabs {
  display: flex;
  gap: .25rem;
  margin: 0 0 1.4rem;
  border-bottom: 1px solid var(--theme-surface0);
}
.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: .45rem .7rem;
  font: inherit;
  font-weight: 600;
  color: var(--theme-subtext0);
  cursor: pointer;
}
.tab:hover { color: var(--theme-text); }
.tab.is-active { color: var(--theme-accent); border-bottom-color: var(--theme-accent); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Feature list */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.7rem;
  max-width: 46rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}
.feature-ico {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--theme-mantle);
}
.feature-ico .sym {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--theme-accent);
}
.feature-list h3 {
  margin: .25rem 0 .4rem;
  color: var(--theme-text);
  font-size: 1.05rem;
  font-weight: 700;
}
.feature-list p {
  margin: 0;
  max-width: 40rem;
  color: var(--theme-subtext0);
}

.section-lead { max-width: 40rem; margin: 0 0 1.6rem; color: var(--theme-subtext0); }
.presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.1rem;
}
.preset {
  padding: 1.1rem 1.2rem;
  background: var(--theme-mantle);
  border-radius: 10px;
}
.preset h3 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  color: var(--theme-text);
  font-size: 1.05rem;
  font-weight: 700;
}

/* Inline Lucide icons (ISC), tinted via currentColor */
.sym {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -.12em;
  color: var(--theme-subtext0);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.preset h3 .sym { width: 1.15em; height: 1.15em; }
.preset .sym { color: var(--theme-accent); }

/* Signal chain — single line of single-term, tappable steps */
.chain {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .3rem;
  margin: .9rem 0 .75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.chain::-webkit-scrollbar { display: none; }
.chain.can-scroll-right {
  -webkit-mask: linear-gradient(to right, #000 calc(100% - 34px), transparent);
  mask: linear-gradient(to right, #000 calc(100% - 34px), transparent);
}
.node {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  padding: .34rem .6rem;
  border: 1px solid var(--theme-surface0);
  background: var(--theme-base);
  color: var(--theme-text);
  font: inherit;
  font-size: .85rem;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 7px;
  transition: border-color .12s ease, background .12s ease;
}
.node:hover { color: var(--theme-heading); border-color: var(--theme-overlay0); background: var(--theme-mantle); }
.node.active { font-weight: 700; border-color: var(--theme-overlay0); background: var(--theme-mantle); }
.node.active .sym { color: var(--theme-accent); }
.node .sym { width: .95em; height: .95em; }
.arrow { flex: 0 0 auto; color: var(--theme-overlay0); font-size: .75rem; }
.step-detail { margin: 0; min-height: 2.7em; color: var(--theme-subtext0); font-size: .9rem; }

/* Posts */
section { padding: 2rem 0; border-bottom: 1px solid var(--theme-surface0); }
section#posts { padding-top: 3.5rem; }
section#posts > h2 { margin-bottom: 1.4rem; color: var(--theme-accent); font-size: 1.35rem; font-weight: 700; }
section#posts article.entry:first-of-type { padding-top: .4rem; }
section > h2 { margin-bottom: 1rem; color: var(--theme-accent); }
article.entry { padding: 2.2rem 0; border-bottom: 1px solid var(--theme-surface0); }
article.entry:last-child { border-bottom: 0; }
article.entry h3 { margin: .25rem 0 .8rem; color: var(--theme-text); font-weight: 700; }
article.entry .decisions { margin: 1.25rem 0; }

/* Decided for / against cards */
.decisions, .grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.decisions > div + div, .grid2 > div + div {
  padding-left: 2rem;
}
.card h3 { margin-bottom: .65rem; }
.card { background: transparent; border: 0; padding: 0 !important; }
.for li::marker { content: "+  "; color: var(--theme-good); }
.against li::marker { content: "-  "; color: var(--theme-bad); }

/* Figures */
figure { width: 80%; margin: 1.25rem auto; }
figure img {
  width: 100%;
  display: block;
  border: 1px solid var(--theme-surface0);
  border-radius: 8px;
}
figcaption { margin-top: .5rem; color: var(--theme-overlay0); font-size: .9rem; text-align: center; }
footer { padding: .75rem 0 1rem; color: var(--theme-overlay0); font-size: .9rem; text-align: left; }

/* Thank-you colophon — compact, footer-sized credits above the footer */
.colophon { border-bottom: 0; padding-top: 3rem; padding-bottom: 0; }
.colophon > h2 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .5rem;
  color: var(--theme-accent);
  font-size: 1rem;
  font-weight: 700;
}
.colophon > h2 .sym { color: var(--theme-accent); width: 1em; height: 1em; }
.thanks-intro {
  margin: 0 0 1rem;
  color: var(--theme-subtext0);
  font-size: .9rem;
  max-width: 46rem;
}
.thanks-intro .hint { color: var(--theme-overlay0); }
.thanks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .15rem;
  max-width: 46rem;
}
.thanks details {
  border-top: 1px solid var(--theme-surface0);
  padding: .5rem 0;
}
.thanks li:last-child details { border-bottom: 1px solid var(--theme-surface0); }
.thanks summary {
  list-style: none;
  cursor: pointer;
  font-size: .9rem;
  color: var(--theme-text);
}
.thanks summary::-webkit-details-marker { display: none; }
.thanks summary::before {
  content: "+";
  display: inline-block;
  width: 1em;
  margin-right: .35rem;
  color: var(--theme-overlay0);
  font-weight: 700;
}
.thanks details[open] summary::before { content: "−"; }
.thanks summary a { color: var(--theme-link); font-weight: 700; }
.thanks .lic {
  margin-left: .4rem;
  color: var(--theme-overlay0);
  font-size: .8rem;
  font-weight: 400;
}
.thanks details p {
  margin: .45rem 0 .15rem 1.35rem;
  color: var(--theme-subtext0);
  font-size: .85rem;
}

@media (max-width: 720px) {
  body { padding: 16px; }
  .topbar { align-items: flex-start; }
  .hero { padding: 2.5rem 0 1.5rem; }
  .hero-with-shot { grid-template-columns: 1fr; gap: 1.25rem; }
  .decisions, .grid2 { grid-template-columns: 1fr; }
  .decisions > div + div, .grid2 > div + div {
    padding-left: 0; padding-top: 1rem; border-left: 0; border-top: 1px solid var(--theme-surface0);
  }
  figure { width: 100%; }
}
