/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #3B6FE8;
  --primary-light: #EEF3FF;
  --text: #1a1a2e;
  --text-muted: #666;
  --border: #e0e0e0;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --card-hover: 0 6px 20px rgba(59,111,232,0.15);
  --radius: 12px;
  --bg: #fff;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  user-select: none;
  -webkit-user-select: none;
}

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

img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* ===== Header ===== */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  flex: 0 0 auto;
}

.logo span { color: var(--text); }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  border-right: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:first-child {
  border-left: 1px solid var(--border);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary);
  background: var(--primary-light);
  outline: none;
}

.site-search {
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 300px;
}

.site-search input {
  width: 100%;
  min-width: 150px;
  height: 34px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.site-search input:focus {
  border-color: var(--primary);
  outline: none;
}

.site-search button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.site-search button:hover,
.site-search button:focus-visible {
  background: var(--primary);
  color: #fff;
  outline: none;
}

/* ===== Main ===== */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ===== Page title ===== */
.page-title {
  margin-bottom: 32px;
}

.page-title h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.page-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-title-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.page-title-icon-fallback {
  font-size: 1.7rem;
  line-height: 1;
}

/* ===== Hero (홈) ===== */
.page-actions {
  display: flex;
  align-items: center;
  margin: 12px 0 18px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.back-button:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--card-hover);
}

.back-icon {
  font-size: 1.35rem;
  line-height: 0.8;
}

.hero {
  text-align: center;
  padding: 60px 0 48px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.hero h1 em {
  color: var(--primary);
  font-style: normal;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.hero-use-button {
  min-width: 118px;
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid #d81b60;
  border-radius: 8px;
  background: #fff;
  color: #d81b60;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hero-use-button:hover,
.hero-use-button:focus-visible {
  background: #dff4ff;
  border-color: #73c7ee;
  color: #0f172a;
  box-shadow: var(--card-hover);
  transform: translateY(-1px);
  outline: none;
}

.use-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.use-modal.is-open {
  display: flex;
}

.use-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 20, 38, 0.44);
}

.use-modal-card {
  position: relative;
  width: min(960px, 100%);
  height: min(820px, calc(100vh - 48px));
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  overflow: hidden;
}

.use-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.use-modal-close:hover,
.use-modal-close:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  outline: none;
}

.use-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

body.use-modal-open {
  overflow: hidden;
}

/* ===== Theme Grid (홈 테마 목록) ===== */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.theme-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover);
  border-color: var(--primary);
}

.theme-card .icon { font-size: 2.5rem; margin-bottom: 10px; }
.theme-card .name { font-size: 1.2rem; font-weight: 700; }
.theme-card .kor { color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }
.theme-card .count {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--primary);
  background: var(--primary-light);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
}

/* ===== Word Grid (테마 페이지) ===== */
.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.word-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: block;
}

.word-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover);
  border-color: var(--primary);
}

.word-card .card-word {
  background: #fff;
  padding: 10px 12px 6px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.word-card .card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 12px;
  background: #fff;
  display: block;
}

.word-card .card-img.hidden { display: none; }

.sensitive-media {
  position: relative;
  width: 100%;
}

.word-detail-img-wrap > .sensitive-media {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.word-card .sensitive-media {
  aspect-ratio: 1;
  background: #fff;
}

.sensitive-media .is-sensitive {
  filter: blur(18px);
  opacity: 0.2;
  pointer-events: none;
}

.sensitive-media.is-revealed .is-sensitive {
  filter: none;
  opacity: 1;
}

.sensitive-reveal-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  min-width: 104px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1.5px solid #d81b60;
  border-radius: 8px;
  background: #fff;
  color: #d81b60;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
}

.sensitive-reveal-button:hover,
.sensitive-reveal-button:focus-visible {
  background: #dff4ff;
  border-color: #73c7ee;
  color: var(--text);
  outline: none;
}

.sensitive-media.is-revealed .sensitive-reveal-button {
  display: none;
}

.search-card-meaning {
  padding: 0 10px 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
  min-height: 34px;
}

.word-card .card-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--bg);
  color: #ccc;
  letter-spacing: -1px;
}

