:root {
  --paper: #faf8f1;
  --ink: #173e35;
  --muted: #596a61;
  --line: #d8ddd0;
  --accent: #dbea9b;
  --orange: #ce643e;
  --white: #fff;
  --radius: 12px;
  --space: 8px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.13;
  overflow-wrap: anywhere;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.25rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #b54d28;
  outline-offset: 4px;
}
.shell {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
.narrow {
  max-width: 760px;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.brand strong {
  font-size: 27px;
}
.brand-symbol {
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  margin-right: 8px;
}
.header-inner nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.header-inner nav a,
.account-link {
  font-size: 14px;
  text-decoration: none;
  padding: 12px 0;
}
.account-link {
  border: 1px solid var(--ink);
  border-radius: 50px;
  padding: 10px 22px;
  white-space: nowrap;
}
.account-link span {
  margin-left: 20px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 600px;
  padding-block: 72px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.hero h1 {
  max-width: 620px;
}
.hero-text {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 15px 24px;
  min-height: 48px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.button:hover {
  background: #28574a;
}
.hero-note {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 0;
}
.hero-art {
  position: relative;
  min-height: 450px;
}
.art-sun {
  position: absolute;
  background: #e9edda;
  width: 400px;
  height: 400px;
  max-width: 100%;
  border-radius: 50%;
  left: 10%;
  top: 20px;
}
.art-book {
  position: absolute;
  width: 240px;
  height: 320px;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 8px 16px 30px #253c2526;
  top: 64px;
  left: 23%;
  transform: rotate(-10deg);
}
.book-back {
  background: #d29463;
  transform: rotate(9deg);
  left: 38%;
  top: 48px;
  border-right: 12px solid #efe6cf;
}
.book-front {
  background: var(--ink);
  color: #f7ebcc;
  border-left: 8px solid #295047;
  padding: 28px 26px;
}
.book-front > span {
  display: block;
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: -1px;
}
.book-front i {
  font-size: 30px;
  font-weight: 400;
}
.book-flower {
  font-size: 88px;
  line-height: 1.2;
  text-align: right;
  color: var(--accent);
  margin-top: 8px;
}
.book-front small {
  font-size: 8px;
  letter-spacing: 2px;
}
.art-star {
  position: absolute;
  z-index: 2;
  font-size: 44px;
  color: var(--orange);
}
.star-one {
  left: 6%;
  top: 100px;
}
.star-two {
  right: 0;
  top: 330px;
  font-size: 60px;
}
.art-caption {
  position: absolute;
  bottom: 5px;
  right: 8%;
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
  transform: rotate(-7deg);
}
.promise-strip {
  background: #e9eddf;
  border-block: 1px solid #d9decc;
}
.promise-strip .shell {
  display: flex;
  justify-content: space-around;
  gap: 24px;
  padding-block: 19px;
  font-size: 13px;
}
.promise-strip span:before {
  content: "✦";
  margin-right: 16px;
  font-size: 11px;
}
.section {
  padding-block: 64px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
.section-heading h2 {
  max-width: 600px;
  margin-bottom: 0;
}
.section-heading .eyebrow {
  margin-bottom: 16px;
}
.text-link {
  font-size: 14px;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 28px;
}
.book-card {
  min-width: 0;
}
.cover-link {
  display: block;
  background: #eeeade;
  padding: 24px;
  height: 310px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 16px;
}
.cover-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(4px 8px 5px #0002);
}
.cover-placeholder {
  height: 100%;
  background: #365e52;
  color: #fff5d8;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  border-radius: 2px 6px 6px 2px;
  border-left: 5px solid #ffffff22;
  box-shadow: 4px 7px 10px #0002;
  font-family: Georgia, serif;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.2;
}
.cover-placeholder small {
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 2px;
}
.cover-mark {
  font-size: 48px;
}
.tone-2 {
  background: #ad4e34;
}
.tone-3 {
  background: #cbdc9b;
  color: #244336;
}
.tone-4 {
  background: #435777;
}
.book-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
}
.book-card h2 {
  font:
    600 19px/1.3 Arial,
    sans-serif;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.book-card h2 a {
  text-decoration: none;
}
.book-card h2 a:hover {
  text-decoration: underline;
}
.book-author {
  font-size: 13px;
  color: var(--muted);
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.collection-card {
  background: #edf0e3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
}
.collection-card h3 {
  font-family: Georgia, serif;
  font-size: 25px;
}
.collection-card p {
  font-size: 14px;
}
.reading-note {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  margin-block: 24px 64px;
}
.reading-note h2 {
  font-size: clamp(28px, 4vw, 44px);
}
.reading-note p {
  color: #365139;
}
.reading-note em {
  font-weight: 400;
}
.site-footer {
  background: var(--ink);
  color: #e5ebdb;
  padding: 48px 0;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-grid a {
  display: inline-block;
  min-height: 32px;
}
.footer-brand {
  font-family: Georgia, serif;
  font-size: 30px;
  text-decoration: none;
}
.footer-grid p {
  margin: 12px 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  background: #eef0e6;
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}
.filters > div {
  flex: 1;
  min-width: 140px;
}
.filters .search-field {
  flex: 2;
  min-width: 240px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
input,
select,
textarea {
  max-width: 100%;
  width: 100%;
  border: 1px solid #89968a;
  background: #fff;
  color: #173e35;
  border-radius: 5px;
  padding: 11px 12px;
  min-height: 46px;
}
textarea {
  resize: vertical;
}
select {
  max-width: 100%;
}
.filters > a {
  padding: 12px 0;
}
.result-count,
.muted {
  font-size: 14px;
  color: var(--muted);
}
.empty-state {
  grid-column: 1/-1;
  border: 1px dashed #9baa97;
  border-radius: 12px;
  padding: 40px;
  max-width: 700px;
}
.empty-state h2 {
  font-size: 28px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}
.pagination a {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 40px;
}
.book-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1000px;
}
.detail-cover {
  width: 220px;
  height: 300px;
  object-fit: contain;
  background: #ecebdd;
  border-radius: 8px;
}
.book-heading h1 {
  font-size: clamp(32px, 4vw, 56px);
}
.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 65ch;
}
.author-line {
  font-size: 20px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.chips a {
  font-size: 12px;
  border: 1px solid #aab5a6;
  border-radius: 24px;
  padding: 8px 12px;
  text-decoration: none;
}
.reading-wrap {
  max-width: 740px;
  margin: 64px auto;
}
.reading-toolbar {
  border-block: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.reading-toolbar h2 {
  margin: 0;
  font-size: 24px;
}
.reading-toolbar button,
.shelf-actions button,
button:not(.button) {
  border: 1px solid #89968a;
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
  padding: 10px 16px;
  min-height: 44px;
}
.prose {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.prose h2 {
  font-size: 30px;
  margin-top: 48px;
}
.prose h3 {
  font-size: 25px;
  margin-top: 32px;
}
.prose p {
  margin-bottom: 24px;
}
.prose img {
  display: block;
  margin: 24px auto;
  height: auto;
  max-width: 100%;
  max-height: 900px;
  object-fit: contain;
}
.prose.large-text {
  font-size: 26px;
}
.prose blockquote {
  margin: 24px 0;
  border-left: 3px solid var(--orange);
  padding-left: 24px;
}
.shelf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}
.shelf-actions [aria-pressed="true"] {
  background: #e2eabb;
}
.exercise {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.exercise summary {
  cursor: pointer;
  min-height: 44px;
  font-weight: bold;
}
.exercise .prose {
  font-size: 18px;
}
.comment {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.comment p {
  white-space: normal;
  overflow-wrap: anywhere;
}
.messages p {
  background: #e4edce;
  padding: 16px 24px;
  border-radius: 8px;
  margin-block: 16px;
}
.account-form {
  max-width: 500px;
}
.helptext {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.errorlist {
  color: #9b2917;
  padding-left: 20px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10;
  background: white;
  padding: 16px;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .shell {
    width: calc(100% - 40px);
  }
  .header-inner nav {
    gap: 16px;
  }
  .hero {
    gap: 16px;
  }
  .hero-art {
    transform: scale(0.85);
    transform-origin: center;
  }
  .book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .cover-link {
    height: 280px;
    padding: 18px;
  }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .shell {
    width: calc(100% - 32px);
  }
  .header-inner {
    min-height: 88px;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
  }
  .brand-symbol {
    font-size: 48px;
  }
  .brand {
    font-size: 14px;
  }
  .brand strong {
    font-size: 20px;
  }
  .header-inner nav {
    order: 3;
    flex: 0 0 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    gap: 12px;
  }
  .header-inner nav a {
    font-size: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .account-link {
    margin-left: auto;
    font-size: 12px;
    padding: 8px 14px;
    min-height: 44px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 40px 24px;
    gap: 8px;
  }
  .hero h1 {
    font-size: 46px;
    max-width: 420px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .hero-text {
    font-size: 17px;
  }
  .hero-art {
    min-height: 360px;
    transform: scale(0.8);
    margin-top: -20px;
    margin-bottom: -20px;
  }
  .art-sun {
    width: 340px;
    height: 340px;
    left: 0;
  }
  .art-book {
    left: 18%;
    top: 30px;
  }
  .book-back {
    left: 33%;
    top: 22px;
  }
  .art-caption {
    right: 0;
    bottom: -10px;
  }
  .star-two {
    right: 0;
    top: 275px;
  }
  .star-one {
    left: 0;
    top: 70px;
  }
  .promise-strip .shell {
    gap: 12px;
    justify-content: space-between;
    font-size: 10px;
  }
  .promise-strip span:before {
    display: none;
  }
  .section {
    padding-block: 40px;
  }
  .section-heading {
    display: block;
  }
  .section-heading .text-link {
    margin-top: 16px;
  }
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .cover-link {
    height: 220px;
    padding: 16px;
  }
  .cover-placeholder {
    font-size: 19px;
    padding: 12px;
  }
  .cover-mark {
    font-size: 38px;
  }
  .book-card h2 {
    font-size: 16px;
  }
  .book-meta {
    font-size: 10px;
  }
  .book-author {
    font-size: 12px;
  }
  .collection-grid {
    grid-template-columns: 1fr;
  }
  .reading-note {
    padding: 32px 20px;
    margin-bottom: 40px;
  }
  .reading-note p {
    font-size: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-grid a {
    min-height: 40px;
  }
  .filters {
    padding: 16px;
    gap: 12px;
  }
  .filters .search-field {
    min-width: 100%;
  }
  .filters > div {
    min-width: calc(50% - 12px);
  }
  .filters .button {
    width: 100%;
  }
  .book-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .book-heading > div:empty {
    display: none;
  }
  .detail-cover {
    width: 160px;
    height: 220px;
  }
  .reading-wrap {
    margin-block: 40px;
  }
  .prose {
    font-size: 19px;
    line-height: 1.8;
  }
  .reading-toolbar {
    flex-wrap: wrap;
  }
  .breadcrumbs {
    font-size: 11px;
    margin-bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .site-header,
  .site-footer,
  .shelf-actions,
  .reading-toolbar button,
  .chips,
  .breadcrumbs {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .shell {
    width: 100%;
  }
  .book-heading {
    display: block;
  }
  .detail-cover {
    display: none;
  }
  .reading-wrap {
    max-width: none;
  }
  .prose {
    font-size: 12pt;
  }
}
@media (max-width: 360px) {
  .hero-art {
    transform: scale(0.7);
  }
}
.stage-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 40px;
}
.stage-navigation a {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  text-decoration: none;
}
.stage-navigation [aria-current] {
  background: var(--ink);
  color: var(--paper);
}
.roadmap-content {
  margin-inline: auto;
}
.reading-bookmark {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(740px, calc(100% - 24px));
  box-sizing: border-box;
  z-index: 5;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font:
    14px/1.4 Arial,
    sans-serif;
  box-shadow: 0 3px 12px #0001;
}
.reading-bookmark p {
  margin: 6px 0 0;
  font-size: 12px;
}
.reading-bookmark button {
  font-size: 13px;
}
[data-reading-block] {
  scroll-margin-top: 120px;
}

.reading-bookmark[hidden] {
  display: none;
}
@media print {
  .reading-bookmark {
    display: none;
  }
}

.article-card-image,
.article-hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}
.gtm-noscript {
  display: none;
  visibility: hidden;
  border: 0;
}
.consent-notice {
  padding-block: 24px;
  border-top: 1px solid currentColor;
}
.consent-notice h2 {
  font-size: 24px;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 20px;
}
.consent-actions button {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid currentColor;
  min-height: 44px;
}

/* A remembered first-visit choice, equally accessible accept/reject actions. */
.consent-notice {
  position: fixed;
  z-index: 60;
  inset: auto 16px max(16px, env(safe-area-inset-bottom));
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fffaf1;
  color: #303d35;
  border: 1px solid #d5d5bc;
  border-radius: 20px;
  box-shadow: 0 6px 28px #263d3229;
}
.consent-notice h2 {
  margin: 0 0 5px;
  font-size: 1rem;
}
.consent-notice p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}
.consent-notice a {
  color: #285443;
  text-decoration: underline;
}
.consent-notice .consent-actions {
  flex: 0 0 210px;
  margin: 0;
  display: grid;
  gap: 8px;
}
.consent-notice button {
  min-height: 44px;
  margin: 0;
  padding: 9px 14px;
  color: #294c3c;
  background: #fffaf1;
  border: 1px solid #789780;
  border-radius: 12px;
  font-size: 0.875rem;
}
.consent-notice button:hover {
  background: #edf1e4;
}
body:has(.consent-notice) .reading-bookmark {
  visibility: hidden;
}
#reading-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
#reading-save[hidden] {
  display: none;
}
.bookmark-icon {
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  .consent-notice {
    inset-inline: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    padding: 14px;
    display: block;
    border-radius: 16px;
  }
  .consent-notice .consent-actions {
    margin-top: 12px;
    grid-template-columns: 1fr 1fr;
  }
}
