/* ===========================================================================
   Lawyer Seoul — lawyerseoul.com (이재원 변호사 개인 사이트)

   조예 site.css 와 완전히 분리된 파일이다. 두 사이트가 같은 앱 안에 있지만
   화면은 서로 섞이지 않아야 한다.

   바탕색은 기존 Canva 사이트에서 실제로 쓰인 값을 그대로 뽑아 왔고
   (연보라 #DEE2FF / 남색 #002F6C / 로고 금색 #CBA135),
   거기에 깊이(면·그림자·간격)와 절제된 움직임을 얹었다.
   변호사 사이트이므로 화려함보다 «단정함»이 기준이다.
   =========================================================================== */

:root {
    /* 바탕 — 위에서 아래로 아주 옅게 밝아진다. 단색보다 공간이 생긴다. */
    --ls-bg: #dee2ff;
    --ls-bg-top: #e7e9ff;
    --ls-bg-deep: #cacff3;
    --ls-surface: #fbfbff;

    /* 글자 — 제목은 더 깊게, 본문은 조금 풀어 위계를 만든다. */
    --ls-ink: #002f6c;
    --ls-ink-deep: #001b40;
    --ls-ink-soft: rgba(0, 47, 108, 0.66);
    --ls-ink-faint: rgba(0, 47, 108, 0.42);

    --ls-line: rgba(0, 47, 108, 0.16);
    --ls-line-soft: rgba(0, 47, 108, 0.09);

    /* 강조 — 조예 로고의 금색. 아주 조금만 쓴다. */
    --ls-accent: #b4892a;

    --ls-shadow: 0 1px 2px rgba(0, 27, 64, 0.05), 0 8px 24px rgba(0, 27, 64, 0.07);
    --ls-shadow-lift: 0 2px 4px rgba(0, 27, 64, 0.06), 0 18px 40px rgba(0, 27, 64, 0.13);

    /* 표제는 명조로 간다. 기하학적 산세리프만으로는 «단정함»은 나와도
       변호사 개인 사이트에 필요한 «무게»가 서지 않는다. 국·영문을 한 벌로
       처리해야 두 언어 화면의 인상이 갈리지 않으므로 Noto Serif KR 로 묶는다. */
    --ls-display: 'Noto Serif KR', Georgia, 'Times New Roman', serif;
    --ls-sans: 'Poppins', 'Pretendard Variable', Pretendard, -apple-system,
        'Segoe UI', 'Malgun Gothic', sans-serif;
    --ls-mono: 'IBM Plex Mono', 'DM Mono', ui-monospace, SFMono-Regular,
        'Pretendard Variable', Pretendard, monospace;

    --ls-shell: 1180px;
    --ls-pad: clamp(20px, 5vw, 64px);
    --ls-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ls {
    margin: 0;
    min-height: 100svh;
    background: linear-gradient(180deg, var(--ls-bg-top) 0%, var(--ls-bg) 42%);
    background-attachment: fixed;
    color: var(--ls-ink);
    font-family: var(--ls-sans);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    /* 한글 줄바꿈. 기본값은 글자 단위로 잘라 «선택»이 «선 / 택»으로 갈라진다.
       keep-all 로 어절(띄어쓰기) 단위에서만 끊고, 대신 끊을 데가 없는
       긴 주소는 넘치지 않도록 break-word 를 함께 둔다. */
    word-break: keep-all;
    overflow-wrap: break-word;
}

body.ls.is-locked {
    overflow: hidden;
}

.ls a {
    color: inherit;
}

.ls img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ls-shell {
    width: min(100%, var(--ls-shell));
    margin: 0 auto;
    padding-inline: var(--ls-pad);
}

/* 제목은 줄 길이를 고르게 나눠 «마지막 줄에 한 어절만» 남는 모양을 피한다.
   본문은 pretty 로 외톨이 줄만 다듬는다. 지원하지 않는 브라우저는 그냥 무시한다. */
.ls-hero__title,
.ls-hero__sub,
.ls-page__title,
.ls-page__sub,
.ls-home-section__head h2,
.ls-card__title,
.ls-map__title {
    text-wrap: balance;
}

.ls-bullets li,
.ls-prose p,
.ls-article p,
.ls-map__desc,
.ls-creds__group li {
    text-wrap: pretty;
}

/* 이메일·주소처럼 띄어쓰기가 없는 값은 어디서든 끊어야 넘치지 않는다. */
.ls-contactline,
.ls-foot,
.ls-article a {
    overflow-wrap: anywhere;
}

/* 밑줄(++표기++)이 링크와 헷갈리지 않도록 두께·간격을 달리한다. */
.ls-article u {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* 키보드 사용자에게만 보이는 또렷한 초점 테두리. */
.ls :focus-visible {
    outline: 2px solid var(--ls-ink);
    outline-offset: 3px;
    border-radius: 2px;
}

.ls-skip {
    position: absolute;
    left: -9999px;
}

.ls-skip:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    background: var(--ls-ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
}

/* --- 머리말 ------------------------------------------------------------ */

.ls-top {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(231, 233, 255, 0.82);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s var(--ls-ease), background 0.25s var(--ls-ease);
}

.ls-top.is-scrolled {
    border-bottom-color: var(--ls-line-soft);
    background: rgba(231, 233, 255, 0.94);
}

.ls-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
}

.ls-wordmark {
    font-family: var(--ls-mono);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    color: var(--ls-ink-deep);
    white-space: nowrap;
}

/* 넓은 화면에서 그대로 펼쳐 보이는 가로 메뉴.
   원본은 햄버거 안에만 있었지만, 그러면 어떤 페이지가 있는지 보이지 않는다. */
.ls-menu {
    display: none;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    margin-left: auto;
}

.ls-menu a {
    position: relative;
    font-family: var(--ls-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    padding: 6px 0;
    white-space: nowrap;
    color: var(--ls-ink-soft);
    transition: color 0.2s var(--ls-ease);
}

/* 왼쪽에서 자라나는 밑줄. */
.ls-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ls-ease);
}

