@layer reset,base,components,responsive;
.story-body.font-small {
  font-size: 18px;
}
.story-body.font-large {
  font-size: 22px;
}
.story-body.font-xlarge {
  font-size: 24px;
}
@layer reset {
  * {
    box-sizing: border-box;
  }
  body,
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
  }
  button,
  a,
  input,
  select,
  textarea {
    -webkit-tap-highlight-color: transparent;
  }
  img {
    max-width: 100%;
    display: block;
  }
  button {
    cursor: pointer;
  }
  a {
    color: inherit;
  }
  button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
  [hidden] {
    display: none !important;
  }
}
@layer base {
  :root {
    --bg: #faf8f3;
    --paper: #fffefa;
    --ink: #243c35;
    --muted: #69736c;
    --green: #174c43;
    --line: #e1e3d8;
    --soft: #eef0e7;
    --accent: #bd795a;
    --serif: Arial, Helvetica, sans-serif;
  }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
  }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.65;
  }
  h1,
  h2,
  h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: -0.035em;
  }
  h1 {
    font-size: clamp(38px, 4.7vw, 66px);
  }
  h2 {
    font-size: 36px;
  }
  h3 {
    font-size: 25px;
  }
  p {
    margin: 0 0 16px;
  }
  a {
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  button {
    border: 0;
    background: transparent;
    color: inherit;
  }
  input,
  select,
  textarea {
    width: 100%;
    border: 1px solid #cbd1c6;
    background: var(--paper);
    border-radius: 7px;
    padding: 12px 14px;
    color: var(--ink);
    line-height: 1.5;
    min-width: 0;
  }
  textarea {
    resize: vertical;
  }
  select {
    min-height: 48px;
  }
  input[type="checkbox"],
  input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
    flex-shrink: 0;
  }
  label {
    display: block;
    font-size: 14px;
    font-weight: 600;
  }
  label input,
  label textarea,
  label select {
    margin-top: 7px;
    font-weight: 400;
  }
  small {
    font-size: 12px;
    color: var(--muted);
  }
  code {
    background: var(--soft);
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.9em;
    overflow-wrap: anywhere;
  }
  *:focus-visible {
    outline: 3px solid #bd795a;
    outline-offset: 4px;
  }
  ::selection {
    background: #dbdfbc;
  }
  .container {
    max-width: 1200px;
    width: calc(100% - 96px);
    margin-inline: auto;
  }
  .muted,
  .lead {
    color: var(--muted);
  }
  .lead {
    font-size: 18px;
    line-height: 1.7;
  }
  .eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .tiny-star {
    color: var(--accent);
    font-size: 20px;
  }
  .button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 13px 22px;
    background: var(--green);
    color: #fff;
    border: 1px solid var(--green);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    transition:
      background 0.15s,
      transform 0.15s;
    min-height: 46px;
  }
  .button:hover {
    text-decoration: none;
    background: #246456;
    transform: translateY(-1px);
  }
  .button.outline {
    background: transparent;
    color: var(--green);
    border-color: #c4ccbf;
  }
  .button.outline:hover {
    background: var(--soft);
  }
  .button.small {
    padding: 8px 14px;
    min-height: 36px;
    font-size: 12px;
    gap: 10px;
  }
  .button.danger {
    background: #fff5f1;
    color: #933f32;
    border-color: #e9c8bf;
  }
  .text-link,
  .link-button {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }
  .text-link:hover,
  .link-button:hover {
    text-decoration: underline;
  }
  .link-button {
    padding: 0;
    line-height: inherit;
  }
  .fit {
    width: fit-content;
  }
  .full-width {
    width: 100%;
  }
  .block {
    display: block;
  }
  .action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }
  .skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100;
    background: var(--green);
    color: white;
    padding: 12px;
  }
  .skip-link:focus {
    top: 10px;
  }
  .notice {
    padding: 16px 20px;
    background: #eaf0e3;
    border: 1px solid #cad9bd;
    border-radius: 8px;
    margin-top: 18px;
    margin-bottom: 20px;
    font-size: 14px;
  }
  .notice.error {
    background: #fbedeb;
    border-color: #e0b7af;
    color: #843d34;
  }
  .notice a {
    text-decoration: underline;
  }
  .toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    box-shadow: 0 4px 25px #0002;
    z-index: 100;
    max-width: 90vw;
  }
  .preserve-lines {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
  }
  .stack-form {
    display: grid;
    gap: 20px;
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .field-hint {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
  }
  .honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .required {
    color: #ac5f45;
  }
  .empty-state {
    text-align: center;
    padding: 70px 25px;
  }
  .empty-state > span {
    font-size: 50px;
    color: var(--accent);
  }
  .empty-state h2 {
    margin-bottom: 15px;
  }
  .empty-state p {
    color: var(--muted);
  }
  .error-page {
    min-height: 55vh;
  }
  .check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
  }
  .check-label input {
    margin-top: 3px;
  }
  .field-copy {
    position: relative;
    display: grid;
    gap: 8px;
  }
  .field-copy button {
    justify-self: end;
  }
}
@layer components {
  .announcement {
    text-align: center;
    background: var(--green);
    color: #e9ebd8;
    padding: 7px 16px;
    font-size: 10px;
    letter-spacing: 0.65px;
  }
  .announcement span {
    margin-left: 20px;
    color: #dbc09a;
  }
  .site-header {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    max-width: 1370px;
    width: calc(100% - 96px);
    margin: auto;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--serif);
    font-size: 25px;
    letter-spacing: -1px;
    white-space: nowrap;
  }
  .brand:hover {
    text-decoration: none;
  }
  .brand-icon {
    position: relative;
    width: 41px;
    height: 44px;
    background: var(--green);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-size: 40px;
    border-radius: 14px 14px 5px 5px;
    line-height: 1;
  }
  .brand-icon > span {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    color: #e4c99e;
  }
  .brand small {
    display: block;
    font:
      8px Arial,
      sans-serif;
    letter-spacing: 2px;
    margin-top: 3px;
    color: var(--muted);
  }
  .site-header nav {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 12px;
  }
  .site-header nav .active {
    color: var(--accent);
  }
  .saved-nav {
    display: flex;
    gap: 7px;
    align-items: center;
  }
  .home-intro {
    position: relative;
    padding-top: 57px;
    padding-bottom: 46px;
  }
  .home-intro h1 {
    margin: 17px 0 20px;
    max-width: 820px;
    font-size: clamp(45px, 5.3vw, 73px);
    line-height: 1.05;
  }
  .home-intro h1 em {
    color: var(--accent);
    font-weight: 400;
  }
  .home-intro p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
  }
  .intro-actions {
    display: flex;
    align-items: center;
    gap: 23px;
    margin-top: 24px;
  }
  .handwritten {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: #788275;
  }
  .intro-doodle {
    position: absolute;
    right: 12%;
    top: 70px;
    font-size: 140px;
    line-height: 1;
    color: #bd795a;
    transform: rotate(12deg);
  }
  .featured-story {
    display: grid;
    grid-template-columns: 1.14fr 1fr;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    background: #f0f0e7;
    min-height: 400px;
  }
  .featured-art {
    position: relative;
    overflow: hidden;
    min-height: 400px;
  }
  .featured-art > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
  }
  .featured-art:hover > img {
    transform: scale(1.025);
  }
  .featured-stamp {
    position: absolute;
    left: 28px;
    bottom: 25px;
    border-radius: 50%;
    background: #f0d7a0;
    width: 94px;
    height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 2px;
    transform: rotate(-10deg);
    border: 1px solid #fff5;
    box-shadow: 0 0 0 5px #f0d7a0aa;
  }
  .featured-stamp i {
    font-family: var(--serif);
    font-size: 17px;
    letter-spacing: 0;
  }
  .featured-copy {
    padding: 40px 42px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
  .featured-copy .eyebrow {
    color: #5c6e61;
    margin-bottom: 23px;
    font-size: 9px;
  }
  .meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    color: var(--muted);
    flex-wrap: wrap;
  }
  .pill {
    background: #e1e5d8;
    color: #43604b;
    border-radius: 20px;
    padding: 4px 11px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
  }
  .featured-copy h2 {
    font-size: clamp(28px, 3vw, 39px);
    line-height: 1.15;
    margin: 15px 0;
  }
  .featured-copy p {
    color: #677061;
    font-size: 14px;
    line-height: 1.8;
  }
  .featured-copy .button {
    margin-top: 5px;
  }
  .featured-copy > small {
    margin-top: 15px;
    font-size: 10px;
  }
  .browse-section,
  .latest-section {
    padding-top: 65px;
  }
  .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
  }
  .section-heading h2 {
    margin-top: 10px;
  }
  .section-heading > .text-link {
    padding-bottom: 5px;
  }
  .mood-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
  .mood-card {
    position: relative;
    background: #f1f0e8;
    padding: 23px 20px;
    border: 1px solid #e7e5da;
    border-radius: 9px;
    transition: background 0.2s;
  }
  .mood-card:nth-child(2) {
    background: #f5ece4;
  }
  .mood-card:nth-child(3) {
    background: #f3e9e8;
  }
  .mood-card:nth-child(4) {
    background: #f5f0df;
  }
  .mood-card:nth-child(5) {
    background: #eaece8;
  }
  .mood-card:hover {
    text-decoration: none;
    box-shadow: 0 4px 18px #243c350c;
  }
  .mood-icon {
    font-size: 29px;
    color: #617c5b;
    line-height: 1;
    display: block;
    margin-bottom: 18px;
  }
  .mood-card h3 {
    font-size: 17px;
    letter-spacing: -0.3px;
    margin-bottom: 7px;
  }
  .mood-card p {
    font-size: 10px;
    color: var(--muted);
    margin: 0;
  }
  .mood-arrow {
    position: absolute;
    right: 13px;
    top: 14px;
    color: #7a8476;
  }
  .story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 24px;
  }
  .story-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
  }
  .story-card:hover {
    box-shadow: 0 8px 24px #243c350b;
  }
  .card-cover {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 1.7;
  }
  .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
  }
  .card-cover:hover img {
    transform: scale(1.04);
  }
  .cover-label {
    position: absolute;
    bottom: 14px;
    left: 16px;
    background: #fff9e9e8;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 9px;
    font-weight: 600;
    backdrop-filter: blur(8px);
  }
  .card-content {
    padding: 23px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .card-content .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
    justify-content: space-between;
    color: #7b775d;
  }
  .card-content .eyebrow .muted {
    font-weight: 400;
    letter-spacing: 0.2px;
    font-size: 10px;
  }
  .card-content h3 {
    font-size: 26px;
    margin: 12px 0;
    line-height: 1.18;
  }
  .card-content > p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 22px;
  }
  .card-bottom {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
  }
  .card-bottom .text-link {
    font-size: 11px;
  }
  .card-bottom .text-link span {
    padding-left: 15px;
  }
  .bookmark {
    font-size: 22px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  .bookmark[aria-pressed="true"] {
    color: #a85346;
    background: #f3e5df;
  }
  .manifesto {
    background: #edf0e5;
    border: 1px solid #e0e4d5;
    border-radius: 12px;
    margin: 65px 0 70px;
    padding: 45px 60px;
    display: flex;
    align-items: center;
    gap: 44px;
  }
  .manifesto-star {
    font-size: 65px;
    color: #ad8559;
    align-self: flex-start;
  }
  .manifesto h2 {
    margin: 12px 0 16px;
    font-size: 37px;
  }
  .manifesto p {
    font-size: 13px;
    color: var(--muted);
  }
  .manifesto-book {
    margin-left: auto;
    flex-shrink: 0;
    width: 150px;
    height: 190px;
    background: #214e43;
    color: #e8e3c1;
    border-radius: 3px 12px 12px 3px;
    box-shadow:
      7px 6px 0 #d7d4ba,
      9px 8px 0 #476e5f;
    transform: rotate(9deg);
    padding: 27px 25px;
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: 1px;
    border-left: 9px solid #3a6552;
  }
  .manifesto-book em {
    font-size: 29px;
    letter-spacing: 0;
  }
  .manifesto-book span {
    display: block;
    text-align: center;
    font-size: 25px;
    margin-top: 9px;
  }
  .site-footer {
    border-top: 1px solid var(--line);
    background: #f3f2eb;
    padding-top: 48px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 45px;
  }
  .footer-grid .brand {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .footer-grid p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.9;
  }
  .footer-grid h3 {
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.3px;
    font-weight: 600;
    margin-bottom: 16px;
  }
  .footer-grid > div > a:not(.brand) {
    display: block;
    font-size: 11px;
    color: #5e6b60;
    line-height: 2.7;
  }
  .footer-bottom {
    border-top: 1px solid #dddfd2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 20px 0;
    font-size: 9px;
    color: var(--muted);
  }
  .footer-bottom > div {
    display: flex;
    gap: 20px;
  }
  .footer-bottom button {
    font-size: 9px;
    font-weight: 400;
  }
  .consent {
    position: fixed;
    z-index: 80;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(940px, calc(100% - 32px));
    padding: 22px 25px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 4px 45px #0002;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 25px;
  }
  .consent strong {
    font-family: var(--serif);
    font-size: 21px;
  }
  .consent p {
    font-size: 11px;
    line-height: 1.7;
    margin: 7px 0 0;
    color: var(--muted);
  }
  .consent p a {
    text-decoration: underline;
  }
  .consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
  }
  .consent-actions .button {
    font-size: 11px;
    padding: 10px 14px;
    gap: 8px;
  }
  .library-page {
    padding-top: 55px;
    padding-bottom: 80px;
    min-height: 65vh;
  }
  .library-page h1 {
    font-size: 49px;
    margin: 15px 0;
  }
  .library-filters {
    display: flex;
    gap: 15px;
    margin: 32px 0 25px;
  }
  .search-field {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
  }
  .search-field span {
    position: absolute;
    left: 16px;
    font-size: 24px;
  }
  .search-field input {
    padding-left: 45px;
    margin: 0;
  }
  .library-filters select {
    width: 180px;
  }
  .genre-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .genre-tabs a {
    border: 1px solid var(--line);
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 12px;
    background: var(--paper);
  }
  .genre-tabs a.selected {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
  }
  .result-count {
    color: var(--muted);
    font-size: 12px;
    margin: 25px 0;
  }
  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 35px;
    font-size: 13px;
  }
  .story-heading {
    max-width: 900px;
    text-align: center;
    padding-top: 37px;
    padding-bottom: 35px;
  }
  .story-heading > .text-link {
    display: block;
    font-size: 11px;
    margin-bottom: 25px;
  }
  .story-heading .meta {
    justify-content: center;
  }
  .story-heading h1 {
    font-size: clamp(37px, 4.5vw, 60px);
    margin: 22px auto;
    max-width: 820px;
  }
  .story-deck {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto 25px;
    line-height: 1.6;
  }
  .story-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
    font-size: 12px;
  }
  .author-avatar {
    background: #e5e9da;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 20px;
  }
  .story-byline small {
    display: block;
    font-size: 10px;
    margin-top: 3px;
  }
  .story-hero {
    max-width: 1050px;
    height: 370px;
    border-radius: 12px;
    overflow: hidden;
  }
  .story-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .reading-layout {
    display: grid;
    grid-template-columns: 160px minmax(0, 680px);
    gap: 55px;
    max-width: 1050px;
    padding-top: 45px;
    align-items: start;
  }
  .reading-tools {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .reading-tools .eyebrow {
    font-size: 9px;
    margin-bottom: 9px;
  }
  .tool-button {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    text-align: left;
    background: var(--paper);
    font-size: 11px;
  }
  .tool-button:hover {
    background: var(--soft);
  }
  .font-tools {
    display: flex;
    gap: 8px;
  }
  .font-tools .tool-button {
    flex: 1;
    text-align: center;
  }
  .story-body {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.9;
    letter-spacing: 0.05px;
    min-width: 0;
  }
  .story-body.font-small {
    font-size: 18px;
  }
  .story-body.font-large {
    font-size: 22px;
  }
  .story-body.font-xlarge {
    font-size: 24px;
  }
  .story-body > p {
    margin-bottom: 26px;
    white-space: pre-line;
    overflow-wrap: anywhere;
  }
  .first-paragraph:first-letter {
    float: left;
    font-size: 70px;
    line-height: 1;
    padding-right: 10px;
    padding-top: 6px;
    color: var(--accent);
  }
  .reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 70;
    pointer-events: none;
  }
  .reading-progress span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
  }
  .story-end {
    text-align: center;
    padding: 25px 0 30px;
  }
  .story-end > span {
    color: var(--accent);
    font-size: 34px;
  }
  .story-end p {
    font-style: italic;
    font-size: 28px;
    margin: 7px 0;
  }
  .story-end small {
    font-family: Arial, sans-serif;
  }
  .end-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 35px;
  }
  .comments-section {
    border-top: 1px solid var(--line);
    padding-top: 35px;
    margin-top: 30px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
  }
  .comments-section h2 {
    font-size: 30px;
    margin-bottom: 12px;
  }
  .reader-comment {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
  }
  .reader-comment time {
    float: right;
    color: var(--muted);
    font-size: 11px;
  }
  .reader-comment p {
    white-space: pre-wrap;
    margin: 10px 0 0;
  }
  .related-section {
    padding: 65px 0 75px;
  }
  .narrow-page {
    max-width: 760px;
    padding-top: 55px;
    padding-bottom: 80px;
    min-height: 60vh;
  }
  .narrow-page h1 {
    font-size: 48px;
    margin: 16px 0 25px;
  }
  .narrow-page > .panel {
    margin: 30px 0;
  }
  .prose {
    font-size: 16px;
    line-height: 1.85;
  }
  .prose h2 {
    font-size: 28px;
    margin: 35px 0 15px;
  }
  .prose h3 {
    font-size: 23px;
    margin: 25px 0 12px;
  }
  .prose p {
    margin-bottom: 20px;
  }
  .prose a:not(.button) {
    text-decoration: underline;
  }
  .prose li {
    margin-bottom: 10px;
  }
  .evening {
    --bg: #1c2925;
    --paper: #23332c;
    --ink: #e8e6d6;
    --muted: #b7c1b3;
    --line: #405046;
    --soft: #304238;
  }
  .evening .site-footer {
    background: #203028;
  }
  .evening .announcement {
    background: #102d27;
  }
  .evening .brand-icon {
    background: #d5dabb;
    color: #203d33;
  }
  .evening .author-avatar,
  .evening .pill {
    background: #40533c;
    color: #eef0db;
  }
  .evening .tool-button {
    color: var(--ink);
  }
}
@layer responsive {
  @media (min-width: 1500px) {
    .home-intro {
      padding-top: 70px;
      padding-bottom: 55px;
    }
  }
  @media (max-width: 1100px) {
    .site-header,
    .container {
      width: calc(100% - 48px);
    }
    .site-header nav {
      gap: 18px;
    }
    .brand {
      font-size: 22px;
    }
    .header-surprise {
      display: none;
    }
    .featured-copy {
      padding: 30px;
    }
    .mood-grid {
      gap: 8px;
    }
    .mood-card {
      padding: 20px 13px;
    }
    .mood-card h3 {
      font-size: 16px;
    }
    .mood-card p {
      font-size: 9px;
    }
    .card-content {
      padding: 18px;
    }
    .card-content h3 {
      font-size: 23px;
    }
    .reading-layout {
      gap: 30px;
      grid-template-columns: 140px minmax(0, 1fr);
    }
    .manifesto {
      padding: 35px;
    }
    .intro-doodle {
      right: 5%;
    }
  }
  @media (max-width: 760px) {
    .site-header {
      height: auto;
      min-height: 94px;
      flex-wrap: wrap;
      padding: 18px 0 13px;
      gap: 17px;
    }
    .site-header nav {
      justify-content: space-between;
      width: 100%;
      gap: 10px;
      font-size: 11px;
    }
    .site-header .brand {
      font-size: 25px;
    }
    .announcement {
      font-size: 8px;
    }
    .home-intro {
      padding-top: 38px;
      padding-bottom: 33px;
    }
    .home-intro h1 {
      font-size: 49px;
    }
    .home-intro p {
      font-size: 12px;
    }
    .intro-doodle {
      font-size: 80px;
      right: 0;
      top: 44px;
    }
    .intro-actions {
      align-items: flex-start;
      flex-direction: column;
      gap: 12px;
    }
    .handwritten {
      font-size: 13px;
    }
    .featured-story {
      grid-template-columns: 1fr;
    }
    .featured-art {
      min-height: 0;
      height: 280px;
    }
    .featured-copy {
      padding: 28px;
    }
    .featured-copy .eyebrow {
      margin-bottom: 12px;
    }
    .featured-copy h2 {
      font-size: 32px;
    }
    .featured-copy > p {
      font-size: 13px;
    }
    .featured-stamp {
      width: 76px;
      height: 76px;
      font-size: 9px;
      left: 22px;
      bottom: 20px;
    }
    .section-heading {
      align-items: flex-start;
      gap: 13px;
      flex-direction: column;
    }
    .section-heading h2 {
      font-size: 31px;
    }
    .browse-section,
    .latest-section {
      padding-top: 42px;
    }
    .mood-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }
    .mood-card {
      padding: 20px;
    }
    .mood-card:last-child {
      grid-column: span 2;
      display: grid;
      grid-template-columns: 40px 1fr;
      align-items: center;
      column-gap: 10px;
    }
    .mood-card:last-child .mood-icon {
      grid-row: span 2;
      margin: 0;
    }
    .mood-card h3 {
      font-size: 18px;
    }
    .mood-card p {
      font-size: 11px;
    }
    .story-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    .card-content {
      padding: 15px;
    }
    .card-content h3 {
      font-size: 23px;
    }
    .card-content .eyebrow {
      font-size: 7px;
      letter-spacing: 0.5px;
    }
    .card-content > p {
      font-size: 11px;
    }
    .card-bottom {
      gap: 5px;
    }
    .card-bottom .text-link {
      font-size: 10px;
    }
    .card-bottom .text-link span {
      padding-left: 2px;
    }
    .manifesto {
      padding: 30px;
      margin: 45px 0;
      gap: 20px;
    }
    .manifesto-star {
      display: none;
    }
    .manifesto h2 {
      font-size: 29px;
    }
    .manifesto-book {
      width: 110px;
      height: 151px;
      font-size: 18px;
      padding: 20px 15px;
    }
    .manifesto-book em {
      font-size: 24px;
    }
    .manifesto-book span {
      font-size: 20px;
    }
    .manifesto p {
      font-size: 12px;
    }
    .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 30px;
    }
    .footer-grid > div:first-child {
      grid-column: span 2;
    }
    .footer-bottom {
      align-items: flex-start;
      flex-direction: column;
      gap: 10px;
    }
    .consent {
      flex-direction: column;
      align-items: stretch;
      gap: 16px;
      padding: 20px;
    }
    .consent-actions .button {
      flex: 1;
    }
    .library-page h1 {
      font-size: 38px;
    }
    .library-filters {
      flex-wrap: wrap;
    }
    .search-field {
      flex-basis: 100%;
    }
    .library-filters select {
      flex: 1;
      width: auto;
    }
    .lead {
      font-size: 16px;
    }
    .story-heading {
      padding-top: 26px;
    }
    .story-heading h1 {
      font-size: 39px;
    }
    .story-deck {
      font-size: 18px;
    }
    .story-hero {
      height: 260px;
    }
    .reading-layout {
      grid-template-columns: 1fr;
      padding-top: 20px;
      gap: 26px;
    }
    .reading-tools {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 7px;
    }
    .reading-tools .eyebrow {
      display: none;
    }
    .tool-button {
      font-size: 10px;
      padding: 9px;
    }
    .font-tools {
      gap: 5px;
    }
    .story-body {
      font-size: 19px;
      line-height: 1.9;
    }
    .narrow-page h1 {
      font-size: 39px;
    }
    .narrow-page {
      padding-top: 38px;
    }
    .form-grid {
      grid-template-columns: 1fr;
    }
    .panel {
      padding: 22px;
    }
    .desktop-only {
      display: none;
    }
  }
  @media (max-width: 460px) {
    .container,
    .site-header {
      width: calc(100% - 36px);
    }
    .home-intro h1 {
      font-size: 42px;
    }
    .intro-doodle {
      font-size: 58px;
      top: 59px;
      right: -5px;
    }
    .home-intro p br {
      display: none;
    }
    .story-grid {
      grid-template-columns: 1fr;
      gap: 22px;
    }
    .card-cover {
      aspect-ratio: 1.75;
    }
    .card-content {
      padding: 22px;
    }
    .card-content h3 {
      font-size: 28px;
    }
    .card-content > p {
      font-size: 13px;
    }
    .card-content .eyebrow {
      font-size: 9px;
    }
    .card-bottom .text-link {
      font-size: 12px;
    }
    .manifesto {
      padding: 26px;
      position: relative;
      overflow: hidden;
    }
    .manifesto-book {
      display: none;
    }
    .mood-card {
      padding: 18px 14px;
    }
    .mood-card h3 {
      font-size: 17px;
    }
    .featured-copy h2 {
      font-size: 30px;
    }
    .featured-copy {
      padding: 25px;
    }
    .featured-art {
      height: 240px;
    }
    .brand small {
      font-size: 7px;
    }
    .story-heading h1 {
      font-size: 34px;
    }
    .story-hero {
      height: 220px;
    }
    .story-byline small {
      font-size: 9px;
    }
    .story-byline {
      font-size: 11px;
    }
    .narrow-page h1 {
      font-size: 35px;
    }
    .library-page h1 {
      font-size: 35px;
    }
    .genre-tabs a {
      padding: 6px 12px;
      font-size: 11px;
    }
    .consent p {
      font-size: 11px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
      transition: none !important;
      animation: none !important;
    }
  }
}

/* Standard system typography for English and Vietnamese. */
h1,
h2,
h3 {
  letter-spacing: normal;
  line-height: 1.3;
  font-weight: 600;
}
