/* =====================================================
   COSMOS TOTAL MUSIC — Shared Styles
   ===================================================== */

:root {
  --ink: #152128;
  --ink-2: #3a4a52;
  --muted: #7e8a91;
  --teal: #1c4e5c;
  --teal-deep: #103641;
  --gold: #c2a06a;
  --gold-soft: #e6d6b5;
  --cream: #faf5ea;
  --cream-2: #f4ecdb;
  --paper: #fffcf6;
  --line: rgba(21,33,40,.12);
  --line-soft: rgba(21,33,40,.06);
  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --display: "Cormorant Garamond","Noto Serif KR",Georgia,serif;
  --body: "Inter","Noto Sans KR",system-ui,sans-serif;
}
html[lang="ko"] {
  --display: "Noto Serif KR","Cormorant Garamond",serif;
  --body: "Noto Sans KR","Inter",system-ui,sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}
::selection { background: var(--gold-soft); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---- Typography ---- */
.display { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; line-height: 1.05; }
html[lang="ko"] .display { font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .22em; font-size: 11px; font-weight: 500; color: var(--teal);
}
html[lang="ko"] .eyebrow { letter-spacing: .18em; font-size: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }

/* ---- Topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,252,246,.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; }
.brand-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; font-weight: 600; letter-spacing: .01em; color: var(--ink); line-height: 1; }
.brand-sub { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

nav.primary { display: flex; gap: 28px; }
nav.primary a { font-size: 13.5px; color: var(--ink-2); font-weight: 500; padding: 8px 0; position: relative; white-space: nowrap; }
nav.primary a:hover { color: var(--teal); }
nav.primary a.active { color: var(--teal); }
nav.primary a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); }

.top-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 11.5px; letter-spacing: .12em; font-weight: 600; }
.lang button { border: 0; background: transparent; padding: 7px 12px; color: var(--ink-2); cursor: pointer; font: inherit; letter-spacing: inherit; white-space: nowrap; }
.lang button[aria-pressed="true"] { background: var(--teal); color: #fff8e6; }

@media (max-width: 880px) { nav.primary { display: none; } .brand-sub { display: none; } }

/* ---- CTA buttons ---- */
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fdf6e7;
  padding: 11px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  transition: background .2s ease; border: 1px solid var(--teal); white-space: nowrap;
}
.cta:hover { background: var(--teal-deep); }
.cta.ghost { background: transparent; color: var(--teal); border-color: var(--line); }
.cta.ghost:hover { background: var(--cream); }
.cta .arr { transition: transform .2s ease; }
.cta:hover .arr { transform: translateX(3px); }

/* ---- Page hero (interior pages) ---- */
.page-hero {
  background:
    radial-gradient(600px 280px at 92% -5%, rgba(194,160,106,.14), transparent 70%),
    linear-gradient(160deg, var(--paper) 0%, var(--cream) 100%);
  padding: clamp(56px, 7.5vw, 96px) 0 clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { opacity: .4; }
.page-hero h1 { font-family: var(--display); font-size: clamp(44px, 6.5vw, 82px); font-weight: 500; margin: 0 0 18px; color: var(--ink); line-height: 1.0; letter-spacing: -.015em; }
html[lang="ko"] .page-hero h1 { font-weight: 600; font-size: clamp(38px, 5.5vw, 66px); letter-spacing: -.025em; }
.page-hero p.sub { font-size: clamp(15px, 1.3vw, 18px); color: var(--ink-2); max-width: 56ch; line-height: 1.7; margin: 0; }

/* ---- In-page sticky tab nav ---- */
.page-tabs { background: var(--paper); border-bottom: 1px solid var(--line-soft); position: sticky; top: 72px; z-index: 40; }
.page-tabs .wrap { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.page-tabs .wrap::-webkit-scrollbar { display: none; }
.page-tabs a { display: block; padding: 15px 22px; font-size: 13px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; }
.page-tabs a:hover { color: var(--teal); }
.page-tabs a.active { color: var(--teal); border-bottom-color: var(--gold); }

/* ---- Sections ---- */
section.section { padding: clamp(64px, 8.5vw, 112px) 0; position: relative; }
/* Offset anchor scroll for sticky topbar (72px) + sticky page tabs (~49px) */
section[id], .shop-cat[id] { scroll-margin-top: 130px; }
section.section.bg-cream { background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%); }
section.section.bg-cream-solid { background: var(--cream); }
section.section.bg-dark {
  background: radial-gradient(800px 320px at 80% 50%, rgba(194,160,106,.1), transparent 70%),
    linear-gradient(180deg, var(--teal-deep) 0%, #0c2c36 100%);
  color: #f6efde;
}

.section-head { margin-bottom: 52px; }
.section-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.06; margin: 14px 0 0; color: var(--ink); letter-spacing: -.01em; }
html[lang="ko"] .section-head h2 { font-weight: 600; font-size: clamp(28px, 3.8vw, 48px); }
.section-head .lede { font-size: 17px; color: var(--ink-2); line-height: 1.68; max-width: 56ch; margin: 18px 0 0; }

/* ---- Prose ---- */
.prose p { margin: 0 0 18px; font-size: 16px; color: var(--ink-2); line-height: 1.72; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--ink); margin: 36px 0 14px; }
html[lang="ko"] .prose h3 { font-weight: 600; font-size: 20px; }

