:root {
  --paper: #faf8f5;
  --white: #fffefa;
  --ink: #292728;
  --muted: #77716c;
  --line: #e6e0d8;
  --wine: #783f50;
  --wine-dark: #5b2939;
  --blush: #f1e7e6;
  --gold: #a28153;
  --radius: 16px;
  --shadow: 0 18px 48px #3e283510;
  --serif: Georgia, "Noto Serif KR", Batang, serif;
  --sans:
    "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
.service-page {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.service-page a {
  color: inherit;
  text-decoration: none;
}
.service-page button,
.service-page input {
  font: inherit;
}
.service-page button,
.service-page a,
.service-page input {
  touch-action: manipulation;
}
.service-page button {
  cursor: pointer;
}
.service-page :focus-visible {
  outline: 3px solid #9c6979;
  outline-offset: 4px;
}
.service-page img {
  display: block;
  max-width: 100%;
}
.service-page h1,
.service-page h2,
.service-page h3,
.service-page p {
  margin-top: 0;
}
.service-page h1,
.service-page h2 {
  font-weight: 500;
  letter-spacing: -0.045em;
}
.service-page h1 {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.45;
}
.service-page h2 {
  font-size: 27px;
  line-height: 1.5;
}
.service-page h3 {
  font-size: 18px;
  line-height: 1.6;
}
.service-page p {
  margin-bottom: 16px;
}
.service-page small {
  font-size: 12px;
}
.service-page strong {
  font-weight: 650;
}
.service-page [hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 20px;
  top: -80px;
  padding: 12px;
  background: var(--wine);
  color: white !important;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #faf8f5f5;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner {
  max-width: 1280px;
  margin: auto;
  height: 90px;
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 32px;
}
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.brand-mark {
  display: block;
  font: italic 48px/0.8 Georgia;
  color: var(--wine);
  letter-spacing: -6px;
  width: 47px;
}
.brand-mark > span {
  color: var(--gold);
  font-style: normal;
  letter-spacing: 0;
}
.brand > span:last-child {
  font: 600 16px/1.1 var(--sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand small {
  display: block;
  font: 8px/1.6 var(--sans);
  letter-spacing: 0.2em;
  margin-top: 5px;
  color: var(--muted);
}
.header-inner nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  height: 100%;
  align-items: center;
}
.header-inner nav a {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--muted);
  white-space: nowrap;
}
.header-inner nav a[aria-current] {
  color: var(--wine);
  font-weight: 650;
}
.header-inner nav a[aria-current]:after {
  position: absolute;
  content: "";
  height: 2px;
  background: var(--wine);
  bottom: -1px;
  inset-inline: 0;
}
.header-account {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 12px;
  white-space: nowrap;
}
.header-account .account-arrow {
  font-size: 20px;
  color: var(--wine);
}
.account-mobile {
  display: none;
}
.site-main,
.commerce-main {
  max-width: 1280px;
  margin: auto;
  padding: 42px 32px 88px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 700;
}
.muted,
.service-page .muted {
  color: var(--muted);
}
.service-page .btn,
.service-page .button,
.service-page button:not(.filter-chip):not(.text-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--wine);
  border-radius: 7px;
  background: var(--wine);
  color: white;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 550;
  transition:
    background 0.2s,
    transform 0.2s;
}
.service-page button:hover:not(:disabled),
.service-page .btn:hover {
  background: var(--wine-dark);
  transform: translateY(-1px);
}
.service-page .btn.secondary,
.service-page button.secondary,
.service-page .button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #d2c8be;
}
.service-page .btn.secondary:hover,
.service-page button.secondary:hover {
  background: var(--blush);
}
.service-page button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.text-link {
  font-size: 13px;
  color: var(--wine) !important;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  background: #eee8df;
  border: 1px solid #e6dfd4;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.hero-copy {
  padding: 48px 16px 42px 46px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.45vw, 48px);
  margin: 16px 0 22px;
  line-height: 1.52;
}
.hero h1 em {
  font-style: normal;
  color: var(--wine);
}
.hero-copy > p:not(.eyebrow) {
  font-size: 13px;
  color: #746c63;
  line-height: 1.95;
}
.hero-copy .actions {
  margin-top: 14px;
}
.hero-visual {
  position: relative;
  align-self: stretch;
  background: #e7dfd3;
}
.hero-still {
  position: absolute;
  inset: 28px 30px 72px 12px;
  border-radius: 150px 150px 12px 12px;
  overflow: hidden;
  background: #695b50;
}
.hero-still img {
  position: absolute;
  width: 200%;
  max-width: none;
  left: 0;
  top: 0;
  height: 200%;
  object-fit: fill;
}
.hero-still:after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, #2b1b2770, transparent 45%);
}
.hero-caption {
  position: absolute;
  left: 46px;
  right: 36px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: #756856;
  font-size: 11px;
}
.hero-caption strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}
.hero-counter {
  font: 12px Georgia;
  border-bottom: 1px solid #b9a992;
  padding-bottom: 5px;
}
.hero-tag {
  position: absolute;
  left: 36px;
  bottom: 95px;
  color: #fff9f0;
  font-size: 10px;
  letter-spacing: 0.1em;
  z-index: 2;
}
.format-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 26px 0 36px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}
.format-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}
.format-item:first-child {
  padding-left: 0;
}
.format-item:last-child {
  border: 0;
}
.format-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eee9e2;
  color: var(--wine);
  flex-shrink: 0;
}
.format-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.3;
}
.format-item h2 {
  font-size: 14px;
  letter-spacing: -0.02em;
  margin: 0 0 3px;
}
.format-item p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
  gap: 20px;
}
.section-head h2 {
  margin: 3px 0 0;
  font-size: 30px;
  font-family: var(--serif);
}
.section-head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.library-controls {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 30px;
}
.filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 30px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.filter-chip[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.filter-chip:hover {
  border-color: #d3c6c4;
}
.search-wrap {
  position: relative;
  width: 250px;
  flex-shrink: 0;
}
.search-wrap input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfc7bd;
  padding: 10px 30px 10px 3px;
  border-radius: 0;
  font-size: 12px;
}
.search-wrap span {
  position: absolute;
  right: 5px;
  top: 4px;
  font-size: 23px;
  color: #82756a;
  pointer-events: none;
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 24px;
}
.book-card {
  min-width: 0;
}
.book-art {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--cover-bg);
  border-radius: 10px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  isolation: isolate;
}
.book-cover-link {
  display: block;
}
.book-cover-link:hover .book-art {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.book-art:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 5px,
    #fff2 6px 6.5px
  );
  z-index: 2;
  pointer-events: none;
}
.book-art:after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  height: 75%;
  border: 1px solid #fff5;
  border-radius: 50% 50% 0 0;
  top: 12%;
  transform: rotate(var(--cover-tilt, 0deg));
  z-index: 0;
}
.book-orb {
  position: absolute;
  background: var(--cover-accent);
  opacity: 0.65;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  left: 42%;
  top: 5%;
  filter: blur(0.3px);
}
.book-landscape {
  position: absolute;
  left: -20%;
  right: -20%;
  height: 52%;
  bottom: -17%;
  background: var(--cover-accent);
  opacity: 0.7;
  transform: rotate(-23deg);
  border-radius: 50% 50% 0 0;
}
.book-cover-title {
  position: absolute;
  inset: 20% 8% auto;
  z-index: 3;
  text-align: center;
  color: var(--cover-ink);
  font: clamp(19px, 2vw, 27px) / 1.7 var(--serif);
  font-weight: 500;
  letter-spacing: 0.06em;
  word-break: keep-all;
}
.book-cover-no {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font: 9px/1.6 Georgia;
  letter-spacing: 0.24em;
  color: var(--cover-ink);
}
.book-art .book-seal {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  background: #fffaf0e8;
  color: #594739;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: 0.03em;
}
.book-art .book-lock {
  position: absolute;
  right: 14px;
  bottom: 15px;
  color: var(--cover-ink);
  z-index: 4;
  font-size: 13px;
}
.book-info {
  padding: 15px 2px 0;
}
.book-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wine);
  font-size: 10px;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
}
.book-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b9aaa0;
}
.book-info h3 {
  font-size: 17px;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0 0 4px;
  word-break: keep-all;
}
.book-info > p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
}
.book-stats {
  font-size: 10px;
  color: #90877e;
}
.book-modes {
  display: flex;
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.book-modes a {
  font-size: 11px;
  color: #756b64;
  padding: 2px 10px;
  border-right: 1px solid var(--line);
  line-height: 1.4;
}
.book-modes a:first-child {
  padding-left: 0;
}
.book-modes a:last-child {
  border: 0;
}
.book-modes a:hover {
  color: var(--wine);
}
.membership-note {
  margin-top: 64px;
  padding: 32px 36px;
  border: 1px solid #ddcfd0;
  border-radius: 12px;
  background: #f2e9e6;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.membership-note h2 {
  font: 25px/1.5 var(--serif);
  margin-bottom: 8px;
}
.membership-note p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px max(32px, calc((100vw - 1216px) / 2));
  background: #f3f0eb;
  color: #7c746c;
}
.footer-top {
  display: flex;
  gap: 50px;
  align-items: center;
  margin-bottom: 32px;
}
.footer-top p {
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #e1dbd3;
  font-size: 10px;
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.age-label {
  display: inline-flex;
  border: 1px solid #c3b6ad;
  border-radius: 50%;
  padding: 1px 4px;
  font-size: 9px;
  margin-left: 12px;
}
.empty-state {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
  grid-column: 1/-1;
}
.commerce-main {
  max-width: 1120px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 32px;
}
.breadcrumb a:hover {
  color: var(--wine);
}
.page-heading {
  max-width: 700px;
  margin-bottom: 32px;
}
.page-heading .eyebrow {
  margin-bottom: 8px;
}
.page-heading h1 {
  margin-bottom: 12px;
  font-size: 34px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
}
.service-page .card,
.commerce-main > article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin: 20px 0;
}
.service-page .card h2 {
  font-size: 21px;
}
.service-page .card p {
  font-size: 13px;
  color: var(--muted);
}
.service-page .card .balance {
  font: 42px/1.4 Georgia;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.service-page .card .balance small {
  font: 15px var(--sans);
}
.service-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.service-page .grid article {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.service-page .grid article h2 {
  font-size: 19px;
}
.service-page article small {
  color: var(--gold);
}
.service-page .notice {
  padding: 20px 24px;
  background: #fff1d9;
  border: 1px solid #ecd4a9;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 12px;
  color: #6a4f2e;
}
.service-page .payment-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 8px 22px;
  padding-left: 20px;
}
.service-page .payment-checks li {
  overflow-wrap: anywhere;
  padding: 4px 0;
}
.service-page .payment-check-ready,
.service-page .payment-ready {
  color: #28634d;
}
.service-page .payment-check-missing,
.service-page .payment-missing {
  color: #9b3b45;
}
.service-page .feature-switches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin: 22px 0;
}
.service-page .feature-switches label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 16px;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.service-page .feature-switches input {
  width: 18px;
  height: 18px;
  accent-color: var(--wine);
}
.service-page [data-charge-panel][hidden],
.service-page #payments-disabled[hidden] {
  display: none;
}
.service-page .notice form {
  display: inline-block;
}
.service-page .notice button {
  margin: 8px 8px 0 0;
  min-height: 36px;
  font-size: 11px;
  padding: 8px 13px;
}
.service-page #status:not(:empty) {
  padding: 14px 18px;
  background: var(--blush);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 24px;
  white-space: pre-line;
}
.service-page #status:empty {
  display: none;
}
.service-page .scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 16px 0;
}
.service-page table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  min-width: 500px;
}
.service-page th {
  padding: 13px;
  background: #f2eee9;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.service-page td {
  padding: 13px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
  max-width: 260px;
}
.service-page details {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.service-page summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
}
.service-page code {
  overflow-wrap: anywhere;
}
.service-page label {
  display: block;
  margin: 18px 0;
  font-size: 13px;
}
.service-page input[type="checkbox"] {
  accent-color: var(--wine);
  width: 17px;
  height: 17px;
  vertical-align: middle;
  margin-right: 6px;
}
.service-page .wallet-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.service-page .wallet-top .card {
  margin: 0;
}
.service-page .wallet-balance {
  background: linear-gradient(130deg, #522b3c, #7b4355);
  color: white;
}
.service-page .wallet-balance h2,
.service-page .wallet-balance p,
.service-page .wallet-balance .balance {
  color: white !important;
}
.service-page .wallet-balance .eyebrow {
  color: #d8bec1;
}
.service-page #orders article {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.service-page #orders article p {
  margin: 0;
  flex-basis: 100%;
  font-size: 12px;
}
.service-page #orders article small {
  flex: 1;
  color: var(--muted);
}
.service-page #orders article button {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 11px;
}
.service-page #packs article {
  position: relative;
  background: var(--white);
  padding: 24px;
  transition: border 0.2s;
}
.service-page #packs article:hover {
  border-color: var(--wine);
}
.service-page #packs article h3 {
  font: 30px Georgia;
  margin: 8px 0 10px;
}
.service-page #packs article button {
  width: 100%;
  margin-top: 16px;
}
.service-page #packs article p {
  font-size: 12px;
  margin: 0;
}
.service-page .paywall-card {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 54px;
  align-items: center;
  padding: 44px;
}
.paywall-art {
  aspect-ratio: 3/4;
  max-width: 260px;
  width: 100%;
  margin: auto;
  background: linear-gradient(145deg, #81515a, #c4a59a);
  border-radius: 120px 120px 8px 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 16px 18px 0 #eee4dc;
}
.paywall-art:before {
  content: "";
  position: absolute;
  border: 1px solid #f4e4d078;
  inset: 16px;
  border-radius: 120px 120px 3px 3px;
}
.paywall-art:after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: #e4cbb16b;
  filter: blur(20px);
  border-radius: 50%;
  top: -60px;
  right: -60px;
  z-index: -1;
}
.paywall-art span {
  font: 24px/1.9 var(--serif);
  color: #fff7eb;
  text-align: center;
  padding: 20px;
  word-break: keep-all;
}
.paywall-price {
  font: 38px/1.6 Georgia;
  color: var(--wine);
  margin: 16px 0;
}
.service-page .paywall-copy h2 {
  font: 28px/1.6 var(--serif);
  color: var(--ink);
}
.service-page .paywall-copy .actions {
  margin: 24px 0;
}
.service-page .paywall-copy .actions button,
.service-page .paywall-copy .actions a {
  flex: 1;
}
.service-page .paywall-copy #balance {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.auth-main {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 760px;
  max-width: 1280px;
  margin: auto;
}
.auth-story {
  background: #eee4df;
  margin: 36px 0 36px 32px;
  border-radius: 180px 180px 14px 14px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  position: relative;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.auth-story:before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  border: 1px solid #b7927970;
  border-radius: 200px 200px 0 0;
  z-index: -1;
}
.auth-story:after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  bottom: -180px;
  background: #975c6680;
  border-radius: 50%;
  filter: blur(30px);
  z-index: -1;
}
.auth-story h2 {
  font: 34px/1.9 var(--serif);
  margin: 32px 0;
}
.auth-story p {
  font-size: 12px;
  color: #927e72;
  max-width: 260px;
}
.auth-story .monogram {
  font: italic 90px Georgia;
  color: #a9767d;
}
.auth-form {
  padding: 70px 52px 50px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.auth-form h1 {
  font: 30px/1.6 var(--serif);
  margin-bottom: 16px;
}
.auth-form > p {
  font-size: 12px;
  color: var(--muted);
}
.auth-form .provider {
  width: 100%;
  margin: 5px 0;
  justify-content: flex-start !important;
  border-color: var(--line) !important;
  background: white !important;
  color: var(--ink) !important;
  min-height: 54px !important;
  border-radius: 8px !important;
}
.auth-form .provider:hover {
  background: #f5f1eb !important;
}
.provider-symbol {
  width: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 16px;
}
.provider-google .provider-symbol {
  color: #4285f4;
}
.provider-naver .provider-symbol {
  color: #03a85a;
}
.provider-apple .provider-symbol {
  color: black;
}
.auth-form .accept-label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.accept-label input {
  flex-shrink: 0;
  margin-top: 4px !important;
}
.accept-label a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-form .auth-footnote {
  font-size: 10px;
  margin-top: 18px;
}
.auth-form details {
  margin-top: 32px;
}
.auth-form summary {
  font-size: 11px;
  color: #94867c;
}
.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}
.auth-error:not(:empty) {
  background: var(--blush);
  padding: 12px;
  border-radius: 8px;
  color: var(--wine) !important;
}
.auth-sample {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 18px;
}
.admin-tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.service-page .admin-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.service-page .admin-intro p {
  max-width: 600px;
}
.service-page progress {
  width: 100%;
  height: 8px;
  accent-color: var(--wine);
  margin: 20px 0;
}
.service-page #download-status {
  font-size: 12px;
}
.service-page .terms-copy {
  max-width: 820px;
  margin: auto;
}
.service-page .terms-copy h2 {
  font-size: 20px;
  margin-top: 32px;
}
.service-page .terms-copy h2:first-child {
  margin-top: 0;
}
.service-page .terms-copy p {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .header-inner,
  .site-main {
    max-width: 1360px;
  }
  .hero {
    min-height: 500px;
  }
  .hero-copy {
    padding-left: 64px;
  }
}
@media (max-width: 1000px) {
  .header-inner {
    gap: 36px;
  }
  .books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 20px;
  }
  .hero-copy {
    padding: 32px;
  }
  .hero-still {
    inset: 34px 20px 76px 0;
  }
  .hero {
    min-height: 420px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .format-item {
    padding: 0 14px;
    gap: 10px;
  }
  .auth-form {
    padding: 48px 32px;
  }
  .auth-story {
    padding: 32px;
  }
  .paywall-card {
    gap: 32px !important;
    padding: 30px !important;
  }
}
@media (max-width: 720px) {
  html {
    scroll-padding-top: 75px;
  }
  .header-inner {
    height: 72px;
    padding: 0 20px;
    gap: 24px;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    font-size: 40px;
    width: 38px;
  }
  .brand > span:last-child {
    font-size: 11.5px;
  }
  .brand small {
    font-size: 7px;
  }
  .header-inner nav {
    gap: 20px;
    font-size: 12px;
  }
  .header-inner nav a:nth-child(2) {
    display: none;
  }
  .header-account {
    font-size: 11px;
    gap: 8px;
  }
  .account-label {
    display: none;
  }
  .account-mobile {
    display: inline;
  }
  .header-account .account-arrow {
    font-size: 18px;
  }
  .header-inner nav a:nth-child(3) {
    display: none;
  }
  .site-main,
  .commerce-main {
    padding: 26px 20px 60px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 14px;
  }
  .hero-copy {
    padding: 30px 28px 8px;
  }
  .hero h1 {
    font-size: 32px;
    margin: 12px 0 14px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 12px;
  }
  .hero-copy .actions {
    margin-top: 8px;
  }
  .hero-visual {
    height: 320px;
    background: transparent;
    margin-top: 12px;
  }
  .hero-still {
    inset: 0 24px 68px;
    border-radius: 12px;
  }
  .hero-still img {
    object-fit: fill;
  }
  .hero-caption {
    left: 26px;
    right: 26px;
    bottom: 22px;
  }
  .hero-caption strong {
    font-size: 18px;
  }
  .hero-tag {
    left: 40px;
    bottom: 87px;
  }
  .hero-counter {
    font-size: 10px;
  }
  .format-strip {
    gap: 10px;
    padding: 24px 0;
    margin-bottom: 32px;
  }
  .format-item {
    padding: 0 7px;
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
    border: 0;
  }
  .format-icon {
    width: 32px;
    height: 32px;
  }
  .format-icon svg {
    width: 16px;
    height: 16px;
  }
  .format-item h2 {
    font-size: 12px;
  }
  .format-item p {
    font-size: 9px;
    line-height: 1.7;
  }
  .section-head {
    align-items: start;
    margin-bottom: 18px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .section-head > p {
    display: none;
  }
  .library-controls {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
    margin: 14px 0 24px;
  }
  .filter-chip {
    font-size: 11px;
    padding: 7px 14px;
  }
  .search-wrap {
    width: 100%;
  }
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 27px 15px;
  }
  .book-cover-title {
    font-size: 20px;
    line-height: 1.6;
    inset: 21% 9% auto;
  }
  .book-cover-no {
    font-size: 7px;
    bottom: 22px;
  }
  .book-art .book-seal {
    font-size: 8px;
    padding: 2px 6px;
    left: 10px;
    top: 10px;
  }
  .book-info {
    padding-top: 12px;
  }
  .book-info h3 {
    font-size: 15px;
  }
  .book-info > p {
    font-size: 10px;
  }
  .book-meta,
  .book-stats {
    font-size: 9px;
  }
  .book-modes a {
    font-size: 10px;
    padding: 2px 7px;
  }
  .book-art .book-lock {
    font-size: 11px;
    bottom: 10px;
    right: 10px;
  }
  .membership-note {
    padding: 24px;
    flex-direction: column;
    align-items: start;
    margin-top: 40px;
  }
  .membership-note h2 {
    font-size: 22px;
  }
  .site-footer {
    padding: 30px 20px;
  }
  .footer-top {
    gap: 25px;
    align-items: flex-start;
  }
  .footer-top p {
    font-size: 10px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
  .footer-bottom nav {
    gap: 16px;
  }
  .service-page .card,
  .commerce-main > article {
    padding: 23px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .service-page .wallet-top {
    grid-template-columns: 1fr;
  }
  .service-page .grid {
    grid-template-columns: 1fr;
  }
  .service-page #packs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .service-page #packs article {
    padding: 16px 10px;
  }
  .service-page #packs article h3 {
    font-size: 23px;
  }
  .service-page #packs article button {
    font-size: 11px;
    padding: 10px 4px;
    min-height: 40px;
  }
  .service-page #packs article p {
    font-size: 10px;
  }
  .service-page label {
    font-size: 11px;
  }
  .service-page .paywall-card {
    display: block;
    padding: 28px 22px !important;
  }
  .paywall-art {
    max-width: 165px;
    margin-bottom: 42px;
  }
  .paywall-art span {
    font-size: 20px;
  }
  .service-page .paywall-copy h2 {
    font-size: 24px;
  }
  .service-page .paywall-copy .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .service-page .paywall-copy .actions button {
    width: 100%;
  }
  .auth-main {
    display: block;
    min-height: 0;
  }
  .auth-story {
    display: none;
  }
  .auth-form {
    max-width: 480px;
    margin: auto;
    padding: 48px 24px 44px;
  }
  .auth-form h1 {
    font-size: 28px;
  }
  .auth-form .provider {
    min-height: 54px !important;
  }
  .service-page .notice {
    padding: 16px;
  }
  .service-page .notice button {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 36px;
  }
  .service-page .admin-intro {
    display: block;
  }
  .service-page .grid article h2 {
    font-size: 18px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 8px;
  }
  .service-page .card .balance {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.admin-summary article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.admin-summary article p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.admin-summary article strong {
  font: 30px Georgia;
  display: block;
}
.admin-summary article small {
  display: block;
  font-size: 9px;
  margin-top: 12px;
  color: var(--muted);
}
.admin-tabs {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
}
.admin-tabs a {
  padding: 0 14px 8px 0;
}
.admin-tabs a:hover {
  color: var(--wine);
}
.admin-intro form {
  flex-shrink: 0;
}
.service-page #admin-content .grid nav {
  display: flex;
  gap: 16px;
  font-size: 12px;
  margin-bottom: 20px;
}
.service-page #admin-content .grid button {
  min-height: 38px;
  font-size: 11px;
  padding: 9px 14px;
  width: 100%;
}
@media (max-width: 720px) {
  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .admin-summary article {
    padding: 16px;
  }
  .admin-summary article strong {
    font-size: 24px;
  }
  .admin-summary article small {
    font-size: 8px;
  }
  .admin-tabs {
    gap: 8px;
  }
  .admin-tabs a {
    padding-right: 7px;
  }
}

