@import url("https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@700;800&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");

/* ---------------------------------------------------------------------------
   Liner Corp. — 도메인 parking
   팔레트는 liner.com/about 에서 직접 채집했습니다.
     #121F12  히어로 그라운드      #386A38  CTA 그린
     #F9F9FA  오프화이트          #0C893B  브랜드 그린
     #F29436  하이라이터 앰버 (SimpleQA 차트 액센트)
   서체: 랜딩은 전부 Pretendard — 라이너의 로고도 디스플레이 서체(Flare)도 산세이므로
        회사 페이지에 명조를 얹으면 브랜드 목소리와 어긋난다.
        명조(Nanum Myeongjo)는 /IR 의 공고 제목에만. 법정 공고문의 서체 관례를 따른 것.
--------------------------------------------------------------------------- */

:root {
  --ground: #121f12;
  --paper: #f9f9fa;
  --ink: #14371b;
  --liner: #386a38;
  --signal: #0c893b;
  --marker: #f29436;

  --on-ground: #f9f9fa;
  --muted-ground: rgba(249, 249, 250, 0.56);
  --rule-ground: rgba(249, 249, 250, 0.13);
  --muted-paper: #5d6b60;
  --rule-paper: #dfe2dd;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  /* 명조는 공고문 장르의 서체다. /IR 에서만 쓴다. */
  --myeongjo: "Nanum Myeongjo", "Apple SD Gothic Neo", Batang, serif;

  --measure: 34rem;
  --step: clamp(1.75rem, 5vw, 2.75rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.shell {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
}

.mark-liner {
  display: block;
  width: 6.25rem;
  height: auto;
}

/* 접근성 바닥: 키보드 포커스는 항상 보이게, 마커 색으로 통일 */
:where(a, button, summary):focus-visible {
  outline: 2px solid var(--marker);
  outline-offset: 4px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ============================================================ 랜딩 : 초록 필드 */

.field {
  background: var(--ground);
  color: var(--on-ground);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-block: clamp(2.5rem, 9vh, 5rem);
}

.field .shell {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.field-head {
  margin-bottom: clamp(2.5rem, 8vh, 4.25rem);
}

.field-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 시그니처 — 하이라이터 --------------------------------------------------
   ::after 가 법인명을 한 번 더 그려 앰버 블록 위에 잉크색으로 얹고,
   그 폭이 0 → 100% 로 자라면서 형광펜이 지나간 것처럼 보이게 합니다.
   블렌드 모드를 쓰지 않아 어느 브라우저에서나 같게 나옵니다. */
.legal-name {
  font-weight: 800;
  font-size: clamp(2.25rem, 8.5vw, 3.25rem);
  line-height: 1.3;
  letter-spacing: -0.035em;
  margin: 0;
}

.highlight {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.highlight::after {
  content: attr(data-text);
  position: absolute;
  inset: -0.04em -0.1em -0.06em -0.1em;
  padding-inline: 0.1em;
  color: var(--ground);
  /* 펜이 지나간 자리 — 처음 닿은 왼쪽이 진하고 끝이 옅다 */
  background: linear-gradient(101deg, #ec9636 0%, #f4ae55 34%, #f9c87c 100%);
  border-radius: 1px 2px 1px 2px;
  transform: rotate(-0.35deg);
  transform-origin: left center;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  z-index: 1;
  animation: sweep 760ms cubic-bezier(0.22, 0.7, 0.25, 1) 380ms forwards;
}

@keyframes sweep {
  to {
    /* 오른쪽으로 살짝 지나쳐 멈추는 것이 실제 형광펜의 궤적 */
    width: calc(100% + 0.42em);
  }
}

.romanized {
  margin: 1.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-ground);
}

.lede {
  margin: 1.75rem 0 0;
  font-size: 1.0625rem;
  color: rgba(249, 249, 250, 0.86);
}


/* 사옥 밴드 -------------------------------------------------------------
   등기부의 `소재지` 가 가리키는 바로 그 장소(마포구 양화로 140, 8층)라서
   장식이 아니라 그 항목의 실물이다. corp.liner.com 이 쓰던 Notion 커버와 같은 사진.

   본문 컬럼보다 넓게 두되 왼쪽 모서리는 컬럼에 맞춘다 — 로고·법인명·본문과
   왼쪽 축을 공유하고 사진만 오른쪽으로 뻗어 넓은 화면에서 구성을 잡아 준다.
   (뷰포트 중앙 정렬도 해 봤으나 로고와 밴드가 따로 노는 느낌이라 버렸다.) */
.office-band {
  width: min(100vw - 2.5rem, 56rem);
  margin: 0 0 clamp(2.25rem, 6vh, 3.25rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.office-band img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  object-position: center 52%;
  /* 사옥의 밝고 따뜻한 인상이 이 사진을 쓰는 이유다. 과하게 눌러 죽이지 말 것 */
  filter: saturate(0.92) contrast(1.02);
}

/* 사진이 초록 필드에 속해 보이도록 아래로 갈수록 그라운드 색을 얹는다 */
.office-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 31, 18, 0.1) 0%,
    rgba(18, 31, 18, 0.22) 60%,
    rgba(18, 31, 18, 0.42) 100%
  );
  pointer-events: none;
}

/* 이동 경로 ------------------------------------------------------------- */

.routes {
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  border-top: 1px solid var(--rule-ground);
}

.route {
  /* 그리드로 두어야 라벨이 4.5rem 트랙 안에서 글자 폭만 차지한다.
     flex + 고정폭이면 형광펜이 빈 여백까지 덮어 밑줄처럼 보인다. */
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule-ground);
  text-decoration: none;
  color: inherit;
}

.route-label {
  position: relative;
  /* ::after 를 z-index:-1 로 깔 때 .field 배경 뒤로 빠지지 않도록 스택 컨텍스트를 만든다 */
  isolation: isolate;
  display: inline-block;
  justify-self: start;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* 링크에도 같은 형광펜 제스처 — 하나의 아이디어를 두 번 쓴 것 */
.route-label::after {
  content: "";
  position: absolute;
  left: -0.16em;
  right: -0.16em;
  bottom: 0.02em;
  height: 0.78em;
  background: var(--marker);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.3, 1);
  z-index: -1;
}

.route:hover .route-label::after,
.route:focus-visible .route-label::after {
  transform: scaleX(1);
}

.route-url {
  font-size: 0.9375rem;
  color: var(--muted-ground);
  font-variant-numeric: tabular-nums;
}

.route-arrow {
  align-self: center;
  color: var(--muted-ground);
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

.route:hover .route-arrow,
.route:focus-visible .route-arrow {
  transform: translateX(0.25rem);
  color: var(--on-ground);
}

/* 등기 사항 ------------------------------------------------------------- */

.registry {
  margin: clamp(2.5rem, 6vh, 3.5rem) 0 0;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.registry dt {
  color: var(--muted-ground);
}

.registry dd {
  margin: 0;
}

.registry a {
  color: inherit;
  text-decoration-color: var(--rule-ground);
  text-underline-offset: 0.22em;
}

.registry a:hover {
  text-decoration-color: var(--marker);
}

.field-foot {
  margin-top: clamp(3.5rem, 10vh, 5.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-ground);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted-ground);
}

.field-foot a {
  color: var(--muted-ground);
  text-decoration-color: var(--rule-ground);
  text-underline-offset: 0.22em;
}

.field-foot a:hover {
  color: var(--on-ground);
  text-decoration-color: var(--marker);
}

/* ============================================================ 공고 : 종이 */

.paper {
  background: var(--paper);
  color: var(--ink);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-block: clamp(2.5rem, 9vh, 5rem);
}

.paper .shell {
  --measure: 44rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.paper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 11vh, 5.5rem);
}

.back {
  font-size: 0.8125rem;
  color: var(--muted-paper);
  text-decoration-color: var(--rule-paper);
  text-underline-offset: 0.22em;
}

.back:hover {
  color: var(--ink);
  text-decoration-color: var(--marker);
}

.paper-title {
  font-family: var(--myeongjo);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
}

.paper-note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted-paper);
  max-width: 32rem;
}

