/* glocalbizlab — DESIGN.md v01 (개성 7 · 모션 7 · Compact) */
:root{
  --bg:#ffffff; --bg-alt:#f7ece9;
  --ink:#343431; --ink-2:#5f5a53;
  --accent:#2f5f9e; --accent-dark:#2a5591; --accent-soft:#628fc9;
  --spot:#af5c94; --line:#e4dcd8;
  --radius:8px;
  --gutter:16px; --section:32px;
  --wrap:1120px; --read:720px;
  --ease:cubic-bezier(.2,.7,.2,1);
  color-scheme:light;
}
@media (min-width:768px){ :root{ --gutter:32px; --section:48px; } }
@media (min-width:1280px){ :root{ --gutter:48px; --section:64px; } }

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-padding-top:80px; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Pretendard Variable",Pretendard,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px; line-height:1.6; font-weight:400;
  word-break:keep-all; overflow-wrap:anywhere;
}
@media (min-width:1280px){ body{ font-size:17px; } }
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--accent); text-underline-offset:3px; }
a:hover{ color:var(--accent-dark); }

/* 포커스: 3px accent, 2px 띄움 (DESIGN 8장) */
:focus-visible{ outline:3px solid var(--accent); outline-offset:2px; border-radius:2px; }

.skip{ position:absolute; left:var(--gutter); top:-60px; z-index:100;
  background:var(--accent); color:#fff; padding:10px 16px; border-radius:var(--radius); font-weight:600; }
.skip:focus{ top:8px; color:#fff; }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 var(--gutter); }
.read{ max-width:var(--read); }
.wrap.read{ max-width:var(--wrap); }
.wrap.read > *{ max-width:var(--read); }

/* ── 상단 메뉴 */
.site-head{ position:sticky; top:0; z-index:50; background:var(--bg-alt);
  border-bottom:1px solid transparent; transition:border-color .2s; }
.site-head.scrolled{ border-bottom-color:var(--line); }
.head-row{ display:flex; align-items:center; justify-content:space-between; height:64px; gap:16px; }
.brand{ display:flex; align-items:center; min-height:44px; }
.brand img{ height:32px; width:auto; }
@media (min-width:768px){ .brand img{ height:40px; } }

.nav-toggle{ font:600 15px/1 inherit; font-family:inherit; color:var(--ink); background:none;
  border:1px solid var(--line); border-radius:var(--radius); min-height:44px; min-width:44px; padding:0 14px; cursor:pointer; }
.nav-list{ list-style:none; margin:0; padding:0; }
.nav-list a{ display:block; color:var(--ink); text-decoration:none; font-weight:600; padding:12px 0; position:relative; }
.nav-list a[aria-current="page"]{ color:var(--accent); }

@media (max-width:767.98px){
  .site-nav{ position:absolute; left:0; right:0; top:64px; background:var(--bg-alt);
    border-bottom:1px solid var(--line); display:grid; grid-template-rows:0fr; transition:grid-template-rows .22s var(--ease); }
  .site-nav > .nav-list{ overflow:hidden; padding:0 var(--gutter); }
  .site-nav.open{ grid-template-rows:1fr; }
  .site-nav.open > .nav-list{ padding-bottom:8px; }
  .site-nav:not(.open) a{ visibility:hidden; }
  .nav-list li + li{ border-top:1px solid var(--line); }
  .nav-list a{ min-height:48px; display:flex; align-items:center; }
}
@media (min-width:768px){
  .nav-toggle{ display:none; }
  .nav-list{ display:flex; gap:28px; }
  .nav-list a{ padding:10px 0; }
  .nav-list a::after{ content:""; position:absolute; left:0; bottom:4px; height:2px; width:100%;
    background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .2s var(--ease); }
  .nav-list a[aria-current="page"]::after, .nav-list a:hover::after{ transform:scaleX(1); }
}

/* ── 구역: 흰색과 크림을 번갈아 */
.band{ padding:var(--section) 0; }
.band.alt{ background:var(--bg-alt); }

/* ── 글자 크기 (DESIGN 3장) */
h1,h2,h3{ margin:0; color:var(--ink); }
.display{ font-size:34px; line-height:1.1; font-weight:700; letter-spacing:-.02em; }
.page-title{ font-size:28px; line-height:1.15; font-weight:700; letter-spacing:-.015em; }
.sec-title{ font-size:20px; line-height:1.3; font-weight:600; letter-spacing:-.01em; }
@media (min-width:768px){ .display{ font-size:44px; } .page-title{ font-size:34px; } .sec-title{ font-size:22px; } }
@media (min-width:1280px){ .display{ font-size:56px; } .page-title{ font-size:40px; } .sec-title{ font-size:24px; } }
.lead{ font-size:18px; line-height:1.5; margin:12px 0 0; }
@media (min-width:1280px){ .lead{ font-size:21px; } }
.muted{ color:var(--ink-2); font-size:14px; line-height:1.5; }
p{ margin:12px 0 0; }

/* 홈 제목 아래 로고 파랑 띠 */
.stripe{ display:block; height:6px; width:96px; background:var(--accent-soft); border-radius:3px; margin-top:16px; }
.keywords{ margin:16px 0 0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:4px 0; color:var(--ink-2); font-weight:600; }
.keywords li:not(:last-child)::after{ content:"·"; margin:0 10px; color:var(--spot); }

/* ── 버튼 (DESIGN 6장: 8px 사각형, 원형 없음) */
.actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 24px;
  border-radius:var(--radius); font-weight:600; text-decoration:none; border:1.5px solid var(--accent);
  transition:background-color .15s, color .15s, transform .15s var(--ease); }
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ background:var(--accent-dark); border-color:var(--accent-dark); color:#fff; }
.btn-secondary{ background:var(--bg); color:var(--accent); }
.btn-secondary:hover{ background:#eef3fa; color:var(--accent-dark); }
.btn:active{ transform:scale(.97); }
@media (max-width:767.98px){ .actions .btn{ width:100%; } }

/* ── 소개: 사진 + 글 */
.about{ display:grid; gap:24px; }
.about .photo{ width:200px; justify-self:center; border-radius:var(--radius); }
@media (min-width:768px){
  .about{ grid-template-columns:240px minmax(0,1fr); gap:32px; align-items:start; }
  .about .photo{ width:240px; justify-self:start; }
}
@media (min-width:1280px){ .about{ grid-template-columns:300px minmax(0,640px); gap:48px; } .about .photo{ width:300px; } }
.history{ margin:16px 0 0; display:grid; grid-template-columns:max-content minmax(0,1fr); gap:8px 16px; }
.history dt{ font-weight:600; font-variant-numeric:tabular-nums; }
.history dd{ margin:0; }

/* ── 강의·컨설팅: 번호 목록 줄 (카드 아님) */
.items{ list-style:none; margin:24px 0 0; padding:0; counter-reset:item; }
.items > li{ counter-increment:item; display:grid; grid-template-columns:32px minmax(0,1fr); gap:4px 12px;
  padding:16px 0; border-bottom:1px solid var(--line); }
.items > li:first-child{ border-top:1px solid var(--line); }
.items > li::before{ content:counter(item); grid-row:1 / span 3; width:28px; height:28px; margin-top:2px;
  display:grid; place-items:center; font-size:14px; font-weight:700; color:#fff; background:var(--spot); border-radius:var(--radius); }
.items .item-meta{ color:var(--ink-2); font-size:14px; margin:0; }
.items .item-link{ font-weight:600; font-size:15px; margin:4px 0 0; }
@media (min-width:1280px){
  .items-wrap{ display:grid; grid-template-columns:minmax(0,720px) 1fr; gap:48px; align-items:start; }
  .items-aside{ position:sticky; top:96px; margin-top:24px; }
}

/* ── 바닥글 */
.site-foot{ background:var(--bg-alt); padding:24px 0; color:var(--ink-2); font-size:14px; }

/* ── 모션 (DESIGN 7장) — JS가 켤 때만 숨김 → 꺼져도 내용은 보임 */
.motion .reveal{ opacity:0; transform:translateY(12px); transition:opacity .32s var(--ease), transform .32s var(--ease); }
.motion .reveal.in{ opacity:1; transform:none; }
.motion .stripe{ width:0; transition:width .48s var(--ease) .2s; }
.motion .stripe.in{ width:96px; }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ transition-duration:0ms !important; animation:none !important; scroll-behavior:auto !important; }
  .motion .reveal{ opacity:1; transform:none; }
  .motion .stripe{ width:96px; }
  .btn:active{ transform:none; }
}

/* 제작 중 표시: 배포 전 0건이어야 함 (build.py --check) */
.todo{ background:#fff3c4; color:#5a4300; padding:0 4px; border-radius:4px; font-size:.9em; font-weight:600; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* 소개: 연도 없는 경력 목록 */
.about .sec-title{ margin-top:4px; }
.career{ list-style:none; margin:12px 0 0; padding:0; }
.career li{ padding:10px 0 10px 16px; border-bottom:1px solid var(--line); position:relative; }
.career li:first-child{ border-top:1px solid var(--line); }
.career li::before{ content:""; position:absolute; left:0; top:20px; width:6px; height:6px; border-radius:1px; background:var(--spot); }

/* DESIGN 5장: 1440은 오른쪽 고정 링크, 768·390은 항목 끝 링크 */
@media (max-width:1279.98px){ .items-aside{ display:none; } }
@media (min-width:1280px){ .items .item-link{ display:none; } }

/* 소개: 여러 묶음 */
.about-block + .about-block{ margin-top:32px; }
.history{ border-top:1px solid var(--line); padding-top:12px; }
.history dt{ color:var(--ink-2); font-size:14px; padding-top:2px; white-space:nowrap; }
