/* The Listening School · "dark & brass" (v2)
   Source of truth: mockups/brass/dark/ (dark.css + index.html). Tokens, base,
   buttons and the shared components; each page adds its own sheet.
   Method: a warm near-black page, a deeper black for page heads and the
   player room, brass saved for action and small marks. The header and footer
   live in chrome.css, which every page loads. */

/* Korean serif faces draw curly quotes full-width ("didn’ t"); take the
   quote marks from a Latin serif instead. */
@font-face { font-family: "Latin Quotes"; src: local("Georgia"), local("Times New Roman"); unicode-range: U+2018-201F; }

:root {
  --page: #1C1A18;      /* warm near-black: the page */
  --band: #24211E;      /* alternate sections */
  --card: #2C2824;      /* raised objects: cards, inputs, playlist */
  --card-hover: #34302B;
  --d: #14110E;         /* deeper black: page heads, the player room */
  --d2: #0F0D0B;        /* footer */
  --line: rgba(242,235,221,.12); --line-2: rgba(242,235,221,.22);
  --ink: #F2EBDD; --muted: #C2B8A8;
  --acc: #C9A45C; --acc-2: #DDBB78; --acc-1: #3A3226;  /* brass; acc-1 is its tint on dark */
  --on-acc: #1C1A18;
  --paper: #F6EEE2; --paper-ink: #2B2420; --paper-muted: #5B4D43;
  --shade: 0,0,0;
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: "Latin Quotes", "Gowun Batang", "AppleMyungjo", Georgia, serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scrollbar-color: #4A443C var(--page); caret-color: var(--acc); }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.65 var(--sans); }
::selection { background: var(--acc); color: var(--on-acc); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
/* The type roles, one size each across every page:
   page title 56 (h1) · section title 36 (h2) · block title 28 (.h2s)
   · card title 18–20 (h3) · lead 19 · body 17 · meta 14 · label 13. */
h1 { font-size: 56px; line-height: 1.08; letter-spacing: -.03em; }
h2 { font-size: 36px; line-height: 1.2; letter-spacing: -.022em; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
:lang(ko) { word-break: keep-all; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
section { padding: 112px 0; }
.band { background: var(--band); }
.lead { margin-top: 16px; max-width: 52ch; font-size: 19px; line-height: 1.6; color: var(--muted); }
.head { margin-bottom: 48px; }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
/* times and counts line up in columns */
.num, .len, .dur, .count, .meta, time { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vh, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--acc); color: var(--on-acc); font-weight: 700; }
.skip-link:focus { left: 16px; }
[hidden] { display: none !important; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 999px; background: var(--acc); color: var(--on-acc); font: 700 16px/1.2 var(--sans); border: 0; cursor: pointer; transition: background .25s, transform .25s; }
.btn:hover { background: var(--acc-2); }
.btn:active { transform: translateY(1px); }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 999px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font: 700 16px/1.2 var(--sans); border: 0; cursor: pointer; transition: box-shadow .25s, transform .25s; }
.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.ghost:active { transform: translateY(1px); }
.btn--sm, .ghost.btn--sm { min-height: 44px; padding: 11px 20px; font-size: 15px; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap; font-weight: 600; font-size: 16px; color: var(--acc); }
.more svg { transition: transform .25s; }
.more:hover svg, a:hover .more svg { transform: translateX(3px); }
.free { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--acc); color: var(--on-acc); font-size: 13px; font-weight: 700; line-height: 1.6; }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.lock svg { width: 14px; height: 14px; }
.play { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--acc); color: var(--on-acc); flex: none; }
.play svg { width: 13px; height: 13px; margin-left: 2px; }
svg.solid { fill: currentColor; stroke: none; }

/* the channel's title card: a brass plate, dark bold words */
.card-title { display: inline-block; padding: .3em .55em .35em; background: var(--acc); color: var(--on-acc); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.card-title small { display: block; font-size: max(12px, .62em); font-weight: 700; }

/* page head: the deeper black, with a brass glow */
.phead { background: var(--d); color: var(--ink); position: relative; overflow: hidden; padding: 56px 0 64px; }
.phead::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 88% 0%, rgba(201,164,92,.12), transparent 70%); }
.phead .wrap { position: relative; }
.phead .crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.phead .crumbs a { color: var(--acc-2); }
.phead .crumbs a:hover { color: var(--ink); }

