:root {
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: 'Courier New', monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.demo-site {
  --paper: #f7f4ed;
  --ink: #262622;
  --muted: #55534c;
  --panel: #ebe6db;
  --line: #cbc2b6;
  --accent: #333f35;
  --on-accent: #fff;
  --display: var(--serif);
  --heading-weight: 500;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.58 var(--sans);
}

[data-theme="hearth"] {
  --paper: #1c1714; --ink: #fff4e7; --muted: #dfcab5;
  --panel: #2b211c; --line: #695044; --accent: #f1cf9d; --on-accent: #211711;
}
[data-theme="ridge"] {
  --paper: #f5f3ee; --ink: #162331; --muted: #495463;
  --panel: #e8e5de; --line: #c7c3b9; --accent: #243b52;
  --display: var(--sans); --heading-weight: 800;
}
[data-theme="forma"] {
  --paper: #f9f3eb; --ink: #36291f; --muted: #645143;
  --panel: #efe2d4; --line: #d6c5b5; --accent: #694139;
}
[data-theme="rush"] {
  --paper: #fff7e0; --ink: #291d12; --muted: #583d2d;
  --panel: #ffe253; --line: #b78752; --accent: #a51e24;
  --display: Impact, 'Arial Black', var(--sans); --heading-weight: 900;
}
[data-theme="ground"] {
  --paper: #101c2b; --ink: #f3f7fc; --muted: #c1d1e4;
  --panel: #1c2e44; --line: #4b5e75; --accent: #f9cc6a; --on-accent: #17202d;
  --display: var(--sans); --heading-weight: 800;
}
[data-theme="sound"] {
  --paper: #f7f5eb; --ink: #24372e; --muted: #4c5a4c;
  --panel: #e4e8d9; --line: #c2c8b9; --accent: #35513f;
}
[data-theme="morrow"] {
  --paper: #f9f1e3; --ink: #342722; --muted: #605044;
  --panel: #ebdfc9; --line: #c9b8a1; --accent: #594034;
}
[data-theme="ash"] {
  --paper: #211d1b; --ink: #fbefe0; --muted: #ded0c4;
  --panel: #302823; --line: #68594d; --accent: #f0bc8f; --on-accent: #221a16;
  --display: Impact, 'Arial Black', var(--sans); --heading-weight: 900;
}
[data-theme="finch"] {
  --paper: #f4f7fa; --ink: #142940; --muted: #41546a;
  --panel: #e5edf6; --line: #bccbd9; --accent: #204a70;
  --display: var(--sans); --heading-weight: 750;
}
[data-theme="alder"] {
  --paper: #f6f3e9; --ink: #253527; --muted: #51584a;
  --panel: #e4e6d5; --line: #c6c7b5; --accent: #2a4d37;
}
[data-theme="orchard"] {
  --paper: #fcf6e4; --ink: #2d3924; --muted: #516049;
  --panel: #e8e6bc; --line: #c4c09a; --accent: #38532a;
}
[data-theme="north"] {
  --paper: #f7f5f0; --ink: #1d3436; --muted: #4d5b58;
  --panel: #e8eeea; --line: #c0cbc3; --accent: #284f52;
}

h1, h2, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.demo-shell {
  width: min(76rem, calc(100% - clamp(2.2rem, 10vw, 9rem)));
  margin-inline: auto;
}

.demo-skip {
  position: fixed;
  z-index: 5;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.55rem 0.9rem;
  color: #fff;
  background: #171717;
  transform: translateY(-150%);
}
.demo-skip:focus { transform: translateY(0); }

.demo-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.55rem;
  align-items: center;
  min-height: 2.9rem;
  padding-inline: clamp(1rem, 5vw, 4.5rem);
  color: #fff;
  background: #181718;
  font-size: 0.82rem;
  line-height: 1.25;
}
.demo-toolbar a { display: flex; align-items: center; gap: 0.45rem; width: fit-content; min-height: 2.75rem; }
.demo-toolbar a:last-child { justify-self: end; }
.demo-toolbar a:hover, .demo-footer a:hover { text-decoration: underline; text-underline-offset: 0.24em; }
.demo-toolbar a:focus-visible { outline-color: #fff; outline-offset: 0; }
.demo-toolbar-label { color: #ddd4d6; font: 0.72rem/1.25 var(--mono); text-align: center; }

.demo-header { border-bottom: 1px solid var(--line); }
.demo-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem 1rem;
  min-height: 4.8rem;
  padding-block: 0.55rem;
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.demo-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid currentColor;
  color: var(--accent);
  font: 700 0.79rem/1 var(--mono);
  letter-spacing: -0.02em;
}
[data-theme="hearth"] .demo-mark, [data-theme="morrow"] .demo-mark,
[data-theme="sound"] .demo-mark, [data-theme="alder"] .demo-mark { border-radius: 50%; }

.demo-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.85rem, 4vw, 2.5rem);
  font-size: 0.88rem;
}
.demo-navigation a, .demo-hero-link { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; }
.demo-navigation a:hover, .demo-hero-link:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.demo-header-action { justify-self: end; }

.demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.8rem;
  padding: 0.62rem 0.93rem;
  border: 1px solid var(--accent);
  color: var(--on-accent);
  background: var(--accent);
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.demo-button:hover { color: var(--accent); background: transparent; }

.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 1.6rem clamp(1.8rem, 5vw, 5rem);
  padding-block: clamp(2.55rem, 6.1vw, 5.75rem);
}

.demo-kicker {
  color: var(--accent);
  font: 700 0.72rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-hero h1 {
  max-width: 13em;
  margin-block: 0.78rem 1.15rem;
  font: var(--heading-weight) clamp(3.1rem, 6.6vw, 6.8rem)/0.98 var(--display);
  letter-spacing: -0.062em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.demo-intro { max-width: 32rem; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.2rem); }
.demo-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 1rem; margin-top: 1.55rem; }
.demo-hero-link { font-size: 0.86rem; font-weight: 700; text-decoration: underline; text-underline-offset: 0.25em; }
.demo-hero-visual { position: relative; min-width: 0; overflow: hidden; aspect-ratio: 1.4; background: var(--panel); }
.demo-hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.demo-hero--overlay {
  --accent: #f1cf9d;
  width: 100%;
  min-height: clamp(29rem, 54vw, 42rem);
  padding-inline: max(1.25rem, calc((100vw - 76rem) / 2));
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  isolation: isolate;
  place-items: center;
  text-align: center;
}
.demo-hero--overlay .demo-hero-copy { z-index: 1; }
.demo-hero--overlay h1 { max-width: 13ch; margin-inline: auto; color: #fff4e7; }
.demo-hero--overlay .demo-intro { color: #fff4e7; margin-inline: auto; }
.demo-hero--overlay .demo-hero-actions { justify-content: center; }
.demo-hero--overlay .demo-hero-visual { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.demo-hero--overlay .demo-hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #160d08b8, #160d089c 65%, #160d088e);
  content: "";
}

.demo-hero--industrial {
  align-items: stretch;
  gap: 0;
  margin-block: clamp(1.5rem, 4vw, 3.6rem);
  padding-block: 0;
}
.demo-hero--industrial .demo-hero-copy {
  --accent: #f3c46e; --on-accent: #172536; --muted: #e7e8e8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.7rem, 4.5vw, 4.15rem);
  color: #fff;
  background: #162638;
}
.demo-hero--industrial h1 { text-wrap: initial; }
.demo-hero--industrial .demo-hero-visual { min-height: 100%; aspect-ratio: 1.35; }

.demo-hero--canvas {
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.8rem, 6vw, 5.1rem) clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}
.demo-hero--canvas h1, .demo-hero--canvas .demo-intro { margin-inline: auto; }
.demo-hero--canvas .demo-hero-actions { justify-content: center; }
.demo-hero--canvas .demo-hero-visual { aspect-ratio: 2.4; }
.demo-hero--canvas img { object-position: 50% 62%; }

.demo-hero--bold {
  align-items: stretch;
  gap: 0;
  margin-block: clamp(1.25rem, 3.7vw, 3.1rem);
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--panel);
}
.demo-hero--bold .demo-hero-copy { align-self: center; padding: clamp(1.3rem, 4.5vw, 4rem); }
.demo-hero--bold h1 { letter-spacing: -0.035em; text-transform: uppercase; }
.demo-hero--bold .demo-hero-visual { min-height: 100%; aspect-ratio: 1.28; }
[data-theme="rush"] .demo-button { border: 2px solid var(--ink); }
[data-theme="rush"] .demo-button:hover { color: var(--ink); }

