/* 권혁재 — 제작 도면. 제도용지, 먹선, 붉은 색연필. */
:root {
  --paper: #e7e9e4;
  --ink: #1b1f23;
  --ink-2: #50575c;
  --rule: rgba(27, 31, 35, .2);
  --accent: #a53f2b;
  --serif: "Cormorant Garamond", "Gowun Batang", "AppleMyungjo", serif;
  --text: "Gowun Batang", "AppleMyungjo", "Cormorant Garamond", serif;
  --gutter: clamp(20px, 6vw, 96px);
  --col: 42vw;
  --stage-h: 44svh;
}
html.dark { --paper: #15181b; --ink: #e7e9e4; --ink-2: #a3aab0; --rule: rgba(231, 233, 228, .2); --accent: #dd7a62; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); transition: background-color .8s ease, color .8s ease; font-family: var(--text); font-size: 17px; line-height: 1.85; word-break: keep-all; overflow-wrap: break-word; }
html[lang="fr"] body { font-family: var(--serif); font-size: 20px; line-height: 1.6; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--paper); }
html { scrollbar-color: var(--ink-2) transparent; caret-color: var(--accent); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
sup { font-size: .62em; line-height: 0; vertical-align: super; }
h2 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; }

/* header */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 18px var(--gutter); font-size: 15px; line-height: 1.4; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--col); background: var(--paper); -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); transition: background-color .8s ease; height: 84px; z-index: -1; }
.mark { font-size: 18px; text-decoration: none; letter-spacing: .12em; margin-right: auto; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.langs { display: flex; align-items: baseline; gap: 4px; }
.langs button { font: inherit; color: var(--ink-2); background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 8px; cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* the drawing */
.stage { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100svh; z-index: 0; }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
/* the drawing fades out under the header, so it never crosses the name and the menu */
.stage { -webkit-mask-image: linear-gradient(transparent 48px, #000 136px); mask-image: linear-gradient(transparent 48px, #000 136px); }
.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .4s; }
.leader line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 5 5; }
.leader circle { fill: var(--accent); }
.tag { position: absolute; left: calc(var(--col) + 3vw); top: 20%; text-shadow: 0 0 5px var(--paper), 0 0 5px var(--paper), 0 0 10px var(--paper); margin: 0; display: grid; gap: 2px; color: var(--accent); pointer-events: none; opacity: 0; transition: opacity .4s; line-height: 1.3; }
.stage.tagged .tag, .stage.tagged .leader { opacity: 1; }
/* the label sits on a patch of paper, so the lines of the drawing pass behind it, not through it */
.tag { padding: 8px 14px 9px; margin: -8px 0 0 -14px; background: var(--paper); border-radius: 10px; transition: opacity .4s, background-color .8s ease; }
.tag-name { font-size: 17px; }
.tag-sub { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-2); }
.no-gl .stage { display: none; }
.no-gl main { width: min(100%, 46rem); }

/* text column */
main { width: var(--col); padding-left: var(--gutter); position: relative; z-index: 2; text-shadow: 0 0 4px var(--paper), 0 0 4px var(--paper), 0 0 9px var(--paper); }
.btn.solid { text-shadow: none; }
.ch { min-height: 100vh; min-height: 100svh; padding: 22vh 0 16vh; display: flex; flex-direction: column; justify-content: center; }
.ch > * { max-width: 34rem; }
.hero { justify-content: flex-end; padding-bottom: 12vh; }
.role { margin: 22px 0 0; letter-spacing: .14em; font-size: 16px; color: var(--ink-2); }
h1 { margin: 0; font-weight: 400; font-size: clamp(56px, 8.4vw, 124px); line-height: 1.05; letter-spacing: .08em; font-family: "Gowun Batang", "AppleMyungjo", serif; }
.latin { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; }
.lead { margin: 8px 0 0; font-size: 18px; }
html[lang="fr"] .lead { font-size: 22px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 34px 0 0; }
.listen { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 8px; text-decoration: none; font-size: 16px; letter-spacing: .06em; color: var(--accent); }
html[lang="fr"] .listen { font-size: 19px; letter-spacing: .02em; }
.listen svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.listen .play { fill: currentColor; stroke: none; }
.listen span { border-bottom: 1px solid transparent; transition: border-color .2s; }
.listen:hover span { border-bottom-color: currentColor; }
.video { margin: 44px 0 0; }
.video-play { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--ink); }
.video-play img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .9; transition: opacity .3s, transform .8s cubic-bezier(.16, 1, .3, 1); }
.video-play:hover img, .video-play:focus-visible img { opacity: 1; transform: scale(1.025); }
.video-icon { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); }
.video-icon svg { fill: currentColor; }
.video figcaption { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
html[lang="fr"] .video figcaption { font-size: 18px; }
.player { width: min(94vw, 1000px); max-width: none; }
.player-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.player-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.btn { display: inline-block; border-radius: 999px; padding: 13px 28px; border: 1px solid var(--ink); background: var(--paper); text-decoration: none; font-size: 16px; line-height: 1.4; letter-spacing: .06em; transition: background-color .2s, color .2s, border-color .2s; }
html[lang="fr"] .btn { font-size: 19px; letter-spacing: .02em; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.hint { margin: 54px 0 0; font-size: 13px; color: var(--ink-2); letter-spacing: .08em; }
.hint::before { content: ""; display: inline-block; width: 44px; border-top: 1px solid var(--ink-2); vertical-align: middle; margin-right: 12px; transform-origin: left; animation: cue-x 2.4s ease-in-out infinite; }
@keyframes cue-x { 0%, 100% { transform: scaleX(.35); } 50% { transform: scaleX(1); } }
@keyframes cue-y { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.end { min-height: 100vh; min-height: 100svh; padding: 0 0 40px; justify-content: flex-end; }
.luthier { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 15px; color: var(--ink-2); }
html[lang="fr"] .luthier { font-size: 18px; }
.luthier a { color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.3em; text-decoration-color: var(--rule); text-underline-offset: 5px; }
.luthier a:hover { color: var(--accent); text-decoration-color: var(--accent); }

h2 { margin: 0 0 26px; font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.2; letter-spacing: .06em; }
h3 { margin: 0 0 10px; font-weight: 400; font-size: 15px; letter-spacing: .14em; color: var(--ink-2); }
.statement { margin: 0; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.75; }
html[lang="fr"] .statement { font-size: clamp(23px, 2.2vw, 29px); line-height: 1.45; }
.body { margin: 0 0 1.1em; }
.cv { list-style: none; margin: 0; padding: 0; }
.cv li { padding: 13px 0; border-top: 1px solid var(--rule); font-size: 18px; }
.cv li:last-child { border-bottom: 1px solid var(--rule); }
html[lang="fr"] .cv li { font-size: 21px; }
.veil { display: none; }

/* concerts: the page turns dark, the list turns like a reel, then the photos come round on a wheel */
.ch.concerts { display: block; padding: 0; min-height: 0; }
.concerts-static { padding: 18vh 0; }
.concerts-static ol { list-style: none; margin: 0; padding: 0; }
.concerts-static li { padding: 12px 0; border-top: 1px solid var(--rule); }
.concerts-static span { color: var(--ink-2); margin-right: 1em; }
.js .concerts-static { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.show { display: none; }
.js .show { display: block; position: fixed; inset: 0; max-width: none; z-index: 3; pointer-events: none; opacity: 0; visibility: hidden; color: var(--ink); text-shadow: none; }
.show-head { position: absolute; left: var(--gutter); top: 92px; }
.show-head .show-title { margin: 0 0 6px; font-family: inherit; font-style: normal; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.2; letter-spacing: .06em; color: var(--ink); }
.show-head p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2); }
.reel { position: absolute; left: var(--gutter); top: 54%; width: calc(var(--col) - var(--gutter)); height: 0; margin: 0; padding: 0; list-style: none; perspective: 900px; }
.reel::before { content: ""; position: absolute; left: -22px; top: -1px; width: 12px; border-top: 2px solid var(--accent); }
.reel li { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 6.6em 1fr; gap: 18px; align-items: baseline; transform-origin: 0 50%; font-size: 21px; line-height: 1.4; }
html[lang="fr"] .reel li { font-size: 21px; line-height: 1.25; }
.reel .y { font-family: var(--serif); font-style: italic; font-size: 1.15em; color: var(--ink-2); white-space: nowrap; transition: color .3s; }
.reel li.on .y { color: var(--accent); }
.wheel { position: absolute; inset: 0; opacity: 0; overflow: hidden; }
.wheel-ring { position: absolute; border: 1px solid var(--rule); border-radius: 50%; }
.wheel-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wheel-item { position: absolute; left: 0; top: 0; padding: 0; border: 0; background: none; border-radius: 14px; cursor: zoom-in; }
.wheel-item img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.social { display: flex; gap: 14px; margin: 28px 0 0; }
.social a { display: inline-flex; padding: 9px; border: 1px solid var(--rule); border-radius: 999px; transition: color .2s, border-color .2s; }
.social a:hover { color: var(--accent); border-color: var(--accent); }
.social svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.social .dot, .social .play { fill: currentColor; stroke: none; }
h3.sub { margin-top: 44px; }
.teachers { list-style: none; margin: 0; padding: 0; }
.teachers li { padding: 13px 0; border-top: 1px solid var(--rule); font-size: 18px; }
.teachers li:last-child { border-bottom: 1px solid var(--rule); }
html[lang="fr"] .teachers li { font-size: 21px; }
.portrait { margin: 4px 0 36px; width: min(100%, 360px); }
.portrait img { border-radius: 16px; filter: grayscale(1) contrast(1.05); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.facts { margin: 36px 0 0; }
.facts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--ink-2); font-size: 15px; }
.facts dd { margin: 0; }

.route { list-style: none; margin: 0; padding: 0; }
.route li { padding: 20px 0; border-top: 1px solid var(--rule); display: grid; gap: 4px; }
.route .word { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; }
.route .cap { color: var(--ink-2); }

.topics { list-style: none; margin: 30px 0 0; padding: 0; }
.topics li { padding: 16px 0; border-top: 1px solid var(--rule); display: grid; gap: 2px; }
.topics strong { font-weight: 700; }
.topics span { color: var(--ink-2); font-size: 16px; }
html[lang="fr"] .topics span { font-size: 19px; }
.fees { width: 100%; margin: 40px 0 0; border-collapse: collapse; }
.fees caption { text-align: left; font-size: 15px; letter-spacing: .14em; color: var(--ink-2); padding-bottom: 10px; }
.fees th, .fees td { padding: 14px 12px 14px 0; border-top: 1px solid var(--rule); text-align: left; font-weight: 400; vertical-align: baseline; }
.fees tr:last-child > * { border-bottom: 1px solid var(--rule); }
.fees th { white-space: nowrap; }
.fees td { color: var(--ink-2); font-size: 16px; }
.fees .num { font-variant-numeric: tabular-nums; text-align: right; padding-right: 0; color: var(--ink); font-size: 19px; white-space: nowrap; }
.note { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }

.links { list-style: none; margin: 44px 0 0; padding: 0; }
.links li { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.links li:last-child { border-bottom: 1px solid var(--rule); }
.links span { color: var(--ink-2); font-size: 15px; }
.links a { text-decoration-color: var(--rule); text-underline-offset: 5px; overflow-wrap: anywhere; }
.links a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.foot { margin-top: 12vh; color: var(--ink-2); font-size: 14px; }

/* lightbox */
.lightbox { border-radius: 20px; border: 0; padding: 24px; background: var(--paper); color: var(--ink); max-width: min(92vw, 900px); }
.lightbox::backdrop { background: rgba(27, 31, 35, .82); }
.lightbox img { border-radius: 12px; max-height: 76vh; width: auto; margin: 0 auto; }
.lightbox p { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
.lightbox .close { border-radius: 999px; font: inherit; font-size: 15px; background: none; border: 1px solid var(--ink); padding: 8px 16px; margin: 0 0 16px; cursor: pointer; color: var(--ink); }

/* the lesson screen: its own view, opened from "레슨 문의" */
.sheet { padding: 96px var(--gutter) 96px; }
.sheet-in { max-width: 38rem; margin: 0 auto; }
.sheet-top { margin: 0 0 56px; }
.js .sheet { position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); visibility: hidden; opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1), visibility 0s .5s; }
.js .sheet.open { visibility: visible; opacity: 1; transform: none; transition: opacity .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1); }
.sheet:focus { outline: none; }