.ls-menu a:hover,
.ls-menu a:focus-visible {
    color: var(--ls-ink-deep);
}

.ls-menu a:hover::after,
.ls-menu a:focus-visible::after {
    transform: scaleX(1);
}

.ls-menu a[aria-current='page'] {
    color: var(--ls-ink-deep);
    font-weight: 600;
}

.ls-menu a[aria-current='page']::after {
    background: var(--ls-accent);
    transform: scaleX(1);
}

.ls-menu__lang {
    padding-left: clamp(6px, 1vw, 14px);
    border-left: 1px solid var(--ls-line);
}

@media (min-width: 900px) {
    .ls-menu {
        display: flex;
    }

    .ls-burger {
        display: none;
    }
}

.ls-burger {
    appearance: none;
    background: none;
    border: 0;
    padding: 10px;
    margin-right: -10px;
    cursor: pointer;
    color: inherit;
    line-height: 0;
}

.ls-burger span {
    display: block;
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.28s var(--ls-ease), opacity 0.2s var(--ls-ease);
}

.ls-burger span + span {
    margin-top: 7px;
}

/* 열려 있는 동안 X 로 바뀐다. */
.ls-burger[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.ls-burger[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}

.ls-burger[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- 전면 오버레이 내비 (좁은 화면) ------------------------------------- */

.ls-nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: linear-gradient(180deg, var(--ls-bg-top), var(--ls-bg));
    display: flex;
    flex-direction: column;
    padding: 20px var(--ls-pad) 48px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s var(--ls-ease), visibility 0.26s;
}

.ls-nav.is-open {
    opacity: 1;
    visibility: visible;
}

.ls-nav__close {
    align-self: flex-end;
    appearance: none;
    background: none;
    border: 0;
    color: inherit;
    font-size: 32px;
    line-height: 1;
    padding: 10px 12px;
    margin-right: -10px;
    cursor: pointer;
}

.ls-nav__links {
    margin: auto 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(6px, 1.6vw, 14px);
    text-align: right;
}

.ls-nav__links a {
    font-family: var(--ls-mono);
    font-size: clamp(19px, 3.4vw, 26px);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    padding: 5px 0;
    color: var(--ls-ink-deep);

    /* 열릴 때 아래에서 차례로 올라온다. */
    opacity: 0;
    transform: translateY(10px);
}

.ls-nav.is-open .ls-nav__links a {
    animation: ls-rise 0.42s var(--ls-ease) forwards;
}

.ls-nav.is-open .ls-nav__links a:nth-child(1) { animation-delay: 0.04s; }
.ls-nav.is-open .ls-nav__links a:nth-child(2) { animation-delay: 0.08s; }
.ls-nav.is-open .ls-nav__links a:nth-child(3) { animation-delay: 0.12s; }
.ls-nav.is-open .ls-nav__links a:nth-child(4) { animation-delay: 0.16s; }
.ls-nav.is-open .ls-nav__links a:nth-child(5) { animation-delay: 0.20s; }
.ls-nav.is-open .ls-nav__links a:nth-child(6) { animation-delay: 0.24s; }
.ls-nav.is-open .ls-nav__links a:nth-child(7) { animation-delay: 0.28s; }
.ls-nav.is-open .ls-nav__links a:nth-child(8) { animation-delay: 0.32s; }

@keyframes ls-rise {
    to {
        opacity: 1;
        transform: none;
    }
}

.ls-nav__links a[aria-current='page'] {
    color: var(--ls-accent);
}

.ls-nav__lang {
    margin-top: 16px;
    font-size: clamp(15px, 2.4vw, 18px) !important;
    color: var(--ls-ink-soft) !important;
}

/* --- 홈 히어로 --------------------------------------------------------- */

.ls-hero {
    position: relative;
    min-height: min(78svh, 640px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 0 88px;
}

/* 제목 뒤에 아주 옅게 번지는 빛. */
.ls-hero::before {
    content: '';
    position: absolute;
    top: 34%;
    left: 50%;
    width: min(760px, 92%);
    aspect-ratio: 2 / 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.72), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.ls-hero > * {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(14px);
    animation: ls-rise 0.72s var(--ls-ease) forwards;
}

.ls-hero > *:nth-child(1) { animation-delay: 0.06s; }
.ls-hero > *:nth-child(2) { animation-delay: 0.18s; }
.ls-hero > *:nth-child(3) { animation-delay: 0.30s; }

.ls-hero__title {
    font-family: var(--ls-display);
    margin: 0;
    font-size: clamp(40px, 7.6vw, 76px);
    font-weight: 600;
    letter-spacing: -0.008em;
    line-height: 1.14;
    color: var(--ls-ink-deep);
}

.ls-hero__sub {
    margin: 20px 0 0;
    font-size: clamp(15px, 2.2vw, 19px);
    font-weight: 400;
    line-height: 1.65;
    max-width: 34ch;
    color: var(--ls-ink-soft);
}

/* --- 버튼 --------------------------------------------------------------
   `.ls a { color: inherit }` 가 우선순위에서 이기지 않도록 a.ls-btn 으로 쓴다.
   (그러지 않으면 남색 바탕에 남색 글자가 되어 글씨가 사라진다.) */

.ls-btn,
a.ls-btn,
.ls a.ls-btn {
    position: relative;
    display: inline-block;
    margin-top: 36px;
    padding: 13px 30px;
    background: var(--ls-ink);
    color: #fff;
    font-family: var(--ls-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1.5px solid var(--ls-ink);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.22s var(--ls-ease), box-shadow 0.22s var(--ls-ease);
}

/* 위에서 덮어 오는 채움. */
.ls-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ls-ink-deep);
    transform: translateY(100%);
    transition: transform 0.32s var(--ls-ease);
}

.ls-btn:hover,
.ls-btn:focus-visible,
.ls a.ls-btn:hover,
.ls a.ls-btn:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--ls-shadow);
}

