@charset "UTF-8";
.public-story-card {
  display: block;
  min-width: 0;
  padding: 12px;
  border: 1px solid #ddd8cb;
  border-radius: 10px;
  background: #fffdf8;
  font-family: Lato, sans-serif;
}

.public-story-link {
  display: grid;
  gap: 12px;
  height: 100%;
  color: var(--home-navy);
  text-decoration: none;
}

.public-story-art {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 6px;
}

.public-story-copy {
  min-width: 0;
}
.public-story-copy h3 {
  margin: 0 0 6px;
  font: 500 1.2rem/1.25 var(--public-title-font, Georgia), serif;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.public-story-copy .english-title {
  margin: 0 0 10px;
  color: #526075;
  font-size: 0.85rem;
}

.public-story-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  color: #526075;
  font-size: 0.75rem;
}
.public-story-meta .level-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  background: #e8ede2;
  color: #253722;
  font: 400 0.75rem/1.5 Lato, sans-serif;
  white-space: nowrap;
}

.public-story-description {
  grid-column: 1/-1;
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.public-access {
  margin: 0;
  color: #536548;
  font-size: 0.75rem;
  line-height: 1.5;
}

.public-story-link > .public-story-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--home-navy);
  border-radius: 6px;
  background: var(--home-navy);
  color: #fffdf8;
  font: 700 0.9rem/1.4 Lato, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.public-story-link > .public-story-action:hover {
  background: #25355e;
}
.public-story-link > .public-story-action {
  justify-self: end;
  align-self: end;
  width: auto;
  gap: 8px;
  margin: 4px 0 0;
  padding: 8px 14px;
  background: transparent;
  color: var(--home-navy);
  font-size: 0.875rem;
  white-space: nowrap;
}
.public-story-link > .public-story-action:hover {
  background: #f1eee4;
  transform: none;
  filter: none;
}

.public-story-link:hover > .public-story-action {
  background: #f1eee4;
}

.public-story-card--compact .public-story-link {
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: start;
}
.public-story-card--compact .public-story-link .public-story-art {
  height: 90px;
}
.public-story-card--compact .public-story-link .public-story-action {
  grid-column: 1/-1;
}

@media (max-width: 700px) {
  .public-story-link {
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: start;
  }
  .public-story-art {
    height: 90px;
  }
  .public-story-action {
    grid-column: 1/-1;
  }
}
[data-finder-reading][aria-busy=true],
[data-continue-reading][aria-busy=true] {
  cursor: progress;
  opacity: 0.75;
}

.public-auth-error {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #933;
}
.public-auth-error p {
  margin: 0 0 8px;
}
.public-auth-error a {
  color: #287458;
  text-decoration: underline;
}

