/* author.css — B: a professional's own PR page. Cool slate brand, Hahmlet headlines.
   Overrides the shared brand tokens for this site only. */

/* sample bar — B is an example site and says so on every page */
.samplebar{background:var(--band);color:#fff;font-size:13px;text-align:center;
  padding:8px 16px;line-height:1.4}
/* segments wrap whole; the separator rides on the segment before it */
.samplebar .nb:not(:last-child)::after{content:" ·"}
/* phones: drop "저자 홍보 페이지 템플릿" so the bar stays one line above the header */
@media (max-width:600px){.samplebar .nb:nth-child(3){display:none}}
/* Scoped to :root, not .author — custom properties must land on documentElement so the
   role-font check (and anything else reading the tokens) sees them. author.css only
   loads on these pages, so nothing leaks to the sales site. */
:root{
  --brand:#243B53;        /* OKLCH L=.345 C=.051 H=250 — both USING.md traps clear, 11.50:1 on white */
  --brand-hover:#1B2D40;
  --brand-soft:#EEF2F6;
  --brand-on-dark:#A8BBD0;
  --band:#1A2836; --on-band:#DCE4EC; --on-band-2:#AFBECD; --band-line:#7B8A99; --band-hover:#24374A;
  --ins-bg:#E3EAF2;       /* redline insertion tint — brand at ~10%; navy text on it 9.8:1 */
  --font-display:"Hahmlet","Pretendard Variable",Pretendard,serif;
}
/* Hahmlet carries the headlines; Pretendard carries everything that gets read in volume.
   Hahmlet 500 at body size tested too dark and tight (render/_specimen.png). */
.author h1,.author h2{font-weight:700;letter-spacing:-.02em}
.author h1{font-size:clamp(30px,4.6vw,50px)}
.author h2{font-size:clamp(22px,2.8vw,32px)}

/* one left edge for every section: the narrow column used to centre itself, so section
   starts jumped between two lines down the page. It keeps its reading width, not its offset. */
.author .wrap.narrow{max-width:var(--w-content)}
.author .wrap.narrow > *{max-width:732px}

/* phone number in the header — the first thing a prospective client looks for, and one of the
   three contact channels the 신뢰 디자인 원칙 asks for */
.tel{display:flex;flex-direction:column;line-height:1.25;margin-left:auto;
  text-decoration:none;min-height:44px;justify-content:center}
.tel b{font-family:var(--font-display);font-weight:700;font-size:17px;letter-spacing:-.01em;white-space:nowrap}
.tel span{font-size:13px;color:var(--ink-2)}
.tel:hover b{color:var(--brand)}
.site-author .nav{margin-left:var(--sp-12);margin-right:var(--sp-6)}

.pagehead{padding:var(--sp-16) 0 var(--sp-12);border-bottom:1px solid var(--line)}
.author .hero{padding:var(--sp-20) 0 var(--sp-section);overflow:clip}
.herogrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,44%);
  gap:var(--sp-12);align-items:center}
.herotext{max-width:var(--w-prose-ko)}
.redline{margin:0}
.redline figcaption{margin-top:var(--sp-5);font-size:14px;color:var(--ink-2);line-height:1.6;
  padding-left:var(--sp-4);border-left:2px solid var(--brand)}
.author .hero h1{max-width:14em}
/* Hahmlet carries the lead paragraphs (short, large, editorial). Long body, lists, tables and
   forms stay in Pretendard — Hahmlet 400 measured too dark at body size, 300 too tight. */
.author .lead{font-family:var(--font-display);font-weight:300;line-height:1.8;letter-spacing:-.005em}
.lead .sent{display:block;text-wrap:balance}
.author .redline figcaption, .author .excerpt{font-family:var(--font-display);font-weight:300}
.role{font-size:17px;color:var(--brand);font-weight:700;margin:0 0 var(--sp-5)}
.band-soft{background:var(--brand-soft)}
.wrap.two{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-12);align-items:start}

