@charset "UTF-8";
:root {
  --paper: #f8f5ee;
  --white: #fffcf6;
  --ink: #283f48;
  --muted: #7b817b;
  --line: #e5e1d6;
  --navy: #294952;
  --gold: #c29a5f;
  --sage: #658175;
  --rust: #ad7058;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
input,
textarea,
select {
  max-width: 100%;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #aa8047;
  outline-offset: 4px;
}
input,
textarea {
  accent-color: var(--navy);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
h1,
h2 {
  font-family: var(--serif);
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
.button {
  border: 1px solid transparent;
  border-radius: 5px;
  min-height: 46px;
  padding: 11px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  transform: translateY(-1px);
}
.primary {
  background: var(--navy);
  color: #fffaf0;
}
.primary:hover {
  background: #1d3942;
}
.subtle {
  background: transparent;
  border-color: #cfd4cb;
}
.subtle:hover {
  background: #ecefe7;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--navy);
  font-weight: 500;
  min-height: 35px;
}
.text-link:hover {
  color: #8f673b;
}
.text-link .icon {
  width: 18px;
  height: 18px;
}
.full-width {
  width: 100%;
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 12px;
  line-height: 1.8;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 15px;
  top: -60px;
  background: var(--navy);
  color: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.loading {
  padding: 120px;
  text-align: center;
}
.header {
  height: 86px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  max-width: 1440px;
  padding: 0 56px;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand > span {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 2px;
  line-height: 1.2;
}
.brand small {
  font: 8px var(--sans);
  display: block;
  letter-spacing: 2.5px;
  margin-top: 5px;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  height: 100%;
}
.top-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  color: #747c76;
  font-size: 13px;
}
.top-nav a:hover,
.top-nav a.active {
  color: var(--ink);
}
.top-nav a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 35%;
  width: 30%;
  height: 2px;
  background: var(--gold);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  border: 1px solid #a2afa8;
  padding: 8px 17px;
  border-radius: 4px;
}
.header-cta .icon {
  width: 16px;
}
.local-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #eaf0e7;
  padding: 7px 20px;
  font-size: 11px;
  color: #596b60;
  min-height: 32px;
  letter-spacing: 0.2px;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: #6c8974;
  border-radius: 50%;
}
.local-notice a {
  margin-left: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.local-notice .icon {
  width: 10px;
  height: 10px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #8c937f;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
}
.eyebrow > span:empty {
  height: 1px;
  width: 28px;
  background: #b59c6b;
}
.hero {
  max-width: 1440px;
  padding: 58px 70px 52px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  min-height: 580px;
  align-items: center;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.65;
  letter-spacing: 1.5px;
  margin: 22px 0;
}
.hero h1 span {
  color: #a67d4d;
}
.hero-description {
  font-size: 14px;
  line-height: 2.1;
  color: #737c73;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 33px 0;
}
.hero-reassurance {
  display: flex;
  gap: 22px;
  font-size: 11px;
  color: #7b867b;
  margin-top: 37px;
}
.hero-reassurance > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.hero-reassurance .icon {
  width: 15px;
  height: 15px;
}
.hero-art {
  min-height: 460px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.orbit {
  position: absolute;
  border: 1px solid #e5decf;
  border-radius: 50%;
  width: 450px;
  height: 450px;
  transform: rotate(-15deg);
}
.orbit-two {
  width: 530px;
  height: 370px;
  transform: rotate(35deg);
  border-style: dashed;
  opacity: 0.65;
}
.art-star {
  position: absolute;
  color: #bc9a5a;
}
.star-one {
  top: 15px;
  right: 50px;
  font-size: 27px;
}
.star-two {
  left: 30px;
  bottom: 110px;
  font-size: 17px;
}
.hero-book {
  transform: rotate(-8deg) perspective(1200px) rotateY(-14deg);
  margin-left: 25px;
  margin-top: -26px;
  filter: drop-shadow(15px 24px 14px #27332f21);
}
.book-cover {
  position: relative;
  width: 255px;
  height: 350px;
  background: #29464f;
  color: #f9f1dc;
  border-radius: 2px 5px 5px 2px;
  box-shadow:
    inset -5px 0 0 #ffffff15,
    7px 3px 0 #dfd6be,
    10px 4px 0 #f4ead5,
    12px 5px 0 #c7baa2;
}
.book-cover.sage {
  background: #5b7364;
}
.book-cover.clay {
  background: #9b6250;
}
.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 19px;
  background: #00000016;
  border-right: 1px solid #ffffff18;
}
.book-cover-content {
  position: relative;
  overflow: hidden;
  height: 100%;
  text-align: center;
  padding: 29px 17px 10px 31px;
}
.book-imprint {
  font-size: 7px;
  letter-spacing: 2px;
  opacity: 0.8;
}
.book-cover h2 {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.7;
  letter-spacing: 3px;
  margin: 25px auto 12px;
  max-width: 170px;
  max-height: 115px;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.cover-line {
  width: 30px;
  height: 1px;
  background: #ccb377;
  display: block;
  margin: 12px auto;
}
.book-cover p {
  font-size: 9px;
  letter-spacing: 2px;
}
.book-cover .landscape {
  position: absolute;
  bottom: 31px;
  left: 40px;
  right: 20px;
  width: 190px;
  height: 110px;
  opacity: 0.85;
  clip-path: ellipse(48% 42% at 50% 51%);
}
.book-cover small {
  position: absolute;
  bottom: 15px;
  left: 20px;
  right: 0;
  font-size: 7px;
  letter-spacing: 2px;
  opacity: 0.7;
}
.voice-note {
  position: absolute;
  bottom: 21px;
  left: 0;
  background: #fffdf7;
  padding: 16px 22px;
  box-shadow: 0 12px 35px #2d433512;
  border: 1px solid #e3dfd3;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: rotate(2deg);
  border-radius: 5px;
  min-width: 330px;
}
.voice-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: #e9ede5;
  color: #567166;
}
.voice-note strong {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
}
.voice-note small {
  font-size: 8px;
  color: #959686;
  display: block;
  margin-top: 4px;
}
.waveform {
  height: 23px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 4px 0;
}
.waveform i {
  width: 2px;
  height: 8px;
  background: #9cae9b;
  border-radius: 2px;
}
.waveform .wave-1 {
  height: 14px;
}
.waveform .wave-2 {
  height: 20px;
}
.waveform .wave-3 {
  height: 10px;
}
.waveform .wave-4 {
  height: 17px;
}
.waveform .wave-5 {
  height: 22px;
}
.hand-note {
  position: absolute;
  right: -15px;
  bottom: -13px;
  font-family: var(--serif);
  font-size: 12px;
  color: #8a917a;
  transform: rotate(-5deg);
}
.promise-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 1300px;
  margin: auto;
  padding: 23px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.promise-strip p {
  font-family: var(--serif);
  font-size: 16px;
}
.promise-strip span {
  font-size: 11px;
  color: #8b8c80;
}
.promise-strip i {
  width: 1px;
  height: 21px;
  background: var(--line);
  margin: 0 24px;
}
.home-section {
  max-width: 1300px;
  margin: auto;
  padding: 66px 42px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-heading h2 {
  font-size: 26px;
  margin-top: 12px;
}
.section-heading > .text-link {
  font-size: 12px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.steps article {
  padding: 25px 34px 20px 0;
  position: relative;
}
.steps article + article {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}
.step-number {
  position: absolute;
  right: 38px;
  top: 8px;
  font-family: Georgia, serif;
  font-size: 51px;
  color: #e1dccb;
}
.steps article > .icon {
  width: 30px;
  height: 30px;
  color: #7d8c73;
  margin-bottom: 23px;
}
.steps h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin-bottom: 15px;
}
.steps p {
  color: #838779;
  line-height: 1.9;
  font-size: 12px;
  max-width: 280px;
}
.steps article > a,
.steps article > button {
  font-size: 12px;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  padding: 0;
}
.steps .icon {
  width: 16px;
}
.question-feature {
  max-width: 1216px;
  margin: 0 auto 25px;
  background: #e9ecdf;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  padding: 52px 65px;
  overflow: hidden;
  gap: 35px;
}
.question-feature h2 {
  font-size: 32px;
  line-height: 1.8;
  margin: 16px 0;
}
.question-feature p {
  font-size: 12px;
  color: #74806e;
  line-height: 2;
}
.question-feature .button {
  margin-top: 24px;
  font-size: 12px;
}
.letter-scene {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.letter-paper {
  background: #fffaf0;
  width: 290px;
  min-height: 288px;
  padding: 30px 32px;
  transform: rotate(7deg);
  box-shadow: 2px 10px 16px #5265460f;
  color: #76806e;
  position: relative;
}
.letter-paper:before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #e9e2d1;
  pointer-events: none;
}
.letter-paper > span {
  font-size: 9px;
  letter-spacing: 2px;
}
.letter-paper p {
  font-family: var(--serif);
  font-size: 12px;
  line-height: 2.5;
  margin-top: 12px;
}
.letter-paper small {
  display: block;
  font-size: 8px;
  color: #aca28c;
  margin-top: 16px;
}
.postmark {
  position: absolute;
  right: 7px;
  bottom: 25px;
  border: 2px solid #a7ae93;
  border-radius: 50%;
  width: 96px;
  height: 96px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.8;
  font-size: 9px;
  transform: rotate(-14deg);
  color: #9da48d;
}
.postmark strong {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 400;
}
.devices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  text-align: center;
}
.devices > div > .icon {
  width: 29px;
  height: 29px;
  color: #71856b;
  margin-bottom: 13px;
}
.devices h3 {
  font: 20px var(--serif);
  margin-bottom: 12px;
}
.devices p {
  font-size: 12px;
  color: #8b8e7f;
}
.devices .device-note {
  grid-column: 1/-1;
  font-size: 11px;
  color: #8b8e7f;
  margin-top: -20px;
}
.footer {
  max-width: 1328px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 26px 42px;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 10px;
  color: #909486;
}
.footer > span:first-child {
  margin-right: auto;
}
.mobile-nav {
  display: none;
}
.workspace {
  max-width: 1600px;
  margin: auto;
  display: flex;
  min-height: calc(100vh - 200px);
}
.sidebar {
  width: 224px;
  flex-shrink: 0;
  padding: 34px 20px 20px 30px;
  border-right: 1px solid var(--line);
  position: relative;
}
.sidebar-title {
  color: #929788;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin: 3px 0 24px 16px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: #7a8379;
  border-radius: 4px;
  margin-bottom: 7px;
  font-size: 13px;
}
.nav-item.active {
  background: #e8ece1;
  color: #294f49;
}
.nav-item:hover {
  background: #edf0e7;
}
.sidebar-bottom {
  position: sticky;
  top: calc(100vh - 230px);
  margin: 90px 16px 0;
  color: #939984;
}
.sidebar-bottom > .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
}
.sidebar-bottom p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2;
}
.sidebar-bottom span {
  display: block;
  font-size: 10px;
  margin-top: 18px;
}
.workspace-main {
  padding: 38px 48px 65px;
  flex: 1;
  min-width: 0;
  max-width: 1250px;
}
.workspace-main.wide {
  padding: 30px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 31px;
  line-height: 1.5;
  margin: 7px 0 9px;
  overflow-wrap: anywhere;
}
.page-heading p {
  color: #89907f;
  font-size: 12px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.heading-actions .button {
  padding: 10px 16px;
  font-size: 12px;
}
.project-switch {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  margin: 0 0 18px;
  color: var(--muted);
}
.project-switch select {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  padding: 7px 28px 7px 10px;
  max-width: 260px;
}
.library-overview {
  background: #eef0e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 45px;
  min-height: 236px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e3e6d9;
}
.progress-area {
  max-width: 450px;
  flex: 1;
}
.progress-numbers {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 15px 0;
}
.progress-numbers strong {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 400;
}
.progress-numbers span {
  font-size: 11px;
  color: #8a9181;
}
.progress-numbers i {
  height: 26px;
  width: 1px;
  background: #d5dbcb;
  margin: 0 15px;
}
.progress-track {
  height: 4px;
  background: #dce2d2;
  max-width: 300px;
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #7f9272;
}
.progress-0 {
  width: 0;
}
.progress-1 {
  width: 10%;
}
.progress-2 {
  width: 20%;
}
.progress-3 {
  width: 30%;
}
.progress-4 {
  width: 40%;
}
.progress-5 {
  width: 50%;
}
.progress-6 {
  width: 60%;
}
.progress-7 {
  width: 70%;
}
.progress-8 {
  width: 80%;
}
.progress-9 {
  width: 90%;
}
.progress-10 {
  width: 100%;
}
.progress-area > p {
  font-size: 11px;
  color: #87927a;
  margin: 12px 0;
}
.progress-area .text-link {
  font-size: 12px;
}
.overview-book {
  width: 135px;
  flex-shrink: 0;
  height: 170px;
  transform: rotate(9deg);
  margin-right: 35px;
  cursor: pointer;
}
.book-cover.small {
  transform: scale(0.52);
  transform-origin: top left;
}
.library-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 30px 0 4px;
}
.tabs {
  display: flex;
  gap: 22px;
}
.tabs button {
  background: none;
  border: 0;
  padding: 12px 0;
  color: #939789;
  font-size: 12px;
  position: relative;
}
.tabs button.active {
  color: var(--ink);
}
.tabs button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  height: 2px;
}
.tabs button span {
  font-size: 10px;
  margin-left: 6px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #929b8f;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
}
.search-box .icon {
  width: 16px;
}
.search-box input {
  width: 145px;
  background: none;
  border: 0;
  font-size: 11px;
  outline: none;
  color: var(--ink);
}
.story-list {
  border-top: 1px solid var(--line);
}
.story-row {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  transition: background 0.2s;
}
.story-row:hover {
  background: #f1f0e6;
}
.story-index {
  font-family: Georgia, serif;
  color: #bab9a7;
  font-size: 17px;
  width: 21px;
  flex-shrink: 0;
}
.story-thumb {
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9e8dc;
  color: #8a9681;
  flex-shrink: 0;
}
.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-summary {
  flex: 1;
  min-width: 0;
}
.story-summary h3 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.story-summary > p {
  color: #8a8f80;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 5px 0 8px;
}
.story-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 10px;
  color: #94998a;
}
.story-meta .icon {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}
.status-tag {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 10px;
  color: #ad915f;
  background: #f2ead8;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-tag.confirmed {
  background: #e5ebdf;
  color: #678260;
}
.story-row > .icon {
  color: #aeb6a6;
  width: 16px;
}
.library-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  font-size: 12px;
}
.list-empty {
  padding: 65px 25px;
  text-align: center;
  color: #999d8d;
  font-size: 13px;
}
.list-empty a {
  display: block;
  margin-top: 20px;
  color: var(--navy);
}
.empty-state {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 25px;
  background: #f2f2e8;
  border: 1px solid #e8e7da;
}
.empty-icon {
  width: 66px;
  height: 66px;
  border: 1px solid #d8deca;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #859778;
  margin-bottom: 23px;
}
.empty-icon .icon {
  width: 30px;
  height: 30px;
}
.empty-state h2 {
  font-size: 26px;
  margin-bottom: 15px;
}
.empty-state p {
  max-width: 450px;
  color: #919783;
  font-size: 13px;
  margin-bottom: 26px;
  line-height: 2;
}
.gentle-note {
  font-size: 11px;
  color: #919981;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 26px;
}
.gentle-note .icon {
  width: 16px;
}
.small-seal {
  border: 1px solid #cfd8c3;
  border-radius: 50%;
  width: 84px;
  height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #879478;
  font-size: 10px;
  transform: rotate(8deg);
  flex-shrink: 0;
}
.small-seal strong {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
}
.theme-tabs {
  display: flex;
  gap: 9px;
  margin: 25px 0 30px;
  flex-wrap: wrap;
}
.theme-tabs button {
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: #8b927e;
  background: none;
  font-size: 11px;
  min-height: 36px;
}
.theme-tabs button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.question-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.question-card {
  border: 1px solid var(--line);
  background: #faf8f0;
  padding: 27px 30px;
}
.question-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.question-category {
  font-size: 10px;
  letter-spacing: 1px;
  color: #8b957e;
}
.question-num {
  font-family: Georgia, serif;
  color: #c9c8b5;
  font-size: 26px;
}
.question-card h2 {
  font-size: 22px;
  margin: 23px 0 15px;
  max-width: 320px;
  line-height: 1.8;
}
.question-card p {
  font-size: 12px;
  line-height: 1.9;
  color: #939781;
  min-height: 46px;
  margin-bottom: 22px;
}
.question-card .text-link {
  font-size: 11px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.photo-item {
  background: #fffcf4;
  padding: 12px 12px 18px;
  border: 1px solid var(--line);
}
.photo-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.photo-item h3 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 13px 3px 7px;
}
.photo-item > span {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #929984;
  padding: 0 3px;
}
.photo-item .icon {
  width: 14px;
}
.editor-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #929984;
  font-size: 11px;
  margin-bottom: 20px;
}
.editor-breadcrumb > .icon {
  width: 13px;
  height: 13px;
}
.editor-breadcrumb > a {
  max-width: 60%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.editor-top > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.editor-top .button {
  font-size: 12px;
  padding: 8px 17px;
  min-height: 40px;
}
#save-status {
  font-size: 10px;
  color: #989d8d;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 22px;
}
.writing-surface {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 38px 34px 20px;
}
.story-title-input {
  font-family: var(--serif);
  font-size: 28px;
  border: 0;
  width: 100%;
  background: none;
  padding: 0 0 13px;
  line-height: 1.6;
  outline: none;
  color: var(--ink);
}
.writing-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #a1a08f;
  border-bottom: 1px solid var(--line);
  padding-bottom: 23px;
}
.writing-byline .icon {
  width: 13px;
  height: 13px;
}
.writing-prompt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f2f3e9;
  border-left: 2px solid #a6b096;
  padding: 13px;
  margin-top: 23px;
  font-size: 12px;
  color: #879575;
}
.writing-prompt > .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.story-textarea {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2.25;
  background: transparent;
  width: 100%;
  min-height: 430px;
  resize: vertical;
  border: 0;
  outline: none;
  color: #4b564b;
  padding: 25px 0;
  display: block;
}
.story-textarea::placeholder {
  color: #b5b5a4;
}
.writing-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #a2a28f;
  font-size: 9px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.transcript-details {
  border-top: 1px solid var(--line);
  font-size: 11px;
  padding-top: 15px;
  color: #8e947e;
}
.transcript-details summary {
  cursor: pointer;
}
.transcript-details p {
  font-size: 10px;
  margin: 12px 0;
}
.transcript-details textarea {
  background: #f8f6ee;
  border: 1px solid var(--line);
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: 10px;
  color: var(--ink);
}
.editor-tools {
  border: 1px solid var(--line);
  background: #f4f3e9;
}
.tool-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.tool-section:last-child {
  border: 0;
}
.tool-heading {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 12px;
}
.tool-heading > .icon {
  width: 18px;
  color: #71896e;
}
.tool-heading h2 {
  font-family: var(--serif);
  font-size: 17px;
}
.tool-section > p {
  font-size: 11px;
  color: #939981;
  line-height: 1.9;
}
.consent-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 10px;
  color: #868e77;
  line-height: 1.9;
  margin: 18px 0;
}
.consent-check input {
  margin: 4px 0 0;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}