/* lesson card (library, course, watch page) */
.lesson { display: flex; flex-direction: column; position: relative; }
.lesson .ph { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: var(--card); }
.lesson .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.lesson:hover .ph img { transform: scale(1.03); }
.lesson .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--shade),.55), transparent 50%); }
.lesson .len { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 3px 9px; border-radius: 6px; background: rgba(var(--shade),.78); color: #fff; font-size: 13px; font-weight: 500; }
.lesson .free { position: absolute; left: 10px; top: 10px; z-index: 1; }
.lesson .lk { position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: rgba(var(--shade),.78); color: #fff; font-size: 13px; font-weight: 500; }
.lesson .lk svg { width: 13px; height: 13px; }
.lesson .ph .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1; width: 48px; height: 48px; background: rgba(255,248,236,.94); color: var(--on-acc); opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s; }
.lesson:hover .ph .play, .lesson:focus-within .ph .play { opacity: 1; transform: none; }
.lesson .t { padding: 16px 4px 0; }
.lesson .meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.lesson h3 { font-size: 18px; font-weight: 600; }
.lesson h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.lesson .tag { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); }
.lesson.is-members .ph img { filter: saturate(.7) brightness(.9); }

/* plan cards: Free and Membership (homepage, membership page) */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.plan--m { box-shadow: inset 0 0 0 1px var(--acc); }
.plan h3, .plan .h3 { font-size: 18px; }
.plan .price { margin-top: 6px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.plan--m .price { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan ul { margin: 18px 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.plan ul li { padding-left: 22px; position: relative; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 6px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }
.plan .btn, .plan .ghost { margin-top: auto; min-height: 46px; padding: 11px 20px; font-size: 15px; }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* a date leaf for the next live Q&A */
.when { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.when .d { width: 60px; border-radius: 12px; overflow: hidden; background: var(--paper); color: var(--paper-ink); text-align: center; }
.when .d b { display: block; padding: 3px 0; background: var(--acc); color: var(--on-acc); font-size: 12px; letter-spacing: .1em; }
.when .d span { font: 800 24px/1.5 var(--sans); }
.when p { color: var(--muted); font-size: 15px; }
.when p b { display: block; color: var(--ink); font-size: 17px; }

/* questions (details/summary), shared by the homepage and the path */
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 10px 0; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { flex: none; color: var(--muted); transition: transform .25s; }
.qa details[open] summary svg { transform: rotate(45deg); }
.qa details p { max-width: 60ch; padding: 0 40px 20px 0; color: var(--muted); font-size: 16px; }

/* a questions section: heading and the way in, beside the list */
.qs .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 72px; align-items: start; }
.qs .qa summary { min-height: 72px; padding: 12px 0; font-size: 18px; }
.qs .qa details p { max-width: 62ch; padding: 0 48px 24px 0; font-size: 17px; }
.qs-go { margin-top: 28px; }
@media (max-width: 860px) { .qs .wrap { grid-template-columns: 1fr; gap: 36px; } }

/* motion: things rise once as they come into view; never loops */
.io [data-rise] { opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .9s cubic-bezier(.16,1,.3,1); }
.io [data-rise].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .io [data-rise] { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1024px) { h1 { font-size: 46px; } h2 { font-size: 32px; } section { padding: 88px 0; } }
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .head--row { display: block; }
  .head--row .more { margin-top: 12px; }
  .phead { padding: 32px 0 48px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 36px; } h2 { font-size: 28px; }
  section { padding: 72px 0; }
  .lead { font-size: 17px; }
}

/* tap targets: titles and small links get a 44px-tall hit area without moving the layout */
h3 > a, b > a, .meta a, .guest a { display: inline-block; padding-block: 11px; margin-block: -11px; }