/* hero: the claim on the left, his book on the right. On an author's page the cover is the
   credential; 소속·등록번호 live in the footer, where the ad rules ask for them. */
.hero .eyebrow .nb:not(:last-child)::after{content:" ·"}
.hero .herogrid{grid-template-columns:minmax(0,1fr) minmax(0,400px)}
.hero-cta{display:flex;flex-wrap:wrap;gap:var(--sp-3)}
.herobook{display:grid;justify-items:center;gap:var(--sp-6)}
.herobook .coverstage{padding:var(--sp-2) 0 0}
.herobook .coverstage .book{--bw:clamp(230px,21vw,280px)}
.cover-note{margin:0;font-size:13px;color:var(--ink-2);text-align:center}
.cover-note .nb:not(:last-child)::after{content:" ·"}

/* the cover scales with the book: title, subtitle and margins follow --bw instead of the
   viewport, so the hero book, the book page's and a phone's all keep one layout */
.book .front{padding:calc(var(--bw) * .09)}
.book .front h3{font-size:max(13px,calc(var(--bw) * .086))}
.book .front .cover-sub{margin:calc(var(--bw) * .04) 0 0;font-size:max(13px,calc(var(--bw) * .048));
  line-height:1.5;color:var(--brand-on-dark);text-wrap:balance}
.book .front .cover-mark{display:block;width:100%;height:auto}

/* method: what the book teaches and what a consultation hands over, side by side with the clause */
.methodgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,54%);gap:var(--sp-12);align-items:center}
.methodtext .body{margin-bottom:0}

/* redline: the strike stays the one red on the page (his red pen); what he writes in goes in
   the brand ink with the underline legal redlines use for insertions. Green read as a fourth colour. */
.author .doc .ins{color:var(--brand);background:var(--ins-bg);text-decoration:underline;
  text-decoration-thickness:1.5px;text-underline-offset:4px;text-decoration-color:var(--brand)}
.author .doc .caret{background:var(--brand)}

/* book */
.bookrow{display:grid;grid-template-columns:minmax(0,260px) 1fr;gap:var(--sp-12);align-items:start}
.coverstage{perspective:1100px;display:grid;place-items:center;padding:var(--sp-4) 0}
.coverstage .book{--bw:230px}
.coverstage.lg .book{--bw:268px}
/* "한 줄" on the cover gets the red pen's line — an underline, not a gradient, so the page's
   gradient budget stays with the three redline strikes */
/* the cover carries title and author only, the author line at the 13px floor */
.book .front .by{font-size:13px}
.book .front h3 em{font-style:normal;text-decoration:underline;text-decoration-color:#D8574A;
  text-decoration-thickness:3px;text-underline-offset:.24em;text-decoration-skip-ink:none}
.bookbody .sub{color:var(--ink-2);margin:0 0 var(--sp-5)}
.spec{display:flex;flex-wrap:wrap;gap:var(--sp-5) var(--sp-8);margin-top:var(--sp-8);
  padding-top:var(--sp-6);border-top:1px solid var(--line)}
.spec dt{font-size:13px;color:var(--ink-2)}
.spec dd{margin:var(--sp-1) 0 0;font-weight:700}
.spec-stores{flex-basis:100%}
.spec-stores dd{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
span.store + span.store::before{content:"·";margin-right:var(--sp-2);color:var(--ink-3);font-weight:400}
/* with an href the store is a real link: outlined, with the outbound arrow */
a.store{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 var(--sp-4);
  border:1px solid var(--line-strong);border-radius:var(--r-1);text-decoration:none;font-size:15px;
  transition:border-color var(--dur-ui) var(--ease-out),color var(--dur-ui) var(--ease-out)}
a.store::after{content:"↗";color:var(--brand);font-weight:400}
a.store:hover{border-color:var(--brand);color:var(--brand)}

/* fields / cred / ext / fee / ways — label+text pairs */
.fields{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-8) var(--sp-8);margin-top:var(--sp-10)}
.fields dt{font-weight:700;font-size:17px;padding-bottom:var(--sp-3);margin-bottom:var(--sp-3);
  border-bottom:1px solid var(--line)}
