:root {
  color-scheme: light;
  --paper: #fff;
  --white: #fff;
  --ink: #16181c;
  --muted: #49515b;
  --action: #20252c;
  --action-hover: #343e4a;
  --surface: #f5f7f9;
  --rule: #dfe4e9;
  --stroke: #a6b1bd;
  --accent: #234f7c;
  --ui: system-ui, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --page-width: 1440px;
  --page-gutter: clamp(32px, 3.4vw, 56px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.7 var(--ui);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
figure, h1, h2, p { margin: 0; }
p + p { margin-top: 1em; }
h1, h2 { font-weight: 720; letter-spacing: -.06em; line-height: 1.24; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); white-space: pre-line; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.7rem); }
.wrap { width: min(var(--page-width), calc(100% - 2 * var(--page-gutter))); margin-inline: auto; }

.skip {
  position: absolute;
  z-index: 10;
  left: 1rem;
  top: -6rem;
  color: white;
  background: var(--action);
  padding: .6rem 1rem;
}
.skip:focus { top: 1rem; }

.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 750 1.3rem/1.25 var(--ui); letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; position: relative; background: var(--action); border-radius: 8px; }
.brand-mark i { width: 3px; height: 17px; background: var(--white); position: absolute; border-radius: 90% 40%; transform: rotate(31deg); }
.brand-mark i:first-child { margin: 3px 12px 0 0; height: 12px; opacity: .8; }
.brand-mark i:last-child { margin: 0 0 3px 12px; height: 14px; opacity: .7; }

.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 2.2vw, 28px); }
.site-header nav a { padding-block: 8px; font-size: .94rem; font-weight: 650; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.site-header nav a:last-child { color: var(--action); border: 1px solid var(--stroke); border-radius: 24px; padding: 8px 16px; }

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
  gap: clamp(18px, 2.2vw, 34px);
  align-items: center;
  padding: clamp(20px, 2.5vw, 40px) max(var(--page-gutter), calc((100% - var(--page-width)) / 2));
  background: radial-gradient(ellipse at 58% 12%, #e1f1fb 0%, #f3faff 56%, #fff 100%);
}
.hero:has(.hero-text:only-child) { display: block; }
.hero-text { min-width: 0; }
.kicker { font: 690 .91rem/1.6 var(--ui); color: var(--accent); letter-spacing: .015em; margin-bottom: 15px; }
.hero h1 { font-size: clamp(2.8rem, 5.4vw, 4.75rem); line-height: 1.13; }
.intro { font-size: clamp(1.05rem, 1.45vw, 1.16rem); color: var(--muted); line-height: 1.75; max-width: 39rem; margin-top: 20px; }
.hero .intro { max-width: 27rem; }
.buttons { display: flex; gap: 8px 12px; flex-wrap: wrap; margin-top: 24px; }
.button {
  min-height: 46px;
  padding: .63rem 1.06rem;
  border: 1px solid var(--action);
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--action);
  color: #fff;
  font: 675 .96rem/1.35 var(--ui);
  cursor: pointer;
}
.button:hover { background: var(--action-hover); }
.button-quiet { background: transparent; color: var(--action); border-color: var(--stroke); }
.button-quiet:hover { background: var(--surface); }

.hero-photo, .detail-photo, .wide-photo, .feature-photo, .course-photo { overflow: hidden; position: relative; background: var(--surface); border-radius: 16px; }
.hero-photo { aspect-ratio: 1.4; }
.hero-photo img, .detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { object-position: 48% 52%; }
.sample-tag { position: absolute; right: 12px; bottom: 12px; background: #fffffff2; border-radius: 4px; padding: 2px 8px; color: var(--ink); font-size: .76rem; }
.home-overview { padding-block: clamp(46px, 8vw, 94px) clamp(28px, 5vw, 58px); }
.overview-grid { display: grid; grid-template-columns: 1fr 1.16fr; gap: 26px 70px; align-items: center; }
.body-text { color: var(--muted); }
.body-text p { font-size: 1.04rem; line-height: 1.83; }
.prose-line { white-space: pre-line; }
.text-link { display: inline-block; color: var(--accent); font-size: .96rem; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; margin-top: 10px; }
.text-link:hover { color: var(--accent); }
.home-explore { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-block: 0 clamp(48px, 8vw, 92px); }
.home-explore a { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--rule); padding: 24px 0; }
.home-explore a:hover { border-color: var(--accent); }
.home-explore h2 { font-size: 1.58rem; }
.home-explore p { margin-top: 6px; color: var(--muted); }
.small-action { color: var(--accent); font-weight: 650; font-size: .9rem; }
.recent > h2 { margin-bottom: 13px; }

