﻿:root {
  --ink: #171217;
  --muted: #6d626a;
  --paper: #fffaf6;
  --surface: rgba(255, 255, 255, 0.84);
  --line: rgba(42, 32, 38, 0.12);
  --coral: #e85b72;
  --coral-dark: #b93e56;
  --mint: #50bfa7;
  --mint-soft: #dff7ef;
  --cream: #fff1bd;
  --shadow: 0 22px 70px rgba(68, 39, 49, 0.15);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(232, 91, 114, 0.18), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(80, 191, 167, 0.16), transparent 30rem),
    linear-gradient(135deg, #fffaf6 0%, #fff0f3 48%, #f1fff9 100%);
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.65;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

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

img {
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

input,
select,
textarea {
  -webkit-user-select: auto;
  user-select: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 246, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 23px;
  font-weight: 900;
}

nav,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

nav a,
.site-footer a {
  position: relative;
  transition: color 160ms ease;
}

nav a::after,
.site-footer a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

nav a:hover,
.site-footer a:hover {
  color: var(--ink);
}

nav a:hover::after,
.site-footer a:hover::after {
  transform: scaleX(1);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 24px 72px;
}

.site-masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 246, 0.9);
}

.masthead-top {
  position: relative;
  display: grid;
  max-width: 1200px;
  margin: 0 auto;
}

.masthead-logo {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 24px 24px 18px;
  text-align: center;
}

.masthead-logo span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.masthead-logo strong {
  color: var(--ink);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.category-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.category-nav a {
  padding: 14px 22px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.category-nav a:hover {
  color: var(--coral-dark);
  background: rgba(255, 255, 255, 0.58);
}

.category-nav a::after {
  display: none;
}

.menu-toggle,
.menu-close,
.back-to-top {
  border: 0;
  cursor: pointer;
}

.menu-toggle {
  position: absolute;
  top: 24px;
  left: 16px;
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(42, 32, 38, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(68, 39, 49, 0.14);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease, width 160ms ease;
}

.menu-toggle:hover {
  border-color: rgba(232, 91, 114, 0.3);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(68, 39, 49, 0.18);
  transform: translateY(-1px);
}

body.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
  width: 0;
}

body.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(23, 18, 23, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.mobile-drawer-panel {
  display: grid;
  align-content: start;
  gap: 20px;
  width: min(82vw, 320px);
  min-height: 100%;
  padding: 22px;
  background: #fffaf6;
  box-shadow: 18px 0 50px rgba(68, 39, 49, 0.18);
  transform: translateX(-100%);
  transition: transform 180ms ease;
}

.menu-close {
  justify-self: end;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.mobile-drawer section {
  display: grid;
  gap: 10px;
}

.mobile-drawer h2 {
  border-bottom: 2px solid rgba(232, 91, 114, 0.28);
  padding-bottom: 8px;
  font-size: 20px;
}

.mobile-drawer a {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  color: var(--muted);
  font-weight: 900;
}

body.is-menu-open {
  overflow: hidden;
}

body.is-menu-open .mobile-drawer {
  opacity: 1;
  pointer-events: auto;
}

body.is-menu-open .mobile-drawer-panel {
  transform: translateX(0);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(23, 18, 23, 0.8);
  box-shadow: 0 14px 30px rgba(68, 39, 49, 0.18);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: rgba(232, 91, 114, 0.84);
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.home-main {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.home-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
}

.home-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 189, 0.44)),
    var(--surface);
  box-shadow: var(--shadow);
}

.home-hero-panel h1 {
  font-size: clamp(42px, 6vw, 70px);
}

.home-hero-panel .manual-title {
  max-width: none;
  font-size: clamp(38px, 4.6vw, 58px);
}

.home-hero-panel img {
  width: 100%;
  justify-self: end;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
}

.section-hero-illustration {
  width: min(340px, 100%);
  aspect-ratio: 1;
  justify-self: end;
  border-radius: 22px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 42px rgba(68, 39, 49, 0.12);
}

.page-intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(223, 247, 239, 0.5)),
    var(--surface);
  box-shadow: var(--shadow);
}