.fields dd{margin:0;font-size:15px;color:var(--ink-2);line-height:1.6}
.cred,.ext,.fee,.ways{display:grid;gap:var(--sp-5);margin-top:var(--sp-8)}
.cred div,.ext div{display:grid;grid-template-columns:140px 1fr;gap:var(--sp-4);
  padding-bottom:var(--sp-4);border-bottom:1px solid var(--line)}
.cred dt,.ext dt{font-size:14px;color:var(--ink-2)}
.cred dd,.ext dd{margin:0;font-weight:700}
.fee div,.ways div{padding-bottom:var(--sp-5);border-bottom:1px solid var(--line)}
.fee dt,.ways dt{font-size:14px;color:var(--ink-2);margin-bottom:var(--sp-1)}
.fee .w,.ways .w{margin:0;font-family:var(--font-display);font-weight:700;font-size:21px}
.fee .d,.ways .d{margin:var(--sp-1) 0 0;font-size:14px;color:var(--ink-2)}

/* career */
.career{display:grid;gap:var(--sp-5);margin-top:var(--sp-8)}
.career li{display:grid;grid-template-columns:110px 1fr;gap:var(--sp-4);
  padding-bottom:var(--sp-4);border-bottom:1px solid var(--line)}
.career .y{font-size:14px;color:var(--brand);font-weight:700}
.career p{margin:0;font-size:15px}

/* how */
.how{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--sp-8) var(--sp-10);margin-top:var(--sp-10)}
.how .n{font-family:var(--font-display);font-size:14px;color:var(--brand);display:block;margin-bottom:var(--sp-2)}
.how p{font-size:15px;color:var(--ink-2);line-height:1.6}

/* toc */
.toc{display:grid;gap:var(--sp-6);margin-top:var(--sp-10)}
.toc li{display:grid;grid-template-columns:72px 1fr;gap:var(--sp-5);
  padding-bottom:var(--sp-5);border-bottom:1px solid var(--line)}
.toc .p{font-family:var(--font-display);font-weight:700;font-size:15px;color:var(--brand)}
.toc p{margin:var(--sp-1) 0 0;font-size:15px;color:var(--ink-2)}

/* quotes. The review slot keeps its box (it only renders when home.quoteSlot is set);
   book excerpts read as print — no box, the book's own type, one drawn quote mark */
.quote-slot{margin:var(--sp-8) 0 0;padding:var(--sp-8);background:var(--bg-2);
  border-left:3px solid var(--brand);border-radius:0 var(--r-1) var(--r-1) 0;
  font-size:15px;line-height:1.75;color:var(--ink-2)}
.excerpt{position:relative;margin:var(--sp-8) 0 0;padding:0 0 0 var(--sp-12);
  font-size:clamp(18px,1.8vw,20px);line-height:1.9;color:var(--ink)}
.excerpt::before{content:"\201C";position:absolute;left:0;top:-.12em;font-family:var(--font-display);
  font-weight:700;font-size:64px;line-height:1;color:var(--brand)}
.excerpt p + p{margin-top:var(--sp-4)}
.excerpt + .signature{padding-left:var(--sp-12)}

/* closer + footer */
.closer{background:var(--band);color:#fff}
.closer h2{color:#fff}
.closer .body{color:var(--on-band)}
.closer .btn{background:#fff;color:var(--band);border-color:#fff}
.closer .btn:hover{background:var(--on-band);border-color:var(--on-band);color:var(--band)}

/* footer: the office on the left, what the ad rules require on the right — nothing else.
   The sample notice and the maker's credit already ride in the bar above the header.
   No 112px tail: the phone CTA bar hides while the footer is on screen (data-cta-stop). */
.author .site-foot{padding:var(--sp-10) 0}
.foot-row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--sp-3) var(--sp-8)}
.foot-row .mark{display:block;min-height:0;margin:0;font-size:19px}
.foot-legal{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-2) var(--sp-6);font-size:14px;color:var(--ink-2)}
.ad-lead{margin:0}