/* French: Cormorant has a small x-height, so its small roles go up a step; bold is a real 600 */
html[lang="fr"] strong { font-weight: 600; }
html[lang="fr"] h3, html[lang="fr"] .role, html[lang="fr"] .note, html[lang="fr"] .fees caption, html[lang="fr"] .fees td, html[lang="fr"] .links span, html[lang="fr"] .facts dt, html[lang="fr"] .show-head p#reel-count { font-size: 18px; }
html[lang="fr"] .fees .num { font-size: 21px; }
html[lang="fr"] .hint, html[lang="fr"] .foot { font-size: 16px; }
html[lang="fr"] .fees th { white-space: normal; }
html[lang="fr"] .nav, html[lang="fr"] .langs { font-size: 17px; }
.langs button[lang="ko"], .mark { font-family: "Gowun Batang", "AppleMyungjo", serif; }
.langs button[lang="fr"] { font-family: "Cormorant Garamond", serif; font-size: 1.12em; }

/* admin: one hand on a phone, right after a concert. Same paper and ink, no ornament, large targets */
.admin { --field: #f3f4f1; width: min(94vw, 640px); max-height: 90vh; max-height: 90dvh; border: 0; border-radius: 20px; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.55; overflow: hidden; }
.admin[open] { display: flex; flex-direction: column; }
.admin::backdrop { background: rgba(27, 31, 35, .82); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px 14px; border-bottom: 1px solid var(--rule); }
.admin-head h2 { margin: 0; font-size: 22px; letter-spacing: .04em; }
.admin-close, .admin-link { font: inherit; font-size: 16px; color: var(--ink); background: none; border: 0; padding: 10px 4px; min-height: 44px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; }
.admin-close:hover, .admin-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.admin-note { margin: 20px 24px 0; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 12px; color: var(--accent); font-size: 16px; }
.admin-body, .admin-login { overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 24px; }
.admin .btn { min-height: 48px; padding: 11px 24px; font-size: 16px; cursor: pointer; background: var(--paper); color: var(--ink); font-family: inherit; }
.admin .btn.solid { background: var(--ink); color: var(--paper); }
.admin .btn.solid:hover { background: var(--accent); border-color: var(--accent); }
.admin .btn[disabled] { opacity: .5; cursor: progress; }
.admin label.btn { display: inline-flex; align-items: center; position: relative; }
.admin input[type="text"], .admin input:not([type]), .admin input[type="password"] { width: 100%; min-height: 48px; font: inherit; font-size: 17px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--field); color: var(--ink); }
.admin input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.admin input::placeholder { color: #6b7277; }
.admin-login { display: grid; gap: 10px; padding-top: 24px; }
.admin-login label, .admin-field label { font-size: 15px; color: var(--ink-2); }
.admin-err { margin: 0; min-height: 1.5em; color: var(--accent); font-size: 16px; }
.admin-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: 4px; padding: 12px 0 0; background: var(--paper); border-bottom: 1px solid var(--rule); }
.admin-tabs [role="tab"] { font: inherit; font-size: 17px; min-height: 48px; padding: 0 16px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--ink-2); cursor: pointer; }
.admin-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.admin-panel { padding-top: 22px; }
.admin-quick { display: grid; grid-template-columns: 7em 1fr; gap: 12px 14px; align-items: end; padding: 18px; border: 1px solid var(--rule); border-radius: 16px; }
.admin-field { display: grid; gap: 6px; min-width: 0; }
.admin-quick .admin-more, .admin-quick .btn { grid-column: 1 / -1; }
.admin-more summary { cursor: pointer; font-size: 16px; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; }
.admin-more summary:hover { color: var(--ink); }
.admin-more[open] summary { margin-bottom: 6px; }
.admin-sub { margin: 36px 0 4px; font-size: 18px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.admin-sub span { font-weight: 400; color: var(--ink-2); font-size: 15px; margin-left: 6px; }
.admin-hint { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); }
.admin-concerts, .admin-gallery, #ad-history-list { list-style: none; margin: 0; padding: 0; }
.admin-concerts > li { border-top: 1px solid var(--rule); }
.admin-concerts > li:last-child { border-bottom: 1px solid var(--rule); }
.admin-row-btn { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; width: 100%; min-height: 56px; padding: 12px 4px; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; align-items: baseline; }
.admin-row-btn:hover .t { color: var(--accent); }
.admin-row-btn .y { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-2); }
.admin-row-btn .fr { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.admin-row-btn .fr.missing { font-style: normal; color: var(--accent); }
.admin-edit { display: grid; grid-template-columns: 7em 1fr; gap: 10px 14px; padding: 4px 4px 18px; }
.admin-edit .admin-field.wide { grid-column: 1 / -1; }
.admin-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.admin-tools button { font: inherit; font-size: 15px; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; }
.admin-tools button:hover { border-color: var(--ink); }
.admin-tools button.done { background: var(--ink); color: var(--paper); border-color: var(--ink); margin-left: auto; }
.admin-tools button.danger { color: var(--accent); }
.admin-tools button.danger:hover { border-color: var(--accent); }
.admin-tools button:disabled { opacity: .35; cursor: default; }
.admin-gallery > li { display: grid; grid-template-columns: 84px 1fr; gap: 12px 14px; padding: 14px 0; border-top: 1px solid var(--rule); align-items: start; }
.admin-gallery img, .admin-thumb img { width: 84px; height: 104px; object-fit: cover; border-radius: 10px; display: block; }
.admin-gallery .admin-field { gap: 6px; }
.admin-portrait { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.admin-gallery + .btn { margin-top: 14px; }
.admin-history { margin-top: 8px; }
#ad-history-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; }
#ad-history-list button { flex: none; white-space: nowrap; }
#ad-history-list time { color: var(--ink-2); margin-right: 8px; font-variant-numeric: tabular-nums; }
.admin-out { margin: 36px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }
.admin-toast { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 16px 12px 24px; min-height: 60px; background: var(--ink); color: var(--paper); font-size: 16px; }
.admin-toast.error { background: var(--accent); }
.admin [hidden] { display: none !important; }
.admin-toast button { font: inherit; font-size: 16px; min-height: 44px; padding: 0 16px; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; cursor: pointer; flex: none; }
.admin-busy .admin-quick .btn.solid::after { content: "…"; }
#ad-status { font-size: 15px; color: var(--ink-2); }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* phone and tablet: the drawing stays behind the text, under a veil of paper */
@media (max-width: 899px) {
  :root { --col: 100vw; }
  .bar { padding: 12px var(--gutter); gap: 12px; background: linear-gradient(var(--paper) 60%, transparent); }
  .bar::before { display: none; }
  .nav, .tag, .leader { display: none; }
  main { width: 100%; padding: 0 var(--gutter); }
  .veil { display: block; position: fixed; inset: 0; z-index: 1; background: var(--paper); pointer-events: none; transition: background-color .8s ease; }
  .show-head { top: 72px; }
  .reel { width: calc(100vw - var(--gutter) * 2); top: 37%; }
  .reel::before { left: -14px; width: 8px; }
  .reel li { grid-template-columns: 1fr; gap: 2px; font-size: 20px; }
  .ch { padding: 96px 0 80px; }
  /* first screen: only the header and the guitar, with a cue to scroll */
  .hero { position: relative; justify-content: flex-start; padding-top: 100svh; padding-bottom: 14vh; }
  .hint { position: absolute; top: calc(100svh - 132px); left: 0; right: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 13px; color: var(--ink); }
  .hint::before { width: 1px; height: 56px; margin: 0; border: 0; background: var(--ink); order: 2; animation: cue-y 2s ease-in-out infinite; }
  .langs button { min-height: 44px; padding: 6px 10px; }
  .mark { display: inline-flex; align-items: center; min-height: 44px; }
  .sheet { padding: 72px var(--gutter) 72px; }
  .sheet-top { margin-bottom: 40px; }
}

@media (max-width: 599px) {
  .admin { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .admin-head, .admin-body, .admin-login { padding-left: 16px; padding-right: 16px; }
  .admin-quick { grid-template-columns: 1fr; padding: 14px; }
  .admin-edit { grid-template-columns: 1fr; }
  .admin-toast { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .sheet, .js .sheet.open { transition: none; transform: none; }
  body, .bar::before, .veil { transition: none; }
  .video-play img { transition: none; }
  .hint::before { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