.ls-btn:hover::before,
.ls-btn:focus-visible::before {
    transform: translateY(0);
}

.ls-btn:active {
    transform: translateY(0);
}

.ls-btn--ghost,
a.ls-btn--ghost,
.ls a.ls-btn--ghost {
    background: transparent;
    color: var(--ls-ink);
}

.ls-btn--ghost:hover,
.ls-btn--ghost:focus-visible,
.ls a.ls-btn--ghost:hover,
.ls a.ls-btn--ghost:focus-visible {
    color: #fff;
}

/* --- 본문 페이지 공통 --------------------------------------------------- */

.ls-page {
    padding: clamp(52px, 8vw, 104px) 0 clamp(72px, 11vw, 140px);
}

.ls-page__title {
    font-family: var(--ls-display);
    margin: 0 0 10px;
    font-size: clamp(28px, 4.8vw, 46px);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.006em;
    color: var(--ls-ink-deep);
}

.ls-page__sub {
    font-family: var(--ls-display);
    margin: 0 0 36px;
    font-size: clamp(17px, 2.6vw, 23px);
    font-weight: 600;
}

.ls-kicker {
    font-family: var(--ls-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ls-ink-faint);
    margin: 0 0 16px;
}

/* 제목(왼쪽) + 본문(오른쪽) 2단. 좁은 화면에서는 자연히 쌓인다. */
.ls-split {
    display: grid;
    gap: clamp(22px, 4vw, 60px);
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 860px) {
    .ls-split {
        grid-template-columns: minmax(240px, 0.8fr) 1.4fr;
    }
}

