:root {
  color-scheme: light;
  --paper: #f1eee4;
  --paper-2: #e8e4d8;
  --ink: #171713;
  --muted: #6f6c62;
  --line: #c9c4b6;
  --accent: #ff5b3d;
  --brand-1: #2d47ff;
  --brand-2: #ff6547;
  --brand-3: #d9ff6c;
  --brand-4: #15151a;
  --brand-5: #f7f4eb;
  --radius: 8px;
  --display-font: Georgia, "Times New Roman", serif;
  --body-font: Arial, Helvetica, sans-serif;
  --shadow: 0 24px 70px rgba(38, 35, 25, 0.12);
  --sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 0;
}
:focus-visible {
  outline: 3px solid #2d47ff;
  outline-offset: 3px;
}
::selection {
  background: var(--brand-3);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}
.skip-link:focus {
  top: 16px;
}

.site-header {
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  padding: 0 28px;
  background: rgba(241, 238, 228, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}
.wordmark > span:last-child span {
  color: var(--accent);
}
.wordmark-icon {
  width: 27px;
  height: 27px;
  position: relative;
  display: inline-block;
  background: var(--ink);
  border-radius: 50% 50% 8% 50%;
  transform: rotate(-8deg);
}
.wordmark-icon i:first-child {
  position: absolute;
  width: 8px;
  height: 8px;
  top: 5px;
  right: 5px;
  background: var(--paper);
  border-radius: 50%;
}
.wordmark-icon i:last-child {
  position: absolute;
  width: 8px;
  height: 2px;
  left: 5px;
  bottom: 7px;
  background: var(--accent);
  transform: rotate(35deg);
}
.header-note {
  margin: 0;
  justify-self: center;
  font-size: 0.7rem;
  color: var(--muted);
}
.header-note span {
  color: var(--accent);
  margin-left: 6px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.local-status {
  font-size: 0.62rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}
.local-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b9f65;
}
.plain-button,
.icon-button {
  background: transparent;
  border: 1px solid var(--line);
}
.plain-button {
  height: 36px;
  padding: 0 12px;
  font-size: 0.68rem;
}
.plain-button b {
  display: inline-grid;
  place-items: center;
  margin-left: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.56rem;
}
.dark-button {
  min-height: 37px;
  padding: 0 15px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 750;
}
.dark-button:hover {
  background: var(--accent);
  color: var(--ink);
}

.intro {
  max-width: 1240px;
  margin: 0 auto;
  padding: 75px 28px 42px;
  position: relative;
}
.kicker,
.micro-label {
  margin: 0 0 15px;
  font: 700 0.59rem var(--mono);
  letter-spacing: 0.14em;
}
.kicker {
  color: var(--accent);
}
.intro h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  font-weight: 820;
}
.intro h1 em {
  font-family: var(--display-font);
  font-weight: 400;
}
.intro > p:nth-of-type(2) {
  max-width: 540px;
  margin: 32px 0 0 auto;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}
.intro-line {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 55px;
  font: 700 0.56rem var(--mono);
  letter-spacing: 0.16em;
  color: var(--muted);
}
.intro-line i {
  height: 1px;
  background: var(--line);
  position: relative;
}
.intro-line i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -2px;
  border-left: 5px solid var(--line);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

