:root {
  color-scheme: light;
  --ink: #25243a;
  --navy: #26283f;
  --muted: #5c5b69;
  --violet: #605784;
  --rule: #dedee7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 1rem/1.68 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: -.022em; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #7162a5; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font-size: clamp(2rem, 3.3vw, 3.1rem); line-height: 1.32; letter-spacing: -.055em; }
.wrap { width: min(1256px, calc(100% - 96px)); margin-inline: auto; }
.mast nav, footer .wrap { display: flex; align-items: center; justify-content: space-between; padding: 19px 0; }
.mast { border-bottom: 1px solid #eeeeF2; }
.brand { font-size: 1.24rem; font-weight: 800; letter-spacing: -.072em; }
.brand span { color: #8574ad; margin-right: 5px; }
.navlinks { display: flex; align-items: center; gap: 28px; font-size: .94rem; }
.navlinks a, .sample-link { text-underline-offset: 5px; }
.navlinks a:hover, .sample-link:hover { text-decoration: underline; }

/* The full-size digital edition supplies all product imagery. */
@font-face {
  font-family: "Pretendard Edition";
  src: url("assets/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
body { font-family: "Pretendard Edition", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif; }
:root { --ink: #22263e; --navy: #302e50; --violet: #605488; }
.eyebrow, .over { color: var(--violet); font-size: .91rem; font-weight: 650; margin-bottom: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 0; border-radius: 7px; padding: 12px 22px; font-weight: 700; }
.primary { background: var(--navy); color: white; }
.primary:hover { background: #444165; }
.mast .wrap { min-height: 68px; padding-block: 10px; }
.mast .brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 850; letter-spacing: -.075em; font-size: 1.28rem; }
.brand .brand-mark { position: relative; color: #6f63a2; font-size: 1.35em; margin-right: 3px; line-height: 1; }
.brand-mark::after { content: '✦'; font-size: 9px; position: absolute; top: 0; right: -3px; color: #48446e; }
.navlinks { font-weight: 580; }
.navlinks .nav-buy { padding: 7px 17px; border: 1px solid #d3d2e1; border-radius: 30px; }
.navlinks .nav-buy:hover { text-decoration: none; border-color: var(--navy); }
.edition { background: #f2f1fa; overflow: hidden; position: relative; isolation: isolate; }
.edition::before { content: ''; position: absolute; inset: 0 0 0 38%; z-index: -1; background: #dadaf5 url('assets/moon-studio.jpg') center/cover no-repeat; mask-image: linear-gradient(to right, transparent, black 28%); }
.edition-layout { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; min-height: clamp(530px,42vw,655px); }
.edition-info { padding-block: 55px 61px; position: relative; z-index: 1; }
.edition-type { display: flex; align-items: center; gap: 9px; color: #5a527b; font-size: .92rem; font-weight: 640; }
.edition-type > span { width: 21px; height: 1px; background: #776a9f; }
.edition h1 { font-size: clamp(3.3rem,5.25vw,5.05rem); letter-spacing: -.069em; line-height: 1.15; font-weight: 790; margin: 17px 0 17px; color: #22253f; }
.edition h1 > span { display: block; font-weight: 520; }
.edition-lead { font-size: clamp(1rem,1.32vw,1.19rem); line-height: 1.67; color: #49506a; }
.edition-price { margin: 27px 0 0; display: flex; align-items: flex-end; gap: 14px; }
.price-name { display: block; color: #626177; font-size: .82rem; font-weight: 550; line-height: 1.55; margin-bottom: 3px; }
.edition-price strong { display: block; font-weight: 750; font-size: 2rem; line-height: 1.1; letter-spacing: -.045em; color: #292841; }
.edition-price strong span { font-size: .69em; font-weight: 650; margin-left: 2px; }
.edition-price p { color: #56566a; font-size: .9rem; padding-bottom: 1px; }
.edition-price i { display: inline-block; width: 2px; height: 2px; background: currentColor; border-radius: 50%; margin: 0 3px 3px; }
.edition-actions { display: flex; align-items: stretch; gap: 9px; margin-top: 20px; }
.edition-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 11px 23px; border-radius: 8px; font-size: .98rem; font-weight: 640; transition: background .15s; }
.buy-cover { color: #fff; background: #343252; border: 1px solid #343252; }
.buy-cover:hover { background: #49436d; }
.read-cover { color: #383752; background: #f7f6fb8c; border: 1px solid #c4c2d7; }
.read-cover:hover { background: #fff; }
.edition-viewer { position: relative; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-self: stretch; min-width: 0; padding-block: 30px 23px; }
.studio { position: relative; display: grid; place-items: center; width: 100%; min-height: 0; }
.folio { cursor: zoom-in; padding: 0; border: 0; background: transparent; position: relative; width: min(46%,clamp(230px,20.5vw,320px)); aspect-ratio: 1022/1450; transform: perspective(1200px) rotateY(-8deg) rotateZ(8deg); isolation: isolate; transition: transform .24s ease-out; }
.folio img { width: 100%; height: 100%; display: block; position: relative; border-radius: 1px 2px 2px 1px; box-shadow: 1px 1px 1px #46466499, 3px 4px 0 #d4d3df, 4px 5px 1px #79798c, 9px 12px 13px -4px #33324c55, 18px 28px 28px -8px #49446750; }
.folio::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, #ffffff12 0, transparent 2.2%, #171a2921 3%, transparent 3.6%); }
.folio[data-art="self"], .folio[data-art="calendar"] { transform: perspective(1200px) rotateY(-3deg) rotateZ(-3deg) scale(1.04); }
.art-switcher { z-index: 1; margin-top: 15px; }
.art-choices { display: inline-flex; align-items: center; padding: 4px; border-radius: 32px; border: 1px solid #ffffffe0; background: #f9f8fee6; box-shadow: 0 2px 12px #323a5f13; }
.art-choices button { padding: 7px 15px; min-height: 36px; color: #56546c; background: transparent; border: 0; border-radius: 25px; font-size: .87rem; font-weight: 620; line-height: 1.3; }
.art-choices button:hover { color: #202137; background: #e5e4f0; }
.art-choices button[aria-pressed="true"] { color: white; background: #36364f; }
.chapters { padding-block: clamp(52px,6vw,88px); }
.chapters-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-bottom: 27px; }
.chapters-head h2 { font-size: clamp(1.85rem,2.9vw,2.65rem); font-weight: 730; }
.chapters-head p { color: var(--muted); font-size: 1.02rem; }
.chapter-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.6vw,24px); }
.chapter { text-align: left; display: flex; flex-direction: column; padding: clamp(21px,2vw,32px); border: 1px solid var(--edge); border-radius: 14px; background: var(--tint); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.chapter:hover, .chapter:focus-visible { border-color: var(--accent); box-shadow: 0 4px 16px #28233f0d; }
.romance { --tint: #f7eff5; --accent: #865878; --edge: #e7d9e3; }
.work { --tint: #ecf2f9; --accent: #496a97; --edge: #d6e2f0; }
.funds { --tint: #f1eff8; --accent: #6d608a; --edge: #e1ddee; }
.chapter-top { display: flex; align-items: flex-start; justify-content: space-between; height: 48px; margin-bottom: 10px; }
.chapter-kind { color: var(--accent); font-size: .92rem; font-weight: 700; }
.chapter-mark { position: relative; display: block; width: 46px; height: 44px; color: var(--accent); }
.romance-mark::before { content: ''; position: absolute; right: 7px; top: 0; height: 21px; width: 21px; border-radius: 50%; border: 3px solid currentColor; }
.romance-mark::after { content: ''; position: absolute; top: 24px; right: 11px; height: 15px; width: 19px; background: linear-gradient(currentColor,currentColor) 50% 0/3px 100% no-repeat, linear-gradient(currentColor,currentColor) 0 55%/100% 3px no-repeat; }
.work-mark { background: linear-gradient(currentColor,currentColor) 5% 80% / 12px 4px no-repeat, linear-gradient(currentColor,currentColor) 28% 68% / 4px 12px no-repeat, linear-gradient(currentColor,currentColor) 40% 53% / 14px 4px no-repeat, linear-gradient(currentColor,currentColor) 62% 39% / 4px 12px no-repeat, linear-gradient(currentColor,currentColor) 84% 25% / 13px 4px no-repeat; }
.work-mark::after { content:'✦'; position: absolute; top:-11px; right:0; font-size:18px; }
.funds-mark::before,.funds-mark::after { content:''; position:absolute; width:25px; height:25px; border:2.5px solid currentColor; border-radius:50%; background:linear-gradient(currentColor,currentColor) center/6px 6px no-repeat,var(--tint); }
.funds-mark::before { top:0; right:0; } .funds-mark::after { bottom:0; left:0; }
.chapter strong { font-weight: 710; font-size: clamp(1.2rem,1.6vw,1.52rem); letter-spacing: -.048em; line-height: 1.4; }
.chapter-desc { margin: 7px 0 17px; font-size: 1rem; color: #595a69; line-height: 1.55; }
.chapter-open { border-top: 1px solid var(--edge); padding-top: 13px; margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; color: var(--accent); font-weight: 620; font-size: .88rem; }
.chapter-open span { font-size: 1.1rem; line-height: 1; }
.calendar-feature { background: #292b45; color: #fff; }
.feature-grid { display: grid; grid-template-columns: 1fr .93fr; align-items: center; gap: 8%; padding-block: clamp(48px,5vw,76px); }
.feature-copy .eyebrow { color: #d1c7ef; }
.feature-copy > p:not(.eyebrow) { font-size: 1.04rem; color: #e0dfea; max-width: 25em; margin: 19px 0 24px; line-height: 1.8; }
.feature-link { background: transparent; color: white; border: 0; border-bottom: 1px solid #bab9cd; padding: 4px 0; font-weight: 650; }
.feature-link:focus-visible { outline-color: #e7defb; }
.calendar-detail { margin: 0; display: grid; justify-items: center; gap: 16px; }
.calendar-window { width: min(90%, 370px); aspect-ratio: 1.07; position: relative; overflow: hidden; background: white; transform: rotate(2deg); box-shadow: 0 12px 28px #10132955; }
.calendar-window img { position: absolute; width: 117%; height: auto; left: -8.5%; top: -21%; }
.calendar-detail figcaption { color: #d3d2e0; font-size: .88rem; margin-top: 4px; }

/* The index doubles as the real-page gallery. */
.reading { padding-block: clamp(44px, 5.5vw, 80px) clamp(58px, 7vw, 104px); border-top: 1px solid var(--rule); }
.section-head p, .reading > p { color: var(--muted); margin-top: 12px; font-size: 1.04rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 26px 0 28px; }
.filters button {
  border: 1px solid #d5d3df; background: #fff; color: #514f60; font-size: .94rem;
  padding: 7px 14px; min-height: 40px; border-radius: 24px;
}
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 42px 26px; }
.sample-art {
  border: 0; border-radius: 2px; width: 100%; position: relative;
  display: grid; place-items: center; padding: 23px 12px;
  background: #eeecf3; cursor: zoom-in;
}
.sample-art img { display: block; height: clamp(180px, 17.8vw, 240px); width: auto; max-width: 95%; object-fit: contain; box-shadow: 0 3px 12px #2f2c471a; }
.sample-art::after {
  content: '＋'; position: absolute; bottom: 10px; right: 13px;
  border-radius: 50%; width: 27px; line-height: 27px; text-align: center; font-size: 19px;
  background: #ffffffc9; color: var(--ink);
}
.sample-art:hover, .sample-art:focus-visible { box-shadow: inset 0 0 0 2px #bbb4d0; }
.sample-card:nth-child(4) .sample-art { background: #f3ebef; }
.sample-card:nth-child(5) .sample-art { background: #e8edf3; }
.sample-card:nth-child(6) .sample-art { background: #f2ede7; }
.sample-card h3 { margin: 15px 0 5px; font-size: 1.23rem; line-height: 1.5; letter-spacing: -.04em; }
.sample-card p { color: var(--muted); line-height: 1.68; font-size: 1rem; text-wrap: balance; }
dialog { border: 0; border-radius: 7px; background: #f6f5f8; color: var(--ink); padding: 0; width: min(740px,97vw); max-height: 94dvh; }
dialog::backdrop { background: #171626b3; }
.dialogbar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 9px 13px; background: #faf9fc; border-bottom: 1px solid var(--rule); }
.dialogbar button { padding: 7px 11px; min-height: 38px; background: white; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); }
dialog img { display: block; max-width: 100%; width: 100%; height: auto; }

/* Manual ordering and delivery. */
.form-area { background: #f3f1f8; padding: clamp(45px, 6vw, 82px) 0; }
.form-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10%; }
.order-copy h2 { font-size: clamp(2rem,3vw,2.7rem); }
.order-price { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; color: var(--muted); }
.order-price strong { font-size: 1.55rem; letter-spacing: -.04em; color: var(--ink); }
.order-steps { list-style: none; counter-reset: step; margin: 28px 0 16px; padding: 0; }
.order-steps li { counter-increment: step; position: relative; border-top: 1px solid #d5d1df; padding: 15px 0 15px 31px; }
.order-steps li::before { content: counter(step,decimal-leading-zero); position: absolute; top: 17px; left: 0; color: var(--violet); font-size: .9rem; font-variant-numeric: tabular-nums; }
.order-steps strong { font-size: 1.08rem; }
.order-steps p, .order-faq p { margin-top: 4px; color: var(--muted); }
.order-faq { margin: 0; }
.form-area form { background: #fff; padding: clamp(20px,3.3vw,40px); border: 1px solid var(--rule); border-radius: 7px; }
fieldset { border: none; margin: 0 0 20px; padding: 0; min-width: 0; }
legend { font-size: 1.12rem; font-weight: 750; margin-bottom: 10px; padding: 0; }
fieldset + fieldset { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 26px; }
.fields { display: grid; grid-template-columns: 1fr 1.2fr; gap: 13px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .94rem; font-weight: 650; }
.field small { font-size: .83rem; font-weight: 400; color: var(--muted); margin-left: 3px; }
.field input:not([type=checkbox]) { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 9px 10px; border: 1px solid #ceccd9; border-radius: 4px; background: #fff; color: var(--ink); }
.field input:disabled { opacity: .55; }
.field label.unknown, .check { display: flex; align-items: center; gap: 7px; margin: 7px 0; font-size: .9rem; font-weight: 450; }
input[type=checkbox] { accent-color: var(--violet); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
details { border-block: 1px solid var(--rule); margin: 22px 0 12px; padding: 10px 0; color: var(--muted); font-size: .92rem; }
summary { font-weight: 650; color: var(--ink); }
details p { margin: 8px 0 2px; }
.check { margin: 14px 0 18px; }
.form-area .button { width: 100%; }
.form-area .button:disabled { background: #dfdde6; color: #575360; cursor: default; }
.time-note, .order-notice { margin: 10px 0; font-size: .92rem; color: #595168; }
.form-result:not(:empty) { padding-top: 12px; color: #4b3b64; font-weight: 650; }
.form-result.receipt { font-size: 1.1rem; line-height: 1.68; }
footer { background: var(--navy); color: #eeeef5; }
footer span { font-size: .93rem; }
@media(max-width: 880px) {
  .wrap { width: calc(100% - 56px); }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 22px; }
  .sample-art img { height: 210px; }
}
@media(max-width: 660px) {
  .wrap { width: calc(100% - 40px); }
  .mast nav { padding: 12px 0; }
  .brand { font-size: 1.14rem; }
  .navlinks { gap: 15px; font-size: .9rem; }
  .nav-about { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 27px; }
  .feature-grid { gap: 32px; }
  .calendar-window { width: min(83%,330px); }
  .filters { margin: 20px 0 21px; gap: 6px; }
  .filters button { font-size: .88rem; min-height: 38px; padding: 6px 11px; }
  .gallery { grid-template-columns: 1fr; }
  .sample-art img { height: 225px; }
  .form-grid { grid-template-columns: 1fr; gap: 26px; }
  .section-head p { font-size: 1rem; }
  .dialogbar { padding: 6px 8px; }
  .dialogbar button { font-size: .9rem; padding-inline: 8px; }
}
@media(max-width: 460px) { .fields { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 820px) and (min-width: 661px) {
 .edition-layout { grid-template-columns: 1fr .86fr; min-height: 480px; }
 .edition h1 { font-size: 3.45rem; }
 .folio { width: 68%; }
 .edition-actions a { padding-inline: 16px; }
 .art-choices button { padding-inline: 12px; }
 .chapter-list { gap: 12px; }
 .chapter { padding: 17px; }
}
@media (max-width: 660px) {
 .mast .wrap { min-height: 55px; }
 .navlinks { gap: 14px; }
 .navlinks .nav-buy { padding: 5px 12px; }
 .edition::before { display: none; }
 .edition-layout { width: 100%; display: flex; flex-direction: column; min-height: 0; }
 .edition-viewer { order: -1; width: 100%; height: clamp(281px,78vw,420px); padding: 15px 0 11px; background: #dadaf5 url('assets/moon-studio.jpg') center/cover no-repeat; }
 .studio { display: block; }
 .folio { position: absolute; top: 50%; left: 50%; width: clamp(118px,35vw,194px); height: auto; transform: translate(-50%,-50%) rotate(7deg); }
 .folio[data-art="self"], .folio[data-art="calendar"] { transform: translate(-50%,-50%) rotate(-2deg) scale(1.02); }
 .art-switcher { margin-top: 0; }
 .art-choices { padding: 3px; }
 .art-choices button { min-height: 42px; padding: 6px 13px; }
 .edition-info { width: calc(100% - 40px); padding: 24px 0 29px; }
 .edition-type { font-size: .86rem; }
 .edition h1 { font-size: clamp(2.1rem,7.6vw,2.9rem); margin: 8px 0 10px; line-height: 1.24; }
 .edition h1 > span { display: inline; font-weight: 620; }
 
 .edition-price { margin-top: 18px; }
 .edition-price strong { font-size: 1.7rem; }
 .edition-actions { margin-top: 15px; }
 .edition-actions a { padding-inline: 12px; flex: 1; }
 .chapters { padding-block: 46px; }
 .chapters-head { margin-bottom: 19px; }
 .chapter-list { grid-template-columns: 1fr; gap: 11px; }
 .chapter { position: relative; padding: 18px 50px 18px 20px; border-radius: 12px; }
 .chapter-top { height: auto; margin-bottom: 4px; }
 .chapter-mark { position: absolute; top: 15px; right: 13px; transform: scale(.71); transform-origin: top right; }
 .chapter-desc { margin: 5px 0 0; }
 .chapter-open { width: auto; border: 0; margin-top: 8px; padding: 0; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .folio,.chapter,.edition-actions a { transition: none; } }