.consent-check a {
  text-decoration: underline;
}
.recorder {
  border: 1px solid #dfe3d4;
  background: #f9f9f0;
  padding: 19px 14px;
  text-align: center;
  margin: 18px 0 13px;
}
#record-time {
  font-family: Georgia, serif;
  font-size: 30px;
  letter-spacing: 4px;
}
#record-status {
  font-size: 10px;
  color: #9ca089;
  margin: 7px 0 17px;
}
.record-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.record-button {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  border: 0;
  background: #456457;
  color: #faf6e7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.record-button.recording {
  background: #ad685a;
  animation: pulse 1.4s infinite;
}
.record-secondary {
  width: 32px;
  height: 32px;
  border: 1px solid #bdc9b5;
  border-radius: 50%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.record-secondary .icon {
  width: 15px;
}
.upload-link {
  display: flex;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  align-items: center;
  cursor: pointer;
  color: #798975;
  min-height: 38px;
  border: 1px dashed #c6cebb;
}
.upload-link .icon {
  width: 14px;
  height: 14px;
}
.capability-note {
  font-size: 9px;
  line-height: 1.8;
  color: #a0a189;
  margin-top: 15px;
}
.audio-item {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.audio-item strong {
  font-size: 10px;
  font-weight: 500;
}
.audio-item audio,
#record-result audio {
  width: 100%;
  height: 35px;
  margin: 8px 0;
}
.audio-item > div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.audio-item button {
  background: none;
  border: 0;
  padding: 0;
  color: #ab856d;
  font-size: 10px;
}
#record-result .button {
  font-size: 11px;
  margin-bottom: 10px;
}
#record-result .text-link {
  font-size: 10px;
}
.editor-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.editor-photos > div {
  position: relative;
}
.editor-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.editor-photos button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  padding: 2px;
  border: 0;
  background: #fffcf0d9;
  border-radius: 50%;
}
.editor-photos .icon {
  width: 16px;
  height: 16px;
}
.photo-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #c6cebb;
  padding: 20px;
  font-size: 11px;
  cursor: pointer;
  color: #889578;
}
.photo-upload .icon {
  width: 17px;
}
.tool-section > small {
  font-size: 9px;
  color: #a1a58e;
  display: block;
  margin-top: 10px;
}
.compact {
  padding: 15px 24px;
}
.danger {
  color: #a16b59;
}
.danger-button {
  background: #9a5847;
  color: #fff;
}
.large-icon {
  width: 40px;
  height: 40px;
  color: #8c9b7c;
}
.book-workspace {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 25px;
}
.book-settings {
  border: 1px solid var(--line);
  padding: 25px;
  background: #faf8ef;
}
.book-settings h2 {
  font-size: 20px;
  margin-bottom: 25px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #808a75;
  margin: 18px 0;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d7dece;
  background: #fffdf7;
  padding: 10px 12px;
  border-radius: 3px;
  color: #354b40;
  font-size: 13px;
}
.field textarea {
  resize: vertical;
  line-height: 1.9;
}
.field-label {
  font-size: 11px;
  color: #808a75;
}
.cover-options {
  display: flex;
  gap: 14px;
  margin: 12px 0 22px;
}
.cover-option {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.cover-option.selected {
  box-shadow: 0 0 0 1px #99a389;
}
.cover-option.navy {
  background: #29464f;
}
.cover-option.sage {
  background: #5b7364;
}
.cover-option.clay {
  background: #9b6250;
}
.cover-option .icon {
  width: 16px;
  height: 16px;
}
.book-export {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.book-export > p {
  margin-bottom: 12px;
  font-size: 12px;
  color: #929b81;
}
.book-export > p strong {
  font:
    25px Georgia,
    serif;
  color: var(--navy);
}
.book-export .button {
  font-size: 11px;
  margin: 5px 0 12px;
}
.book-export .text-link {
  font-size: 10px;
}
.book-stage {
  background: #e9edde;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 550px;
  padding: 25px 35px;
  position: relative;
  border: 1px solid #dde3d1;
}
.book-stage-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  top: 22px;
  left: 0;
  padding: 0 25px;
  color: #98a087;
  font-size: 10px;
}
.book-stage .book-cover {
  transform: perspective(1000px) rotateY(-6deg);
  box-shadow:
    inset -5px 0 0 #ffffff15,
    8px 3px 0 #dfd6be,
    11px 4px 0 #f4ead5,
    13px 5px 0 #c7baa2,
    22px 24px 28px #4b664725;
}
.book-stage-caption {
  font-family: var(--serif);
  font-size: 12px;
  color: #99a087;
  margin-top: 45px;
}
.contents-section {
  margin-top: 38px;
}
.contents-section .section-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin: 0;
}
.contents-section .section-heading h2 {
  font-size: 22px;
  margin: 0;
}
.contents-section .section-heading > span {
  font-size: 11px;
  color: #999e89;
}
.contents-row {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px 4px;
}
.contents-row > span:first-child {
  font-family: Georgia, serif;
  font-size: 20px;
  color: #b7bea6;
}
.contents-row h3 {
  font-family: var(--serif);
  font-size: 18px;
  flex: 1;
}
.contents-row > span:not(:first-child) {
  font-size: 11px;
  color: #a4aa97;
}
.contents-row .icon {
  width: 15px;
  height: 15px;
  color: #a4aa97;
}
.privacy-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 40px;
  align-items: start;
}
.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.privacy-row:first-child {
  padding-top: 10px;
}
.privacy-row > span {
  font:
    24px Georgia,
    serif;
  color: #b4b9a4;
}
.privacy-row h2 {
  font-size: 21px;
  margin-bottom: 15px;
}
.privacy-row p {
  font-size: 12px;
  line-height: 2;
  color: #8b947c;
}
.backup-card {
  background: #ecf0e2;
  border: 1px solid #dfe5d3;
  padding: 27px;
}
.backup-icon {
  color: #889c73;
  margin-bottom: 23px;
}
.backup-icon .icon {
  width: 32px;
  height: 32px;
}
.backup-card h2 {
  font-size: 22px;
  line-height: 1.8;
  margin-bottom: 15px;
}
.backup-card > p {
  font-size: 11px;
  color: #929c80;
  line-height: 1.9;
  margin-bottom: 22px;
}
.backup-card .button {
  font-size: 11px;
}
.backup-card .project-switch {
  display: block;
}
.backup-card select {
  width: 100%;
  margin-top: 7px;
}
.backup-card hr {
  height: 1px;
  border: 0;
  background: #d6dfc9;
  margin: 25px 0;
}
.backup-card .text-link {
  font-size: 12px;
}
.about-intro {
  text-align: center;
  padding: 70px 20px 60px;
  background: #edf0e3;
}
.about-intro .eyebrow {
  justify-content: center;
}
.about-intro h1 {
  font-size: 44px;
  line-height: 1.7;
  margin: 18px 0;
}
.about-intro > p {
  color: #8b957c;
  font-size: 13px;
  line-height: 2.1;
}
.about-intro .button {
  margin-top: 30px;
}
.faq-section {
  max-width: 850px;
  margin: 65px auto;
  padding: 0 30px;
}
.faq-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
}
.faq-section details {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.faq-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
  font-size: 14px;
  list-style: none;
}
.faq-section summary::-webkit-details-marker {
  display: none;
}
.faq-section summary .icon {
  width: 17px;
  color: #9ca38b;
}
.faq-section details[open] summary .icon {
  transform: rotate(45deg);
}
.faq-section details p {
  font-size: 12px;
  line-height: 2.1;
  color: #8d957e;
  max-width: 690px;
  margin-top: 18px;
}
.sample-header {
  max-width: 1100px;
  margin: 35px auto;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  gap: 15px;
}
.sample-header .text-link {
  font-size: 12px;
}
.sample-tag {
  font-size: 11px;
  color: #9c9c87;
  align-self: center;
}
.sample-story {
  max-width: 720px;
  margin: 40px auto 90px;
  padding: 0 35px;
}
.sample-story h1 {
  font-size: 37px;
  margin: 25px 0;
}
.sample-byline {
  font-size: 11px;
  color: #979e88;
  margin-bottom: 30px;
}
.sample-landscape {
  background: #f1efdf;
  padding: 20px 40px;
  margin: 30px 0;
}
.sample-landscape svg {
  width: 100%;
  max-height: 270px;
}
.sample-story > p {
  font: 17px/2.35 var(--serif);
  margin: 25px 0;
  color: #68735e;
}
.sample-story blockquote {
  border-left: 2px solid #b4bd97;
  padding: 10px 20px;
  margin: 35px 0;
  font: 21px/1.8 var(--serif);
  color: #7e8a69;
}
.sample-story p.sample-disclaimer {
  font: 11px/1.9 var(--sans);
  color: #a5a78f;
  margin: 45px 0 25px;
}
dialog {
  border: 1px solid #d4d8c6;
  padding: 40px;
  width: min(94vw, 470px);
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 30px 90px #23392733;
}
dialog::backdrop {
  background: #213c3b66;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 27px;
  line-height: 1.6;
  margin: 10px 0 17px;
}
dialog > p {
  font-size: 12px;
  color: #919b7f;
  line-height: 2;
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  background: none;
  border: 0;
  color: #9ba58e;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close .icon {
  width: 18px;
}
.modal-secondary {
  display: block;
  font-size: 12px;
  margin-top: 20px;
  text-align: center;
  color: #8e9c7d;
}
.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #9ba489;
  margin: 24px 0;
}
.form-note .icon {
  width: 15px;
}
.error-page {
  padding: 70px 30px;
  text-align: center;
}
.error-page h1 {
  font-size: 30px;
  margin: 40px 0 20px;
}
.error-page p {
  color: #89957a;
  margin-bottom: 30px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #29474bf5;
  color: #fffdf3;
  max-width: min(92vw, 520px);
  width: max-content;
  padding: 12px 23px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: 0.2s;
  box-shadow: 0 8px 30px #18383420;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px #ad685a22;
  }
}
@media (min-width: 1600px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 70px;
  }
  .hero h1 {
    font-size: 55px;
  }
  .hero-art {
    min-height: 500px;
  }
  .hero-book {
    transform: rotate(-8deg) perspective(1200px) rotateY(-14deg) scale(1.12);
  }
}
@media (max-width: 1150px) {
  .header-inner {
    padding: 0 30px;
  }
  .top-nav {
    gap: 25px;
  }
  .hero {
    padding: 50px 38px;
    gap: 15px;
    min-height: 540px;
  }
  .hero h1 {
    font-size: 37px;
  }
  .hero-art {
    transform: scale(0.9);
    transform-origin: center;
  }
  .hero-actions {
    gap: 15px;
    flex-wrap: wrap;
  }
  .hero-reassurance {
    gap: 15px;
  }
  .hero-reassurance span {
    font-size: 10px;
  }
  .promise-strip {
    padding: 20px;
    gap: 12px;
  }
  .promise-strip i {
    margin: 0 12px;
  }
  .promise-strip span {
    font-size: 10px;
  }
  .question-feature {
    margin: 0 38px;
    padding: 40px;
  }
  .sidebar {
    width: 185px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .workspace-main {
    padding: 30px;
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 160px;
  }
  .heading-actions .button {
    padding: 8px 13px;
    min-height: 38px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 15px;
  }
  .writing-surface {
    padding: 28px 24px 20px;
  }
  .tool-section {
    padding: 20px 18px;
  }
  .privacy-layout {
    grid-template-columns: 1fr 250px;
    gap: 25px;
  }
  .book-workspace {
    grid-template-columns: 260px 1fr;
    gap: 20px;
  }
  .book-settings {
    padding: 20px;
  }
  .book-stage {
    padding: 25px;
  }
  .book-stage .book-cover {
    transform: scale(0.9);
  }
  .question-card {
    padding: 25px;
  }
  .story-title-input {
    font-size: 25px;
  }
  .overview-book {
    margin-right: 10px;
  }
}
@media (max-width: 900px) {
  .top-nav {
    gap: 20px;
  }
  .header-inner {
    padding: 0 24px;
    gap: 20px;
  }
  .brand > span {
    font-size: 21px;
  }
  .header-cta {
    padding: 7px 12px;
    font-size: 11px;
  }
  .hero {
    padding: 35px 28px;
    grid-template-columns: 1.08fr 1fr;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-description {
    font-size: 12px;
  }
  .hero-art {
    transform: scale(0.8);
    min-height: 430px;
    margin: 0 -35px;
  }
  .hero-reassurance {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding: 10px 18px;
  }
  .hero-actions > .text-link {
    font-size: 11px;
  }
  .promise-strip {
    flex-wrap: wrap;
  }
  .promise-strip span {
    display: none;
  }
  .promise-strip i {
    margin: 0 30px;
  }
  .home-section {
    padding: 45px 30px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .steps article {
    padding-right: 20px;
  }
  .steps article + article {
    padding-left: 24px;
  }
  .steps h3 {
    font-size: 18px;
  }
  .step-number {
    right: 20px;
  }
  .question-feature {
    margin: 0 30px;
    padding: 35px;
  }
  .question-feature h2 {
    font-size: 27px;
  }
  .letter-paper {
    width: 240px;
    padding: 24px;
  }
  .postmark {
    right: -16px;
  }
  .sidebar {
    width: 165px;
    padding: 25px 12px;
  }
  .sidebar .nav-item {
    padding: 12px 10px;
    font-size: 12px;
    gap: 8px;
  }
  .sidebar-title {
    font-size: 9px;
    margin-left: 9px;
  }
  .sidebar-bottom {
    margin-left: 10px;
    margin-right: 5px;
  }
  .sidebar-bottom p {
    font-size: 13px;
  }
  .workspace-main,
  .workspace-main.wide {
    padding: 26px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .library-overview {
    padding: 25px;
    min-height: 215px;
  }
  .overview-book {
    margin-right: 0;
    transform: rotate(7deg) scale(0.9);
    transform-origin: center;
  }
  .progress-area > .eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .progress-numbers strong {
    font-size: 34px;
  }
  .progress-numbers i {
    margin: 0 9px;
  }
  .progress-area > p {
    font-size: 10px;
  }
  .story-row {
    gap: 12px;
  }
  .story-thumb {
    width: 48px;
    height: 48px;
  }
  .story-index {
    font-size: 15px;
    width: 16px;
  }
  .story-summary h3 {
    font-size: 17px;
  }
  .question-grid {
    gap: 15px;
  }
  .question-card {
    padding: 20px;
  }
  .question-card h2 {
    font-size: 19px;
  }
  .question-card p {
    font-size: 11px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .tool-section:first-child {
    border-right: 1px solid var(--line);
  }
  .tool-section.compact {
    grid-column: 1/-1;
  }
  .story-textarea {
    min-height: 350px;
  }
  .writing-surface {
    padding: 30px;
  }
  .privacy-layout {
    grid-template-columns: 1fr;
  }
  .backup-card {
    max-width: 500px;
  }
  .book-workspace {
    grid-template-columns: 1fr;
  }
  .book-stage {
    grid-row: 1;
    min-height: 470px;
  }
  .book-stage .book-cover {
    transform: scale(0.95);
  }
  .book-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .book-settings h2 {
    grid-column: 1/-1;
    margin-bottom: 5px;
  }
  .book-settings .field {
    margin: 12px 0;
  }
  .book-settings > .field:has(textarea) {
    grid-column: 1/-1;
  }
  .book-settings > .field-label {
    grid-column: 1/-1;
    margin-top: 12px;
  }
  .book-settings .cover-options {
    grid-column: 1/-1;
  }
  .book-settings > .button,
  .book-export {
    grid-column: 1/-1;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  body {
    padding-bottom: 67px;
  }
  .header {
    height: 70px;
  }
  .header-inner {
    padding: 0 21px;
  }
  .brand > span {
    font-size: 22px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 2px;
  }
  .top-nav {
    display: none;
  }
  .header-cta {
    border: 0;
    padding: 8px 0;
    font-size: 11px;
    gap: 5px;
  }
  .header-cta .icon {
    width: 15px;
  }
  .local-notice {
    padding: 6px 16px;
    font-size: 9px;
    gap: 6px;
    justify-content: flex-start;
    min-height: 29px;
  }
  .notice-detail {
    flex: 1;
    font-size: 8px;
    letter-spacing: 0;
  }
  .local-notice a {
    margin-left: 0;
    font-size: 8px;
    white-space: nowrap;
  }
  .local-notice .icon {
    display: none;
  }
  .hero {
    display: flex;
    flex-direction: column;
    padding: 35px 24px 10px;
    gap: 5px;
    min-height: auto;
  }
  .hero-copy {
    width: 100%;
    position: relative;
    z-index: 1;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .hero h1 {
    font-size: clamp(29px, 8.4vw, 42px);
    line-height: 1.65;
    letter-spacing: 1px;
    margin: 16px 0;
  }
  .hero-description {
    font-size: 12px;
    line-height: 2;
  }
  .hero-actions {
    margin: 24px 0 0;
    gap: 20px;
    flex-wrap: nowrap;
  }
  .hero-actions .button {
    font-size: 12px;
    min-height: 44px;
    padding: 10px 17px;
    gap: 8px;
  }
  .hero-actions .text-link {
    font-size: 11px;
    gap: 6px;
  }
  .hero-actions .text-link .icon {
    width: 15px;
  }
  .hero-reassurance {
    margin-top: 22px;
    gap: 15px;
  }
  .hero-reassurance > span {
    font-size: 9px;
    gap: 4px;
  }
  .hero-reassurance .icon {
    width: 12px;
    height: 12px;
  }
  .hero-art {
    width: 100%;
    margin: -25px 0 -28px;
    min-height: 395px;
    transform: scale(0.78);
    transform-origin: center;
  }
  .hero-book {
    margin-left: 42px;
    margin-top: -15px;
  }
  .voice-note {
    left: -8px;
    bottom: 0;
    min-width: 315px;
    padding: 13px 16px;
  }
  .voice-note strong {
    font-size: 12px;
  }
  .orbit {
    width: 370px;
    height: 370px;
  }
  .orbit-two {
    width: 430px;
    height: 310px;
  }
  .hand-note {
    font-size: 12px;
    bottom: -20px;
    right: -17px;
  }
  .star-one {
    top: 0;
    right: 10px;
  }
  .star-two {
    left: -6px;
    bottom: 90px;
  }
  .promise-strip {
    padding: 18px 15px;
    gap: 0;
    margin: 0 23px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .promise-strip p {
    font-size: 13px;
  }
  .promise-strip i {
    height: 14px;
    margin: 0 10px;
  }
  .home-section {
    padding: 38px 24px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
  }
  .section-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .section-heading h2 {
    font-size: 25px;
    line-height: 1.7;
    margin-top: 10px;
  }
  .how-section .section-heading > .text-link {
    display: none;
  }
  .steps {
    display: flex;
    flex-direction: column;
  }
  .steps article {
    padding: 25px 48px 25px 49px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .steps article:last-child {
    border-bottom: 0 !important;
  }
  .steps article > .icon {
    position: absolute;
    left: 0;
    top: 28px;
    width: 25px;
    height: 25px;
  }
  .step-number {
    right: 5px;
    top: 19px;
    font-size: 36px;
  }
  .steps h3 {
    font-size: 21px;
    margin-bottom: 10px;
  }
  .steps p {
    font-size: 12px;
    max-width: 100%;
  }
  .steps article > a,
  .steps article > button {
    margin-top: 12px;
    font-size: 11px;
  }
  .question-feature {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
    padding: 34px 27px 10px;
    gap: 15px;
  }
  .question-feature .eyebrow {
    font-size: 9px;
  }
  .question-feature h2 {
    font-size: 28px;
    line-height: 1.7;
  }
  .question-feature p {
    font-size: 11px;
  }
  .question-feature .button {
    margin-top: 21px;
  }
  .letter-scene {
    min-height: 300px;
  }
  .letter-paper {
    width: 245px;
    min-height: 263px;
    transform: rotate(5deg);
    padding: 24px 27px;
  }
  .letter-paper p {
    font-size: 11px;
  }
  .postmark {
    bottom: 10px;
    right: 0;
    width: 80px;
    height: 80px;
    font-size: 8px;
  }
  .postmark strong {
    font-size: 8px;
  }
  .devices {
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 35px;
    grid-template-columns: 1fr;
    text-align: left;
  }
  .devices > div {
    position: relative;
    padding-left: 43px;
  }
  .devices > div > .icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
  }
  .devices h3 {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 8px;
  }
  .devices p {
    font-size: 11px;
  }
  .devices .device-note {
    padding-left: 0;
    text-align: center;
    font-size: 10px;
    margin: 0;
  }
  .footer {
    padding: 22px 24px;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 9px;
  }
  .footer > span:first-child {
    width: 100%;
    margin: 0;
  }
  .footer > span:last-child {
    margin-left: auto;
  }
  .mobile-nav {
    position: fixed;
    display: flex;
    justify-content: space-around;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fcfaf2f7;
    border-top: 1px solid #e1e5d5;
    padding: 7px 8px calc(6px + env(safe-area-inset-bottom));
    backdrop-filter: blur(12px);
  }
  .mobile-nav .nav-item {
    flex-direction: column;
    gap: 3px;
    margin: 0;
    border-radius: 4px;
    padding: 5px 20px;
    font-size: 9px;
    min-width: 67px;
  }
  .mobile-nav .nav-item.active {
    background: none;
    color: #325847;
  }
  .mobile-nav .nav-item .icon {
    width: 20px;
    height: 20px;
  }
  .sidebar {
    display: none;
  }
  .workspace-main,
  .workspace-main.wide {
    padding: 26px 21px 40px;
    width: 100%;
  }
  .page-heading {
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 28px;
    margin: 8px 0;
    line-height: 1.5;
  }
  .page-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.9;
  }
  .heading-actions {
    max-width: 110px;
    gap: 9px;
    flex-shrink: 0;
  }
  .heading-actions .button {
    padding: 8px;
    font-size: 10px;
    min-height: 35px;
    gap: 4px;
    width: 100%;
  }
  .heading-actions .icon {
    width: 14px;
    height: 14px;
  }
  .heading-actions .subtle {
    border: 0;
    padding: 0;
    justify-content: flex-end;
    min-height: 25px;
  }
  .library-overview {
    padding: 23px 20px;
    min-height: 204px;
    gap: 4px;
  }
  .progress-area {
    max-width: 230px;
  }
  .progress-area > .eyebrow {
    font-size: 9px;
    letter-spacing: 0;
  }
  .progress-numbers {
    gap: 6px;
    margin: 10px 0;
  }
  .progress-numbers strong {
    font-size: 34px;
  }
  .progress-numbers span {
    font-size: 9px;
  }
  .progress-numbers i {
    margin: 0 6px;
    height: 20px;
  }
  .progress-area > p {
    font-size: 9px;
    max-width: 190px;
  }
  .progress-area .text-link {
    font-size: 10px;
    gap: 6px;
  }
  .overview-book {
    width: 90px;
    height: 143px;
    transform: rotate(8deg);
    margin-right: 0;
  }
  .book-cover.small {
    transform: scale(0.37);
  }
  .library-toolbar {
    margin-top: 24px;
    gap: 14px;
  }
  .tabs {
    gap: 19px;
  }
  .tabs button {
    font-size: 11px;
  }
  .search-box {
    max-width: 105px;
  }
  .search-box input {
    width: 80px;
    font-size: 10px;
  }
  .search-box .icon {
    width: 13px;
    height: 13px;
  }
  .story-row {
    gap: 10px;
    padding: 20px 0;
    position: relative;
    align-items: flex-start;
  }
  .story-index {
    display: none;
  }
  .story-thumb {
    width: 50px;
    height: 62px;
    margin-top: 5px;
  }
  .story-summary h3 {
    font-size: 18px;
    line-height: 1.6;
    padding-right: 0;
  }
  .story-summary > p {
    margin: 5px 0 8px;
    font-size: 10px;
  }
  .story-meta {
    font-size: 8px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .status-tag {
    font-size: 8px;
    padding: 2px 6px;
  }
  .story-row > .status-tag {
    position: absolute;
    right: 0;
    bottom: 17px;
  }
  .story-row > .icon {
    width: 12px;
    height: 12px;
    align-self: center;
  }
  .story-summary {
    padding-right: 0;
  }
  .story-meta {
    padding-right: 48px;
  }
  .library-bottom {
    font-size: 10px;
  }
  .library-bottom .icon {
    width: 15px;
  }
  .empty-state {
    min-height: 360px;
    padding: 30px 18px;
  }
  .empty-state h2 {
    font-size: 24px;
    line-height: 1.7;
  }
  .empty-state p {
    font-size: 12px;
    line-height: 2;
    margin: 14px 0 24px;
  }
  .gentle-note {
    font-size: 9px;
    margin: 22px 0;
    text-align: center;
    gap: 5px;
  }
  .project-switch {
    font-size: 10px;
  }
  .project-switch select {
    max-width: 220px;
    font-size: 11px;
  }
  .small-seal {
    width: 65px;
    height: 65px;
    font-size: 8px;
  }
  .small-seal strong {
    font-size: 9px;
  }
  .theme-tabs {
    gap: 8px;
    margin: 10px 0 24px;
  }
  .theme-tabs button {
    font-size: 10px;
    padding: 7px 13px;
    min-height: 34px;
  }
  .question-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .question-card {
    padding: 23px 25px;
  }
  .question-card h2 {
    font-size: 24px;
    line-height: 1.65;
    margin: 17px 0 14px;
  }
  .question-card p {
    font-size: 12px;
    min-height: 0;
    line-height: 1.9;
    margin-bottom: 19px;
  }
  .question-card .text-link {
    font-size: 11px;
  }
  .question-category {
    font-size: 9px;
  }
  .question-num {
    font-size: 23px;
  }
  .photo-grid {
    gap: 13px;
  }
  .photo-item {
    padding: 8px 8px 13px;
  }
  .photo-item h3 {
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
  .photo-item > span {
    font-size: 9px;
  }
  .editor-breadcrumb {
    font-size: 10px;
    margin-bottom: 16px;
  }
  .editor-top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--paper);
    padding: 10px 0;
    margin: -5px 0 17px;
    border-bottom: 1px solid var(--line);
  }
  .editor-top > div {
    gap: 8px;
  }
  .editor-top .button {
    padding: 8px 10px;
    min-height: 36px;
    font-size: 10px;
    gap: 5px;
  }
  .editor-top .button .icon {
    width: 14px;
  }
  .editor-top > div:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  #save-status {
    font-size: 8px;
  }
  .editor-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .writing-surface {
    padding: 26px 22px 18px;
    width: 100%;
  }
  .story-title-input {
    font-size: 26px;
    line-height: 1.8;
    padding-bottom: 10px;
  }
  .writing-byline {
    font-size: 9px;
    padding-bottom: 20px;
  }
  .writing-prompt {
    font-size: 11px;
    padding: 12px;
    margin-top: 19px;
  }
  .story-textarea {
    font-size: 17px;
    line-height: 2.2;
    min-height: 360px;
    padding: 20px 0;
  }
  .writing-footer {
    font-size: 8px;
    gap: 12px;
  }
  .transcript-details {
    font-size: 11px;
  }
  .editor-tools {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .tool-section {
    padding: 24px;
    border-right: 0 !important;
  }
  .tool-heading h2 {
    font-size: 21px;
  }
  .tool-heading > .icon {
    width: 21px;
  }
  .tool-section > p {
    font-size: 12px;
  }
  .consent-check {
    font-size: 11px;
  }
  .consent-check input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
  }
  .recorder {
    padding: 24px;
    margin-top: 20px;
  }
  #record-time {
    font-size: 38px;
  }
  #record-status {
    font-size: 11px;
    margin: 10px 0 20px;
  }
  .record-button {
    width: 60px;
    height: 60px;
  }
  .record-button .icon {
    width: 26px;
    height: 26px;
  }
  .record-secondary {
    width: 38px;
    height: 38px;
  }
  .record-actions {
    gap: 25px;
  }
  .upload-link {
    font-size: 12px;
    min-height: 45px;
  }
  .capability-note {
    font-size: 10px;
    line-height: 1.9;
  }
  .audio-item strong {
    font-size: 12px;
  }
  .audio-item audio {
    height: 40px;
  }
  .audio-item > div {
    font-size: 11px;
  }
  .audio-item button {
    font-size: 11px;
    min-height: 30px;
  }
  .editor-photos {
    grid-template-columns: repeat(3, 1fr);
  }
  .photo-upload {
    padding: 25px;
    font-size: 12px;
  }
  .tool-section > small {
    font-size: 10px;
  }
  .book-workspace {
    gap: 20px;
  }
  .book-stage {
    min-height: 480px;
    padding: 45px 20px 25px;
  }
  .book-stage .book-cover {
    transform: scale(0.94);
  }
  .book-stage-top {
    font-size: 9px;
    top: 18px;
    padding: 0 20px;
  }
  .book-stage-caption {
    font-size: 11px;
    margin-top: 27px;
  }
  .book-settings {
    padding: 23px;
    gap: 0 15px;
  }
  .book-settings h2 {
    font-size: 23px;
    margin-bottom: 10px;
  }
  .field {
    font-size: 11px;
    gap: 7px;
  }
  .field input,
  .field textarea {
    padding: 11px;
    font-size: 14px;
  }
  .book-settings > .field {
    grid-column: 1/-1;
  }
  .book-settings > .field-label {
    font-size: 12px;
  }
  .cover-option {
    width: 36px;
    height: 36px;
  }
  .book-export > .button {
    font-size: 12px;
  }
  .book-export > .text-link {
    font-size: 11px;
  }
  .contents-section {
    margin-top: 30px;
  }
  .contents-section .section-heading {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .contents-section .section-heading h2 {
    font-size: 24px;
  }
  .contents-section .section-heading > span {
    font-size: 10px;
  }
  .contents-row {
    gap: 15px;
  }
  .contents-row h3 {
    font-size: 17px;
    line-height: 1.8;
  }
  .contents-row > span:first-child {
    font-size: 18px;
  }
  .contents-row > span:not(:first-child) {
    font-size: 9px;
    white-space: nowrap;
  }
  .privacy-layout {
    gap: 30px;
  }
  .privacy-row {
    gap: 19px;
    padding: 25px 0;
  }
  .privacy-row > span {
    font-size: 21px;
  }
  .privacy-row h2 {
    font-size: 23px;
    margin-bottom: 12px;
    line-height: 1.6;
  }
  .privacy-row p {
    font-size: 12px;
    line-height: 2.1;
  }
  .backup-card {
    padding: 28px;
  }
  .backup-card h2 {
    font-size: 25px;
  }
  .backup-card > p {
    font-size: 12px;
  }
  .backup-card .button {
    font-size: 12px;
    min-height: 47px;
  }
  .large-icon {
    width: 31px;
    height: 31px;
  }
  .about-intro {
    padding: 45px 25px;
  }
  .about-intro h1 {
    font-size: 32px;
    line-height: 1.8;
    margin: 20px 0;
  }
  .about-intro .eyebrow {
    font-size: 10px;
  }
  .about-intro > p {
    font-size: 12px;
  }
  .faq-section {
    margin: 40px auto;
    padding: 0 25px;
  }
  .faq-section h2 {
    font-size: 25px;
  }
  .faq-section summary {
    font-size: 13px;
    line-height: 1.9;
  }
  .faq-section details p {
    font-size: 12px;
  }
  .sample-header {
    padding: 0 22px;
    margin: 24px auto;
    gap: 10px;
  }
  .sample-header .text-link,
  .sample-tag {
    font-size: 9px;
  }
  .sample-story {
    margin: 35px auto 50px;
    padding: 0 25px;
  }
  .sample-story .eyebrow {
    font-size: 9px;
  }
  .sample-story h1 {
    font-size: 31px;
    margin: 20px 0;
    line-height: 1.7;
  }
  .sample-byline {
    font-size: 10px;
  }
  .sample-story > p {
    font-size: 17px;
    line-height: 2.2;
  }
  .sample-landscape {
    padding: 5px 10px;
  }
  .sample-story blockquote {
    font-size: 21px;
    padding: 8px 17px;
  }
  .sample-story p.sample-disclaimer {
    font-size: 10px;
  }
  dialog {
    padding: 32px 24px;
    width: calc(100vw - 30px);
    max-height: 85vh;
  }
  dialog h2 {
    font-size: 26px;
    line-height: 1.7;
    margin-top: 15px;
  }
  dialog .field {
    font-size: 12px;
  }
  dialog .field input {
    font-size: 16px;
  }
  dialog > .eyebrow {
    font-size: 9px;
    max-width: 85%;
  }
  .form-note {
    font-size: 9px;
  }
  .modal-close {
    right: 11px;
    top: 11px;
  }
  #toast {
    bottom: 85px;
    font-size: 12px;
    padding: 12px 18px;
    max-width: 90vw;
  }
  .desktop-only {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .header,
  .local-notice,
  .sidebar,
  .mobile-nav,
  .footer,
  .editor-tools,
  .editor-top,
  .editor-breadcrumb {
    display: none;
  }
  body {
    padding: 0;
    background: #fff;
  }
  .workspace-main {
    padding: 0;
  }
  .writing-surface {
    border: 0;
  }
  .story-textarea {
    min-height: auto;
  }
}