.studio-shell {
  max-width: 1240px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: minmax(285px, 0.32fr) minmax(0, 0.68fr);
  border: 1px solid var(--ink);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.brief-panel {
  border-right: 1px solid var(--ink);
  min-width: 0;
}
.panel-index {
  height: 47px;
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding: 0 14px 0 0;
  font: 700 0.6rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.panel-index > span {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-right: 1px solid var(--ink);
  margin-right: 13px;
  background: var(--ink);
  color: var(--paper);
}
.panel-index p {
  margin: 0;
}
.panel-index em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.5rem;
}
.brief-body {
  padding: 22px;
}
.field-group label,
.personality-fields legend {
  display: block;
  margin-bottom: 7px;
  font: 700 0.55rem var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-group input,
.field-group select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.3);
  padding: 0 11px;
  font-size: 0.76rem;
}
.field-group input:focus,
.field-group select:focus {
  outline: 0;
  border-color: var(--ink);
  background: var(--paper);
}
.field-group.full + .field-group.full,
.split-fields + .field-group {
  margin-top: 16px;
}
.split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.personality-fields {
  border: 0;
  padding: 0;
  margin: 23px 0 0;
}
.personality-fields legend {
  width: 100%;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.personality-fields > label {
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 9px;
  align-items: center;
  margin-top: 13px;
}
.personality-fields label > span {
  grid-column: 1/3;
  display: flex;
  justify-content: space-between;
}
.personality-fields label b {
  font-size: 0.59rem;
  font-weight: 650;
}
.personality-fields output {
  font: 700 0.56rem var(--mono);
  color: var(--muted);
  text-align: right;
}
.personality-fields input[type="range"] {
  appearance: none;
  height: 3px;
  background: var(--line);
}
.personality-fields input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--paper-2);
  box-shadow: 0 0 0 1px var(--ink);
}
.personality-fields input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper-2);
}
.brief-actions {
  display: grid;
  grid-template-columns: 1fr 43px;
  gap: 7px;
  margin-top: 24px;
}
.generate-button {
  min-height: 47px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}
.generate-button:hover i {
  transform: rotate(90deg);
}
.generate-button i {
  font-style: normal;
  transition: transform 0.25s;
}
.shuffle-button {
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 1.1rem;
}
.shuffle-button:hover {
  background: var(--ink);
  color: var(--paper);
}
.algorithm-note {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 5px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.57rem;
  line-height: 1.5;
}

.system-panel {
  min-width: 0;
  background: var(--paper);
}
.system-toolbar {
  min-height: 57px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.view-tabs,
.system-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.view-tab {
  background: transparent;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}
.view-tab.active {
  color: var(--ink);
  background: var(--brand-3);
}
.icon-button {
  width: 34px;
  height: 34px;
  font: 700 0.67rem var(--mono);
}
.icon-button:hover {
  background: var(--ink);
  color: var(--paper);
}
.icon-button.saved {
  background: var(--accent);
  border-color: var(--ink);
}
.system-view {
  min-height: 621px;
}
.board-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}
.brand-tile {
  min-width: 0;
  min-height: 295px;
  padding: 18px;
  border-bottom: 1px solid var(--ink);
}
.brand-tile:nth-child(odd) {
  border-right: 1px solid var(--ink);
}
.brand-tile:nth-child(n + 3) {
  border-bottom: 0;
}
.tile-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font: 700 0.54rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tile-heading span {
  color: var(--muted);
}
.tile-heading b {
  font-weight: 700;
}
.identity-stage {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 18px;
}
.generated-mark {
  --mark-bg: var(--brand-1);
  --mark-ink: var(--brand-5);
  width: 90px;
  height: 90px;
  flex: 0 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--mark-bg);
  color: var(--mark-ink);
  border-radius: var(--mark-radius, 50% 50% 8% 50%);
  transform: rotate(var(--mark-rotate, -6deg));
}
.generated-mark i {
  position: absolute;
  width: 38px;
  height: 38px;
  right: -8px;
  top: -8px;
  background: var(--brand-3);
  border-radius: 50%;
  mix-blend-mode: screen;
}
.generated-mark strong {
  position: relative;
  font-family: var(--display-font);
  font-size: 2.8rem;
  line-height: 1;
  transform: rotate(calc(var(--mark-rotate, -6deg) * -1));
}
.identity-copy {
  min-width: 0;
}
.identity-copy strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--display-font);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.identity-copy span {
  display: block;
  max-width: 180px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}