.ls-split + .ls-split {
    margin-top: clamp(56px, 9vw, 112px);
    padding-top: clamp(44px, 7vw, 80px);
    border-top: 1px solid var(--ls-line-soft);
}

/* 원본 화면의 불릿 목록. */
.ls-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.ls-bullets li {
    position: relative;
    padding-left: 22px;
    font-size: 15.5px;
    color: var(--ls-ink-soft);
}

.ls-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--ls-accent);
}

.ls-prose p {
    margin: 0 0 1em;
    color: var(--ls-ink-soft);
}

/* 문단 앞에 세우는 한 줄 — 본문보다 크고 진하게 두어 시선을 잡는다. */
.ls-lead {
    font-family: var(--ls-display);
    font-size: clamp(17px, 2.2vw, 21px);
    font-weight: 500;
    line-height: 1.55;
    color: var(--ls-ink-deep) !important;
    margin-bottom: 0.9em;
}

.ls-prose :last-child {
    margin-bottom: 0;
}

/* 인물 사진 — 원본의 원형 크롭. */
.ls-portrait {
    width: min(100%, 320px);
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    justify-self: center;
    box-shadow: var(--ls-shadow);
}

.ls-contactline {
    margin-top: 30px;
    font-family: var(--ls-mono);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    display: grid;
    gap: 6px;
    color: var(--ls-ink-soft);
}

.ls-contactline a {
    text-decoration: none;
    width: fit-content;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ls-ease), color 0.2s var(--ls-ease);
}

.ls-contactline a:hover {
    color: var(--ls-ink-deep);
    border-bottom-color: var(--ls-accent);
}

/* --- 이력 목록 --------------------------------------------------------- */

.ls-creds {
    display: grid;
    gap: clamp(28px, 4vw, 42px);
}

.ls-creds__group h2 {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ls-line-soft);
    font-family: var(--ls-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ls-accent);
}

.ls-creds__group ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ls-creds__group li {
    position: relative;
    padding-left: 22px;
    font-size: 15.5px;
}

.ls-creds__group li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.78em;
    width: 8px;
    height: 1.5px;
    background: var(--ls-ink-faint);
}

.ls-creds__note {
    display: block;
    color: var(--ls-ink-faint);
    font-size: 13.5px;
}

/* --- 카드 격자 (언론·블로그) -------------------------------------------- */

.ls-grid {
    display: grid;
    gap: clamp(20px, 3vw, 34px);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.ls-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s var(--ls-ease);
}

.ls-card__thumb {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    background: var(--ls-bg-deep);
    border-radius: 3px;
    box-shadow: var(--ls-shadow);
    transition: transform 0.5s var(--ls-ease), box-shadow 0.3s var(--ls-ease);
}

.ls-card__thumb--empty {
    display: grid;
    place-items: center;
    font-family: var(--ls-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ls-ink-faint);
    background: linear-gradient(140deg, var(--ls-bg-deep), var(--ls-bg-top));
}

.ls-card__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    margin: 0;
    color: var(--ls-ink-deep);
}