.word-card .card-img-placeholder::after {
  content: "📷";
  opacity: 0.35;
  filter: grayscale(1);
}

.word-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.word-title-row h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.word-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  flex-shrink: 0;
}

.copy-word-button,
.pronounce-word-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(59,111,232,0.22);
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.copy-word-button:hover,
.copy-word-button:focus-visible,
.pronounce-word-button:hover,
.pronounce-word-button:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  outline: none;
}

.copy-word-button.is-copied {
  background: #e9f8ef;
  border-color: #8bd2a5;
  color: #14783c;
}

.pronounce-word-button.is-playing {
  background: #fff4e5;
  border-color: #f2b15c;
  color: #9a5800;
}

.word-card .card-kor {
  padding: 8px 12px 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Word Detail Page ===== */
.word-detail {
  max-width: 540px;
  width: min(100%, 540px);
  margin: 0 auto;
}

.word-detail-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  min-height: 430px;
  display: flex;
  flex-direction: column;
}

.word-detail-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  min-height: 112px;
  box-sizing: border-box;
}

.word-detail-header h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0;
}

.word-detail-header .kor-meaning {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.word-detail-img-wrap {
  padding: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  position: relative;
  height: 292px;
  min-height: 292px;
  box-sizing: border-box;
  flex: 0 0 292px;
}

.word-detail-img-wrap img {
  max-width: 236px;
  max-height: 236px;
  width: 100%;
  object-fit: contain;
}

.word-detail-img-wrap.has-word-nav {
  padding-left: 112px;
  padding-right: 112px;
}

.word-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 88px;
  height: calc(100% - 48px);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: rgba(255,255,255,0.9);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 7.5rem;
  font-weight: 900;
  line-height: 1;
  z-index: 2;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.word-nav-arrow:hover,
.word-nav-arrow:focus-visible {
  background: var(--primary-light);
  border-color: rgba(59,111,232,0.25);
  color: var(--primary);
  transform: translateY(-50%) scale(1.02);
  outline: none;
}

.word-nav-prev { left: 12px; }
.word-nav-next { right: 12px; }

.word-detail-img-wrap .no-img {
  font-size: 8rem;
  line-height: 1;
}

.word-detail-body {
  padding: 20px 32px 28px;
  border-top: 1px solid var(--border);
  min-height: 104px;
  box-sizing: border-box;
}

.word-detail-body .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 6px;
}

.word-detail-body .example-en {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.word-detail-body .example-ko {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* ===== Related words ===== */
.related-section {
  margin-top: 40px;
}

.related-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ===== Section title ===== */
.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
  margin-top: 48px;
}

.section-title:first-of-type { margin-top: 0; }

/* ===== Part Grid (홈) ===== */
.part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.part-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.part-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover);
  border-color: var(--primary);
}

.part-card .part-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.part-card .part-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.part-card .part-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.part-card .part-icon span {
  font-size: 2rem;
  line-height: 1;
}

.part-card .part-name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 4px;
}

.part-card .part-en {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.part-card .part-meta {
  display: flex;
  gap: 8px;
}

.part-card .part-meta span {
  font-size: 0.75rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ===== Section Grid (Part 페이지) ===== */
#section-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.section-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.section-item {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.section-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  min-width: 140px;
}

.section-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover);
  border-color: var(--primary);
}

