:root {
  color-scheme: light;
  font: 14px/1.5 Verdana, "굴림", Gulim, AppleGothic, sans-serif;
  color: #111;
  background: #0875d8;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding: 30px 18px; }
[hidden] { display: none !important; }
a { color: #0000ee; text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 1px dotted #000080; outline-offset: 4px; }
.studio-skip { position: absolute; top: 0; left: 18px; padding: 6px 10px; background: #fff; clip-path: inset(100%); }
.studio-skip:focus { clip-path: none; z-index: 1; }
.studio-window {
  width: 100%; max-width: 700px; margin: 0 auto; padding: 4px;
  background: #c0c0c0; border: 2px solid;
  border-color: #fff #333 #333 #fff; box-shadow: 3px 3px 0 #164474;
}
.studio-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 6px 5px 8px; color: #fff; background: #000080; font-size: 13px; }
.studio-titlebar-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.studio-window-controls { display: flex; flex: none; gap: 2px; }
.studio-window-controls button {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 22px; padding: 0; border: 0; border-radius: 0; background: #c0c0c0;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}
.studio-window-controls button:enabled:active { box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080; }
.studio-window-controls button:focus-visible { outline: 1px dotted #111; outline-offset: -4px; }
.studio-window-controls img { display: block; image-rendering: pixelated; pointer-events: none; }
.studio-window-controls button:disabled img { opacity: .35; }
.studio-window-controls .studio-window-maximize:disabled img { opacity: 1; }
.studio-window-minimize[aria-pressed="false"] img { margin-top: 6px; }
.studio-window-close { margin-left: 2px; }
.studio-window.is-minimized > header > .studio-menu,
.studio-window.is-minimized > .studio-page,
.studio-window.is-minimized > .studio-sitefooter,
.studio-window.is-minimized > .studio-statusbar { display: none; }
@media (pointer: coarse) {
  .studio-window-controls button { width: 28px; height: 28px; }
}
.studio-menu { display: flex; justify-content: center; padding: 8px 2px; border-bottom: 1px solid #808080; }
body[data-page="guide"] .studio-menu, body[data-page="booking"] .studio-menu { display: none; }
.studio-menu a {
  display: flex; align-items: center; justify-content: center; flex: 0 1 70px;
  min-width: 0; min-height: 28px; padding: 3px 0; color: #111;
  font-size: 14px; font-weight: 400; line-height: 20px;
}
.studio-menu a:hover { color: #000080; }
.studio-page { padding: 22px 26px 18px; background: #e8e8e8; }
.studio-welcome { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.studio-logo { display: block; width: 225px; max-width: 100%; }
.studio-logo img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
h1, .booking-heading h2 { margin: 0 0 10px; color: #000080; font: bold 27px/1.15 "Times New Roman", Times, serif; }
h2 { margin: 0 0 24px; color: #000080; font: bold 20px/1.2 "Times New Roman", Times, serif; }
.studio-role { margin: 0 0 18px; font: 13px/1.6 "Courier New", monospace; }
hr { height: 2px; margin: 22px 0 18px; border: 0; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }
.studio-recent { text-align: center; }
.studio-albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 28px 18px; max-width: 600px; margin: 0 auto; }
.studio-album { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; margin: 0; }
.studio-album-link { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; color: #111; text-decoration: none; }
.studio-case {
  display: flex; align-items: center; width: 156px; max-width: 100%; padding: 2px;
  border: 2px solid; border-color: #fff #666 #666 #fff;
  background: #b7b7b7; box-shadow: 2px 2px 0 #888;
}
.studio-case::before {
  content: ""; align-self: stretch; width: 2px; flex: none; margin-right: 2px;
  background: repeating-linear-gradient(to bottom, #555 0, #555 2px, #9c9c9c 2px, #9c9c9c 4px);
}
.studio-art { position: relative; display: block; width: 144px; max-width: calc(100% - 4px); aspect-ratio: 1; overflow: hidden; background: #d0d0d0; }
.studio-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.studio-art-fallback { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 10px; font: 12px/1.5 "Courier New", monospace; color: #555; }
.studio-album-title { display: block; width: 100%; line-height: 1.4; overflow-wrap: anywhere; }
a .studio-album-title { color: #0000ee; text-decoration: underline; }
.studio-album-artist { display: block; width: 100%; margin: 0; color: #333; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.studio-more { margin: 26px 0 10px; }
.studio-load-status { margin: 20px 0; }
.studio-button { margin: 0 auto; padding: 6px 14px; border: 2px solid; border-color: #fff #333 #333 #fff; border-radius: 0; background: #c0c0c0; color: #111; font: inherit; }
.studio-button:active { border-color: #333 #fff #fff #333; }
.studio-sitefooter { padding: 20px 12px 15px; border-top: 1px solid #808080; background: #e8e8e8; color: #333; text-align: center; font-size: 12px; line-height: 1.8; }
.studio-sitefooter a, .studio-sitefooter span { display: block; overflow-wrap: anywhere; }
.studio-sitefooter span { margin-top: 3px; }
.studio-statusbar { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; padding: 6px 8px; border: 1px solid; border-color: #808080 #fff #fff #808080; font: 12px/1.2 Arial, sans-serif; }
@media (max-width: 620px) {
  body { padding: 18px 10px; }
  .studio-page { padding: 22px 14px 16px; }
  .studio-logo { width: 200px; }
  .studio-welcome { gap: 20px; }
  h1, .booking-heading h2 { font-size: 25px; }
  .studio-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .studio-case { width: 108px; }
  .studio-art { width: 96px; }
  .studio-statusbar span:last-child { display: none; }
}
@media (pointer: coarse) {
  .studio-menu a, .studio-button { min-height: 44px; }
  .studio-more a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Every public page uses the same frame; the admin stylesheet is loaded separately. */
.studio-menu a[aria-current] { color: #000080; }
.studio-page-title { text-align: center; margin: 0 0 24px; }
body:not([data-page="home"]) .studio-page { min-height: 560px; }
.studio-works { text-align: center; }
.studio-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 28px 0 8px; }
.studio-pagination .studio-button { margin: 0; padding: 4px 9px; min-width: 30px; text-decoration: none; }
.studio-pagination [aria-current] { color: #000080; border-color: #808080 #fff #fff #808080; background: #ddd; }
.studio-pagination [aria-disabled] { color: #6a6a6a; }
.studio-prose { max-width: 560px; margin: 22px auto 0; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
.studio-prose p { margin: 0 0 20px; }
.studio-prose { text-align: center; font-weight: 400; }
.studio-related { text-align: center; margin: 26px 0 10px; line-height: 1.8; }
.studio-form, .booking-form { max-width: 480px; margin: 26px auto 0; }
.field { margin-bottom: 22px; }
.field > label { display: block; margin-bottom: 5px; }
input, textarea, select, button { font: inherit; }
.field input, .field textarea {
  display: block; width: 100%; min-width: 0; padding: 9px 10px; border: 2px solid;
  border-color: #808080 #fff #fff #808080; border-radius: 0; background: #fff; color: #111;
}
.field textarea { resize: vertical; min-height: 90px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #000080; outline-offset: 2px; }
.field-help { color: #444; font-size: 12px; line-height: 1.6; margin: 6px 0; word-break: keep-all; overflow-wrap: anywhere; }
.form-actions { text-align: center; margin-top: 20px; }
.form-status { padding: 12px; margin-top: 18px; border: 1px solid #808080; line-height: 1.7; overflow-wrap: anywhere; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.studio-button:disabled { color: #666; cursor: default; }
.studio-socials { display: flex; justify-content: center; gap: 22px; margin: 30px auto 0; }
.studio-socials a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
.studio-socials svg { width: 36px; height: 36px; padding: 7px; color: #000080; border: 2px solid; border-color: #fff #555 #555 #fff; background: #c0c0c0; }
.document-header { text-align: center; }
.document-header .intro { margin: 14px 0; }
.chapter { margin: 30px 0; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; scroll-margin-top: 16px; }
.chapter h2 { margin: 0 0 22px; font: bold 18px/1.5 Verdana, "굴림", sans-serif; }
.chapter h3 { font-size: 14px; margin: 24px 0 8px; }
.chapter p { margin: 0 0 16px; }
.document-end { margin-top: 30px; text-align: center; }
.primary-action { display: inline-block; }
button.primary-action { padding: 8px 16px; border: 2px solid; border-color: #fff #333 #333 #fff; border-radius: 0; background: #c0c0c0; color: #111; }
.booking-fields { padding: 0; margin: 0; border: 0; min-width: 0; }
.checklist { min-width: 0; padding: 14px; border: 1px solid #808080; }
.checklist legend { max-width: 100%; }
.checklist label { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 13px; line-height: 1.7; }
.checklist input { width: 16px; height: 16px; flex: none; margin-top: 3px; accent-color: #000080; }
.check-progress { text-align: right; font-size: 12px; }
@media (max-width: 620px) {
  .field input, .field textarea { font-size: 16px; }
}
/* Reserve twelve slots so the page controls stay in the same place on shorter pages. */
.studio-works .studio-albums { grid-template-rows: repeat(4, minmax(218px, auto)); }
@media (max-width: 620px) {
  .studio-works .studio-albums { grid-template-rows: repeat(6, minmax(172px, auto)); }
}
.studio-albums:empty { display: none; }

/* Preparation comes first, followed by the booking form. */
.guide-intro { margin: 20px 0 28px; line-height: 1.8; text-align: center; word-break: keep-all; }
.preparation-guide { margin: 28px 0; }
.booking-heading { margin-top: 32px; padding-top: 26px; border-top: 1px solid #808080; }
.preparation-guide .chapter { margin: 24px 0; }
.preparation-guide .chapter h2 { font-size: 16px; margin-bottom: 12px; }

/* Blog pages follow the same quiet document layout. */
.blog-list, .blog-post { max-width: 560px; margin: 0 auto; word-break: keep-all; overflow-wrap: anywhere; }
.blog-entry { padding: 22px 0; border-bottom: 1px solid #aaa; }
.blog-entry:first-child { padding-top: 8px; }
.blog-entry h2 { font: bold 18px/1.6 Verdana, "굴림", sans-serif; margin: 6px 0; }
.blog-entry h2 a { color: #000080; }
.blog-entry p { margin: 8px 0 0; line-height: 1.8; }
.blog-entry time, .blog-post time { color: #555; font-size: 12px; }
.blog-meta { display: flex; align-items: center; gap: 6px; min-height: 18px; }
.blog-pinned { display: block; flex: none; width: 14px; height: 14px; color: #000080; }
.blog-empty { text-align: center; margin: 50px 0; }
.blog-post h1 { font: bold 24px/1.5 Verdana, "굴림", sans-serif; margin: 18px 0 10px; }
.blog-body { margin: 32px 0; line-height: 1.95; }
.blog-body p { white-space: pre-wrap; margin: 0 0 22px; }
.blog-back { margin: 0 0 18px; }

/* The public article keeps the same permitted formatting as the editor. */
.blog-body { overflow-wrap: anywhere; }
.blog-plain-text { white-space: pre-wrap; }
.blog-body h2, .blog-body h3 { line-height: 1.5; margin: 30px 0 14px; }
.blog-body ul, .blog-body ol { padding-left: 28px; margin: 16px 0; }
.blog-body li > p { margin-bottom: 8px; }
.blog-body blockquote { margin: 24px 0; padding: 4px 18px; border-left: 3px solid #808080; }
.blog-body figure { margin: 28px 0; }
.blog-body figure img { display: block; max-width: 100%; height: auto; margin: auto; }
.blog-body audio { display: block; width: 100%; }
.blog-body .blog-youtube iframe { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; border: 0; }
.blog-body .blog-file > a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.blog-body figcaption { text-align: center; font-size: .9em; margin-top: 8px; white-space: pre-wrap; }
.blog-body code { background: #d2d2d2; padding: 1px 4px; }