@media (max-width:860px){
  /* the desktop nav offsets would push the drop-down panel sideways; and only the phone
     number takes the free space, so the menu button sits right beside it */
  .site-author .nav{margin:0}
  .site-author .menu-btn{margin-left:var(--sp-1)}
  .herogrid,.methodgrid,.bookrow,.fields,.how,.wrap.two{grid-template-columns:1fr}
  /* keep the cover under 30% of a phone viewport — above that its gradient reads as a full-screen one */
  .coverstage .book,.coverstage.lg .book{--bw:196px}
  .foot-row{flex-direction:column;gap:var(--sp-3)}
  /* phones: the book opens the first screen, small and to the left with its release line
     beside it, so cover, claim and both buttons all fit above the fold */
  .author .hero{padding-top:var(--sp-10)}
  .hero .herogrid{grid-template-columns:1fr;gap:var(--sp-8)}
  .herobook{order:-1;grid-template-columns:auto minmax(0,1fr);align-items:end;justify-items:start;gap:var(--sp-5)}
  .herobook .coverstage{padding:0 0 0 var(--sp-1)}
  .herobook .coverstage .book{--bw:140px}
  .herobook .cover-sub{display:none}
  .cover-note{text-align:left;padding-bottom:var(--sp-2);line-height:1.6}
  .cover-note .nb{display:block}
  .cover-note .nb::after{display:none}
  .toc li,.career li,.cred div,.ext div{grid-template-columns:1fr;gap:var(--sp-2)}
  .excerpt{padding-left:var(--sp-8)}
  .excerpt::before{font-size:48px}
  .excerpt + .signature{padding-left:var(--sp-8)}
}

/* ── intro block with the illustrated portrait ──────────── */
.introgrid{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);
  gap:var(--sp-12);align-items:center}
.pf{margin:0}
.pf .portrait{width:100%;height:auto;display:block;border-radius:var(--r-2);
  background:var(--brand-soft)}
.intro .role{margin-top:var(--sp-1)}
/* about page head: portrait | name, with the intro under the name. The empty 1fr rows keep the
   name block centred against the portrait on wide screens. */
.whohead{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);
  grid-template-rows:1fr auto auto 1fr;grid-template-areas:"pf ." "pf who" "pf lead" "pf .";
  column-gap:var(--sp-12)}
.whohead .pf{grid-area:pf;align-self:center}
.whohead .who{grid-area:who}
.whohead .lead{grid-area:lead;margin:0}

/* figures — same horizontal grid the sales page uses for its numbers */
.figures{display:grid;grid-template-columns:repeat(3,1fr);margin:var(--sp-8) 0;
  border-top:1px solid var(--line-strong)}
.figures div{padding:var(--sp-5) var(--sp-5) 0 0}
.figures div + div{padding-left:var(--sp-5);border-left:1px solid var(--line)}
.figures dt{font-family:var(--font-display);font-weight:700;font-size:clamp(24px,2.8vw,32px);
  line-height:1.1;color:var(--brand);letter-spacing:-.02em}
.figures dt .num{font-family:inherit;font-weight:inherit}
.figures dd{margin:var(--sp-2) 0 0;font-size:13px;color:var(--ink-2);line-height:1.5}

/* three-up variants. Steps run left to right, each on its own brand rule — the same top rule
   the column notes use */
.steps.three{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-8);margin-top:var(--sp-10)}
.steps.three li{padding-top:var(--sp-5);border-top:2px solid var(--brand)}
.steps.three .n{font-family:var(--font-display);font-weight:700;font-size:15px;color:var(--brand);
  display:block;margin-bottom:var(--sp-3)}