.mark-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font: 700 0.5rem var(--mono);
  color: var(--muted);
}
.mark-controls button {
  background: transparent;
  color: inherit;
  font: inherit;
}
.mark-controls button:hover {
  color: var(--accent);
}
.swatch-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 18px;
}
.swatch {
  min-width: 0;
}
.swatch-color {
  height: 125px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--swatch);
}
.swatch button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.55rem;
  opacity: 0;
}
.swatch-color:hover button,
.swatch button[aria-pressed="true"] {
  opacity: 1;
}
.swatch button[aria-pressed="true"] {
  color: var(--accent);
}
.swatch code {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font: 500 0.48rem var(--mono);
  color: var(--muted);
  text-transform: uppercase;
}
.contrast-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.56rem;
}
.contrast-line span {
  background: #3d8e5a;
  color: white;
  padding: 3px 5px;
  font: 800 0.46rem var(--mono);
}
.contrast-line.fail span {
  background: #bd4b3c;
}
.type-specimen {
  min-height: 154px;
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 16px;
}
.type-display {
  font-family: var(--display-font);
  font-size: 7.1rem;
  line-height: 1;
  letter-spacing: -0.11em;
}
.type-specimen strong {
  display: block;
  font-family: var(--display-font);
  font-size: 1.25rem;
}
.type-specimen span {
  display: block;
  color: var(--muted);
  font: 500 0.54rem var(--mono);
  margin-top: 4px;
}
.type-body-row {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 10px;
  font-size: 0.58rem;
}
.type-body-row span {
  color: var(--muted);
  font: 600 0.5rem var(--mono);
  text-transform: uppercase;
}
.type-body-row b {
  font-family: var(--body-font);
}
.type-body-row em {
  grid-column: 2;
  font-family: var(--body-font);
  color: var(--muted);
  font-style: normal;
  margin-top: 4px;
}
.voice-tile blockquote {
  min-height: 84px;
  display: flex;
  align-items: center;
  margin: 7px 0;
  font-family: var(--display-font);
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.voice-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.voice-traits span {
  padding: 5px 7px;
  background: var(--brand-3);
  font: 700 0.5rem var(--mono);
  text-transform: uppercase;
}
.voice-rule {
  margin-top: 13px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  grid-template-columns: 41px 1fr;
  gap: 4px 8px;
}
.voice-rule span {
  font: 700 0.46rem var(--mono);
  color: var(--muted);
}
.voice-rule p {
  margin: 0;
  font-size: 0.58rem;
}

.preview-switcher {
  display: flex;
  gap: 5px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.preview-switcher button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 10px;
  font-size: 0.6rem;
}
.preview-switcher button.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.mockup-frame {
  margin: 20px;
  border: 1px solid var(--ink);
  background: white;
  box-shadow: 8px 8px 0 var(--line);
}
.mockup-browser {
  height: 34px;
  padding: 0 10px;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f1f1ef;
}
.mockup-browser span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aaa;
}
.mockup-browser b {
  margin-left: auto;
  font: 500 0.48rem var(--mono);
  color: #666;
}
.mockup-canvas {
  height: 500px;
  overflow: hidden;
  background: var(--brand-5);
  color: var(--brand-4);
  font-family: var(--body-font);
}
.landing-preview {
  min-height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.56rem;
}
.mock-nav strong {
  font-family: var(--display-font);
  font-size: 1rem;
}
.mock-nav span {
  word-spacing: 12px;
}
.mock-hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 25px;
}
.mock-copy h3 {
  margin: 0;
  max-width: 420px;
  font-family: var(--display-font);
  font-size: 3.6rem;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.mock-copy p {
  max-width: 330px;
  color: color-mix(in srgb, var(--brand-4) 68%, transparent);
  font-size: 0.7rem;
  line-height: 1.55;
}
.mock-cta {
  display: inline-flex;
  padding: 9px 13px;
  background: var(--brand-1);
  color: var(--brand-5);
  font-size: 0.58rem;
  font-weight: 800;
}
.mock-art {
  aspect-ratio: 1;
  position: relative;
  background: var(--brand-2);
  border-radius: var(--mark-radius);
}
.mock-art::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  right: -5%;
  top: -5%;
  border-radius: 50%;
  background: var(--brand-3);
}
.mock-art::after {
  content: attr(data-letter);
  position: absolute;
  left: 15%;
  bottom: 4%;
  font-family: var(--display-font);
  font-size: 8rem;
  color: var(--brand-4);
}
.social-preview {
  height: 100%;
  display: grid;
  place-items: center;
  background: #ddd;
}
.social-card {
  width: min(410px, 80%);
  aspect-ratio: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--brand-1);
  color: var(--brand-5);
  box-shadow: 16px 16px 0 var(--brand-3);
}
.social-card small {
  font: 700 0.55rem var(--mono);
  letter-spacing: 0.1em;
}
.social-card blockquote {
  margin: 0;
  font: 2.5rem/0.95 var(--display-font);
}
.social-card footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
}
.product-preview {
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--brand-3);
}
.product-card {
  width: 400px;
  max-width: 82%;
  padding: 24px;
  border: 1px solid var(--brand-4);
  background: var(--brand-5);
  box-shadow: 10px 10px 0 var(--brand-4);
}
.product-card .product-badge {
  display: inline-block;
  background: var(--brand-2);
  padding: 4px 7px;
  font: 700 0.48rem var(--mono);
}
.product-card h3 {
  font: 2.2rem/1 var(--display-font);
  margin: 35px 0 10px;
}
.product-card p {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}
.product-card button {
  width: 100%;
  padding: 10px;
  margin-top: 25px;
  background: var(--brand-1);
  color: var(--brand-5);
  font-size: 0.58rem;
  font-weight: 800;
}