.section-card .section-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.section-card .section-en {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.section-card .section-count {
  font-size: 0.72rem;
  color: var(--primary);
  margin-top: 6px;
}

/* ===== Intro Page ===== */
.intro-page {
  max-width: 900px;
}

.intro-article {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 42px;
}

.intro-section + .intro-section {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding-top: 42px;
}

.intro-section h1,
.intro-section h2 {
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 16px;
}

.intro-section h1 {
  font-size: 2rem;
}

.intro-section h2 {
  font-size: 1.35rem;
}

.intro-section p {
  font-size: 1.04rem;
  line-height: 1.95;
  margin-top: 10px;
}

.intro-section strong {
  color: var(--primary);
  font-weight: 800;
}

.intro-en {
  font-family: Georgia, "Times New Roman", Times, serif;
  letter-spacing: 0;
}

.intro-figure {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.intro-figure img {
  display: block;
  width: 100%;
  max-width: 680px;
  border-radius: 12px;
}

.intro-figure-small img {
  max-width: 520px;
}

.intro-figure-half img {
  max-width: 340px;
}

.intro-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
}

.intro-example-card {
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.intro-example-word {
  padding: 8px 6px 5px;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.intro-example-card img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.intro-quote {
  color: var(--text-main);
  font-size: 1.08rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.8;
  margin: 24px 0;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ===== Book Page ===== */
.book-page {
  max-width: 1080px;
}

.book-buy-section h1 {
  margin-bottom: 24px;
  font-size: 1.8rem;
  font-weight: 900;
}

.book-buy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.book-buy-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.book-buy-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.book-buy-cover img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: contain;
  padding: 8px;
}

.book-buy-info h2 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 850;
}

.book-buy-author,
.book-buy-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.book-buy-price {
  margin: 10px 0;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 900;
}

.book-buy-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.book-buy-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.book-buy-links a:hover,
.book-buy-links a:focus-visible {
  background: var(--primary);
  color: #fff;
  outline: none;
}

/* ===== Simple Static Pages ===== */
.simple-page {
  max-width: 900px;
}

.simple-content {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--card-shadow);
}

.simple-content h1 {
  margin-bottom: 12px;
  font-size: 1.8rem;
  font-weight: 900;
}

.simple-content h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  font-weight: 850;
}

.simple-content p {
  color: var(--text-muted);
  font-size: 1rem;
}

.simple-content a {
  color: var(--primary);
  font-weight: 800;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

footer p + p {
  margin-top: 4px;
}

/* ===== 404 / empty ===== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state .emoji { font-size: 3rem; margin-bottom: 12px; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  header {
    min-height: auto;
    padding: 12px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
  .site-nav a {
    padding: 6px 8px;
    font-size: 0.9rem;
  }
  .site-search {
    width: 100%;
    margin-left: 0;
    flex: 0 0 auto;
  }
  .hero h1 { font-size: 2rem; }
  .hero-actions {
    justify-content: center;
    margin-top: 18px;
  }
  .hero-use-button {
    width: 100%;
    max-width: 220px;
  }
  .use-modal {
    padding: 14px;
  }
  .use-modal-card {
    width: 100%;
    height: calc(100vh - 28px);
    border-radius: 12px;
  }
  .word-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  main { padding: 24px 16px; }
  .intro-article {
    border-radius: 12px;
    padding: 24px 18px;
  }
  .intro-section + .intro-section {
    margin-top: 34px;
    padding-top: 32px;
  }
  .intro-section h1 { font-size: 1.7rem; }
  .intro-section h2 { font-size: 1.18rem; }
  .intro-section p {
    font-size: 0.98rem;
    line-height: 1.85;
  }
  .intro-example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .intro-example-card img {
    height: 104px;
  }
  .intro-figure {
    margin: 20px 0;
  }
  .book-buy-grid {
    grid-template-columns: 1fr;
  }
  .book-buy-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }
  .book-buy-cover {
    min-height: 128px;
  }
  .book-buy-cover img {
    height: 128px;
  }
  .book-buy-info h2 {
    font-size: 0.95rem;
  }
  .word-detail-header h1 { font-size: 2rem; }
  .word-detail-card {
    min-height: 390px;
  }
  .word-detail-header {
    min-height: 112px;
    padding: 22px 24px 18px;
  }
  .word-detail-img-wrap {
    height: 260px;
    min-height: 260px;
    flex-basis: 260px;
    padding: 24px;
  }
  .word-detail-img-wrap.has-word-nav {
    padding-left: 72px;
    padding-right: 72px;
  }
  .word-detail-img-wrap img {
    max-width: 206px;
    max-height: 206px;
  }
  .word-nav-arrow {
    width: 56px;
    height: calc(100% - 36px);
    min-height: 180px;
    font-size: 5.4rem;
  }
  .word-nav-prev { left: 6px; }
  .word-nav-next { right: 6px; }
}