.demo-hero--panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.4rem clamp(1.8rem, 5vw, 5rem);
}
.demo-hero--panel h1 { font-size: clamp(3.05rem, 6.2vw, 6.25rem); }
.demo-hero--panel .demo-hero-visual {
  aspect-ratio: 1.18;
  border: 1px solid var(--line);
  box-shadow: 0.55rem 0.55rem 0 var(--panel);
}
.demo-hero--panel img { object-position: 44% 50%; }

.demo-hero--wellness {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 1.5rem clamp(2rem, 8vw, 8rem);
}
.demo-hero--wellness .demo-hero-visual { border-radius: 46% 46% 0 0; aspect-ratio: 1.15; }
[data-theme="sound"] .demo-button { border-radius: 2rem; }

.demo-hero--offset .demo-hero-visual { aspect-ratio: 1.25; outline: 1px solid var(--line); outline-offset: 0.58rem; }
.demo-hero--offset .demo-hero-copy { border-bottom: 1px solid var(--line); padding-bottom: 1.35rem; }

.demo-hero--barber { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.demo-hero--barber h1 { text-transform: uppercase; letter-spacing: -0.025em; }
.demo-hero--barber .demo-hero-visual { aspect-ratio: 1.3; border: 2px solid var(--accent); }
[data-theme="ash"] .demo-brand { text-transform: uppercase; letter-spacing: 0.025em; }

.demo-hero--ledger {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  background: var(--panel);
  margin-block: clamp(1.25rem, 4vw, 3.5rem);
  padding: clamp(1.4rem, 4.5vw, 4rem);
}
.demo-hero--ledger h1 { font-size: clamp(2.9rem, 5.65vw, 5.5rem); }
.demo-hero--ledger .demo-hero-visual { border: 0.45rem solid var(--paper); }

.demo-hero--reverse { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.87fr); }
.demo-hero--reverse .demo-hero-visual { grid-column: 1; grid-row: 1; aspect-ratio: 1.15; }
.demo-hero--reverse .demo-hero-copy { grid-column: 2; }
.demo-hero--reverse h1 { font-size: clamp(3.05rem, 5.6vw, 6rem); }

.demo-hero--market { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr); gap: 1.55rem clamp(1.6rem, 4.5vw, 4.5rem); }
.demo-hero--market .demo-hero-visual { border-radius: 0.5rem 3rem 0.5rem 3rem; }
.demo-hero--market .demo-hero-copy { border-top: 1px solid var(--line); padding-top: 1.5rem; }

.demo-hero--counsel { grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr); }
.demo-hero--counsel .demo-hero-copy { padding-left: clamp(0.8rem, 2.25vw, 1.8rem); border-left: 2px solid var(--accent); }
.demo-hero--counsel h1 { font-size: clamp(3rem, 5.65vw, 5.7rem); }
.demo-hero--counsel .demo-hero-visual { aspect-ratio: 1.17; }