.steps.three p{font-size:15px;color:var(--ink-2);line-height:1.65}
.stepwrap{position:relative;padding-left:var(--sp-8);margin-top:var(--sp-10)}
.fields.three{grid-template-columns:repeat(3,1fr)}

@media (max-width:860px){
  .introgrid{grid-template-columns:1fr;gap:var(--sp-8)}
  .introgrid .pf{max-width:200px}
  /* phones: a small portrait beside the name, the intro full width below — the name stays on
     the first screen instead of under a picture the width of the phone */
  .whohead{grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto auto;
    grid-template-areas:"pf who" "lead lead";column-gap:var(--sp-5);row-gap:var(--sp-6);align-items:center}
  .whohead .who .eyebrow{margin-bottom:var(--sp-2)}
  .whohead h1{margin-bottom:var(--sp-1)}
  .whohead .role{margin:0;font-size:15px}
  .steps.three,.fields.three{grid-template-columns:1fr}
  .figures div{padding:var(--sp-4) var(--sp-3) 0 0}
  .figures div + div{padding-left:var(--sp-3)}
  .figures dt{font-size:22px}
  .figures dd{font-size:13px;line-height:1.45}
}

/* give the clause room so three edits stay legible */
.doc .clause{line-height:2.05}
.doc .ins{white-space:normal}

@media (max-width:400px){
  /* 360px phones: mark + phone number + menu button ran 12px past the content edge */
  .site-author .mark{font-size:17px}
  .tel b{font-size:15px}
}

/* ── personal layer: the things only this lawyer would say ──────────────
   Photos carry no faces on purpose: the illustrated portrait stays the one picture of him,
   and a stock face labelled as a real lawyer would be a claim the page cannot make. */
.ph{margin:0}
.ph img{width:100%;height:auto;display:block;border-radius:var(--r-2);background:var(--bg-2)}
.ph figcaption{margin-top:var(--sp-3);font-size:13px;color:var(--ink-2)}
.story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--sp-12);align-items:center}
.story.flip .ph{order:2}
.prose{max-width:var(--w-prose-ko)}
.prose p{color:var(--ink-2);line-height:1.8}
.prose p + p{margin-top:var(--sp-4)}
.prose p:last-child{color:var(--ink);font-weight:700}
/* his signature — the one handwritten mark, set in the registered point face. Not `.sign`:
   that name already belongs to the redline card's sign-off line (graphics.css). */
