:root {
  color-scheme: light;
  --paper: #f7f6f3;
  --white: #fff;
  --ink: #17191c;
  --muted: #595c60;
  --line: #dfddd9;
  --accent: #b63b27;
  --accent-dark: #962e1d;
  --bright: #ff9c79;
  --radius: 1.1rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, dl, figure { margin: 0; }
section[id] { scroll-margin-top: 5.25rem; }
[hidden] { display: none !important; }
:focus-visible { outline: .18rem solid #b63b27; outline-offset: .22rem; }

.wrap { width: min(100% - 5rem, 76rem); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 1rem; left: 1rem; transform: translateY(-200%); padding: .7rem 1rem; background: white; font-weight: 700; }
.skip:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.27rem; font-weight: 780; letter-spacing: -.045em; text-decoration: none; width: fit-content; }
.mark { display: inline-grid; width: 2rem; height: 2rem; align-content: center; gap: .2rem; padding-inline: .49rem; border-radius: .5rem; background: var(--accent); flex: none; }
.mark i { display: block; height: .12rem; border-radius: .12rem; background: #fff7ee; }
.mark i:nth-child(2) { width: 69%; }
.brand-accent { color: var(--accent); }
nav { display: flex; align-items: center; gap: clamp(.9rem, 3.1vw, 2.4rem); }
nav a { color: #45494e; font-weight: 640; font-size: .94rem; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--accent); }

.hero {
  color: #f9f8f6;
  background: radial-gradient(ellipse at 0% 100%, #252326 0%, #17191c 60%);
  padding-block: clamp(3rem, 8vw, 7.7rem);
}
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--accent); font-size: .84rem; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.eyebrow > span { width: .8rem; height: .16rem; border-radius: .15rem; background: currentColor; flex: none; }
.hero .eyebrow { color: #ffab8e; }
.hero h1 { margin-block: 1rem 1.15rem; font-size: clamp(2.9rem, 4.45vw, 4.75rem); line-height: 1.01; font-weight: 780; letter-spacing: -.065em; }
.hero h1 em { color: var(--bright); font-style: normal; }
.hero-lead { color: #d6d4d2; max-width: 33rem; font-size: clamp(1.05rem, 1.35vw, 1.2rem); }
.hero-actions { margin-top: 1.8rem; display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.1rem; padding: .63rem 1rem; border: 1px solid transparent; border-radius: .55rem; font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .16s ease, border-color .16s ease; }
.primary { color: #22140e; background: #ffa584; border-color: #ffa584; }
.primary:hover { background: #ffb99f; border-color: #ffb99f; }
.outline { color: #fff6f1; border-color: #6c6463; }
.outline:hover { background: #302b2a; border-color: #978987; }
.hero-note { color: #bfbab6; margin-top: 1rem; font-size: .88rem; }
.hero-note span { color: var(--bright); padding-inline: .15rem; }
.hero-visual { position: relative; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: .75rem -.7rem -.7rem .75rem; z-index: -1; border: 1px solid #a85641; border-radius: var(--radius); }
.hero-visual img { width: 100%; aspect-ratio: 1.38; object-fit: cover; border-radius: var(--radius); box-shadow: 0 .65rem 2.7rem #08090a55; }
.hero-visual figcaption { position: absolute; inset: auto auto 1rem 1rem; background: #161719dd; border: 1px solid #c8c5c73c; color: #f7f2ee; padding: .35rem .6rem; border-radius: .4rem; font-size: .77rem; }

.section { padding-block: clamp(3.6rem, 7vw, 6.3rem); }
.section-head { max-width: 46rem; margin-bottom: 1.9rem; }
h2 { margin-block: .45rem .65rem; font-size: clamp(2.1rem, 4.35vw, 3.9rem); line-height: 1.04; letter-spacing: -.055em; font-weight: 770; text-wrap: balance; }
.section-head > p:last-child:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; max-width: 40rem; }
.demo-layout { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.45fr); align-items: start; gap: 1rem; }
.demo-navigation { display: grid; gap: .55rem; }
.demo-tab { width: 100%; text-align: left; cursor: pointer; padding: .88rem .95rem; background: #fff; border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); }
.demo-tab > strong, .demo-tab > span { display: block; }
.demo-tab > span { color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.demo-tab[aria-selected="true"] { border-color: #c37161; background: #fff1ec; box-shadow: inset .2rem 0 0 var(--accent); }
.demo-tab:hover:not([aria-selected="true"]) { background: #f0eeeb; }
.demo-window { overflow: hidden; background: var(--ink); color: #fcf9f6; border: 1px solid #202328; border-radius: var(--radius); box-shadow: 0 .5rem 1.7rem #231b1615; }
.window-bar { display: flex; align-items: center; gap: .55rem; min-height: 3rem; padding: .55rem 1rem; background: #26292e; border-bottom: 1px solid #373a41; font-size: .92rem; }
.mark.small { width: 1.3rem; height: 1.3rem; border-radius: .33rem; padding-inline: .32rem; gap: .12rem; }
.mark.small i { height: .08rem; }
.window-label { color: #d8d0cb; margin-inline-start: auto; font-size: .82rem; }
.demo-panel { min-height: 18rem; padding: clamp(1rem, 2.8vw, 1.55rem); }
.panel-head { margin-bottom: .9rem; }
.panel-head p { color: #ffac8e; font-size: .83rem; }
.panel-head h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 740; letter-spacing: -.028em; }
.mock-line { display: flex; gap: .7rem; align-items: center; padding: .62rem .7rem; margin-bottom: .28rem; background: #24272c; border-radius: .35rem; }
.mock-line strong { font-size: .87rem; overflow-wrap: anywhere; }
.mock-line small { color: #d0cac6; display: block; font-size: .8rem; }
.file-symbol { width: .8rem; height: 1rem; border: .1rem solid #fa9d7d; border-radius: .12rem; flex: none; }
.mock-tag { margin-inline-start: auto; font-family: ui-monospace, monospace; color: #ded4cf; font-size: .78rem; white-space: nowrap; }
.mock-info { font-size: .88rem; color: #dcd2cd; margin-top: .8rem; }
.mock-spec { display: grid; grid-template-columns: 1fr 1fr; gap: .36rem .75rem; }
.mock-spec div { padding: .52rem .63rem; background: #24272c; border-radius: .35rem; }
.mock-spec dt { font-size: .79rem; color: #d7ceca; }
.mock-spec dd { margin: .1rem 0 0; font-weight: 650; font-size: .88rem; overflow-wrap: anywhere; }
.hex-example { overflow: auto; border: 1px solid #393c42; border-radius: .35rem; }
.hex-example table { text-align: left; border-collapse: collapse; width: 100%; }
.hex-example th, .hex-example td { padding: .47rem .62rem; }
.hex-example th { background: #292c31; color: #e4dad5; font-size: .8rem; }
.hex-example td { border-top: 1px solid #34363a; font: .9rem ui-monospace, Consolas, monospace; }
.hex-example td:last-child { color: var(--bright); }

.feature-section { border-block: 1px solid var(--line); background: #fff; }
.feature-explorer { display: grid; grid-template-columns: minmax(11.2rem, .75fr) minmax(0, 2.55fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-tabs { display: grid; align-content: start; padding: .6rem; border-right: 1px solid var(--line); background: #f4f2ef; gap: .15rem; }
.feature-tab { display: flex; align-items: center; gap: .55rem; border: 0; border-radius: .47rem; color: #45464a; background: transparent; cursor: pointer; text-align: left; min-height: 3.05rem; padding: .62rem .76rem; font-size: .94rem; font-weight: 640; }
.feature-tab::before { content: ""; width: .38rem; height: .38rem; border-radius: 50%; background: #93918f; flex: none; }
.feature-tab[aria-selected="true"] { color: #861e10; background: #f6ded6; font-weight: 730; }
.feature-tab[aria-selected="true"]::before { background: var(--accent); }
.feature-tab:hover:not([aria-selected="true"]) { background: #eeebe7; }
.feature-panel { min-height: 18rem; padding: clamp(1rem, 3.8vw, 2.2rem); }
.feature-panel h3 { font-size: clamp(1.35rem, 2.25vw, 1.95rem); line-height: 1.13; letter-spacing: -.033em; }
.feature-panel > p { margin-top: .55rem; color: var(--muted); }
.feature-items { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.15rem; }
.feature-items li { padding-top: .65rem; border-top: 1px solid #e6e3df; }
.feature-items h4 { font-size: .97rem; margin: 0 0 .24rem; }
.feature-items p { color: var(--muted); font-size: .94rem; }

.workshop-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.workshop-photo img { width: 100%; aspect-ratio: 1.28; object-fit: cover; border-radius: var(--radius); }
.workshop-modes > div { border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .68rem; }
.workshop-modes dt { font-weight: 740; }
.workshop-modes dd { color: var(--muted); margin: .16rem 0 0; }
.faq-section { background: #eeece8; }
.faq-layout { display: grid; grid-template-columns: .86fr 1.32fr; gap: clamp(1.25rem, 4.5vw, 5rem); align-items: start; }
.faq-list { border-top: 1px solid #cdc9c2; }
.faq-list details { border-bottom: 1px solid #cdc9c2; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .9rem; cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.36rem; line-height: 1; color: var(--accent); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -.1rem 1.5rem .95rem 0; color: var(--muted); }
.site-footer { color: #ded9d6; background: var(--ink); }
.site-footer .wordmark { color: #fff; }
.site-footer .brand-accent { color: var(--bright); }
.footer-inner { min-height: 6rem; padding-block: 1rem; display: flex; align-items: center; gap: 1.1rem 1.7rem; flex-wrap: wrap; }
.footer-inner p { font-size: .91rem; }
.footer-inner > a:last-child { margin-inline-start: auto; font-size: .91rem; text-underline-offset: .18em; }

@media (max-width: 56rem) {
  .wrap { width: min(100% - 3rem, 76rem); }
  .hero-inner { gap: 1.6rem; }
  .hero h1 { font-size: clamp(2.7rem, 5.8vw, 4.1rem); }
  .feature-explorer { grid-template-columns: minmax(9.5rem, .8fr) minmax(0, 2fr); }
}
@media (max-width: 43rem) {
  .wrap { width: min(100% - 2rem, 76rem); }
  .header-inner { min-height: 0; align-items: flex-start; flex-direction: column; gap: .62rem; padding-block: .66rem; }
  nav { max-width: 100%; flex-wrap: wrap; gap: .3rem clamp(.65rem, 3vw, 1.15rem); }
  nav a { font-size: .88rem; }
  section[id] { scroll-margin-top: 6rem; }
  .hero { padding-block: 3rem; }
  .hero-inner, .demo-layout, .workshop-grid, .faq-layout { grid-template-columns: 1fr; }
  .hero-inner { gap: 1.85rem; }
  .hero-visual::before { inset: .45rem -.35rem -.35rem .45rem; }
  .hero-visual img { aspect-ratio: 1.6; }
  .hero-visual figcaption { inset: auto auto .6rem .6rem; }
  .demo-navigation { display: flex; gap: .35rem; }
  .demo-tab { padding: .55rem .45rem; font-size: .86rem; }
  .demo-tab > span { display: none; }
  .feature-explorer { grid-template-columns: 1fr; }
  .feature-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-tab { min-height: 2.6rem; padding: .43rem .5rem; font-size: .87rem; }
  .workshop-photo { order: 1; }
  .workshop-photo img { aspect-ratio: 1.6; }
  .faq-layout .section-head { margin-bottom: 0; }
  .footer-inner > a:last-child { margin-inline-start: 0; }
}
@media (max-width: 24rem) {
  .hero h1 { font-size: 2.45rem; }
  .feature-items, .mock-spec { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