@font-face {
  font-family: "Public Reading Lora";
  src: url("/book-finder/assets/lora.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("/book-finder/assets/lato.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --home-navy: #111b3d;
  --home-cream: #f8f4e9;
  --home-gold: #f5d65b;
  color-scheme: light;
  --ink: #111b3d;
  --muted: #526075;
  --paper: #f8f4e9;
  --gold: #f5d65b;
  --line: #dedecf;
  --white: #fffdf7;
  --public-title-font: 'Public Reading Lora';
  --reading-font: 'Public Reading Lora', Georgia, 'Times New Roman', serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  min-width: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
  cursor: pointer;
}

a,
button,
summary {
  -webkit-tap-highlight-color: rgba(245, 214, 91, 0.3333333333);
}

:focus-visible {
  outline: 3px solid #465caf;
  outline-offset: 5px;
  border-radius: 2px;
}

p {
  margin: 0 0 1.25rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.wrapper {
  width: min(1184px, 100% - 64px);
  margin-inline: auto;
}
@media (max-width: 600px) {
  .wrapper {
    width: calc(100% - 40px);
  }
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  flex: none;
  justify-content: center;
  width: 100%;
  padding: 20px 0;
  background: var(--home-navy);
}
@media (max-width: 600px) {
  .site-header {
    padding: 14px 0;
  }
}
.site-header {
  font-family: Lato, sans-serif;
  font-size: 16px;
  line-height: normal;
  font-weight: 400;
  letter-spacing: normal;
  font-synthesis: weight style small-caps;
  font-family: Arial, sans-serif;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header-inner {
  display: flex;
  flex: 1;
  flex-direction: row;
  width: 100%;
  max-width: 1248px;
  padding: 0 32px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  overflow: visible;
}
@media (max-width: 600px) {
  .header-inner {
    padding: 0 20px;
  }
}

.header-auth-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-sign-in {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d8dce8;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.header-sign-in:hover {
  background: rgba(255, 255, 255, 0.0941176471);
  border-color: #fff;
}
.header-sign-in:focus-visible {
  outline: 2px solid var(--home-gold);
  outline-offset: 4px;
}

.header-auth-actions [hidden] {
  display: none;
}

.site-header .header-action {
  min-height: 44px;
  flex-shrink: 0;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.031372549);
  border: 1px solid #d8dce8;
  border-radius: 6px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.site-header .header-action:focus-visible {
  outline: 2px solid var(--home-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--home-navy), 0 0 0 5px var(--home-gold);
}
.site-header .header-action:hover {
  background: rgba(255, 255, 255, 0.0941176471);
  border-color: #fff;
}
.site-header .header-action:active {
  background: rgba(255, 255, 255, 0.1411764706);
}
.site-header .header-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  text-decoration: none;
}

.site-header .header-action[data-public-auth=sign-up] {
  color: var(--home-navy);
  background: var(--home-gold);
  border-color: var(--home-gold);
}
.site-header .header-action[data-public-auth=sign-up]:hover {
  background: #ffe58a;
  border-color: #ffe58a;
}
.site-header .header-action[data-public-auth=sign-up]:active {
  background: #e9c447;
  border-color: #e9c447;
}

.header-action-mobile {
  display: none;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-header .brand img {
  width: 58px;
  height: auto;
}
.site-header .brand .brand-label {
  color: var(--home-gold);
  font-weight: bold;
  font-size: 1.8rem;
  line-height: normal;
  letter-spacing: -0.03em;
}
.site-header .brand:focus-visible {
  outline: 2px solid var(--home-gold);
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .site-header .brand {
    gap: 8px;
  }
  .site-header .brand img {
    width: 40px;
  }
  .site-header .brand .brand-label {
    font-size: 1.3rem;
  }
}
.site-header .brand img {
  display: block;
}

.site-header .brand .brand-label {
  font: 700 28.8px/1.2 Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: -0.08em;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .site-header .brand .brand-label {
    font-size: 20.8px;
  }
}

.header-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-left: auto;
}
.header-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
}
.header-links a:hover {
  color: var(--home-gold);
}
.header-links a:focus-visible {
  outline: 2px solid var(--home-gold);
  outline-offset: 4px;
}
.header-links a[aria-current] {
  color: var(--home-gold);
  box-shadow: 0 3px var(--home-gold);
}

@media (max-width: 760px) {
  .header-links {
    gap: 8px 16px;
  }
  .header-links a {
    font-size: 13px;
  }
  .site-header .header-action {
    padding: 9px 12px;
  }
}
@media (max-width: 600px) {
  .site-header {
    padding: 12px 0 8px;
  }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }
  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .site-header .brand img {
    width: 36px;
  }
  .header-links {
    grid-column: 1/-1;
    grid-row: 2;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .header-links a {
    font-size: 14px;
  }
  .header-auth-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }
  .header-sign-in {
    padding: 8px 6px;
    font-size: 13px;
  }
  .site-header .header-action {
    padding: 8px 10px;
    font-size: 13px;
  }
  .header-action-desktop {
    display: none;
  }
  .header-action-mobile {
    display: inline;
  }
}
@media (max-width: 360px) {
  .header-inner {
    column-gap: 8px;
  }
  .site-header .brand {
    gap: 6px;
  }
  .site-header .brand img {
    width: 24px;
  }
  .header-sign-in {
    font-size: 12px;
  }
  .site-header .header-action {
    padding-inline: 8px;
  }
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  transition: background 150ms, transform 150ms;
}

.button:hover {
  background: #25355e;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.eyebrow {
  display: block;
  margin: 0 0 1.25rem;
  font-size: 0.73rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 0.28rem 0.75rem;
  border: 1px solid #d6d7c9;
  border-radius: 999px;
  color: #44506a;
  font-size: 0.78rem;
  font-weight: 550;
}

.hero {
  padding: 28px 0 24px;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 600px) {
  .hero {
    padding: 24px 0 20px;
  }
}

.hero .eyebrow {
  display: block;
  margin: 0 0 12px;
  font-family: Lato, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  font-synthesis: weight;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #82601e;
}

.hero h1 {
  margin: 0;
  font-family: var(--reading-font);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  font-synthesis: none;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--home-navy);
  text-wrap: balance;
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
}
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.875rem;
  }
}

