:root {
  --paper: #f4eadc;
  --paper-deep: #eadbc6;
  --page: #fffaf1;
  --ink: #2d241c;
  --muted: #7b6b5b;
  --line: #d8c3a7;
  --wood: #6d3f25;
  --mahogany: #4b2418;
  --green: #2f5d50;
  --sage: #8da889;
  --wine: #8b3d48;
  --gold: #c79545;
  --cream: #fff6e6;
  --shadow: 0 24px 60px rgba(75, 36, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans KR", Georgia, serif;
  line-height: 1.68;
  background:
    radial-gradient(circle at 16% 12%, rgba(199, 149, 69, 0.18), transparent 24%),
    linear-gradient(90deg, rgba(109, 63, 37, 0.035) 1px, transparent 1px),
    linear-gradient(var(--paper), var(--paper));
  background-size: auto, 28px 28px, auto;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.top-bar {
  background: var(--mahogany);
  color: rgba(255, 246, 230, 0.82);
  font-size: 13px;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 241, 0.9);
  border-bottom: 1px solid rgba(216, 195, 167, 0.9);
  backdrop-filter: blur(16px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--mahogany);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 44px;
  place-items: center;
  border-radius: 5px 12px 12px 5px;
  background: linear-gradient(135deg, var(--green), var(--sage));
  color: var(--cream);
  box-shadow: inset 7px 0 0 rgba(255, 255, 255, 0.2), 0 12px 24px rgba(47, 93, 80, 0.22);
}

.brand__mark::after {
  position: absolute;
  right: 7px;
  bottom: 6px;
  left: 7px;
  height: 2px;
  content: "";
  background: rgba(255, 246, 230, 0.58);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-left: auto;
  color: #604d3c;
  font-weight: 800;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--green);
  border-color: var(--gold);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
}

.nav-cta,
.btn--primary {
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 12px 24px rgba(47, 93, 80, 0.18);
}

.btn--ghost {
  border: 1px solid rgba(255, 246, 230, 0.44);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--mahogany);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    linear-gradient(rgba(45, 36, 28, 0.18), rgba(45, 36, 28, 0.32)),
    repeating-linear-gradient(90deg, #3b2419 0 44px, #4a2c1e 44px 88px, #2f5d50 88px 132px, #743440 132px 176px);
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 246, 230, 0.24), transparent 22%),
    linear-gradient(90deg, rgba(255, 250, 241, 0.13) 1px, transparent 1px);
  background-size: auto, 88px 100%;
}

.hero::after,
.page-hero::after {
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  content: "";
  border: 1px solid rgba(255, 246, 230, 0.28);
  border-radius: 50%;
  background: rgba(255, 246, 230, 0.08);
}

.hero {
  padding: 94px 0 86px;
}

.page-hero {
  padding: 80px 0;
}

.hero__grid,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) 430px;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f3c77b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.hero h1,
.page-hero h1 {
  max-width: 830px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero__lead,
.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 246, 230, 0.8);
  font-size: 19px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 42px;
}

.hero__stats strong {
  display: block;
  color: var(--cream);
  font-size: 28px;
}

.hero__stats span {
  color: rgba(255, 246, 230, 0.68);
}

.shelf-card {
  padding: 28px;
  border: 1px solid rgba(255, 246, 230, 0.24);
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.shelf-card h3 {
  margin-bottom: 18px;
  color: var(--cream);
  font-size: 24px;
}

.mini-book {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 15px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 246, 230, 0.16);
}

.mini-book:last-child {
  border-bottom: 0;
}

.mini-cover {
  display: grid;
  width: 58px;
  height: 82px;
  place-items: center;
  border-radius: 4px 12px 12px 4px;
  background: linear-gradient(135deg, var(--wine), var(--gold));
  color: var(--cream);
  font-weight: 900;
  box-shadow: inset 8px 0 0 rgba(255, 255, 255, 0.18), 10px 12px 24px rgba(0, 0, 0, 0.22);
}

.mini-book strong {
  display: block;
  color: var(--cream);
}

.mini-book span {
  color: rgba(255, 246, 230, 0.68);
  font-size: 14px;
}

.trust-strip {
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 22px 0;
  color: #654f3d;
  font-weight: 900;
  text-align: center;
}

.section {
  padding: 88px 0;
}