.layout-note {
  padding: .4rem 1rem;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  font-size: .86rem;
}
.layout-lead, .layout-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
}
.layout-lead { padding-block: clamp(48px, 8vw, 104px); }
.layout-lead h1 { font-size: clamp(2.6rem, 5.1vw, 4.3rem); line-height: 1.17; }
.layout-stack { padding-bottom: clamp(32px, 6vw, 72px); }
.layout-section {
  grid-template-areas: "media copy";
  border-top: 1px solid var(--rule);
  padding-block: clamp(44px, 7vw, 96px);
}
.layout-section:nth-child(even) { grid-template-areas: "copy media"; }
.layout-copy { grid-area: copy; }
.layout-copy p { margin-top: 16px; max-width: 32rem; color: var(--muted); line-height: 1.8; }
.layout-media {
  overflow: hidden;
  border-radius: 16px;
  background: #d6d9dd;
}
.layout-section .layout-media { grid-area: media; }
.layout-media img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }

.page-heading { padding-block: clamp(48px, 7vw, 85px) 35px; }
.page-heading .intro { max-width: 42rem; }
.page-section { padding-bottom: clamp(50px, 7vw, 88px); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(18px, 2.6vw, 36px); }
.detail-photo { aspect-ratio: 1.24; }
.wide-photo { margin-bottom: 24px; }
.wide-photo img { width: 100%; aspect-ratio: 4 / 3; max-height: min(80vh, 900px); object-fit: contain; }
.detail-grid .article-text:only-child { grid-column: 1 / -1; max-width: 48rem; }
.article-text .buttons { margin-top: 27px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.65vw, 24px); margin-top: 18px; }
.work-card { border: 1px solid var(--rule); background: var(--white); }
.work-card img { height: 100%; width: 100%; object-fit: contain; }
.work-card > a { display: block; aspect-ratio: 5 / 4; background: var(--surface); }
.work-caption { padding: 1rem; }
.work-card h2 { font-size: 1.36rem; }
.work-card p { color: var(--muted); margin-top: .5rem; }