.page-intro-panel h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
}

.page-intro-panel .lead {
  max-width: 740px;
  margin-bottom: 0;
}

.page-intro-panel img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-grid a {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.category-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(80, 191, 167, 0.46);
  background: white;
}

.category-grid span {
  display: inline-grid;
  width: max-content;
  min-width: 42px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #277463;
  background: var(--mint-soft);
  font-size: 12px;
  font-weight: 900;
}

.category-grid strong {
  font-size: 20px;
  line-height: 1.25;
}

.category-grid small {
  color: var(--muted);
  font-weight: 800;
}

.sidebar-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.sidebar-box h2 {
  border-bottom: 2px solid rgba(232, 91, 114, 0.28);
  padding-bottom: 8px;
  font-size: 20px;
}

.sidebar-box a {
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  color: var(--muted);
  font-weight: 850;
  transition: color 160ms ease, transform 160ms ease;
}

.sidebar-box a:hover {
  color: var(--coral-dark);
  transform: translateX(3px);
}

.hero {
  display: block;
  min-height: 360px;
  padding: 34px 0 42px;
}

.content-hero {
  min-height: 0;
  padding-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral-dark);
  font: 850 12px/1.2 "Inter", "Arial", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 76px;
  line-height: 1.03;
  letter-spacing: 0;
}

.book-title-hero {
  max-width: 820px;
  font-size: 56px;
  line-height: 1.12;
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.15;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}

.hero-steps {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
}

.hero-steps div {
  display: grid;
  gap: 2px;
  min-height: 96px;
  place-items: center;
  border-radius: 14px;
  background: white;
}

.hero-steps strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #277463;
  background: var(--mint-soft);
  font-size: 28px;
}

.hero-steps span {
  color: var(--muted);
  font: 800 11px/1 "Inter", "Arial", sans-serif;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 10px 0 24px;
}

.single-grid {
  grid-template-columns: minmax(0, 560px);
}

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

.article-card,
.article-grid > a {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-card:hover,
.article-grid > a:hover {
  transform: translateY(-4px);
  border-color: rgba(80, 191, 167, 0.46);
  background: white;
  box-shadow: 0 22px 56px rgba(68, 39, 49, 0.16);
}

.card-illustration {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(42, 32, 38, 0.08);
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.6);
}

.content-card .card-illustration,
.article-card .card-illustration {
  margin-bottom: 4px;
}

.content-card > .card-illustration {
  height: auto;
}

.article-card > .card-illustration,
.article-grid > a > .card-illustration {
  width: min(100%, 320px);
  height: auto;
  justify-self: start;
}

.practice-hero-illustration,
.article-hero-illustration {
  display: block;
  width: min(100%, 520px);
  aspect-ratio: 1;
  height: auto;
  margin: 22px auto 28px;
  border: 1px solid rgba(42, 32, 38, 0.08);
  border-radius: 22px;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(68, 39, 49, 0.12);
}

.article-card span,
.article-grid > a span {
  display: inline-grid;
  place-items: center;
  width: max-content;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  padding: 0 12px;
  color: #277463;
  background: var(--mint-soft);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.feature-article {
  grid-column: span 2;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  background: rgba(255, 255, 255, 0.82);
}

.feature-article > .card-illustration {
  grid-row: 1 / span 3;
}

.feature-article > span,
.feature-article > h2,
.feature-article > p {
  grid-column: 2;
}

.article-card h2,
.article-grid > a strong {
  font-size: 24px;
}

.article-card p,
.article-grid > a p {
  margin-bottom: 0;
  color: var(--muted);
}

.home-section {
  margin: 28px 0;
}

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

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

.book-list-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.book-list-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 91, 114, 0.44);
  background: white;
}

.book-list-card img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.book-list-card h3 {
  margin: 10px 0;
  font-size: 34px;
  line-height: 1.18;
}

.book-list-card p {
  color: var(--muted);
}