.book-premium {
  position: absolute;
  right: 12px;
  top: 13px;
  z-index: 5;
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #d6bb79;
  background: #3d3020;
  color: #ffe4a3;
  border-radius: 4px;
  font:
    9px/1.4 Georgia,
    serif;
  letter-spacing: 0.1em;
}
.premium-tag {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #d8c293;
  border-radius: 5px;
  background: #f6ecd4;
  color: #735525;
  font-size: 10px;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}

/* Compact editorial introductions with intentional public teaser thumbnails. */
.books-grid.intro-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.intro-list .book-card {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  align-items: start;
}
.intro-list .book-art {
  border-radius: 8px;
  aspect-ratio: 4/5;
}
.intro-list .book-info {
  padding: 4px 0 0;
}
.intro-list .book-info h3 {
  font-size: 18px;
  margin: 6px 0 8px;
}
.intro-list .book-premise {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  color: #655d58;
  line-height: 1.8;
  margin: 8px 0;
}
.intro-list .book-cover-title {
  font-size: 17px;
  inset: 24% 7% auto;
}
.intro-list .book-cover-no {
  font-size: 7px;
  bottom: 17px;
}
.intro-list .book-art .book-seal {
  left: 8px;
  top: 8px;
  font-size: 8px;
  padding: 2px 5px;
}
.intro-list .book-premium {
  right: 8px;
  top: 8px;
  font-size: 7px;
  padding: 3px 6px;
}
.book-art.has-photo > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s;
}
.book-cover-link:hover .has-photo > img {
  transform: scale(1.035);
}
.book-art.has-photo .book-orb,
.book-art.has-photo .book-landscape,
.book-art.has-photo .book-cover-title {
  display: none;
}
.book-art.has-photo:after {
  display: none;
}
.book-art.has-photo:before {
  opacity: 1;
  background: linear-gradient(0deg, #21152170, transparent 26%);
  z-index: 2;
}
.book-art.has-photo .book-cover-no {
  color: #fff8ed;
  z-index: 3;
}
.service-page #edition-purchase {
  position: fixed;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 120px #24131d55;
}
#edition-purchase::backdrop {
  background: #251c2066;
  backdrop-filter: blur(5px);
}
.service-page #edition-purchase form {
  position: absolute;
  right: 13px;
  top: 13px;
}
.service-page #edition-purchase .purchase-close {
  min-height: 28px;
  height: 28px;
  width: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 23px;
  font-weight: 400;
}
#edition-purchase h2 {
  font-size: 25px;
  line-height: 1.6;
  margin: 14px 0 12px;
}
#edition-purchase > p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
}
.purchase-totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.purchase-totals strong {
  font: 30px Georgia;
  color: var(--wine);
}
#edition-purchase .actions {
  margin-top: 24px;
  align-items: stretch;
  flex-direction: column;
}
#edition-purchase #purchase-status:not(:empty) {
  padding: 12px;
  border-radius: 8px;
  background: var(--blush);
  color: var(--wine);
}
#edition-purchase .purchase-note {
  font-size: 10px;
  margin: 16px 0 0;
}
@media (max-width: 1000px) {
  .intro-list .book-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 15px;
    padding: 13px;
  }
  .intro-list .book-info h3 {
    font-size: 16px;
  }
  .intro-list .book-premise {
    font-size: 11px;
  }
}
@media (max-width: 720px) {
  .books-grid.intro-list {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .intro-list .book-card {
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 12px;
    gap: 14px;
  }
  .intro-list .book-info h3 {
    font-size: 15px;
    margin: 5px 0;
  }
  .intro-list .book-premise {
    font-size: 10px;
    margin: 6px 0;
  }
  .intro-list .book-info > p:not(.book-premise) {
    font-size: 9px;
  }
  .intro-list .book-meta {
    font-size: 9px;
  }
  .intro-list .book-modes {
    margin-top: 9px;
    padding-top: 8px;
  }
  .intro-list .book-cover-title {
    font-size: 14px;
  }
  .service-page #edition-purchase {
    padding: 28px 24px;
  }
  #edition-purchase h2 {
    font-size: 22px;
  }
  .intro-list .book-cover-no {
    font-size: 6px;
    bottom: 12px;
  }
}

#admin-login { scroll-margin-top: 110px; }