.token-intro {
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.token-intro h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 2rem;
  font-weight: 500;
}
.token-intro p:last-child {
  color: var(--muted);
  font-size: 0.68rem;
  margin: 7px 0 0;
}
.token-code {
  margin: 20px;
  min-height: 330px;
  padding: 20px;
  border: 1px solid var(--ink);
  background: #181916;
  color: #d9ff6c;
  font: 0.66rem/1.8 var(--mono);
  overflow: auto;
  white-space: pre-wrap;
}
.token-stats {
  margin: 0 20px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.token-stats div {
  padding: 13px;
  border-right: 1px solid var(--line);
}
.token-stats div:last-child {
  border: 0;
}
.token-stats b {
  display: block;
  font: 800 1.2rem var(--mono);
}
.token-stats span {
  color: var(--muted);
  font-size: 0.54rem;
}

.principles {
  max-width: 1240px;
  margin: 0 auto 100px;
  padding: 0 28px;
}
.principles-title {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 35px;
}
.principles-title span {
  font: 700 0.6rem var(--mono);
  color: var(--accent);
}
.principles-title h2 {
  max-width: 600px;
  margin: 0;
  font: 3rem/0.95 var(--display-font);
  letter-spacing: -0.04em;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.principle-grid article {
  padding: 21px;
  border-right: 1px solid var(--line);
}
.principle-grid article:last-child {
  border: 0;
}
.principle-grid b {
  color: var(--accent);
  font: 700 0.55rem var(--mono);
}
.principle-grid h3 {
  margin: 30px 0 8px;
  font-size: 0.9rem;
}
.principle-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.6;
}

.history-drawer {
  position: fixed;
  z-index: 60;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 92vw);
  padding: 24px;
  background: var(--paper);
  border-left: 1px solid var(--ink);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.14);
  overflow: auto;
}
.drawer-scrim {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgba(23, 23, 19, 0.4);
}
.drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.drawer-header h2 {
  margin: 0;
  font: 2rem var(--display-font);
}
.close-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 1.3rem;
}
.saved-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.saved-card {
  border: 1px solid var(--line);
  padding: 12px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
}
.saved-swatch {
  width: 48px;
  height: 48px;
  background: var(--saved-color);
  border-radius: var(--saved-radius);
}
.saved-card strong {
  display: block;
  font-family: var(--display-font);
}
.saved-card span {
  color: var(--muted);
  font-size: 0.56rem;
}
.saved-card button {
  background: transparent;
  font-size: 0.6rem;
  text-decoration: underline;
}
.saved-card button:hover {
  color: var(--accent);
}
.saved-empty {
  margin: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}