.reviews-list, .edit-list { list-style: none; margin: 0; padding: 0; }
.reviews-list li + li { border-top: 1px solid var(--rule); }
.review-card { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); padding: 18px 0; }
.review-card > div { min-width: 0; max-width: 46rem; }
.review-card:hover h2 { text-decoration: underline; text-underline-offset: 5px; }
.review-card h2 { font-size: clamp(1.3rem, 3vw, 1.85rem); }
.review-card p { color: var(--muted); margin-top: .4rem; }
.review-photo { width: min(48%, 600px); flex-shrink: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--surface); }
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
time { display: inline-block; font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.post { width: min(800px, 100% - 2 * var(--page-gutter)); padding-block: 32px 64px; }
.post:has(> .wide-photo) { width: min(var(--page-width), 100% - 2 * var(--page-gutter)); }
.post > :is(header, .body-text, .art-facts, .entry-links) { max-width: 50rem; }
.post header { margin-block: 14px 18px; }
.post header h1 { font-size: clamp(2.3rem, 5.3vw, 4.15rem); }
.post time { margin-top: 14px; }

.empty { padding: 22px 20px; border: 1px dashed var(--stroke); color: var(--muted); margin-top: 14px; }
.location-box { background: var(--surface); padding: clamp(18px, 4.4vw, 38px); }
.location-box h2 { font-size: 1.7rem; }
.location-box dl { margin-bottom: 0; }
.location-box dl div { border-top: 1px solid var(--rule); padding-block: 9px; }
.location-box dt { font-weight: 700; }
.location-box dd { margin: 0; color: var(--muted); }

.site-footer { background: var(--surface); color: var(--ink); border-top: 1px solid var(--rule); padding-block: 27px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.foot-brand { font: 720 1.22rem/1.5 var(--ui); letter-spacing: -.045em; }
.footer-inner p { color: var(--muted); font-size: .91rem; }
.footer-inner p + p { margin-top: .15rem; }
.footer-inner > a, .footer-nav a { font-size: .96rem; text-decoration: underline; text-underline-offset: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem 1.15rem; max-width: 34rem; }

.studio-hero h1 { font-size: clamp(2.7rem, 4.25vw, 4.2rem); text-wrap: balance; }
.hero-jump { display: inline-flex; align-items: center; min-height: 44px; }
.home-sections { padding-bottom: clamp(18px, 4vw, 44px); }
.home-band { padding-block: clamp(32px, 4.2vw, 60px); border-top: 1px solid var(--rule); }
.home-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 36px); align-items: center; }
.home-split > *, .detail-grid > * { min-width: 0; }
.home-split > :only-child { grid-column: 1 / -1; max-width: 46rem; }
.info-band { grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); align-items: start; }
.media-first:has(> figure) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.media-last:has(> figure) { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.section-copy p { color: var(--muted); max-width: 39rem; margin-top: 14px; }
.section-copy .artist-credit, .artist-credit { color: var(--ink); font-weight: 700; }
.feature-photo img, .course-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.artist-band .feature-photo img { object-fit: contain; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.55vw, 22px); margin-top: 20px; }
.course-card { border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.course-card :is(.course-photo, .layout-media) { border-radius: 0; }
.course-copy { padding: clamp(16px, 2vw, 24px); }
.course-copy h3, .work-card h3, .review-card h3 { margin: 0; font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.35; letter-spacing: -.035em; }
.course-copy p { color: var(--muted); margin-top: .6rem; }
.home-works .layout-media img { aspect-ratio: 5 / 4; }
.section-link, .section-status { margin-top: 18px; }
.section-status { color: var(--muted); }
.class-info { margin: 0; }
.class-info > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 8px 16px; border-top: 1px solid var(--rule); padding: .8rem 0; }
.class-info > div:last-child { border-bottom: 1px solid var(--rule); }
.class-info dt { font-weight: 700; }
.class-info dd { margin: 0; color: var(--muted); }
.class-page-info { margin-top: 42px; max-width: 42rem; }
.class-page-info > h2 { margin-bottom: 16px; }
.class-jumps { display: flex; flex-wrap: wrap; gap: .25rem 1.3rem; padding-bottom: clamp(28px, 4vw, 46px); }
.class-jumps a { margin-top: 0; padding-block: .45rem; }
.course-section { border-top: 1px solid var(--rule); padding-top: clamp(24px, 3.2vw, 46px); }
.course-section h2 { margin-bottom: 20px; }
.course-section .article-text h2 { text-wrap: balance; }
.course-section > .body-text { max-width: 46rem; }
.class-scenes { margin-top: 26px; }
.class-scenes > :only-child { grid-column: 1 / -1; max-width: 64rem; }
.method-steps { padding-left: 1.4rem; margin-block: 1.1rem .5rem; }
.method-steps li + li { margin-top: .62rem; }
.method-steps span { display: block; color: var(--muted); }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary { padding-block: .83rem; cursor: pointer; font-weight: 700; }
.faq-list p { padding: 0 0 1rem 1.1rem; color: var(--muted); }
.location-box h3 { margin: 0; font-size: 1.2rem; }

.admin-body { background: var(--surface); }
.admin-body .site-header { background: var(--paper); }
.administrator { max-width: 900px; padding-block: 34px 60px; min-height: 60vh; }
.administrator h1 { font-family: var(--ui); font-size: clamp(1.95rem, 5vw, 3.2rem); }
.login { max-width: 500px; padding-top: 58px; }
.login .editor { margin-top: 18px; }
.admin-top { display: flex; gap: 14px; align-items: flex-end; justify-content: space-between; }
.admin-top .kicker { margin-bottom: 6px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px 18px; border-bottom: 1px solid var(--rule); margin: 20px 0; }
.admin-tabs a { border-bottom: 3px solid transparent; padding: 9px 0; font-weight: 650; color: var(--muted); }
.admin-tabs a[aria-current] { border-bottom-color: var(--accent); color: var(--action); }
.admin-actions { margin-bottom: 16px; }
.edit-list li + li { margin-top: 8px; }
.edit-list li a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; background: var(--white); border: 1px solid var(--rule); border-radius: 7px; }
.edit-list li a:hover { border-color: var(--accent); }
.edit-list small, .edit-list span { color: var(--muted); display: block; font-size: .9rem; }