.feature-band,
.book-hero,
.article-body {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.wide-article {
  max-width: 1040px;
}

.phrase-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-top: 14px;
}

.phrase-table th {
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.phrase-table td {
  vertical-align: top;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.phrase-table td:first-child {
  width: 28%;
  border-left: 1px solid var(--line);
  border-radius: 14px 0 0 14px;
}

.phrase-table td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 14px 14px 0;
}

.phrase-table strong {
  display: block;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 22px;
  line-height: 1.25;
}

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

.next-step-box {
  margin-top: 30px;
  border-radius: 18px;
  padding: 22px;
  background: var(--cream);
}

.content-player {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
  gap: 16px;
  margin: 28px 0 34px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(223, 247, 239, 0.72)),
    var(--surface);
}

.content-player-main {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 18px;
  background: white;
}

.content-player-main h2 {
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 50px;
  line-height: 1.16;
}

.content-player-ja {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 900;
}

.content-player-example {
  margin-bottom: 0;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--coral-dark);
}

.voice-label {
  display: inline-grid;
  place-items: center;
  width: max-content;
  min-width: 0;
  height: 28px;
  margin-bottom: -8px;
  border-radius: 999px;
  padding: 0 12px;
  color: #277463;
  background: var(--mint-soft);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.content-player-translation {
  color: var(--muted);
  font-weight: 800;
}

.content-track-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 540px;
  overflow: auto;
  padding: 4px;
}