.section--soft {
  background:
    linear-gradient(rgba(255, 250, 241, 0.55), rgba(255, 250, 241, 0.55)),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(109, 63, 37, 0.055) 27px 28px),
    var(--paper-deep);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.feature-copy h2 {
  color: var(--mahogany);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.section-heading p,
.feature-copy p,
.book-card p,
.article-card p,
.value-card p {
  color: var(--muted);
}

.category-grid,
.book-grid,
.article-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.category-card,
.book-card,
.article-card,
.newsletter-form,
.value-card,
.reading-panel {
  border: 1px solid var(--line);
  background: var(--page);
  box-shadow: 0 14px 34px rgba(75, 36, 24, 0.09);
}

.category-card,
.article-card,
.value-card {
  padding: 28px;
  border-radius: 10px 24px 24px 10px;
}

.category-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  content: "";
  background: linear-gradient(var(--green), var(--gold));
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card__number,
.book-card__tag,
.article-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-card h3,
.book-card h3,
.article-card h3,
.value-card h3 {
  margin: 18px 0 12px;
  color: var(--mahogany);
  font-size: 23px;
  line-height: 1.28;
}

.category-card a,
.article-card a {
  color: var(--green);
  font-weight: 900;
}

.book-grid {
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
}

.book-card {
  display: grid;
  gap: 14px;
  padding: 18px 18px 24px;
  border-radius: 8px 22px 22px 8px;
}

.book-cover {
  position: relative;
  display: flex;
  min-height: 232px;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  border-radius: 5px 17px 17px 5px;
  background: linear-gradient(135deg, var(--mahogany), var(--wood));
  color: var(--cream);
  box-shadow: inset 10px 0 0 rgba(255, 255, 255, 0.16), 0 18px 30px rgba(75, 36, 24, 0.18);
}

.book-cover::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 16px;
  width: 1px;
  content: "";
  background: rgba(255, 246, 230, 0.32);
}

.book-cover::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 3px;
  content: "";
  border-radius: 99px;
  background: rgba(255, 246, 230, 0.42);
}

.book-cover span {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  word-break: keep-all;
}

.book-card:nth-child(2n) .book-cover {
  background: linear-gradient(135deg, var(--green), #183a32);
}

.book-card:nth-child(3n) .book-cover {
  background: linear-gradient(135deg, var(--wine), #5b2830);
}

.book-card:nth-child(4n) .book-cover {
  background: linear-gradient(135deg, #8a5b25, var(--gold));
}

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

.book-meta span {
  padding: 6px 10px;
  border: 1px solid #e2cfb5;
  border-radius: 999px;
  background: #f5ead8;
  color: #654f37;
  font-size: 13px;
  font-weight: 800;
}

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.reading-panel {
  padding: 34px;
  border-radius: 24px;
}

.reading-panel ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.reading-panel li {
  margin: 14px 0;
}

.newsletter {
  background:
    linear-gradient(rgba(47, 93, 80, 0.88), rgba(47, 93, 80, 0.92)),
    repeating-linear-gradient(90deg, #5f3a23 0 46px, #70472c 46px 92px);
  color: var(--cream);
}

.newsletter .section-heading h2,
.newsletter .section-heading p {
  color: var(--cream);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  padding: 18px;
  border-color: rgba(255, 246, 230, 0.24);
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.14);
}

.newsletter-form input,
.newsletter-form select {
  min-height: 48px;
  border: 1px solid rgba(255, 246, 230, 0.22);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.footer {
  padding: 62px 0 30px;
  background: #20140e;
  color: rgba(255, 246, 230, 0.74);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 34px;
}

.brand--footer {
  color: var(--cream);
}

.footer h4 {
  margin: 0 0 16px;
  color: var(--cream);
}

.footer a {
  display: block;
  margin-bottom: 10px;
}

.footer p {
  margin: 12px 0;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 246, 230, 0.14);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.is-open {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: grid;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--page);
    box-shadow: var(--shadow);
  }

  .hero__grid,
  .feature {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .article-grid,
  .values-grid,
  .trust-strip__grid,
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .top-bar__inner,
  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .page-hero,
  .section {
    padding: 64px 0;
  }

  .category-grid,
  .book-grid,
  .article-grid,
  .values-grid,
  .trust-strip__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