.editor { padding: clamp(17px, 4vw, 30px); background: var(--white); border: 1px solid var(--rule); border-radius: 10px; }
.field { display: grid; font-weight: 700; gap: 4px; margin-bottom: 15px; }
input:not([type=checkbox]), textarea, select {
  width: 100%;
  min-height: 42px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  padding: 8px 10px;
  font: 1rem/1.5 var(--ui);
}
input[type=file] { padding: 5px; }
input[type=file]::file-selector-button { color: var(--ink); border: 0; background: var(--surface); cursor: pointer; border-radius: 4px; padding: .35rem .6rem; font-size: .91rem; }
textarea { resize: vertical; }
.subpage-heading { padding-block: clamp(28px, 4vw, 52px) clamp(16px, 2.2vw, 28px); }
.subpage-heading h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
.subpage-heading .artist-credit { margin-top: 12px; }
.subpage-section { padding-bottom: clamp(34px, 5.4vw, 64px); }
.subpage-section .article-text h2 { margin-bottom: .55em; }
.subpage-section > .class-info { max-width: 46rem; margin-top: 18px; }
.subpage-list .gallery-grid { margin-top: 0; }
.reading-section { max-width: 46rem; }
.reading-section h2 { font-size: clamp(1.35rem, 3vw, 1.95rem); margin-bottom: .55em; }
.reading-section .body-text + h2 { margin-top: 1.7rem; }
.reading-section p + p { margin-top: .8em; }
.artwork-feature img, .lesson-photo img { object-fit: contain; }
.photo-placeholder, .work-card > a.photo-placeholder { background: #d6d9dd; }
.art-facts { margin-bottom: 1.7rem; }
.entry-links { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin-top: 28px; border-top: 1px solid var(--rule); }
.visit-grid > .location-box:only-child { grid-column: 1 / -1; max-width: 48rem; width: 100%; }
.visit-grid .visit-notes { grid-column: 1 / -1; max-width: 46rem; }
fieldset { border: 1px solid var(--rule); border-radius: 6px; padding: 12px 16px 9px; margin: 12px 0; }
legend { font-weight: 700; padding-inline: 5px; }
.admin-thumbnail { max-height: 145px; width: auto; margin-bottom: 13px; object-fit: contain; background: var(--surface); }
.check { display: flex; gap: .6rem; align-items: center; margin-bottom: 7px; }
.check input { height: 1.2rem; width: 1.2rem; }
.notice { border: 1px solid var(--stroke); background: var(--surface); color: var(--action); border-radius: 6px; padding: 9px 12px; margin: 0 0 12px; }
.notice.error { color: #862f26; background: #fff0e7; border-color: #deb7a2; }
.form-note { font-size: .93rem; color: var(--muted); }
.search-editor { border: 1px solid var(--rule); border-radius: 6px; margin: 12px 0; padding: 9px 16px; }
.search-editor summary { font-weight: 700; cursor: pointer; }
.search-editor .field { margin-top: 12px; margin-bottom: 8px; }

@media (max-width: 820px) {
  :root { --page-gutter: 22px; }
  .header-inner { min-height: auto; align-items: flex-start; gap: 8px; flex-direction: column; padding-block: 13px 10px; }
  .site-header nav { gap: 0 17px; }
  .site-header nav a, .class-jumps a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-header nav a { padding-block: 6px; }
  .site-header nav a:last-child { padding: 5px 0; border: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 22px 26px; }
  .hero .buttons { gap: 8px; }
  .layout-lead, .layout-section { gap: 28px; }
  .home-split, .detail-grid, .media-first:has(> figure), .media-last:has(> figure) { grid-template-columns: minmax(0, 1fr); }
  .artist-band .section-copy { grid-row: 1; }
  .course-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
}

@media (max-width: 620px) {
  :root { --page-gutter: 16px; }
  .hero-photo { aspect-ratio: 1.18; }
  .layout-lead, .layout-section { grid-template-columns: 1fr; gap: 20px; padding-block: 34px; }
  .layout-section:nth-child(n) { grid-template-areas: "copy" "media"; }
  .layout-copy p { margin-top: 10px; }
  .overview-grid, .home-explore, .detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .intro { margin-top: 13px; }
  .kicker { margin-bottom: 11px; }
  .page-heading { padding-block: 28px 18px; }
  .gallery-grid, .course-grid { grid-template-columns: minmax(0, 1fr); }
  .review-card:has(> .review-photo) { flex-direction: column; align-items: stretch; }
  .review-photo { width: 100%; }
  .work-caption { padding: 10px; }
  .work-card h2 { font-size: 1.2rem; }
  .admin-top .button { font-size: .87rem; }
  .studio-hero h1 { font-size: clamp(2.5rem, 9vw, 3.3rem); }
  .class-info > div { grid-template-columns: 5.4rem 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-nav { justify-content: flex-start; }
}