.hero-tagline {
  margin: 12px 0 0;
  max-width: 760px;
  font-family: Lato, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  color: #526075;
}
@media (max-width: 600px) {
  .hero-tagline {
    font-size: 1rem;
  }
}

.hero .lead {
  margin: 12px 0 0;
  max-width: 760px;
  font-family: Lato, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  color: #526075;
}
@media (max-width: 600px) {
  .hero .lead {
    font-size: 1rem;
  }
}
.hero .lead {
  margin-top: 4px;
  font-size: 1rem;
}

.hero .facts {
  gap: 10px 18px;
  align-items: center;
  margin-top: 14px;
}

.hero .facts li {
  border: 0;
  background: #ffecaf;
  color: var(--ink);
}

.hero .facts .assurance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
}

.assurance-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #89621c;
  color: var(--white);
  font-size: 12px;
}

.stories-section {
  padding-bottom: 24px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.story-card {
  display: grid;
  grid-template-rows: 140px 1fr auto;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d5d7cb;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(17, 27, 61, 0.0196078431);
  transition: transform 180ms, box-shadow 180ms, border-color 180ms;
}

.story-card:hover {
  transform: translateY(-2px);
  border-color: #97a08b;
  box-shadow: 0 6px 18px rgba(17, 27, 61, 0.0470588235);
}

.story-cover {
  overflow: hidden;
  border-radius: 7px;
}

.cover-fantasy {
  background: #f1dc8c;
}

.cover-comedy {
  background: #cbdace;
}

.cover-mystery {
  background: #e5c3ac;
}

.story-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card-copy {
  min-width: 0;
  padding: 12px 0;
}

.story-meta {
  margin-bottom: 6px;
  color: #82601e;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}

.story-card-copy h3 {
  margin-bottom: 4px;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.english-title {
  color: var(--muted);
  font-size: 0.9rem;
}

.story-card-copy .english-title {
  margin-bottom: 8px;
  line-height: 1.4;
}

.description {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.read-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 650;
}

.story-card:hover .read-link {
  background: #25355e;
}

.reading-guide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.reading-guide h2 {
  margin-bottom: 4px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.reading-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.guide-copy p:last-child {
  margin-top: 2px;
  font-size: 0.8rem;
}

.meaning-preview {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.sample-word {
  color: #82601e;
  text-decoration: underline;
  text-decoration-color: #b99130;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.meaning-preview .sample-meaning {
  width: fit-content;
  margin: 7px auto 0;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8rem;
  box-shadow: 0 2px 4px rgba(17, 27, 61, 0.031372549);
}

.collection-bottom {
  display: grid;
  grid-template-columns: minmax(0, 820px) auto;
  gap: 36px;
}

.collection-page .faq h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.collection-page .faq summary {
  min-height: 48px;
  padding-block: 10px;
  font-size: 0.875rem;
}

.collection-continue {
  padding-top: 58px;
  font-size: 0.875rem;
}

.collection-continue p {
  margin-bottom: 4px;
}

.collection-continue a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration-color: #b99130;
  text-decoration-thickness: 2px;
}

.faq {
  max-width: 820px;
  padding: 30px 0 64px;
}

.faq h2 {
  margin-bottom: 1.6rem;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 62px;
  padding: 14px 0;
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 400;
}

.faq details[open] > summary::after {
  content: "−";
}

.faq details > p,
.faq details > div {
  max-width: 680px;
  padding-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.story-heading {
  max-width: 820px;
  padding: 40px 0 48px;
}

.story-heading h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.45rem, 5.4vw, 4.05rem);
  line-height: 1.09;
  letter-spacing: -0.06em;
}

.story-heading .english-title {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.story-heading .lead {
  max-width: 620px;
}

.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 240px);
  justify-content: space-between;
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}

.story-text {
  min-width: 0;
  font-family: var(--reading-font);
  font-size: 1.2rem;
  line-height: 1.9;
  color: #232d40;
}

.reading-hint,
.reader-tools {
  display: none;
}

.story-text p {
  margin-bottom: 1.55rem;
}

.reading-aside {
  position: sticky;
  top: 2rem;
  padding: 21px 22px;
  border: 1px solid #dbddce;
  border-radius: 8px;
  background: #f0efe2;
  font-size: 0.84rem;
}

.reading-aside h2,
.reading-aside h3 {
  margin-bottom: 0.8rem;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.reading-notes {
  color: var(--muted);
}

.reading-aside p {
  margin-bottom: 0.8rem;
}

.reading-aside a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.glossary-word {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #d7b434;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: auto;
  border-radius: 2px;
}

.glossary-word:hover,
.glossary-word:focus-visible {
  background: rgba(245, 214, 91, 0.3333333333);
}

.glossary {
  max-width: 820px;
  margin-top: 48px;
  padding: 36px 0 25px;
  border-top: 1px solid var(--line);
}

.glossary h2 {
  margin-bottom: 1rem;
}

.glossary > p {
  color: var(--muted);
  font-size: 0.9rem;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin: 0;
}

.glossary-list > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.glossary-list dt {
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.glossary-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.translation {
  max-width: 820px;
  margin: 20px 0 56px;
  border: 1px solid #d9dbcf;
  border-radius: 8px;
  background: var(--white);
}

.translation > summary {
  padding: 21px 24px;
  min-height: 64px;
  font-size: 1rem;
  font-weight: 650;
}

.translation > summary:hover {
  background: #f1efe3;
}

.translation-text {
  padding: 6px 28px 20px;
  font-family: var(--reading-font);
  color: #30394a;
  font-size: 1.08rem;
  line-height: 1.85;
}

.translation-text p {
  margin-bottom: 1.3rem;
}

.continue-reading {
  margin: 12px 0 44px;
  padding: 40px 42px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
}

.continue-reading .eyebrow {
  color: var(--gold);
}

.continue-reading h2 {
  max-width: 680px;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.3vw, 2.55rem);
}

.continue-reading > p {
  max-width: 600px;
  color: #d3d7e1;
  font-size: 1rem;
}

.continue-reading .button {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.continue-reading .button:hover {
  background: #ffe280;
}

.continue-reading .cta-note {
  margin: 1rem 0 0;
  color: #ccd3e2;
  font-size: 0.8rem;
}

.more-stories {
  margin: 0 0 54px;
}

.more-stories h2,
.more-stories h3 {
  margin-bottom: 0.75rem;
}

.more-stories a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer {
  font-family: Lato, sans-serif;
  font-size: 16px;
  line-height: normal;
  font-weight: 400;
  letter-spacing: normal;
  font-synthesis: weight style small-caps;
  display: flex;
  justify-content: center;
  padding: 32px 24px;
  border-top: 1px solid var(--home-gold, #f5d65b);
  background: var(--home-navy, #111b3d);
}
@media (max-width: 700px) {
  .site-footer {
    padding: 28px 20px;
  }
}

.footer-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: 1184px;
  overflow: visible;
  padding: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    gap: 18px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-label {
  margin: 0;
  color: var(--home-gold, #f5d65b);
  font-size: 1.4rem;
  line-height: normal;
  letter-spacing: -0.025em;
}

.footer-second-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
@media (max-width: 700px) {
  .footer-second-column {
    width: 100%;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}
@media (max-width: 700px) {
  .footer-links {
    justify-content: center;
    gap: 4px 20px;
  }
}

.footer-links a,
.footer-links button {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--home-cream, #f8f4e9);
  font-size: 0.8125rem;
  text-decoration: none;
  cursor: pointer;
}
.footer-links a > :nth-child(2),
.footer-links button > :nth-child(2) {
  margin-left: 5px;
}
.footer-links a:hover,
.footer-links button:hover {
  color: var(--home-gold, #f5d65b);
  text-decoration: underline;
}
.footer-links a:focus-visible,
.footer-links button:focus-visible {
  outline: 2px solid var(--home-gold, #f5d65b);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
}

.footer-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
  flex-shrink: 0;
  font-size: 1rem;
}

.footer-made-by {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .footer-made-by {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
  }
}

.footer-made-by-text {
  color: #cbd0df;
  font-size: 0.75rem;
}

.footer-flags {
  display: flex;
}
.footer-flags img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.footer-flags img:not(:first-child) {
  margin-left: 6px;
}

.glossary-list dt:target {
  width: fit-content;
  background: rgba(245, 214, 91, 0.4);
  outline: 5px solid rgba(245, 214, 91, 0.4);
  border-radius: 2px;
}

#word-help,
#reading-help {
  width: min(380px, 100% - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 30px;
  overflow-y: auto;
  border: 1px solid #d8dccb;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(17, 27, 61, 0.1490196078);
}

#word-help::backdrop,
#reading-help::backdrop {
  background: rgba(17, 27, 61, 0.3490196078);
}

#reading-help {
  width: min(680px, 100% - 24px);
  padding: 0;
}

#reading-help[open] {
  display: flex;
  flex-direction: column;
}

.reading-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.reading-help-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.reading-help-header .dialog-close {
  flex-shrink: 0;
  margin: 0;
}

.reading-help-content {
  padding: 12px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.reading-help-content .translation-text {
  padding: 0;
}

.reading-help-content .glossary-list {
  grid-template-columns: minmax(0, 1fr);
}

.dialog-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  margin: -15px -15px 4px auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.5rem;
}

.dialog-close:hover {
  background: #eeeede;
}

#word-help-title {
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}

#word-help-meaning {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

#analytics-consent h2 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

#analytics-consent {
  position: fixed;
  z-index: 10;
  inset-inline: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(820px, 100% - 40px);
  max-height: min(36dvh, 260px);
  margin-inline: auto;
  padding: 18px 20px;
  overflow-y: auto;
  border: 1px solid #d0d4c9;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 32px rgba(17, 27, 61, 0.1019607843);
}

.consent-copy {
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.consent-copy p {
  margin: 0;
}

.consent-copy a {
  font-weight: 600;
}

.consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.consent-actions button {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}

.consent-actions button:first-child {
  background: transparent;
  color: var(--ink);
}

.consent-actions button:hover {
  box-shadow: inset 0 0 0 1px currentColor;
}

@media (max-width: 960px) {
  .story-grid {
    gap: 14px;
  }
  .reading-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 35px;
  }
  .reading-aside {
    padding: 18px;
  }
}
@media (max-width: 700px) {
  .hero-tagline {
    display: none;
  }
  .hero .lead {
    margin-top: 12px;
  }
  .hero .facts {
    gap: 10px 16px;
    margin-top: 14px;
  }
  .hero .facts li {
    font-size: 0.75rem;
  }
  .section-heading h2 {
    font-size: 1.4rem;
  }
  .section-heading {
    display: block;
    margin-bottom: 12px;
  }
  .section-heading p {
    margin-top: 4px;
  }
  .story-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .story-card {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 12px;
  }
  .story-cover {
    width: 72px;
    height: 80px;
  }
  .story-card-copy {
    padding: 0;
  }
  .story-meta {
    margin-bottom: 5px;
    font-size: 0.6rem;
    letter-spacing: 0.055em;
  }
  .story-card-copy h3 {
    font-size: 1rem;
    line-height: 1.25;
  }
  .story-card-copy .english-title {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  .description {
    font-size: 0.8rem;
  }
  .read-link {
    grid-column: 1/-1;
  }
  .reading-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }
  .meaning-preview {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .collection-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-bottom: 32px;
  }
  .faq {
    padding: 24px 0 0;
  }
  .collection-continue {
    padding-top: 24px;
  }
  .breadcrumb {
    margin-top: 17px;
  }
  .story-heading {
    padding: 28px 0 32px;
  }
  .story-heading h1 {
    font-size: clamp(2.3rem, 8.5vw, 3.5rem);
  }
  .reading-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
  }
  .story-text {
    font-size: 1.13rem;
    line-height: 1.86;
  }
  .reading-hint {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
  }
  .reader-tools {
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    display: flex;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(17, 27, 61, 0.0509803922);
  }
  .reader-tools a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
  }
  body[data-story-slug]:not([data-story-slug=""]) {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  .story-text p {
    margin-bottom: 1.4rem;
  }
  .reading-aside {
    position: static;
    display: block;
    padding: 20px 22px;
  }
  .reading-aside a {
    display: inline-flex;
    margin-right: 20px;
  }
  .glossary {
    margin-top: 30px;
    padding-top: 28px;
  }
  .glossary-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .translation {
    margin-bottom: 36px;
  }
  .translation > summary {
    padding: 18px 20px;
  }
  .translation-text {
    padding: 5px 20px 14px;
    font-size: 1rem;
  }
  .continue-reading {
    margin-bottom: 30px;
    padding: 30px 25px;
  }
  .continue-reading .button {
    width: 100%;
  }
  .more-stories {
    margin-bottom: 34px;
  }
  #analytics-consent {
    inset-inline: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-height: min(38dvh, 245px);
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
  }
  .consent-actions {
    width: 100%;
  }
  .consent-actions button {
    flex: 1;
  }
}
@media (max-width: 360px) {
  .story-heading h1 {
    font-size: 2.15rem;
  }
  .continue-reading {
    padding-inline: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.save-story {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 700;
}

.public-story-card {
  display: block;
}

.french-page .hero h1 {
  max-width: 900px;
}

.practice-guide,
.practice-questions,
.resource-panel,
.card-preview,
.reading-links {
  margin: 3rem 0;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.practice-guide h2,
.practice-questions h2,
.resource-panel h2,
.card-preview h2,
.reading-links h2 {
  margin-bottom: 1rem;
}

.practice-guide li,
.practice-questions li {
  padding-left: 0.3rem;
  margin-bottom: 1.25rem;
}

.practice-questions ol {
  padding-left: 1.25rem;
}

.practice-questions details,
.card-preview details {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

.practice-questions summary,
.card-preview summary {
  cursor: pointer;
  min-height: 44px;
  padding: 0.7rem 0;
  font-weight: 650;
}

.question-answer {
  font-weight: 650;
}

.question-explanation,
.resource-note,
.source-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1rem 0;
}

.download-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
}

.card-preview article {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.card-preview article > p[lang=fr] {
  font-family: var(--reading-font);
  font-size: 1.1rem;
}

.source-note {
  max-width: 850px;
  margin: 2rem 0 4rem;
}

@media (max-width: 640px) {
  .practice-guide,
  .practice-questions,
  .resource-panel,
  .card-preview,
  .reading-links {
    margin: 2rem 0;
    padding: 1.2rem;
  }
  .download-links {
    flex-direction: column;
    gap: 0.3rem;
  }
}