:root {
  --ink: #0c5a5b;
  --teal: #0c5a5b;
  --teal-soft: #e8f1ea;
  --leaf: #5f8f70;
  --paper: #fbfaf6;
  --paper-deep: #f4f6f0;
  --line: #dfe7df;
  --muted: #5d7773;
  --amber: #f0c36a;
  --orange: #e98945;
  --peach: #fff1e6;
  --danger: #b94e4b;
  --shadow: 0 18px 55px rgba(12, 90, 91, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.large-text {
  font-size: 118%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(233, 137, 69, 0.65);
  outline-offset: 3px;
}

.network-bar {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--teal);
  color: #fffdf7;
  padding: 0 18px;
}

.network-bar span {
  color: rgba(255, 253, 247, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.network-bar a {
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 8px;
}

.network-bar a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(223, 231, 223, 0.9);
  background: rgba(251, 250, 246, 0.94);
  padding: 0 32px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 236px;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fffdf7;
  font-family: "Noto Serif SC", serif;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(12, 90, 91, 0.22);
}

.brand strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: #79908e;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 6px;
}

.site-nav a,
.mobile-nav a {
  border-radius: 8px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  white-space: nowrap;
}

.site-nav a.active,
.mobile-nav a.active {
  background: var(--teal-soft);
  color: var(--teal);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
}

.ghost-button,
.menu-button,
.secondary-button {
  border: 1px solid #cbdcd0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #315f5d;
  font-weight: 700;
  padding: 10px 14px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  min-height: 44px;
  padding: 12px 18px;
}

.orange-button {
  background: var(--orange);
  color: var(--ink);
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #fffdf7;
  padding: 12px 18px 18px;
}

#app {
  min-height: 70vh;
}

#app:focus {
  outline: none;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(12, 90, 91, 0.07), rgba(233, 137, 69, 0.1)),
    radial-gradient(circle at 85% 18%, rgba(240, 195, 106, 0.42), transparent 30%),
    #f7f4ec;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 54px;
  align-items: center;
  padding: 72px 0 64px;
}

.kicker {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display-title {
  margin: 16px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.02;
  letter-spacing: 0;
}

.display-title em {
  color: var(--orange);
  font-style: normal;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  max-width: 690px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  border: 1px solid rgba(223, 231, 223, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  padding: 26px;
}

.cover-card {
  display: grid;
  min-height: 460px;
  align-content: space-between;
  background:
    linear-gradient(180deg, rgba(12, 90, 91, 0.98), rgba(12, 90, 91, 0.98)),
    var(--teal);
  color: #fffdf7;
  overflow: hidden;
}

.cover-card .book-title {
  font-family: "Noto Serif SC", serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.18;
}

.cover-card .book-band {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #d5e6dc;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-all;
  padding-top: 22px;
}

.quote-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.quote-strip span {
  border-radius: 8px;
  background: #fff8e7;
  color: #6f551e;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
}

.site-bridge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.site-bridge span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-bridge a {
  border: 1px solid rgba(12, 90, 91, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.site-bridge a:hover {
  border-color: rgba(12, 90, 91, 0.38);
  background: #fffdf7;
}

.section {
  padding: 68px 0;
}

.section.alt {
  background: var(--paper-deep);
}

.section.dark {
  background: var(--ink);
  color: #fffdf7;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section h2,
.page-title {
  margin: 10px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.tool-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 36px rgba(12, 90, 91, 0.06);
  padding: 24px;
}

.feature-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
}

.icon-pill,
.step-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
}

.card h3,
.tool-panel h3 {
  margin: 0;
  font-size: 22px;
}

.card p,
.tool-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.page-hero {
  background:
    linear-gradient(130deg, rgba(255, 241, 230, 0.95), rgba(232, 241, 234, 0.9)),
    var(--peach);
  border-bottom: 1px solid var(--line);
  padding: 58px 0;
}

.question-list {
  display: grid;
  gap: 16px;
}

.choice-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.choice-buttons button,
.selector button,
.tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #315f5d;
  font-weight: 800;
  padding: 12px 14px;
}

.choice-buttons button.active,
.selector button.active,
.tabs button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.result-box {
  margin-top: 22px;
  border-radius: 8px;
  padding: 24px;
}

.result-green {
  background: #edf6f0;
  color: #215b3f;
}

.result-yellow {
  background: #fff6df;
  color: #725a1e;
}

.result-red {
  background: #fff0ee;
  color: #7a3432;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.selector {
  display: grid;
  gap: 12px;
}

.starter-preview {
  background: var(--ink);
  color: #fffdf7;
}

.starter-preview p {
  color: #d5e5dc;
}

.step-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.step-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 14px;
}

.step-row:last-child {
  border-bottom: 0;
}

.step-number {
  width: 34px;
  height: 34px;
  background: var(--orange);
  color: var(--ink);
}

textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px dashed #cbd9cd;
  border-radius: 8px;
  background: #fbfcfa;
  color: #315f5d;
  line-height: 1.7;
  margin-top: 10px;
  padding: 12px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 320px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.script-step {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.script-step p {
  color: #d5e5dc;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: white;
}

.guide-table th,
.guide-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  background: var(--teal-soft);
  color: var(--teal);
}

.camp-board {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.day-grid button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  min-height: 42px;
}

.day-grid button.active {
  background: var(--teal);
  color: white;
}

.tool-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
}

.tool-nav {
  display: grid;
  gap: 10px;
}

.tool-nav button {
  border: 0;
  border-radius: 8px;
  background: #eef3ef;
  color: #315f5d;
  padding: 16px;
  text-align: left;
}

.tool-nav button.active {
  background: var(--teal);
  color: white;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--muted);
  padding: 34px 32px;
}

.site-footer strong {
  color: var(--teal);
  font-family: "Noto Serif SC", serif;
}

.site-footer p {
  margin: 6px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    padding-bottom: 10px;
  }

  .site-nav {
    order: 3;
    display: flex;
    flex: 0 0 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 8px;
  }

  .menu-button {
    display: none;
  }

  .hero-inner,
  .two-column,
  .camp-board,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .network-bar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .site-header {
    gap: 8px;
    padding: 0 16px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand strong {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small,
  .ghost-button {
    display: none;
  }

  .header-actions {
    flex-shrink: 0;
  }

  .menu-button {
    display: none !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 25;
    width: 44px;
    overflow: hidden;
    border-color: var(--teal);
    background: var(--teal);
    padding: 10px 0;
    color: white;
    font-size: 14px;
  }

  .menu-button::before {
    content: "";
  }

  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    gap: 24px;
    padding: 44px 0;
  }

  .cover-card {
    min-height: 360px;
  }

  .cover-card .book-title {
    font-size: 36px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .quote-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .day-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    display: block;
    padding: 28px 18px;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  .site-footer,
  .tool-nav,
  .no-print {
    display: none !important;
  }

  body {
    background: white;
  }
}