.ls-card__meta {
    font-family: var(--ls-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    color: var(--ls-ink-faint);
}

a.ls-card:hover,
a.ls-card:focus-visible {
    transform: translateY(-5px);
}

a.ls-card:hover .ls-card__thumb,
a.ls-card:focus-visible .ls-card__thumb {
    transform: scale(1.03);
    box-shadow: var(--ls-shadow-lift);
}

a.ls-card:hover .ls-card__title,
a.ls-card:focus-visible .ls-card__title {
    color: var(--ls-accent);
}

.ls-card__ext {
    display: inline-block;
    font-family: var(--ls-mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid var(--ls-line);
    padding: 1px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

/* --- SNS 아이콘 줄 ------------------------------------------------------ */

.ls-social {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 8px;
}

.ls-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--ls-line);
    border-radius: 50%;
    text-decoration: none;
    font-family: var(--ls-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--ls-ink-soft);
    transition: background 0.24s var(--ls-ease), color 0.24s var(--ls-ease),
        border-color 0.24s var(--ls-ease), transform 0.24s var(--ls-ease);
}

.ls-social a:hover,
.ls-social a:focus-visible {
    background: var(--ls-ink);
    border-color: var(--ls-ink);
    color: #fff;
    transform: translateY(-3px);
}

/* --- 글 본문 ------------------------------------------------------------ */

.ls-article {
    max-width: 68ch;
    /* 제목과 본문이 붙지 않도록 띄운다. */
    margin-top: clamp(30px, 4.4vw, 52px);
}

.ls-article h2 {
    font-family: var(--ls-display);
    font-size: 23px;
    margin: 2em 0 0.6em;
    color: var(--ls-ink-deep);
}

.ls-article h3 {
    font-size: 18px;
    margin: 1.8em 0 0.5em;
}

.ls-article p,
.ls-article li {
    font-size: 16.5px;
    line-height: 1.85;
}

.ls-article img {
    margin: 1.6em 0;
    border-radius: 3px;
    box-shadow: var(--ls-shadow);
}

.ls-article blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 20px;
    border-left: 2px solid var(--ls-accent);
    color: var(--ls-ink-soft);
    font-style: italic;
}

/* 밑줄(++표기++)이 링크와 헷갈리지 않도록 두께·간격을 달리한다. */
.ls-article u {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ls-article a {
    text-underline-offset: 3px;
    text-decoration-color: var(--ls-accent);
}

/* --- 문의 폼 ------------------------------------------------------------ */

.ls-form {
    display: grid;
    gap: 20px;
    max-width: 640px;
}

.ls-field label {
    display: block;
    font-family: var(--ls-mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--ls-ink-faint);
}

.ls-field input,
.ls-field textarea {
    width: 100%;
    padding: 13px 15px;
    font: inherit;
    font-size: 15px;
    color: var(--ls-ink);
    background: var(--ls-surface);
    border: 1px solid var(--ls-line);
    border-radius: 3px;
    transition: border-color 0.2s var(--ls-ease), box-shadow 0.2s var(--ls-ease);
}

.ls-field textarea {
    min-height: 180px;
    resize: vertical;
}

.ls-field input:hover,
.ls-field textarea:hover {
    border-color: var(--ls-ink-faint);
}

.ls-field input:focus,
.ls-field textarea:focus {
    outline: none;
    border-color: var(--ls-ink);
    box-shadow: 0 0 0 3px rgba(0, 47, 108, 0.12);
}

.ls-field__hint {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ls-ink-faint);
}

.ls-field__error {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    color: #a11b2e;
}

/* 봇 함정 — 사람 눈에는 보이지 않고 스크린리더도 건너뛴다. */
.ls-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ls-flash {
    margin-bottom: 28px;
    padding: 15px 20px;
    background: var(--ls-surface);
    border-left: 3px solid var(--ls-accent);
    border-radius: 0 3px 3px 0;
    box-shadow: var(--ls-shadow);
    font-size: 15px;
}

/* --- 로그인 ------------------------------------------------------------- */

.ls-login {
    width: min(100%, 460px);
    margin: clamp(10px, 4vw, 48px) auto 0;
}

.ls-login__remember {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--ls-ink-soft);
    cursor: pointer;
}

.ls-login__remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--ls-ink);
}

.ls-login__foot {
    margin-top: 26px;
    font-family: var(--ls-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.ls-login__foot a {
    color: var(--ls-ink-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--ls-line);
    padding-bottom: 2px;
    transition: color 0.2s var(--ls-ease), border-color 0.2s var(--ls-ease);
}

.ls-login__foot a:hover {
    color: var(--ls-ink-deep);
    border-bottom-color: var(--ls-accent);
}

/* --- 조예 소개 ---------------------------------------------------------- */

.ls-firm {
    background: linear-gradient(180deg, var(--ls-bg-deep), var(--ls-bg));
}

.ls-firm__logo {
    width: min(100%, 220px);
    justify-self: center;
}

/* --- 홈: 최근 글 · 바로가기 ---------------------------------------------- */

.ls-home-section {
    border-top: 1px solid var(--ls-line-soft);
    padding: clamp(54px, 8vw, 96px) 0;
}

.ls-home-section__head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 30px;
}

.ls-home-section__head h2 {
    font-family: var(--ls-display);
    position: relative;
    margin: 0;
    padding-left: 18px;
    font-size: clamp(20px, 2.9vw, 27px);
    font-weight: 600;
    letter-spacing: -0.004em;
    color: var(--ls-ink-deep);
}

/* 제목 앞에 세우는 짧은 금색 선. */
.ls-home-section__head h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.32em;
    bottom: 0.32em;
    width: 3px;
    border-radius: 2px;
    background: var(--ls-accent);
}

