:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #293d30;
  background: #f4f3ed;
  font-synthesis: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #9ca976;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
.site-nav {
  max-width: 1320px;
  margin: auto;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 58px;
  border-bottom: 1px solid #d9ddd0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Georgia, serif;
  font-size: 22px;
  white-space: nowrap;
}
.brand-edition {
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
  color: #77806e;
  border-left: 1px solid #ccd0c2;
  padding-left: 18px;
  margin-left: 16px;
}
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 12px;
}
.nav-cta {
  border: 1px solid #b5bba9;
  border-radius: 4px;
  padding: 11px 17px;
  display: flex;
  gap: 23px;
}
.hero {
  max-width: 1204px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 426px;
  gap: 75px;
  padding: 69px 58px 45px;
  position: relative;
}
.hero-copy {
  padding-top: 22px;
  position: relative;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 600;
}
.hero-eyebrow {
  display: flex;
  gap: 13px;
  align-items: center;
  color: #6d785f;
}
.little-line {
  width: 27px;
  height: 1px;
  background: #8a9775;
}
.hero h1 {
  font-size: 108px;
  line-height: 1.01;
  letter-spacing: -5px;
  margin: 28px 0 29px;
  position: relative;
}
.hero h1 em {
  font-weight: 400;
  color: #74845a;
}
.heading-spark {
  font-size: 42px;
  color: #9eaa83;
  position: absolute;
  left: 340px;
  top: 70px;
  font-family: Georgia, serif;
}
.hero-description {
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.3px;
}
.hero-detail {
  font-size: 13px;
  line-height: 1.9;
  color: #6f7969;
  max-width: 330px;
  margin-top: 17px;
}
.hero-actions {
  margin-top: 27px;
  display: flex;
  gap: 23px;
  align-items: center;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #2c4535;
  color: #f3f1e4;
  border-radius: 4px;
  padding: 14px 19px;
  font-size: 12px;
  font-weight: 500;
  min-height: 44px;
}
.primary-button:hover {
  background: #41563b;
}
.understated-link {
  font-size: 11px;
  border-bottom: 1px solid #aeb69f;
  padding-bottom: 3px;
}
.hero-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7b826f;
  font-size: 10px;
  margin-top: 23px;
}
.hero-footnote > span {
  font-size: 20px;
}
.botanical-drawing {
  position: absolute;
  left: 265px;
  bottom: -4px;
  width: 190px;
  transform: rotate(-9deg);
  pointer-events: none;
  color: #9da58b;
}
.botanical-drawing svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.6;
}
.botanical-drawing span {
  display: block;
  text-align: right;
  font-size: 10px;
  font-family: Georgia, serif;
  font-style: italic;
}
.hero-preview {
  width: 368px;
  justify-self: end;
  scroll-margin-top: 30px;
}
.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 15px 23px;
  color: #6b7760;
}
.preview-dimension {
  font-family: monospace;
  font-size: 9px;
  color: #808674;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #829364;
  margin-right: 6px;
}
.notebook {
  padding: 18px 17px 18px 32px;
  background: #e4e5d8;
  border: 1px solid #d4d7c6;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 14px 35px -24px #384d35;
  transform: rotate(1deg);
}
.notebook-holes {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.notebook-holes i {
  width: 6px;
  height: 6px;
  background: #b5b9a5;
  border-radius: 100%;
  box-shadow: inset 0 1px 2px #7b846b;
}
.panel-shell {
  width: 318px;
  height: 496px;
  max-width: 100%;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 3px 8px #21302412;
}
.preview-caption {
  display: flex;
  gap: 15px;
  padding: 16px 13px 12px;
  color: #6e795e;
}
.hand-arrow {
  font-size: 30px;
  transform: rotate(-25deg);
  line-height: 1;
}
.preview-caption p {
  font-size: 13px;
  font-family: Georgia, serif;
  font-style: italic;
  line-height: 1.7;
}
.preview-caption p span {
  font-family: system-ui, sans-serif;
  font-style: normal;
  font-size: 9px;
  color: #828975;
}
.preview-edit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid #d6daca;
  padding: 14px 12px;
  color: #536148;
  font-size: 11px;
}
.preview-edit > span {
  font-size: 18px;
}
.idea-section {
  max-width: 1204px;
  margin: auto;
  padding: 26px 58px 52px;
}
.section-intro-line {
  display: flex;
  gap: 25px;
  align-items: center;
  color: #7e876e;
}
.section-intro-line .line {
  height: 1px;
  background: #d5daca;
  flex: 1;
}
.idea-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 30px;
}
.idea-heading h2 {
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.6px;
}
.idea-heading h2 em {
  color: #7c8869;
}
.idea-heading p {
  margin-top: 15px;
  font-size: 11px;
  color: #7c8473;
  line-height: 1.8;
}
.feature-number {
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #828d72;
}
.idea-grid article {
  border-left: 1px solid #d7dcca;
  padding-left: 21px;
}
.idea-grid article h3 {
  font-size: 18px;
  margin: 15px 0 10px;
}
.idea-grid article p {
  font-size: 11px;
  color: #78816f;
  line-height: 1.9;
}
.closing-note {
  padding: 45px 20px 48px;
  text-align: center;
  background: #e9ecdf;
  border-top: 1px solid #dfe3d3;
}
.closing-note svg {
  color: #81916c;
  margin-bottom: 12px;
}
.closing-note p {
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1.3;
}
.closing-note em {
  color: #7a8868;
}
.closing-note > span {
  font-size: 10px;
  color: #7e8772;
  display: block;
  margin-top: 17px;
}
.site-footer {
  max-width: 1320px;
  padding: 28px 58px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #7f8875;
  font-size: 9px;
}
.site-footer .brand {
  font-size: 16px;
  color: #4f6046;
}
/* The same viewer fills both the demo frame and the Twitch iframe. */
.viewer {
  --bg: #1c2520;
  --header: #243027;
  --text: #edece1;
  --muted: #aab5a4;
  --border: #354034;
  --accent: #c8d9a2;
  --subtle: #253129;
  background: var(--bg);
  color: var(--text);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.55;
}
.viewer.light {
  --bg: #faf9f3;
  --header: #eeefe4;
  --text: #2c3f2f;
  --muted: #58694f;
  --border: #d6dcc9;
  --accent: #405d2e;
  --subtle: #eeefe6;
}
.viewer :focus-visible,
.viewer .viewer-content:focus-visible {
  outline-color: var(--accent);
}
.viewer-header {
  background: var(--header);
  padding: 15px 17px 12px;
  flex: none;
}
.viewer-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 1.7px;
}
.theme-toggle {
  margin-left: auto;
  width: 32px;
  height: 30px;
  font-size: 20px;
  color: var(--muted);
  line-height: 1;
}
.viewer h2 {
  font-size: 27px;
  line-height: 1.3;
  margin-top: 5px;
  overflow-wrap: anywhere;
  letter-spacing: -0.5px;
}
.viewer-header > p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.6;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-top: 13px;
  padding: 0 10px;
  background: var(--bg);
  height: 35px;
}
.search > span {
  font-size: 23px;
  line-height: 1;
  color: var(--muted);
}
.search input {
  border: 0;
  background: none;
  color: var(--text);
  min-width: 0;
  width: 100%;
  outline-offset: 1px;
  font-size: 10px;
  height: 27px;
}
.search input::placeholder {
  color: var(--muted);
}
.search button {
  color: var(--text);
  min-width: 24px;
  height: 28px;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  flex: none;
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
  gap: 0;
}
.tabs button {
  grid-column: span 2;
  padding: 0 5px;
  min-height: 35px;
  font-size: 10px;
  border-bottom: 2px solid transparent;
  position: relative;
  color: var(--muted);
  white-space: nowrap;
}
.tabs button:nth-child(n + 4) {
  grid-column: span 3;
  min-height: 32px;
}
.tabs button[aria-selected="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--subtle);
}
.tabs sup {
  margin-left: 4px;
  font-size: 8px;
}
.viewer-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding: 15px 17px 8px;
  overflow-wrap: anywhere;
}
.viewer-content:focus {
  outline-offset: -3px;
}
.viewer-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  border-top: 1px solid var(--border);
  min-height: 32px;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--muted);
  font-size: 9px;
  padding: 4px 12px;
}
.viewer-footer b {
  margin-left: auto;
  font-family: system-ui;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 1px;
  font-size: 7px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 9px;
}
.section-label button {
  font-size: 9px;
  letter-spacing: 0;
  color: var(--accent);
  min-height: 24px;
}
.clip-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
  color: var(--text);
}
.clip-image {
  height: 119px;
  overflow: hidden;
  position: relative;
  background: #6d8068;
  color: #d2d1b1;
}
.clip-image img,
.landscape {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.clip-time {
  position: absolute;
  bottom: 7px;
  right: 8px;
  background: #1c2520cf;
  color: #edece1;
  font-family: monospace;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
}
.play-mark {
  position: absolute;
  left: 12px;
  bottom: 7px;
  font-size: 18px;
  color: #e9eddc;
}
.clip-caption {
  padding: 8px 10px;
  background: var(--subtle);
}
.clip-caption strong {
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 400;
}
.clip-caption small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  margin-top: 3px;
}
.teaser .clip-image {
  height: 85px;
}
.teaser .clip-caption {
  padding: 6px 9px;
}
.welcome-label {
  margin: 18px 0 13px;
}
.essential {
  display: flex;
  gap: 11px;
  padding-bottom: 14px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--border);
}
.essential > div {
  flex: 1;
  min-width: 0;
}
.essential-number {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 10px;
  line-height: 20px;
}
.viewer h3 {
  font-size: 14px;
  line-height: 1.4;
}
.essential p,
.rules p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}
.command-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
}
.viewer code {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2px;
  overflow-wrap: anywhere;
}
.copy {
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 9px;
  min-height: 30px;
  padding: 3px 8px;
  color: var(--accent);
}
.copy span {
  margin-left: 5px;
}
.copy-feedback {
  font-size: 10px;
  color: var(--accent);
  margin-top: 6px;
  line-height: 1.7;
}
.copy-feedback:empty {
  display: none;
}
.copy-manual {
  display: block;
  margin-top: 9px;
}
.copy-manual > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.copy-manual input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--subtle);
  color: var(--text);
  font: 13px monospace;
}
.spoiler {
  display: flex;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--subtle);
  padding: 10px;
  margin: 13px 0 6px;
  color: var(--muted);
  font-size: 9px;
}
.spoiler > span {
  color: var(--accent);
  font-size: 15px;
}
.spoiler p {
  line-height: 1.65;
}
.viewer .page-title {
  font-size: 19px;
}
.section-intro {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
  margin: 7px 0 14px;
}
.command-entry {
  padding: 0 0 13px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.command-entry p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.viewer details {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.viewer summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-family: Georgia, serif;
  font-size: 14px;
  min-height: 28px;
  list-style: none;
}
.viewer summary::-webkit-details-marker {
  display: none;
}
.viewer details[open] summary > span {
  transform: rotate(45deg);
}
.viewer details p {
  margin-top: 9px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.origin {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 9px;
}
.origin-link {
  display: block;
  font-size: 10px;
  color: var(--accent);
  text-decoration: underline;
  margin-top: 8px;
}
.rules {
  list-style: none;
  margin: 15px 0;
  padding: 0;
}
.rules li {
  display: flex;
  gap: 12px;
  padding: 10px 0 15px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}
.empty {
  padding: 25px 8px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  margin-bottom: 15px;
  color: var(--accent);
}
.empty h3 {
  font-size: 19px;
  color: var(--text);
  margin-bottom: 10px;
}
.empty p {
  font-size: 11px;
  line-height: 1.8;
}
.moments-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.text-button {
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 34px;
}
.viewer .text-button {
  font-size: 9px;
  color: var(--accent);
}
.viewer .notice {
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  padding: 10px;
  border-radius: 4px;
}
.extension-panel,
.extension-panel #app {
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #1c2520;
}
.extension-panel .viewer {
  border-radius: 0;
}
.extension-panel .tabs button {
  min-height: 36px;
}
/* Editor */
.demo-editor {
  max-width: 1088px;
  margin: 5px auto 45px;
  padding: 0 58px;
  scroll-margin-top: 20px;
}
.local-banner {
  border: 1px solid #c7cfb6;
  background: #e9edde;
  padding: 15px 20px;
  border-radius: 6px 6px 0 0;
  font-size: 11px;
}
.local-banner > span {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.local-banner p {
  margin-top: 4px;
  color: #6c7b60;
}
.editor {
  padding: 30px;
  background: #faf9f3;
  border: 1px solid #d3d8c5;
  border-radius: 6px;
}
.demo-editor .editor {
  border-radius: 0 0 6px 6px;
}
.editor-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.editor-heading h2 {
  font-size: 29px;
  margin-top: 9px;
}
.draft-tag {
  font-size: 9px;
  color: #6d7b59;
  border: 1px solid #ccd4ba;
  border-radius: 3px;
  padding: 5px 9px;
  white-space: nowrap;
}
.editor-subtitle {
  font-size: 12px;
  color: #738067;
  margin-top: 10px;
  max-width: 520px;
}
.editor-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #d8ddcd;
  margin-top: 23px;
  overflow: auto;
}
.editor-tabs button {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.editor-tabs .active {
  border-color: #526c42;
  color: #3f5b32;
  background: #edf0e5;
}
.editor-tabs small {
  font-size: 8px;
  padding-left: 6px;
  color: #72805e;
}
.editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 22px;
  margin-top: 24px;
}
.field {
  display: block;
  min-width: 0;
}
.field > span {
  display: block;
  font-size: 11px;
  color: #526448;
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #cfd7c1;
  background: #fffef8;
  padding: 10px 12px;
  border-radius: 4px;
  color: #2d412f;
  font-size: 12px;
  min-height: 39px;
}
.field textarea {
  resize: vertical;
  line-height: 1.7;
}
.entry-editor {
  grid-column: 1/-1;
  border: 1px solid #cfd7c1;
  border-radius: 4px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  min-width: 0;
}
.entry-editor legend {
  font-family: Georgia, serif;
  font-size: 18px;
  padding: 0 7px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.entry-editor:focus-within {
  border-color: #526c42;
}
.entry-editor.needs-attention {
  border-color: #ad7050;
}
.entry-preview-warning {
  grid-column: 1 / -1;
  color: #854833;
  font-size: 12px;
  line-height: 1.6;
}
.reorder-status {
  margin: 16px 0 0;
  color: #3f5b32;
  font-size: 12px;
}
.entry-editor .field:nth-of-type(2) {
  grid-column: 1/-1;
}
.entry-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.entry-actions button {
  border: 1px solid #d4dcc5;
  border-radius: 3px;
  min-height: 32px;
  padding: 3px 10px;
  font-size: 10px;
}
.add-button {
  grid-column: 1/-1;
  min-height: 44px;
  border: 1px dashed #b2c19d;
  border-radius: 4px;
  color: #5b7049;
}
.editor-validation {
  margin-top: 23px;
  border-top: 1px solid #d9dece;
  padding-top: 15px;
}
.byte-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #758065;
}
.byte-label span:last-child {
  font-family: monospace;
}
.over-limit {
  color: #9c382e !important;
}
meter {
  display: block;
  width: 100%;
  height: 9px;
  margin-top: 7px;
}
meter::-webkit-meter-bar {
  background: #e5e9dc;
  border: 0;
}
meter::-webkit-meter-optimum-value {
  background: #8e9f71;
}
.validation-errors {
  font-size: 11px;
  color: #854833;
  margin-top: 10px;
}
.validation-errors summary {
  cursor: pointer;
}
.validation-errors li {
  margin: 5px 0;
}
.editor-save {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.editor-save .primary-button {
  font-size: 11px;
}
.save-status {
  font-size: 11px;
  margin-top: 14px;
  color: #67785b;
  min-height: 18px;
}
.guide-backup {
  border-top: 1px solid #d9dece;
  margin-top: 22px;
  padding-top: 20px;
}
.guide-backup h3 {
  font-size: 21px;
}
.guide-backup > p,
.backup-review p {
  color: #596b4f;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 7px;
}
.backup-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}
.backup-button {
  border: 1px solid #aab89a;
  border-radius: 4px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 12px;
  background: #eff2e6;
  color: #354d2d;
}
.backup-file-input {
  display: none;
}
.backup-review {
  background: #edf0e4;
  border: 1px solid #c7d1b7;
  border-radius: 4px;
  padding: 15px;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.backup-review h4 {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
}
.backup-export-ready {
  margin-top: 16px;
}
.backup-export-ready > a {
  display: inline-block;
}
.backup-manual {
  margin-top: 18px;
}
.backup-manual p {
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.backup-manual textarea {
  font-family: monospace;
  font-size: 11px;
  white-space: pre;
}
.backup-manual .backup-button {
  margin-top: 10px;
}
.backup-page {
  max-width: 760px;
  margin: 40px auto;
  padding: 24px;
}
.backup-page h1 {
  font-size: 30px;
  margin: 24px 0 16px;
}
.backup-page > p {
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.7;
}
.backup-filename {
  overflow-wrap: anywhere;
}
.draft-confirmation {
  margin: auto;
  max-width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #aab89a;
  border-radius: 8px;
  background: #faf9f3;
  color: #2d412f;
}
.draft-confirmation::backdrop {
  background: rgb(20 30 23 / 55%);
}
.draft-confirmation h3 {
  margin: 0;
  font-size: 22px;
}
.draft-confirmation p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
}
.guide-backup .backup-error {
  color: #854833;
}
.appearance-editor {
  grid-column: 1 / -1;
}
.appearance-editor h3 {
  font-size: 22px;
}
.appearance-editor > p {
  font-size: 12px;
  color: #596b4f;
  margin-top: 8px;
  line-height: 1.7;
}
.appearance-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
  margin: 20px 0 12px;
}
.appearance-mode {
  min-width: 0;
  margin: 0;
  padding: 17px;
  border: 1px solid #cfd7c1;
  border-radius: 5px;
}
.appearance-mode legend {
  font-family: Georgia, serif;
  font-size: 19px;
  padding: 0 6px;
}
.appearance-color {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}
.appearance-color .field {
  flex: none;
}
.appearance-color input[type="color"] {
  cursor: pointer;
  width: 54px;
  min-height: 44px;
  padding: 4px;
}
.appearance-hex {
  min-width: 0;
  width: 100%;
  height: 44px;
  border: 1px solid #cfd7c1;
  border-radius: 4px;
  background: #fffef8;
  color: #2d412f;
  padding: 8px 10px;
  font: 12px monospace;
}
.appearance-mode .appearance-contrast {
  min-height: 38px;
  font-size: 11px;
  color: #506b3d;
  line-height: 1.7;
}
.appearance-mode .needs-contrast {
  color: #854833;
}
.appearance-mode .text-button {
  min-height: 44px;
}
.config-page {
  max-width: 1200px;
  margin: auto;
  padding: 0 35px 50px;
}
.config-page .site-nav {
  padding: 0;
}
.nav-note {
  font-size: 9px;
  letter-spacing: 1px;
}
.notice {
  padding: 14px 17px;
  background: #e9edde;
  border: 1px solid #cfd7bf;
  font-size: 12px;
  margin: 20px 0;
}
.config-grid {
  display: grid;
  grid-template-columns: 1fr 318px;
  gap: 35px;
  margin-top: 30px;
  align-items: start;
}
.config-preview {
  position: sticky;
  top: 24px;
}
.config-preview > .eyebrow {
  display: block;
  margin-bottom: 15px;
  text-align: center;
}
.draft-preview-note {
  font-size: 12px;
  line-height: 1.6;
  color: #596b4f;
  margin: 10px 0;
  max-width: 318px;
}
.conflict {
  background: #f4ecd6;
  border: 1px solid #d9c792;
  border-radius: 4px;
  padding: 12px;
  font-size: 12px;
  margin-top: 20px;
}
.conflict button {
  text-decoration: underline;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 65px;
  }
  .hero-copy {
    padding-top: 30px;
  }
}
@media (max-width: 1050px) {
  .brand-edition {
    display: none;
  }
  .hero {
    gap: 30px;
    padding-left: 35px;
    padding-right: 35px;
    grid-template-columns: 1fr 368px;
  }
  .hero h1 {
    font-size: 91px;
  }
  .heading-spark {
    left: 290px;
  }
  .hero-actions {
    gap: 13px;
  }
  .hero-description {
    font-size: 18px;
  }
  .botanical-drawing {
    display: none;
  }
  .idea-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .idea-heading {
    grid-column: 1/-1;
    display: flex;
    gap: 40px;
  }
  .idea-grid article {
    padding-left: 15px;
  }
  .site-nav {
    padding: 0 35px;
  }
  .idea-section {
    padding-left: 35px;
    padding-right: 35px;
  }
  .config-grid {
    gap: 22px;
  }
  .config-page {
    padding-left: 20px;
    padding-right: 20px;
  }
  .editor {
    padding: 23px;
  }
}
@media (max-width: 760px) {
  .site-nav {
    height: 80px;
    padding: 0 23px;
  }
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .site-nav nav {
    gap: 12px;
  }
  .site-nav nav > a:first-child {
    display: none;
  }
  .nav-cta {
    font-size: 10px;
    gap: 12px;
    padding: 9px 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 35px 24px 25px;
    gap: 35px;
  }
  .hero-copy {
    padding-top: 0;
    text-align: center;
  }
  .hero-eyebrow {
    justify-content: center;
    font-size: 8px;
  }
  .hero h1 {
    font-size: 91px;
    margin: 24px 0;
  }
  .heading-spark {
    position: static;
    display: inline-block;
    font-size: 27px;
    vertical-align: top;
    margin-top: 15px;
    margin-left: 10px;
  }
  .hero h1 br {
    display: none;
  }
  .hero-description {
    font-size: 19px;
  }
  .hero-detail {
    margin: 15px auto 0;
    max-width: 340px;
    font-size: 12px;
  }
  .hero-actions {
    justify-content: center;
    gap: 22px;
  }
  .hero-footnote {
    justify-content: center;
    margin-top: 18px;
  }
  .hero-preview {
    justify-self: center;
    width: 368px;
    max-width: 100%;
    padding-right: 0;
  }
  .notebook {
    transform: none;
  }
  .panel-shell {
    width: 318px;
  }
  .preview-caption {
    padding-bottom: 8px;
  }
  .idea-section {
    padding: 25px 24px 35px;
  }
  .section-intro-line {
    gap: 12px;
  }
  .section-intro-line .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .idea-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .idea-heading {
    display: block;
    grid-column: auto;
  }
  .idea-heading h2 {
    font-size: 29px;
  }
  .idea-grid article {
    padding: 0 0 0 17px;
  }
  .idea-grid article h3 {
    margin: 6px 0;
    font-size: 21px;
  }
  .idea-grid article p {
    font-size: 12px;
    max-width: 330px;
  }
  .site-footer {
    padding: 25px 24px;
    flex-direction: column;
    gap: 13px;
  }
  .demo-editor {
    padding: 0 20px;
  }
  .editor-heading h2 {
    font-size: 25px;
  }
  .editor-heading .draft-tag {
    display: none;
  }
  .editor-fields {
    grid-template-columns: 1fr;
  }
  .entry-editor {
    grid-template-columns: 1fr;
  }
  .config-grid {
    display: flex;
    flex-direction: column;
  }
  .config-preview {
    position: static;
    align-self: center;
    order: -1;
  }
  .config-page .site-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 20px 0;
    gap: 10px;
  }
  .editor {
    padding: 20px;
    width: 100%;
  }
  .editor-tabs {
    gap: 0;
  }
  .editor-tabs button {
    padding: 8px 10px;
  }
  .editor-tabs small {
    display: none;
  }
  .closing-note p {
    font-size: 27px;
  }
}
@media (max-width: 370px) {
  .hero {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero h1 {
    font-size: 74px;
  }
  .hero-preview {
    width: 100%;
  }
  .notebook {
    padding: 12px 8px 12px 17px;
  }
  .notebook-holes {
    left: 6px;
  }
  .notebook-holes i {
    width: 4px;
    height: 4px;
  }
  .preview-topline {
    margin-left: 10px;
  }
  .hero-actions {
    gap: 15px;
  }
  .understated-link {
    font-size: 10px;
  }
  .primary-button {
    padding: 12px 14px;
    gap: 20px;
  }
  .site-nav {
    padding: 0 15px;
  }
  .brand {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Comfortable reading and keyboard/touch targets in the narrow panel. */
.viewer-header > p,
.search input {
  font-size: 11px;
}
.viewer .tabs button {
  min-height: 44px;
  font-size: 11px;
}
.essential p,
.rules p,
.command-entry p,
.viewer details p,
.section-intro {
  font-size: 12px;
  line-height: 1.7;
}
.viewer h3 {
  font-size: 15px;
}
.viewer-footer {
  font-size: 10px;
}
.viewer .copy {
  min-height: 36px;
}
.viewer .theme-toggle {
  width: 36px;
  height: 32px;
}
.heading-spark {
  left: 400px;
  top: 82px;
}
@media (max-width: 1050px) {
  .heading-spark {
    left: 325px;
    top: 65px;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero-preview {
    min-width: 0;
  }
  .notebook {
    padding: 18px 9px 18px 22px;
  }
  .notebook-holes {
    left: 8px;
  }
  .notebook-holes i {
    width: 5px;
    height: 5px;
  }
}