.demo-highlights { border-block: 1px solid var(--line); background: var(--panel); }
.demo-highlights ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin-block: 0;
}
.demo-highlights li {
  display: grid;
  place-items: center;
  min-height: 3.75rem;
  padding: 0.65rem 0.4rem;
  font: 700 0.75rem/1.38 var(--mono);
  text-align: center;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.demo-highlights li + li { border-left: 1px solid var(--line); }

.demo-feature, .demo-request, .demo-story { scroll-margin-top: 3.9rem; }
.demo-feature, .demo-request {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  align-items: start;
  gap: 1.6rem clamp(1.6rem, 7vw, 6rem);
  padding-block: clamp(3rem, 6vw, 5.8rem);
}
.demo-site h2 {
  margin-block: 0.52rem 0.7rem;
  font: var(--heading-weight) clamp(2.05rem, 4.3vw, 4.15rem)/1.03 var(--display);
  letter-spacing: -0.047em;
  text-wrap: balance;
}
.demo-section-lead > p:last-child, .demo-story p:last-child { max-width: 30rem; color: var(--muted); }
.demo-feature-content { border-top: 1px solid var(--line); }

.feature-detail { border-bottom: 1px solid var(--line); }
.feature-detail summary {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-block: 0.86rem;
  font-size: clamp(1rem, 1.8vw, 1.32rem);
  line-height: 1.3;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.feature-detail summary::-webkit-details-marker { display: none; }
.feature-detail summary::after {
  content: "+";
  color: var(--accent);
  font: 700 1.05rem/1 var(--mono);
  margin-left: auto;
}
.feature-detail[open] summary::after { content: "−"; }
.feature-index { flex: 0 0 auto; color: var(--accent); font: 0.72rem/1.35 var(--mono); }
.feature-projects summary { flex-wrap: wrap; }
.feature-projects .feature-index { flex-basis: 100%; }
.feature-detail > p { max-width: 36rem; padding-bottom: 1rem; color: var(--muted); }

.menu-entries { padding-bottom: 0.8rem; }
.menu-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.12rem 0.7rem;
  padding-block: 0.5rem;
}
.menu-entry + .menu-entry { border-top: 1px solid var(--line); }
.menu-entry dt { font-weight: 700; }
.menu-entry dd { grid-row: 2; color: var(--muted); font-size: 0.88rem; }
.menu-entry .menu-price { grid-column: 2; grid-row: 1; color: var(--ink); font-weight: 700; }

.class-schedule { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.89rem; }
.class-schedule th, .class-schedule td { border-bottom: 1px solid var(--line); padding: 0.75rem 0.4rem; }
.class-schedule thead th { color: var(--accent); font: 700 0.73rem/1.4 var(--mono); text-transform: uppercase; }

.demo-story { background: var(--panel); }
.demo-story-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2rem, 5vw, 4rem);
}
.demo-story-mark {
  color: var(--accent);
  font: 400 clamp(3.1rem, 9vw, 8.25rem)/1 var(--display);
  letter-spacing: -0.08em;
}

.demo-request-panel {
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  background: var(--panel);
}
.demo-request-panel > p { color: var(--muted); font-size: 0.88rem; }
.demo-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-block: 1rem 1.15rem;
}
.demo-choices label { display: grid; gap: 0.33rem; font-size: 0.88rem; font-weight: 700; }
.demo-choices select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.92rem;
  font-weight: 400;
}
.demo-result:not(:empty) { margin-top: 1rem; padding: 0.75rem; border: 1px solid var(--line); background: var(--paper); }

.demo-footer { border-top: 1px solid var(--line); }
.demo-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.75rem;
}
.demo-footer p { color: var(--muted); font-size: 0.88rem; }
.demo-footer a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; color: var(--accent); font-size: 0.88rem; font-weight: 700; }

@media (max-width: 760px) {
  .demo-header-inner { grid-template-columns: minmax(0, 1fr) auto; padding-block: 0.55rem 0; }
  .demo-header-action { grid-column: 2; grid-row: 1; }
  .demo-navigation { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--line); }
  .demo-hero, .demo-feature, .demo-request { grid-template-columns: minmax(0, 1fr); }
  .demo-hero--reverse .demo-hero-visual, .demo-hero--reverse .demo-hero-copy { grid-column: auto; grid-row: auto; }
  .demo-hero--overlay { min-height: 29rem; }
  .demo-hero:not(.demo-hero--overlay) .demo-hero-visual { aspect-ratio: 1.52; min-height: 0; }
  .demo-hero--wellness .demo-hero-visual { width: min(100%, 30rem); }
  .demo-hero--industrial, .demo-hero--bold { gap: 0; }
  .demo-hero--canvas .demo-hero-visual { aspect-ratio: 1.66; }
  .demo-highlights li { font-size: 0.65rem; }
}

@media (max-width: 460px) {
  .demo-toolbar { padding-inline: 0.72rem; font-size: 0.77rem; }
  .demo-toolbar-label { font-size: 0.65rem; }
  .demo-header-inner { gap: 0.62rem; }
  .demo-mark { width: 1.76rem; height: 1.76rem; font-size: 0.67rem; }
  .demo-brand { gap: 0.36rem; }
  .demo-header-action { padding-inline: 0.42rem; font-size: 0.74rem; }
  .demo-hero h1 { font-size: clamp(2.65rem, 10.6vw, 3.55rem); }
  .demo-hero--overlay .demo-hero-visual::after { background: #160d08a9; }
  .demo-story-inner, .demo-choices { grid-template-columns: 1fr; }
  .demo-story-mark { font-size: 2.6rem; }
  .class-schedule { font-size: 0.78rem; }
}