.ls-more {
    font-family: var(--ls-mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ls-ink-soft);
    border-bottom: 1px solid var(--ls-line);
    padding-bottom: 3px;
    transition: color 0.2s var(--ls-ease), border-color 0.2s var(--ls-ease);
}

.ls-more:hover,
.ls-more:focus-visible {
    color: var(--ls-ink-deep);
    border-bottom-color: var(--ls-accent);
}

/* 사이트 지도 — 어떤 페이지가 있는지 홈에서 한눈에 보이게 한다. */
.ls-map {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.ls-map a {
    position: relative;
    display: block;
    padding: 24px 26px;
    background: var(--ls-surface);
    border: 1px solid var(--ls-line-soft);
    border-radius: 4px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s var(--ls-ease), box-shadow 0.3s var(--ls-ease),
        border-color 0.3s var(--ls-ease);
}

/* 왼쪽에서 자라나는 금색 띠. */
.ls-map a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ls-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.32s var(--ls-ease);
}

.ls-map a:hover,
.ls-map a:focus-visible {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--ls-shadow-lift);
}

.ls-map a:hover::before,
.ls-map a:focus-visible::before {
    transform: scaleY(1);
}

.ls-map__title {
    font-family: var(--ls-display);
    font-weight: 600;
    font-size: 17px;
    margin: 0 0 8px;
    color: var(--ls-ink-deep);
}

.ls-map__desc {
    margin: 0;
    font-size: 13.5px;
    color: var(--ls-ink-soft);
    line-height: 1.65;
}

/* --- 스크롤에 맞춰 떠오르는 블록 ----------------------------------------- */

.ls-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ls-ease), transform 0.6s var(--ls-ease);
}

.ls-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* --- 꼬리말 ------------------------------------------------------------ */

.ls-foot {
    border-top: 1px solid var(--ls-line-soft);
    padding: 36px 0 50px;
    font-family: var(--ls-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--ls-ink-faint);
}

.ls-foot__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    align-items: center;
    justify-content: space-between;
}

/* 광고책임변호사 표시 — 좁은 화면에서는 저작권 줄 아래로 내린다. */
.ls-foot__ad {
    display: block;
    margin-top: 4px;
}

@media (min-width: 620px) {
    .ls-foot__ad {
        display: inline;
        margin-top: 0;
    }

    .ls-foot__ad::before {
        content: '·';
        margin: 0 8px;
        opacity: 0.5;
    }
}

.ls-foot a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s var(--ls-ease), border-color 0.2s var(--ls-ease);
}

.ls-foot a:hover {
    color: var(--ls-ink);
    border-bottom-color: var(--ls-accent);
}

/* --- 페이지 넘김 -------------------------------------------------------- */

.ls-pager {
    margin-top: 48px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--ls-mono);
    font-size: 12px;
}

.ls-pager a,
.ls-pager span {
    padding: 8px 13px;
    border: 1px solid var(--ls-line-soft);
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s var(--ls-ease), border-color 0.2s var(--ls-ease);
}

.ls-pager a:hover {
    background: var(--ls-surface);
    border-color: var(--ls-line);
}

.ls-pager .is-current {
    background: var(--ls-ink);
    color: #fff;
    border-color: var(--ls-ink);
}

/* --- 움직임을 원치 않는 사용자 ------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ls *,
    .ls *::before,
    .ls *::after {
        animation-duration: 0.001s !important;
        animation-delay: 0s !important;
        transition-duration: 0.001s !important;
    }

    .ls-reveal,
    .ls-hero > *,
    .ls-nav.is-open .ls-nav__links a {
        opacity: 1;
        transform: none;
    }
}