.drawer-foot {
  position: sticky;
  bottom: -24px;
  padding: 13px 0 24px;
  margin: 25px 0 -24px;
  background: var(--paper);
  color: var(--muted);
  text-align: center;
  font-size: 0.56rem;
}
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 30px);
  opacity: 0;
  padding: 10px 15px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.66rem;
  box-shadow: var(--shadow);
  pointer-events: none;
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1000px) {
  .studio-shell {
    margin-left: 18px;
    margin-right: 18px;
    grid-template-columns: 310px 1fr;
  }
  .board-grid {
    grid-template-columns: 1fr;
  }
  .brand-tile:nth-child(odd) {
    border-right: 0;
  }
  .brand-tile:nth-child(n + 3) {
    border-bottom: 1px solid var(--ink);
  }
  .brand-tile:last-child {
    border-bottom: 0;
  }
  .system-view {
    min-height: 0;
  }
  .intro {
    padding-inline: 24px;
  }
  .site-header {
    grid-template-columns: 190px 1fr auto;
  }
  .header-note {
    display: none;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 64px;
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }
  .local-status,
  .plain-button {
    display: none;
  }
  .dark-button {
    padding-inline: 10px;
  }
  .intro {
    padding: 50px 16px 28px;
  }
  .intro h1 {
    font-size: clamp(2.8rem, 16vw, 4.8rem);
  }
  .intro > p:nth-of-type(2) {
    margin: 25px 0 0;
  }
  .intro-line {
    margin-top: 35px;
  }
  .studio-shell {
    display: block;
    margin: 0 10px 55px;
  }
  .brief-panel {
    border: 0;
    border-bottom: 1px solid var(--ink);
  }
  .brief-body {
    padding: 18px;
  }
  .system-toolbar {
    align-items: flex-start;
  }
  .view-tabs {
    overflow-x: auto;
  }
  .view-tab {
    white-space: nowrap;
  }
  .board-grid {
    display: block;
  }
  .identity-stage {
    justify-content: flex-start;
    padding-inline: 0;
  }
  .swatch-color {
    height: 100px;
  }
  .type-specimen {
    grid-template-columns: 110px 1fr;
  }
  .type-display {
    font-size: 6rem;
  }
  .mockup-frame {
    margin: 10px;
  }
  .mockup-canvas {
    height: 450px;
  }
  .mock-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
  }
  .mock-copy h3 {
    font-size: 2.65rem;
  }
  .mock-art {
    width: 55%;
    align-self: flex-end;
  }
  .token-intro {
    padding: 20px;
    align-items: flex-start;
    gap: 15px;
  }
  .token-intro h2 {
    font-size: 1.5rem;
  }
  .token-code {
    margin: 10px;
  }
  .token-stats {
    margin: 0 10px 10px;
  }
  .principles {
    padding: 0 16px;
  }
  .principles-title h2 {
    font-size: 2.25rem;
  }
  .principle-grid {
    grid-template-columns: 1fr;
  }
  .principle-grid article {
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .principle-grid article:last-child {
    border: 0;
  }
}
@media (max-width: 420px) {
  .split-fields {
    grid-template-columns: 1fr;
  }
  .field-group.full + .field-group.full,
  .split-fields + .field-group {
    margin-top: 13px;
  }
  .split-fields .field-group + .field-group {
    margin-top: 13px;
  }
  .swatch-list {
    gap: 3px;
  }
  .swatch code {
    font-size: 0.42rem;
  }
  .identity-copy strong {
    font-size: 2rem;
  }
  .generated-mark {
    width: 72px;
    height: 72px;
  }
  .preview-switcher {
    overflow-x: auto;
  }
  .preview-switcher button {
    white-space: nowrap;
  }
  .token-stats {
    grid-template-columns: 1fr;
  }
  .token-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