.notices {
  list-style: none;
  margin: clamp(2.5rem, 8vh, 4rem) 0 0;
  padding: 0;
  flex: 1;
}

.notice {
  border-top: 1px solid var(--rule-paper);
}

.notice:last-child {
  border-bottom: 1px solid var(--rule-paper);
}

/* 최신 공고만 open, 지난 공고는 제목줄만 두고 펼쳐 본다.
   <details> 를 쓰므로 JS 가 없고 키보드·스크린리더에서 그대로 동작한다. */
.notice-head {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
  padding-block: 1.35rem;
  cursor: pointer;
  list-style: none;
}

.notice-head::-webkit-details-marker {
  display: none;
}

.notice-date {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--muted-paper);
}

.notice-title {
  font-family: var(--myeongjo);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin: 0;
}

.notice-chevron {
  align-self: center;
  color: var(--muted-paper);
  transition: transform 200ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

.notice-fold[open] .notice-chevron {
  transform: rotate(180deg);
}

.notice-head:hover .notice-title,
.notice-head:hover .notice-chevron {
  color: var(--signal);
}

/* 공고문은 원본이 1360px 폭이라 좁은 화면에서는 본문이 5px 수준으로 줄어 읽을 수 없다.
   이미지 전체를 원본 파일 링크로 감싸 브라우저 기본 뷰어(핀치줌)로 넘긴다.
   JS 라이트박스를 쓰지 않는 이유: parking 페이지가 감당할 유지보수가 아니고,
   기본 뷰어가 모바일에서 더 익숙하고 확실하다. */
.notice-figure {
  margin: 0 0 2.25rem;
}

.notice-doc {
  display: block;
  color: inherit;
  text-decoration: none;
}

.notice-doc img {
  display: block;
  width: 100%;
  border: 1px solid var(--rule-paper);
  background: #fff;
}

.notice-doc:hover img {
  border-color: var(--muted-paper);
}

.notice-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  isolation: isolate;
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

/* 랜딩 링크와 같은 형광펜 제스처. 사이트 전체에서 이 동작 하나만 쓴다. */
.notice-zoom::after {
  content: "";
  position: absolute;
  left: -0.16em;
  right: -0.16em;
  bottom: 0.02em;
  height: 0.78em;
  background: var(--marker);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.3, 1);
  z-index: -1;
}