.content-track {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.content-track:hover {
  transform: translateX(3px);
  border-color: rgba(80, 191, 167, 0.48);
  background: white;
}

.content-track.is-active {
  border-color: rgba(232, 91, 114, 0.5);
  background: #fff5f7;
}

.content-track span {
  grid-row: span 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #277463;
  background: var(--mint-soft);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.content-track strong {
  overflow: hidden;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.content-track small {
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.feature-band,
.book-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 22px 0;
  padding: 22px;
}

.feature-band img,
.book-hero img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.text-link {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.text-link:hover {
  transform: translateY(-2px);
  color: white;
  background: var(--ink);
}

.strong-link {
  color: white;
  background: var(--ink);
}

.strong-link:hover {
  background: var(--coral);
}

.article-body {
  max-width: 860px;
  margin: 0 auto 24px;
  padding: clamp(24px, 5vw, 52px);
}

.article-body h1 {
  font-size: 58px;
}

.manual-title span {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.manual-title,
h1,
h2,
h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.article-body .manual-title,
.page-intro-panel .manual-title {
  max-width: none;
  font-size: clamp(24px, 6.2vw, 58px);
}

.article-body h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 26px;
}

.article-body p {
  color: var(--muted);
  font-size: 17px;
}

.article-date {
  margin: -6px 0 22px;
  color: #888;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.article-body .personal-note,
.article-body .phrase-note-box {
  margin: 24px 0;
  border: 1px solid rgba(42, 32, 38, 0.1);
  border-radius: 8px;
  padding: 20px;
  background: #fffdfb;
}

.article-body .personal-note strong,
.article-body .phrase-note-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.article-body .phrase-note-box p {
  margin-bottom: 10px;
}

.article-body .phrase-note-box span {
  display: block;
  color: #1d6f60;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 23px;
  font-weight: 950;
}

.practice-route-panel,
.practice-guide-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin: 28px 0;
  border: 1px solid rgba(42, 32, 38, 0.1);
  border-radius: 8px;
  padding: 24px;
  background: #fffdfb;
}

.practice-route-panel h2,
.practice-guide-block h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.practice-guide-block ol {
  margin: 0;
  padding-left: 22px;
}

.practice-guide-block li {
  margin: 8px 0;
  line-height: 1.8;
}

.practice-caution {
  border-left: 4px solid var(--accent);
  padding-left: 18px;
}

.medical-notice {
  grid-template-columns: 1fr;
  border-color: rgba(29, 111, 96, 0.24);
  background: #f7fffc;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-detail {
  display: grid;
  gap: 18px;
}

.book-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 4px;
}

.book-spec-grid div {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.book-spec-grid span {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
}

.book-spec-grid strong {
  font-size: 22px;
}

.book-spec-grid p {
  margin-bottom: 0;
  font-size: 14px;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-weight: 800;
}

.card-link-text {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
}

.content-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.content-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 91, 114, 0.45);
  background: white;
  box-shadow: 0 28px 80px rgba(68, 39, 49, 0.2);
}

.content-card:focus-visible,
.track:focus-visible,
.word-card:focus-visible,
nav a:focus-visible,
.pager button:focus-visible,
.player-actions button:focus-visible {
  outline: 3px solid rgba(80, 191, 167, 0.42);
  outline-offset: 3px;
}

.content-card h2,
.content-card h3 {
  align-self: end;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.24;
}

.content-card p {
  color: var(--muted);
}

.content-card strong {
  align-self: end;
  width: max-content;
  border-radius: 999px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.content-card:hover strong,
.content-card strong:hover {
  transform: translateY(-1px);
  background: var(--coral);
  box-shadow: 0 12px 26px rgba(232, 91, 114, 0.28);
}

.primary-card {
  background: linear-gradient(135deg, #fff, #fff1f4);
}

.content-label {
  display: inline-grid;
  place-items: center;
  width: max-content;
  min-width: 0;
  height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--coral-dark);
  background: #fff0f3;
  font: 900 12px/1 "Inter", "Arial", sans-serif;
  text-transform: uppercase;
  text-align: center;
}

.home-section .content-grid .content-card {
  min-height: 0;
  align-content: start;
  gap: 18px;
  padding: 24px 26px;
}

.home-section .content-grid .content-card h3 {
  align-self: start;
  margin: 28px 0 20px;
  font-size: clamp(26px, 2.1vw, 30px);
  line-height: 1.45;
}

.home-section .content-grid .content-card p {
  margin: 0;
}

.home-section .content-grid .content-card strong {
  align-self: start;
  margin-top: 14px;
}

.start-card-grid {
  align-items: stretch;
}

.start-card-grid .start-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 10px;
  padding: 22px;
}

.home-section .start-card-grid .start-card {
  gap: 10px;
  padding: 22px;
}

.start-card-grid .start-card h3 {
  margin: 8px 0 2px;
  font-size: clamp(22px, 1.65vw, 25px);
  line-height: 1.3;
}

.home-section .start-card-grid .start-card h3 {
  margin: 8px 0 2px;
  font-size: clamp(22px, 1.65vw, 25px);
  line-height: 1.3;
}

.start-card-grid .start-card p {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.58;
}

.start-card-grid .start-card strong {
  margin-top: 8px;
  padding: 8px 14px;
}

.home-section .start-card-grid .start-card strong {
  margin-top: 8px;
  padding: 8px 14px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.is-coming {
  opacity: 0.74;
}

.player-shell {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.queue-panel,
.now-card,
.study-note {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.queue-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 18px;
  max-height: 720px;
  padding: 20px;
  backdrop-filter: blur(16px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

select,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
}

.track-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}

.track {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.track:hover {
  transform: translateX(3px);
  border-color: rgba(80, 191, 167, 0.46);
  background: white;
}

.track span {
  grid-row: span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--mint-soft);
  color: #277463;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.track strong {
  overflow: hidden;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.track small {
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.track.is-active {
  border-color: rgba(232, 91, 114, 0.55);
  background: #fff5f7;
}

.pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.pager button {
  min-width: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.pager button:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(232, 91, 114, 0.46);
  background: #fff5f7;
}

.pager button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.queue-pager {
  justify-content: space-between;
}

.now-card {
  display: grid;
  gap: 24px;
  min-height: 620px;
  padding: clamp(24px, 5vw, 52px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
    linear-gradient(135deg, rgba(232, 91, 114, 0.14), rgba(80, 191, 167, 0.14));
}

.now-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 900;
}

.word-display {
  align-self: end;
}

.ko {
  margin-bottom: 6px;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 92px;
  font-weight: 950;
  line-height: 1.03;
}

.ja {
  margin-bottom: 0;
  color: var(--coral-dark);
  font-size: 28px;
  font-weight: 900;
}

.example-box {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 18px;
  background: white;
}

.example {
  margin-bottom: 0;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.25;
}

.translation {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

body[data-mode="premium"] .ja,
body[data-mode="premium"] .translation {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

audio {
  width: 100%;
  user-select: none;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-actions button {
  min-width: 112px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: white;
  background: var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.player-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(23, 18, 23, 0.16);
}

.player-actions button:last-child {
  background: var(--coral);
}

.player-actions button:nth-child(2) {
  background: var(--mint);
}

.player-actions .icon-button {
  display: grid;
  min-width: 56px;
  min-height: 46px;
  place-items: center;
  padding: 10px;
  font-size: 22px;
}

.player-actions .icon-button.is-on {
  outline: 3px solid rgba(80, 191, 167, 0.28);
  background: var(--coral);
}

.playback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.auto-toggle {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.auto-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--coral);
}

.delay-control {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  width: max-content;
  gap: 8px;
}

.delay-control select {
  width: 86px;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

.audio-status {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.study-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin: 22px 0;
  padding: 18px 20px;
  background: var(--cream);
}

.study-note span {
  font-weight: 900;
}

.study-note p {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.related-links {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.related-links h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

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

.related-grid a {
  display: grid;
  gap: 6px;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.related-grid a:hover {
  border-color: rgba(232, 91, 114, 0.34);
  box-shadow: 0 16px 34px rgba(68, 39, 49, 0.12);
  transform: translateY(-2px);
}

.related-grid span {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
}

.related-grid strong {
  line-height: 1.35;
}

.library-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.result-count {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 900;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.word-card {
  display: grid;
  gap: 4px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.word-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 91, 114, 0.45);
  background: white;
  box-shadow: 0 14px 34px rgba(68, 39, 49, 0.12);
}

.word-no {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #277463;
  background: var(--mint-soft);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.word-ko {
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.15;
}

.word-ja {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.word-audio {
  align-self: end;
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  color: #8b737a;
  background: #f3eaed;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.word-audio.is-ready {
  color: #247464;
  background: var(--mint-soft);
}

@media (max-width: 980px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 56px;
  }

  .book-title-hero,
  .article-body h1 {
    font-size: 44px;
  }

  .content-player-main h2 {
    font-size: 40px;
  }

  .ko {
    font-size: 72px;
  }

  .example {
    font-size: 30px;
  }

  .hero,
  .player-shell,
  .home-layout,
  .home-hero-panel,
  .page-intro-panel {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    position: static;
  }

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

  .queue-panel {
    max-height: none;
  }

  .track-list {
    max-height: 360px;
  }

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

  .content-grid {
    grid-template-columns: 1fr;
  }

  .home-section .content-grid .content-card {
    min-height: 0;
  }

  .home-section .content-grid .content-card h3 {
    margin: 14px 0 8px;
    line-height: 1.32;
  }

  .article-grid,
  .compact-grid,
  .feature-band,
  .book-hero,
  .content-player {
    grid-template-columns: 1fr;
  }

  .book-list-card {
    grid-template-columns: 1fr;
  }

  .book-spec-grid {
    grid-template-columns: 1fr;
  }

  .feature-article {
    grid-column: auto;
    grid-template-columns: 1fr;
    background: rgba(255, 255, 255, 0.78);
  }

  .feature-article > .card-illustration,
  .feature-article > span,
  .feature-article > h2,
  .feature-article > p {
    grid-column: auto;
    grid-row: auto;
  }

  .phrase-table,
  .phrase-table tbody,
  .phrase-table tr,
  .phrase-table td {
    display: block;
    width: 100%;
  }

  .phrase-table thead {
    display: none;
  }

  .phrase-table td,
  .phrase-table td:first-child,
  .phrase-table td:last-child {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .phrase-table tr {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
  }

  .phrase-table td {
    padding: 13px 14px;
  }

  .phrase-table strong {
    font-size: 21px;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 620px) {
  .practice-route-panel,
  .practice-guide-block {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .practice-hero-illustration,
  .article-hero-illustration {
    width: min(100%, 320px);
    height: auto;
    margin: 16px 0 22px;
    border-radius: 18px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.08;
  }

  h2 {
    font-size: 28px;
  }

  .book-title-hero,
  .article-body h1 {
    font-size: 34px;
  }

  .book-list-card h3 {
    font-size: 28px;
  }

  .content-card > .card-illustration,
  .article-card > .card-illustration,
  .article-grid > a > .card-illustration {
    height: auto;
    max-height: none;
  }

  .content-player-main h2 {
    font-size: 34px;
  }

  .content-player-ja {
    font-size: 19px;
  }

  .content-player-example {
    font-size: 22px;
  }

  .ko {
    font-size: 54px;
  }

  .ja {
    font-size: 22px;
  }

  .example {
    font-size: 24px;
  }

  .site-header,
  .site-footer,
  .section-head,
  .library-meta,
  .study-note {
    display: grid;
    justify-items: start;
  }

  .site-header {
    padding-left: 68px;
  }

  .site-header .brand {
    line-height: 1.2;
  }

  main {
    padding-inline: 16px;
  }

  .hero-steps {
    grid-template-columns: 1fr;
  }

  .category-nav {
    display: none;
  }

  .mobile-drawer {
    display: grid;
  }

  .menu-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 26;
    display: flex;
    background: rgba(255, 255, 255, 0.92);
  }

  .masthead-logo {
    justify-items: center;
    padding-left: 60px;
    text-align: center;
  }

  .home-hero-panel {
    padding: 18px;
  }

  .home-hero-panel .manual-title {
    width: 100%;
    font-size: clamp(30px, 8.4vw, 38px);
    line-height: 1.08;
  }

  .home-hero-panel .manual-title span {
    width: max-content;
    max-width: 100%;
  }

  .home-hero-panel img {
    max-width: 240px;
  }

  .page-intro-panel img {
    max-width: 220px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .word-grid {
    grid-template-columns: 1fr;
  }
}

body:has(.home-site-header) {
  background: #ffeaea;
}

.home-site-header {
  position: static;
  display: grid;
  justify-content: stretch;
  gap: 0;
  max-width: none;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.home-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 16px 20px;
  background: #ffeaea;
  color: #333;
  text-align: center;
}

.home-brand span {
  color: #777;
  font-size: 13px;
  font-weight: 900;
}

.home-brand strong {
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1;
}

.home-site-header nav {
  justify-content: center;
  gap: 16px;
  border-top: 1px solid #e6b4b4;
  border-bottom: 1px solid #e6b4b4;
  padding: 16px 18px;
  background: #f7c7c9;
}

.home-site-header nav a {
  display: grid;
  min-width: 190px;
  min-height: 60px;
  place-items: center;
  border-radius: 4px;
  padding: 14px 18px;
  color: #333;
  background: #fffdfb;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.home-site-header nav a:hover {
  color: #222;
  background: #ff7b76;
  box-shadow: 0 10px 22px rgba(173, 62, 72, 0.22);
  transform: translateY(-2px);
}

.home-site-header nav a::after {
  display: none;
}

main:has(.home-layout) {
  max-width: 1265px;
  padding: 6px 0 50px;
}

.home-layout {
  grid-template-columns: minmax(0, 853px) 380px;
  gap: 20px;
}

.home-main,
.home-sidebar {
  border-radius: 4px;
}

.home-main {
  gap: 0;
  border: 1px solid #ddc090;
  background: #f1edd0;
}

.home-sidebar {
  top: 16px;
  gap: 28px;
  border: 1px solid #eded6f;
  padding: 36px 37px;
  background: white;
}

.home-hero-panel,
.home-section {
  margin: 16px 0 28px;
  border: 0;
  border-radius: 4px;
  background: white;
  box-shadow: none;
}

.home-hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  min-height: 0;
  padding: 24px 29px 30px;
}

.home-hero-panel .manual-title {
  font-size: clamp(30px, 4.8vw, 44px);
  line-height: 1.25;
  color: #333;
}

.post-meta {
  margin: -6px 0 18px;
  color: #888;
  font-size: 13px;
  text-align: right;
}

.home-hero-panel .lead {
  max-width: none;
  color: #444;
  font-size: 17px;
}

.home-hero-panel img {
  width: min(100%, 620px);
  justify-self: center;
  border-radius: 0;
  background: transparent;
}

.home-summary-box {
  max-width: 520px;
  margin: 22px auto 8px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 14px 18px;
  background: #fff;
}

.home-summary-box strong {
  display: block;
  margin-bottom: 8px;
  text-align: center;
}

.home-summary-box ol {
  margin: 0;
  padding-left: 1.4em;
}

.home-summary-box a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-section {
  padding: 24px 29px 30px;
}

.home-section h2,
.sidebar-box h2 {
  border-bottom: 3px solid #f3c8d0;
  padding-bottom: 8px;
  color: #333;
  font-size: 24px;
}

.section-head {
  margin-bottom: 16px;
}

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

.category-grid a,
.article-grid > a,
.content-card,
.book-list-card,
.sidebar-box {
  border: 1px solid #eee;
  border-radius: 0;
  background: white;
  box-shadow: none;
}

.category-grid a:hover,
.article-grid > a:hover,
.content-card:hover,
.book-list-card:hover {
  border-color: #f0b8c1;
  transform: none;
  box-shadow: none;
}

.content-card {
  min-height: 0;
}

.article-grid > a {
  padding: 14px;
}

.article-grid > a strong,
.content-card h3 {
  color: #333;
  font-size: 20px;
}

.book-list-card {
  grid-template-columns: 150px minmax(0, 1fr);
}

.book-list-card h3 {
  font-size: 24px;
}

.sidebar-box {
  gap: 8px;
  padding: 0;
}

.sidebar-box h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.sidebar-box a {
  border-bottom: 1px solid #eee;
  padding: 8px 5px;
  color: #555;
}

.profile-section .profile-card,
.diary-layout,
.diary-hero {
  display: grid;
  gap: 24px;
}

.profile-card {
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
}

.profile-card img,
.sidebar-profile img,
.diary-hero img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #eee;
  object-fit: cover;
  background: #48bda4;
}

.profile-card img {
  max-width: 190px;
}

.profile-card p {
  color: #444;
}

.diary-teaser > p {
  color: #444;
}

.diary-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.diary-mini-grid a {
  display: grid;
  gap: 8px;
  border: 1px solid #eee;
  padding: 16px;
  background: white;
}

.diary-mini-grid strong {
  color: #333;
  line-height: 1.35;
}

.diary-mini-grid span {
  color: #777;
  font-size: 13px;
  font-weight: 800;
}

.sidebar-profile p {
  margin-bottom: 0;
  color: #555;
  font-size: 14px;
}

.sidebar-profile img {
  margin-bottom: 8px;
}

.diary-layout {
  grid-template-columns: minmax(0, 820px) 320px;
  align-items: start;
}

.diary-main,
.diary-sidebar {
  display: grid;
  gap: 18px;
}

.diary-hero,
.diary-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.diary-hero {
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
}

.diary-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.diary-entry {
  padding: clamp(22px, 4vw, 36px);
}

.diary-entry h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.diary-entry p {
  color: var(--muted);
  font-size: 17px;
}

.diary-long-entry p {
  color: #4f464d;
  line-height: 1.9;
}

.diary-long-entry h2 {
  line-height: 1.35;
}

.diary-date {
  margin-bottom: 8px;
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 900;
}

.korean-note {
  margin-top: 20px;
  border-left: 5px solid var(--mint);
  padding: 16px 18px;
  background: #f4fffb;
}

.korean-note strong {
  display: block;
  margin-bottom: 8px;
}

.korean-note p {
  margin-bottom: 0;
}

.korean-note span {
  display: block;
  color: #1d6f60;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 24px;
  font-weight: 950;
}

.diary-sidebar {
  position: sticky;
  top: 94px;
}

.about-profile {
  position: relative;
  max-width: 920px;
}

.about-profile p {
  color: #4f464d;
  line-height: 1.9;
}

.about-profile-image {
  float: right;
  width: min(240px, 42vw);
  margin: 0 0 18px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #48bda4;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 850px) 330px;
  gap: 24px;
  align-items: start;
}

.blog-main {
  display: grid;
  gap: 18px;
}

.blog-archive-head,
.blog-post {
  border: 1px solid #ddc090;
  border-radius: 4px;
  background: #f1edd0;
}

.blog-archive-head {
  padding: 24px 28px;
}

.blog-archive-head h1 {
  margin-bottom: 12px;
  color: #333;
  font-size: clamp(34px, 5vw, 52px);
}

.blog-archive-head p {
  margin-bottom: 0;
  color: #555;
}

.blog-card-list {
  display: grid;
  gap: 18px;
}

.blog-entry-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px;
  background: white;
  box-shadow: 0 12px 26px rgba(68, 39, 49, 0.08);
  transition: border-color 160ms ease, transform 160ms ease;
}

.blog-entry-card:hover {
  border-color: #f0b8c1;
  transform: translateY(-2px);
}

.blog-entry-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid #eee;
  object-fit: cover;
  background: #48bda4;
}

.archive-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #b94f66;
  font-size: 12px;
  font-weight: 900;
}

.blog-entry-card h2 {
  margin-bottom: 10px;
  color: #333;
  font-size: 24px;
  line-height: 1.35;
}

.blog-entry-card p {
  margin-bottom: 10px;
  color: #555;
}

.blog-entry-card small {
  color: #888;
  font-weight: 800;
}

.blog-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
  border: 1px solid #eded6f;
  border-radius: 4px;
  padding: 20px;
  background: white;
}

.blog-post {
  padding: 16px;
}

.blog-post-head,
.blog-post-body {
  background: white;
}

.blog-post-head {
  padding: clamp(22px, 4vw, 34px);
}

.blog-post-head h1 {
  color: #333;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.24;
}

.blog-post-head img {
  display: block;
  width: min(100%, 620px);
  max-height: 460px;
  margin: 24px auto 0;
  border: 1px solid #eee;
  object-fit: cover;
  background: #48bda4;
}

.blog-post-body {
  padding: clamp(22px, 5vw, 46px);
}

.blog-post-body p {
  color: #444;
  font-size: 17px;
  line-height: 2;
}

.blog-post-body p + p {
  margin-top: 1.2em;
}

@media (max-width: 980px) {
  main:has(.home-layout) {
    padding: 0 12px 42px;
  }

  .home-layout,
  .home-hero-panel,
  .book-list-card,
  .profile-card,
  .diary-layout,
  .diary-hero {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    position: static;
    padding: 24px;
  }
}

@media (max-width: 620px) {
  .home-site-header {
    padding-left: 0;
  }

  .home-site-header nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
    padding: 14px 16px;
  }

  .home-site-header nav a {
    width: min(100%, 230px);
    min-width: 0;
  }

  .home-brand {
    padding-right: 16px;
    padding-left: 66px;
  }

  .home-brand strong {
    font-size: clamp(34px, 11vw, 46px);
  }

  .home-main,
  .home-sidebar,
  .home-hero-panel,
  .home-section {
    border-radius: 0;
  }

  .home-hero-panel,
  .home-section {
    padding: 18px;
  }

  .category-grid,
  .compact-grid,
  .diary-mini-grid {
    grid-template-columns: 1fr;
  }

  .diary-sidebar {
    position: static;
  }

  .about-profile-image {
    float: none;
    width: min(100%, 260px);
    margin: 0 0 18px;
  }

  .blog-layout,
  .blog-entry-card {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}