.signature{font-family:var(--font-point);font-size:36px;line-height:1;color:var(--brand);margin:var(--sp-6) 0 0}
.signature small{display:block;font-family:var(--font);font-size:13px;font-weight:400;color:var(--ink-2);margin-top:var(--sp-2)}
.letter .body{margin-bottom:var(--sp-4)}
.letter .signature{margin-bottom:var(--sp-2)}
/* column notes — three dated lines in his voice */
.notes{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-8);margin-top:var(--sp-10)}
.notes article{padding-top:var(--sp-4);border-top:2px solid var(--brand)}
.notes time{font-size:13px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.notes h3{font-family:var(--font-display);font-weight:700;font-size:19px;line-height:1.45;margin:var(--sp-2) 0 var(--sp-3)}
.notes p{font-size:15px;color:var(--ink-2);line-height:1.7}
/* reading habits */
.habits{display:grid;gap:var(--sp-6);margin-top:var(--sp-8)}
.habits li{display:grid;grid-template-columns:28px 1fr;gap:var(--sp-3)}
.habits .n{font-family:var(--font-display);font-weight:700;font-size:15px;color:var(--brand);line-height:1.6}
.habits h3{font-size:17px;margin:0 0 var(--sp-1)}
.habits p{font-size:15px;color:var(--ink-2);line-height:1.7}
.story .ext{margin-top:var(--sp-6)}

@media (max-width:860px){
  .story,.notes{grid-template-columns:1fr;gap:var(--sp-8)}
  .story.flip .ph{order:0}
  .signature{font-size:32px}
}

/* the redline card is signed too — only the name, so the line itself stays readable at 13px */
.doc .sign b{font-family:var(--font-point);font-size:22px;font-weight:400;line-height:1;color:var(--brand)}

/* ── contact: the form first, cost · what to send · other channels beside it ── */
.askgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);gap:var(--sp-16);align-items:start}
.ask-form .form{max-width:600px;margin-top:var(--sp-8)}
.ask-form h2{margin-bottom:0}
.ask-side{display:grid;gap:var(--sp-10)}
.side-block h3{font-size:16px;margin:0;padding-bottom:var(--sp-3);border-bottom:2px solid var(--brand)}
.ask-side .fee,.ask-side .ways{margin-top:var(--sp-4);gap:var(--sp-4)}
.ask-side .fee div,.ask-side .ways div{padding-bottom:var(--sp-4)}
.ask-side .fee .w,.ask-side .ways .w{font-size:19px}
.ways .w a{color:inherit;text-decoration:none}
.ways .w a:hover{color:var(--brand);text-decoration:underline;text-underline-offset:4px}
/* what to send: a drawn tick per item, not a glyph (✔ can render as a colour emoji) */
.prep{display:grid;gap:var(--sp-4);margin-top:var(--sp-4)}
.prep li{position:relative;display:grid;gap:2px;padding-left:var(--sp-8)}
.prep li::before{content:"";position:absolute;left:3px;top:.42em;width:12px;height:6px;
  border-left:2px solid var(--brand);border-bottom:2px solid var(--brand);transform:rotate(-45deg)}
.prep b{font-size:15px}
.prep span{font-size:14px;color:var(--ink-2);line-height:1.55}
/* file field: the native input stretched invisibly over our own box, so the whole box opens the
   picker, Tab still lands on a real file input, and the button reads 파일 선택 in any browser */
.filepick{position:relative;display:flex;align-items:center;gap:var(--sp-3);min-height:52px;padding:var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-1);
  border:1px solid var(--line-strong);border-radius:var(--r-1);background:var(--bg)}
.field .filepick input{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;border:0;opacity:0;cursor:pointer}
.field .filepick-btn{flex:none;display:inline-flex;align-items:center;min-height:40px;margin:0;padding:0 var(--sp-4);
  border-radius:var(--r-1);background:var(--brand-soft);font-size:14px;font-weight:700;color:var(--brand);pointer-events:none}
.filepick-name{min-width:0;font-size:14px;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}
.filepick.has-file .filepick-name{color:var(--ink)}
.filepick:hover .filepick-btn{background:var(--ins-bg)}
.filepick:focus-within{outline:2px solid var(--brand);outline-offset:1px}
.field [aria-invalid="true"]{border-color:var(--bad)}
.check input[aria-invalid="true"]{outline:2px solid var(--bad);outline-offset:2px}
.form-note{margin:0;font-size:13px;color:var(--ink-2)}
/* .form is display:grid, which beats the [hidden] attribute — say it outright */
.form[hidden],.form-done[hidden]{display:none}
/* the "received" state a real deploy would show */
.author .form-done{max-width:600px;margin-top:var(--sp-8);padding:var(--sp-8);border:1px solid var(--line);
  border-radius:var(--r-2);background:var(--brand-soft);color:var(--ink);font-size:16px;font-weight:400}
.form-done:focus{outline:none}
.form-done svg{color:var(--brand);display:block;margin-bottom:var(--sp-4)}
.form-done h3{font-family:var(--font-display);font-size:21px;margin:0 0 var(--sp-2)}
.form-done p{color:var(--ink-2);margin:0 0 var(--sp-6)}

@media (max-width:860px){
  .askgrid{grid-template-columns:1fr;gap:var(--sp-12)}
}