.notice-doc:hover .notice-zoom::after,
.notice-doc:focus-visible .notice-zoom::after {
  transform: scaleX(1);
}

.notice-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--muted-paper);
}

.paper-foot {
  margin-top: clamp(3.5rem, 10vh, 5.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-paper);
  font-size: 0.8125rem;
  color: var(--muted-paper);
}

/* ============================================================ 환경 대응 */

@media (max-width: 30rem) {
  .mark-liner {
    width: 4.75rem;
  }

  .paper-head {
    gap: 1rem;
  }

  .office-band img {
    aspect-ratio: 3 / 2;
    object-position: center 50%;
  }

  /* 날짜를 제목 위로 올리고 셰브런은 오른쪽 끝에 */
  .notice-head {
    grid-template-columns: 1fr auto;
    padding-block: 1.15rem;
  }

  .notice-date {
    grid-column: 1 / -1;
  }

  .notice-chevron {
    align-self: start;
    margin-top: 0.3rem;
  }

  /* 좁은 화면에선 이미지가 사실상 안 읽히므로 원본 보기가 주 동작이 된다 */
  .notice-zoom {
    margin-top: 1.1rem;
    font-size: 0.875rem;
    padding-block: 0.35rem;
  }

  /* 좁은 화면에서는 라벨과 화살표를 한 줄 양끝에, URL 을 그 아래로 */
  .route {
    grid-template-columns: 1fr auto;
    gap: 0.1rem 1rem;
    padding-block: 0.95rem;
  }

  .route-url {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .registry {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .registry dt {
    margin-top: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .highlight::after {
    animation: none;
    width: calc(100% + 0.32em);
  }

  .route-label::after,
  .route-arrow,
  .notice-chevron,
  .notice-zoom::after {
    transition: none;
  }
}

@media print {
  .paper {
    min-height: 0;
    padding: 0;
  }

  .back,
  .paper-foot,
  .notice-chevron,
  .notice-zoom {
    display: none;
  }

  /* 인쇄물에는 접힌 공고도 전부 나와야 한다 */
  .notice-fold > .notice-figure {
    display: block !important;
  }
}
