/* =========================================================
   My Business A to Z — colors & type foundations
   Source: BI 시트.pdf (v1 · 2026), 목차.pdf (Contents A–Z)
   ========================================================= */

@font-face { font-family: "Pretendard"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Pretendard-Medium.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Pretendard-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/Pretendard-Bold.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/Pretendard-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2"); }

:root {
  /* ---------- Brand core (logo colours, BI sheet) ---------- */
  --brand-black: #141414;   /* C0 M0 Y0 K92 — logo body */
  --brand-red:   #E1251B;   /* C0 M95 Y95 K0 — the "A" only */
  --brand-green: #12924A;   /* C85 M10 Y95 K5 — the "Z" only */
  --brand-white: #FFFFFF;

  /* ---------- Editorial palette (목차 / book pages) ---------- */
  --paper:       #F7F4EE;   /* warm paper background */
  --ink:         #1B1A17;   /* warm near-black for headings & body */
  --ink-2:       #7A766D;   /* muted body, Korean verb, subtitle */
  --ink-3:       #8A867E;   /* credit line grey */
  --ink-4:       #BDB7AA;   /* bullet dot, faint marks */
  --rule:        #DCD7CC;   /* hairline row dividers */
  --rust:        #B4532A;   /* editorial accent: headline line 2, English keywords, range */

  /* ---------- Semantic ---------- */
  --bg:          var(--paper);
  --bg-plain:    var(--brand-white);
  --bg-inverse:  var(--brand-black);
  --fg1:         var(--ink);
  --fg2:         var(--ink-2);
  --fg3:         var(--ink-3);
  --fg-inverse:  #FFFFFF;
  --accent:      var(--rust);
  --border:      var(--rule);
  --border-strong: var(--ink);

  /* ---------- Type families ---------- */
  --font-sans:  "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;   /* always italic in use */

  /* ---------- Type scale (book page @ 583×816px) ---------- */
  --fs-letter:   48px;   /* A–Z drop letter, serif italic */
  --fs-h1:       27px;   /* page headline, 800 */
  --fs-range:    15px;   /* "A — I", serif italic rust */
  --fs-h2:       14px;   /* question line, 700 */
  --fs-keyword:  13.5px; /* English keyword, serif italic rust */
  --fs-body:     11px;   /* subtitle / verb, 400 */
  --fs-eyebrow:  9.5px;  /* CONTENTS, 600, tracked */
  --fs-credit:   9.5px;  /* colophon credit */

  /* ---------- Spacing (4px base) ---------- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --page-margin: 49px;   /* book page side margin */
  --row-h: 59px;         /* contents row pitch */

  /* ---------- Radii / lines ---------- */
  --radius-0: 0;
  --radius-1: 3px;       /* swatch/panel corners on BI sheet */
  --hair: 1px;
  --logo-rule-w: 22px;   /* short dash under logotype */
  --logo-rule-h: 2px;
}

/* ---------- Semantic text styles ---------- */
.mbaz-eyebrow { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-eyebrow); letter-spacing: .3em; text-transform: uppercase; color: var(--fg2); }
.mbaz-h1      { font-family: var(--font-sans); font-weight: 800; font-size: var(--fs-h1); line-height: 1.2; letter-spacing: -0.02em; color: var(--fg1); }
.mbaz-h1 em   { font-style: normal; color: var(--accent); }
.mbaz-h2      { font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-h2); line-height: 1.4; letter-spacing: -0.01em; color: var(--fg1); }
.mbaz-body    { font-family: var(--font-sans); font-weight: 400; font-size: var(--fs-body); line-height: 1.6; color: var(--fg2); }
.mbaz-letter  { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: var(--fs-letter); line-height: 1; color: var(--fg1); }
.mbaz-keyword { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-keyword); color: var(--accent); }
.mbaz-range   { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-range); color: var(--accent); }
.mbaz-credit  { font-family: var(--font-sans); font-weight: 400; font-size: var(--fs-credit); line-height: 1.8; color: var(--fg3); text-align: center; }

/* ---------- Logotype ---------- */
.mbaz-logo    { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.03em; color: var(--brand-black); white-space: nowrap; line-height: 1; }
.mbaz-logo .a { color: var(--brand-red); }
.mbaz-logo .to{ font-weight: 600; }
.mbaz-logo .z { color: var(--brand-green); }
.mbaz-logo.reverse { color: #fff; }
.mbaz-logo.mono .a, .mbaz-logo.mono .z { color: inherit; }
