:root {
  --paper: #F8F7F2;
  --ink: #17241f;
  --muted: #54615b;
  --line: #e3d9c8;
  --green: #143f34;
  --green-deep: #0d2c25;
  --green-soft: #f7f3ea;
  --sans: "Pretendard", "Malgun Gothic", "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Microsoft JhengHei", "PingFang TC", "Apple SD Gothic Neo", sans-serif;
  --max: 1160px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 7.5rem;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.14'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.4rem 0.7rem;
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 247, 242, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 2.4rem;
}

.menu {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
  padding-bottom: 0.55rem;
}

.menu-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.2rem;
  border: 1px solid #b7c9c2;
  border-radius: 0.55rem;
  background: #fff;
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.menu-card:hover {
  border-color: var(--green);
  background: #fff;
  color: var(--green-deep);
}

.menu-card[aria-current="page"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.brand {
  color: var(--green);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
}

.zone {
  padding: 1rem 0 1.15rem;
  border-top: 1px solid var(--line);
}

.home-hero,
.books,
.app-preview {
  border-top: 0;
}

.phone-link {
  display: flex;
  flex-direction: column;
  width: min(100%, 390px);
  margin: 0.35rem auto 0.15rem;
  padding: 32px 20px 24px;
  border-radius: 28px;
  background: #f7f6f2;
  box-shadow: 0 10px 28px rgba(40, 36, 28, 0.08);
  color: #1d1c19;
  text-decoration: none;
}

.phone-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 29.6px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.15;
  color: #1d1c19;
}

.phone-title-line {
  display: block;
}

#app-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
  gap: 0.08em;
}

.app-title-line {
  display: block;
}

.app-lang-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.app-lang-list .text-link {
  display: inline-block;
}

.phone-search {
  display: flex;
  align-items: center;
  height: 64px;
  margin-top: 28px;
  padding: 0 18px;
  border: 1px solid #e7e4dc;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(40, 36, 28, 0.08);
  color: #6a675f;
  font-size: 20px;
  font-weight: 400;
}

.phone-find {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-top: 14px;
  border-radius: 18px;
  background: #2c6a57;
  color: #fff;
  font-size: 17.28px;
  font-weight: 700;
}

.fall-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}

#fall-title {
  margin-top: 1.15rem;
}

.fall-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
}

.fall-card img {
  width: 100%;
  height: 168px;
  object-fit: contain;
  background: #fff;
}

.fall-card p {
  margin-top: 0.45rem;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.fall-card strong {
  font-weight: 700;
}

.fall-more {
  margin-top: 0.9rem;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.app-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  margin-top: 0.35rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.app-go:hover {
  background: var(--green-deep);
  color: #fff;
}

#research,
#contact,
#catalog,
#use,
#videos {
  scroll-margin-top: 0.4rem;
}

.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero .wrap {
  position: relative;
  z-index: 1;
}

.watermark {
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 120px;
  pointer-events: none;
  user-select: none;
}

.watermark-ancient {
  left: max(0.75rem, calc(50% - 700px));
  align-items: center;
}

.watermark-hangul {
  right: max(0.75rem, calc(50% - 700px));
  align-items: center;
}

.watermark-ancient img {
  width: 86px;
  height: 100px;
  opacity: 0.18;
  object-fit: contain;
}

.watermark-hangul img {
  width: 76px;
  height: auto;
  opacity: 0.15;
  object-fit: contain;
}

.motif-row {
  display: none;
}

.home-hero h1,
.books h1,
.app h1 {
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 700;
  color: var(--green-deep);
}

.home-hero h1 {
  text-align: center;
}

.books h1,
.app h1 {
  text-align: left;
}

.subtitle {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
}

.zone h2 {
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  text-align: left;
}

.prose p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  text-indent: 0;
}

.prose p + p {
  margin-top: 12px;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.text-link,
.channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.25rem 0.85rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: #fff;
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover,
.channel-btn:hover {
  background: #fff;
  border-color: var(--green-deep);
  color: var(--green-deep);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}

.book-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.55rem 0.55rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fff;
}

.cover-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 148px;
  background: #fff;
}

.cover-link img {
  width: auto;
  height: 148px;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
}

.book-name {
  margin-top: 0.4rem;
  min-height: 2.6em;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.book-blurb {
  margin-top: 0.25rem;
  min-height: 5.1em;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: auto;
  margin-top: auto;
  min-height: 1.7rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.buy:hover {
  background: var(--green-deep);
  color: #fff;
}

.lead {
  margin-top: 0.2rem;
  color: var(--muted);
}

.step-grid,
.bind-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5rem;
  align-items: baseline;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
}

.step-no {
  grid-row: span 2;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

.step-card h3 {
  font-size: 0.98rem;
}

.step-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.case-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 1.15rem;
}

.case-head h3 {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--green-deep);
}

.case-head p {
  color: var(--muted);
  font-size: 0.92rem;
}

.case-layout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.media-slot {
  width: 200px;
  margin: 0;
  flex: 0 0 200px;
}

.media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
}

.media-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

figcaption {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.evidence-title {
  margin-top: 0.85rem;
  font-size: 0.98rem;
}

.bind-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.bind-list li {
  padding: 0.6rem 0.7rem;
  border-left: 3px solid var(--green);
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.45;
}

.bind-han {
  color: var(--green-deep);
  font-family: var(--sans);
  font-size: 1.12rem;
}

.site-footer {
  padding: 0.9rem 0 1.1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-name,
.footer-title {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-title {
  margin-top: 0.1rem;
  color: var(--green-deep);
  font-weight: 700;
}

@media (max-width: 1360px) {
  .watermark {
    display: none;
  }

  .motif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    pointer-events: none;
    user-select: none;
  }

  .motif-row img {
    width: 72px;
    height: 84px;
    opacity: 0.22;
    object-fit: contain;
  }

  .motif-row .motif-hangul {
    width: auto;
    height: 7.5rem;
    opacity: 0.18;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 13rem;
  }

  .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero h1,
  .books h1,
  .app h1 {
    font-size: 26px;
  }

  .zone h2 {
    font-size: 20px;
  }

  .home-hero h1 {
    text-align: center;
  }

  .case-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 200px));
  }

  .media-slot {
    width: auto;
    flex: none;
  }

  .media-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .cover-link,
  .cover-link img {
    height: 168px;
  }

  .book-blurb {
    min-height: 8.5em;
  }

  .fall-grid {
    grid-template-columns: 1fr;
  }

  .fall-card img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .step-grid,
  .bind-list {
    grid-template-columns: 1fr;
  }

  .case-head {
    display: block;
  }

  .case-head p {
    margin-top: 0.3rem;
  }

  .buy {
    min-height: 2rem;
    width: auto;
    font-size: 14px;
  }
}
