
:root { color-scheme: light; --jh-ink: #111111; --jh-paper: #fcfcfa; --jh-accent: #2b3bff; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { background: var(--jh-paper); }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--jh-accent); outline-offset: 5px; }
section, article[id] { scroll-margin-top: 24px; }
header nav { font-size: .63rem !important; gap: 0 20px !important; }
header nav a, header nav button { min-height: 48px; display: inline-flex; align-items: center; }
header nav a[aria-current="page"] { text-decoration: underline !important; text-underline-offset: 6px; }
.jh-skip { position: fixed; z-index: 1000; left: 16px; top: 12px; transform: translateY(-180%); background: var(--jh-ink); color: var(--jh-paper); padding: 12px 20px; border-radius: 4px; font: 1rem sans-serif; }
.jh-skip:focus { transform: none; color: var(--jh-paper); }
.jh-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.jh-stage-intro { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin: 0 auto 16px; max-width: 1240px; color: #5a5a55; font-size: .875rem; }
.jh-stage-intro p { margin: 0; }
.jh-stage-intro span { font-family: 'IBM Plex Mono', monospace; letter-spacing: .04em; }
.jh-object-menu { display: none; }
.jh-object-menu button { background: transparent; border: 1px solid #b9b9b4; border-radius: 24px; color: var(--jh-ink); min-height: 44px; padding: 9px 16px; font-size: .875rem; cursor: pointer; text-align: left; }
.jh-object-menu button[aria-pressed="true"] { background: var(--jh-ink); border-color: var(--jh-ink); color: var(--jh-paper); }
.jh-note { max-width: calc(100vw - 52px); }
.jh-note [data-t="pDesc"] { font-size: 1rem; }
.jh-note a { min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem !important; }
.jh-note [data-for="pRows"] { font-size: .875rem !important; }
.jh-modal { width: min(480px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); overflow: auto; box-sizing: border-box; padding: 40px 32px 28px; border: 1px solid var(--jh-ink); background: var(--jh-paper); color: var(--jh-ink); box-shadow: 0 24px 80px #1113; font-family: 'IBM Plex Sans KR', sans-serif; }
.jh-modal::backdrop { background: #1118; backdrop-filter: blur(3px); }
.jh-modal h2 { font: 400 2rem/1.3 'Gowun Batang', serif; margin: 8px 0 20px; padding-right: 12px; word-break: keep-all; }
.jh-modal p { font-size: 1rem; line-height: 1.75; word-break: keep-all; }
.jh-modal .jh-modal-kicker { font: .875rem 'IBM Plex Mono', monospace; letter-spacing: .06em; }
.jh-modal-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.5rem; }
.jh-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.jh-service-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.jh-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; box-sizing: border-box; border: 1px solid var(--jh-ink); border-radius: 25px; background: var(--jh-ink); color: var(--jh-paper); text-decoration: none; cursor: pointer; font-size: .9375rem; }
.jh-button:hover { color: var(--jh-paper); background: #30302c; }
.jh-button-secondary { background: transparent; color: var(--jh-ink); }
.jh-button-secondary:hover { background: #eeeeea; color: var(--jh-ink); }
.jh-info-section { display: grid; grid-template-columns: 1fr 3fr; gap: 28px 32px; padding: 32px 0 clamp(56px, 7vw, 104px); border-top: 1px solid var(--jh-ink); }
.jh-info-section:first-child { border-top: 0; padding-top: clamp(40px, 5vw, 72px); }
.jh-section-label { font: .875rem/1.7 'IBM Plex Mono', 'IBM Plex Sans KR', monospace; letter-spacing: .06em; margin: 0; }
.jh-info-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.jh-info-body h1, .jh-info-body h2 { font: 400 clamp(1.75rem, 3vw, 2.75rem)/1.45 'Gowun Batang', serif; margin: 0; word-break: keep-all; }
.jh-info-body h1 { font-size: clamp(2rem, 3.3vw, 3rem); }
.jh-info-body p { font-size: 1rem; line-height: 1.8; max-width: 660px; margin: 0; word-break: keep-all; }
.jh-info-body .jh-muted { color: #5a5a55; font-size: .875rem; }
.jh-three-lines { display: grid; gap: 12px; width: min(100%, 340px); }
.jh-three-lines div { display: flex; align-items: center; gap: 16px; font-size: .875rem; }
.jh-three-lines span { height: 1px; background: var(--jh-ink); flex: 1; }
.jh-three-lines div:nth-child(2) span { height: 2px; background: var(--jh-accent); }
.jh-workshop-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.jh-workshop-grid article { padding: 24px 0; border-top: 1px solid var(--jh-ink); }
.jh-workshop-grid h3 { font: 400 1.6rem/1.4 'Gowun Batang', serif; margin: 0 0 16px; }
.jh-workshop-grid p { margin-bottom: 16px; }
.jh-info-notice { width: 100%; box-sizing: border-box; background: #eeeeea; padding: 24px; }
.jh-info-notice p + p { margin-top: 10px; }
footer a { color: inherit; text-underline-offset: 4px; }
@media (max-width: 1100px) {
  .jh-stage .jh-note { position: relative !important; left: auto !important; top: auto !important; width: auto !important; max-width: none; margin: 24px 12px 0; transform: none !important; }
  .jh-object-menu { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 8px; }
}
@media (max-width: 640px) {
  header nav { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px !important; font-size: .63rem !important; }
  header nav > * { justify-content: center; text-align: center; }
  .jh-stage-intro { font-size: .875rem; margin-bottom: 8px; }
  .jh-stage .jh-note { margin-left: 10px; margin-right: 10px; padding-left: 22px !important; padding-right: 44px !important; }
  .jh-object-menu { gap: 8px; }
  .jh-object-menu button { padding: 8px 13px; }
  .jh-info-section { grid-template-columns: 1fr; gap: 20px; }
  .jh-workshop-grid { grid-template-columns: 1fr; gap: 0; }
  .jh-modal { padding: 36px 24px 24px; }
  #reader [data-t="word"] { overflow-wrap: anywhere; }
  #reader > div { gap: 24px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .jh-stage *, .jh-stage *::before, .jh-stage *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