/* ---- Bullet list ---- */
.bullet-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 11px; }
.bullet-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.bullet-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex: 0 0 7px; }

/* ---- Cards ---- */
.card { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 34px; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 0 0 16px; color: var(--ink); letter-spacing: -.005em; }
html[lang="ko"] .card h3 { font-weight: 600; font-size: 20px; }
.card p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.68; }
.card p:last-child { margin-bottom: 0; }

/* ---- Callout (dark) ---- */
.callout { background: linear-gradient(135deg, #1c4e5c 0%, #0f3441 100%); border-radius: 18px; padding: 36px; color: #f6efde; }
.callout h3 { font-family: var(--display); font-weight: 500; font-size: 22px; color: #fbf3df; margin: 0 0 14px; }
html[lang="ko"] .callout h3 { font-weight: 600; }
.callout p { font-size: 15px; color: #e0d5be; line-height: 1.68; margin: 0 0 14px; }
.callout p:last-child { margin-bottom: 0; }
.callout .bullet-list li { color: #e0d5be; }
.callout .bullet-list li::before { background: var(--gold); }

/* ---- Layout grids ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .grid-3 { grid-template-columns: 1fr; } }

.grid-2-asym { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .grid-2-asym { grid-template-columns: 1fr; } }

/* ---- Service block (therapy page repeated pattern) ---- */
.svc-block { padding: clamp(52px, 7vw, 88px) 0; border-top: 1px solid var(--line-soft); }
.svc-block:first-child { border-top: 0; }
.svc-num { font-family: var(--display); font-size: 14px; color: var(--gold); letter-spacing: .22em; margin-bottom: 10px; }
.svc-block h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 46px); margin: 0 0 20px; color: var(--ink); letter-spacing: -.01em; line-height: 1.1; }
html[lang="ko"] .svc-block h2 { font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); }
.svc-block > .prose { max-width: 64ch; }

/* ---- Instrument pills ---- */
.instr-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.instr-tag {
  display: inline-flex; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: background .2s, border-color .2s;
}
.instr-tag:hover { background: var(--cream); border-color: var(--gold-soft); }

/* ---- Format cards (lesson formats) ---- */
.format-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
.format-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; color: #f6e6c8; margin-bottom: 18px; }
.format-ico svg { width: 22px; height: 22px; }
.format-card h4 { font-family: var(--display); font-size: 20px; font-weight: 500; margin: 0 0 10px; color: var(--ink); }
html[lang="ko"] .format-card h4 { font-weight: 600; font-size: 18px; }
.format-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.65; }

/* ---- Quote / blockquote ---- */
blockquote.def { margin: 0; padding: 0; }
blockquote.def .open { font-family: var(--display); font-size: 80px; color: var(--gold); line-height: .6; display: block; margin-bottom: 4px; font-style: italic; }
blockquote.def p { font-family: var(--display); font-style: italic; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.5; color: var(--ink); margin: 0 0 20px; font-weight: 400; }
html[lang="ko"] blockquote.def p { font-style: normal; font-weight: 500; }
blockquote.def cite { font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---- Shop category ---- */
.shop-cat { padding: clamp(48px, 6.5vw, 80px) 0; border-top: 1px solid var(--line-soft); }
.shop-cat:first-child { border-top: 0; }
.shop-cat h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; margin: 12px 0 16px; color: var(--ink); letter-spacing: -.01em; }
html[lang="ko"] .shop-cat h2 { font-weight: 600; }
.shop-cat p.desc { font-size: 16px; color: var(--ink-2); line-height: 1.7; max-width: 58ch; margin: 0 0 28px; }
.item-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.item-pill { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-size: 14px; color: var(--ink); font-weight: 500; }

/* ---- CTA band (bottom of interior pages) ---- */
.cta-band {
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
.cta-band h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 48px); font-weight: 500; margin: 0 0 16px; color: var(--ink); }
html[lang="ko"] .cta-band h2 { font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); }
.cta-band p { font-size: 17px; color: var(--ink-2); margin: 0 auto 32px; max-width: 50ch; line-height: 1.7; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
footer { background: #0c2c36; color: #dccfa9; padding: 50px 0 30px; font-size: 13px; }
footer a { color: #dccfa9; transition: color .15s; }
footer a:hover { color: #fbf3df; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
footer h5 { font-family: var(--display); font-weight: 500; font-size: 14px; color: #fbf3df; margin: 0 0 14px; letter-spacing: .04em; text-transform: uppercase; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer .colophon { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(246,239,222,.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: #a89a76; font-size: 12px; letter-spacing: .04em; }

/* ---- Language visibility ---- */
[data-en],[data-ko] { display: none; }
html[lang="en"] [data-en] { display: inherit; }
html[lang="ko"] [data-ko] { display: inherit; }
html[lang="en"] span[data-en], html[lang="ko"] span[data-ko] { display: inline; }

/* ---- Scroll fade ---- */
.fade { opacity: 0; transform: translateY(16px); transition: opacity .72s ease, transform .72s ease; }
.fade.in { opacity: 1; transform: none; }
