/*
 * signpostlab.com 루트 랜딩 v3 — 설계: docs/superpowers/specs/2026-11-07-landing-design.md §9·§10
 * 한 가지 기억할 모양: '이정표'. 주제 4개를 기둥에 매단 표지판(끝이 뾰족한 판)으로 보이고, 나머지는 조용하게 둔다.
 * 규칙: 라이트 전용, 서체 하나(Pretendard 자체 호스팅), 자간 -0.03em, 글자 크기는 12·14·16·18·20·24·30·36·48 만,
 *       2줄 이상 행간 1.5·한 줄 normal, 강조색(#1268e6)은 버튼·링크·표지판 끝 점에만(숫자는 먹색), 그라데이션·eyebrow 없음.
 *       폰(<768): 회색 바탕 위 흰 블록(k-style-ui-ux), 사진은 작게(첫 화면 사진은 낮은 띠, 썸네일 80px, 주제 사진 64px).
 *       움직임: 주제 이름 흐르는 띠(CSS만), 등장 0.5초, 버튼 누름 0.97, 표지판 hover 시 오른쪽으로 4px —
 *       prefers-reduced-motion 이면 모두 끔, JS 없이도 내용 전부 보임.
 * 간격은 4·8·12·16·20·24·32·40·48·64·80·96 만 쓴다.
 */

@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Pretendard-Regular.subset.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Pretendard-SemiBold.subset.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --canvas: #f2f3f1; /* 폰 섹션 사이 회색 바탕 */
  --ink: #1f2328;
  --slate: #59636e;
  --rule: #e2e6ea;
  --signal: #1268e6;
  --signal-ink: #ffffff;
  --signal-hover: #0d55c0;
  --plate: #f5f5f2; /* 표지판 판 */
  --plate-hover: #eaf2fd;
  --pole: #d9cdb9; /* 이정표 기둥(사진 속 나무와 같은 톤) */
  --tint: #eaf2fd;
  --tint-hover: #dbe8fb;
  --tint-ink: #0b4fb3;
  --focus: #1268e6;

  --font: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --tracking: -0.03em;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --page: 1120px;
  --gutter: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: var(--tracking);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 300ms var(--ease), text-decoration-color 300ms var(--ease), background-color 300ms var(--ease);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- 머리(위에 붙어 따라오는 반투명 막대) */
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
}
/* 작은 파란 표지판(사진 속 이정표의 판 모양) */
.wordmark::before {
  content: '';
  width: 16px;
  height: 10px;
  background: var(--signal);
  clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%);
}
.masthead nav ul {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: normal;
}
.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
}
.masthead nav a:hover {
  color: var(--ink);
}
.masthead nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}
.lang {
  display: flex;
  gap: 8px;
}
.lang li + li::before {
  content: '|';
  margin-right: 8px;
  color: var(--rule);
}

/* ---------------------------------------------------------------- 첫 화면: 제목이 먼저, 사진은 그 아래 낮은 띠 */
.hero {
  padding: 40px 0 24px;
  background: var(--paper);
}
.hero .wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  max-width: 680px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.04em;
}
/* 줄바꿈은 뜻이 끊기는 곳에서만: 구절 단위로 묶는다 */
.hero h1 .line {
  display: inline-block;
  max-width: 100%;
}
.hero .sub {
  max-width: 560px;
  margin-top: 16px;
  color: var(--slate);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}
.directions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--signal);
  color: var(--signal-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  transition: background-color 300ms var(--ease), transform 200ms var(--ease);
}
.button:hover {
  background: var(--signal-hover);
}
.button:active {
  transform: scale(0.97);
}
.quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-decoration: underline;
  text-decoration-color: var(--rule);
}
.quiet:hover {
  text-decoration-color: currentColor;
}
.hero-figure {
  overflow: hidden;
  aspect-ratio: 5 / 2;
  border-radius: 16px;
  background: var(--plate);
}
.hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 이정표(사진 가운데)가 띠 안에 오도록 */
  object-position: 50% 42%;
}

/* ---------------------------------------------------------------- 주제 이름이 흐르는 띠(장식, 읽기 도구는 건너뜀) */
.ticker {
  overflow: hidden;
  padding: 16px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.ticker-track {
  display: flex;
  width: max-content;
}
.ticker ul {
  display: flex;
  flex: none;
}
.ticker li {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-right: 32px;
  color: var(--slate);
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}
.ticker li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 8px;
  background: var(--pole);
  clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%);
}
/* 흐르는 띠는 움직임 자체가 목적이므로, 움직임 줄이기 설정이면 띠를 통째로 숨긴다(주제는 아래 표지판에 그대로 있다) */
.ticker {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker {
    display: block;
  }
  .ticker-track {
    animation: ticker 48s linear infinite;
  }
  .ticker:hover .ticker-track {
    animation-play-state: paused;
  }
}
/* 여섯 벌 중 세 벌만큼 움직이면 처음과 같은 모양 → 끊김 없이 반복 */
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------------------------- 섹션 공통: 이름 칸 + 내용 칸 */
.part {
  padding: 48px 0;
}
.part .wrap {
  display: grid;
  gap: 24px;
}
.part h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  text-wrap: balance;
}
.side-note,
.tally {
  margin-top: 8px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}
.side-note {
  max-width: 320px;
}
.tally .count {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- 최신 글·처음 읽는 글: 작은 정사각 썸네일 + 제목 행 */
.post a {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 80px;
  text-decoration: none;
}
.post-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: var(--plate);
}
/* 대표 이미지가 글자 카드여도 작게 잘린 모양이 단정하게: 안쪽 얇은 테 */
.post-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(31, 35, 40, 0.08);
}
.post-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 대표 이미지가 글자 카드(제목이 왼쪽에서 시작)여도 첫머리가 보이게 왼쪽 기준으로 자른다 */
  object-position: 0% 50%;
  transition: transform 500ms var(--ease);
}
.post a:hover .post-photo img {
  transform: scale(1.06);
}
.post-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--slate);
  font-size: 14px;
  line-height: normal;
}
.post-meta time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.post-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 300ms var(--ease);
}
.post a:hover .post-title {
  text-decoration-color: currentColor;
}
.posts .post,
.picks .post {
  padding: 16px 0;
}
.posts .post + .post,
.picks .post + .post {
  border-top: 1px solid var(--rule);
}
/* 처음 읽는 글은 권하는 순서가 있으므로 번호를 붙인다 */
.picks {
  counter-reset: pick;
}
.picks .post a {
  grid-template-columns: 24px 80px minmax(0, 1fr);
}
.picks .post a::before {
  counter-increment: pick;
  content: counter(pick);
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.toc-more {
  margin-top: 8px;
  font-size: 14px;
}
.toc-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: var(--rule);
}
.toc-more a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* ---------------------------------------------------------------- 주제 4개: 기둥에 매단 표지판 */
.signpost {
  position: relative;
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
}
/* 기둥: 판 사이 틈과 맨 아래로만 보인다 */
.signpost::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 28px;
  width: 8px;
  border-radius: 4px 4px 0 0;
  background: var(--pole);
}
.topic {
  position: relative;
}
.topic a {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 16px;
  row-gap: 4px;
  align-items: start;
  padding: 12px 48px 12px 12px;
  border-radius: 12px 0 0 12px;
  background: var(--plate);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
  text-decoration: none;
  transition: background-color 300ms var(--ease), transform 500ms var(--ease);
}
/* 판 끝 쪽 작은 파란 점: 가리키는 방향 */
.topic a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--signal);
}
.topic a:hover {
  background: var(--plate-hover);
  transform: translateX(4px);
}
.topic a:active {
  transform: translateX(4px) scale(0.99);
}
/* 판 모양으로 잘리므로 초점 테두리는 안쪽에 */
.topic a:focus-visible {
  outline-offset: -4px;
}
.topic-photo {
  grid-row: 1 / span 3;
  display: block;
  overflow: hidden;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--paper);
}
.topic-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topic-name {
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
}
.topic-line {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}
.topic-count {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  font-variant-numeric: tabular-nums;
}
.topic-count[hidden] {
  display: none;
}

/* ---------------------------------------------------------------- 기록하는 사람 */
.with-photo {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
/* 이름·소개를 사진과 같은 격자에 놓는다(폰: 사진+이름 한 줄, 소개는 아래 전체 폭) */
.with-photo > div {
  display: contents;
}
/* 노션풍 선화 프로필(확정) */
.avatar {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--paper);
  object-fit: cover;
}
.person .name {
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
}
.person .name span {
  margin-left: 8px;
  color: var(--slate);
  font-size: 16px;
  font-weight: 400;
}
.person .bio {
  grid-column: 1 / -1;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- 함께 일하기: 행 목록 + 옅은 채움 버튼 */
.work .intro,
.connect .intro {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}
.connect .directions {
  margin-top: 24px;
}
.offers {
  margin-top: 16px;
}
.offers li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 20px 0;
}
.offers li + li {
  border-top: 1px solid var(--rule);
}
.offers h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
}
.offers p {
  grid-column: 1;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}
.offers .mail {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--tint-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 300ms var(--ease), transform 200ms var(--ease);
}
.offers .mail:hover {
  background: var(--tint-hover);
}
.offers .mail:active {
  transform: scale(0.97);
}
.work .note {
  max-width: 680px;
  margin-top: 16px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
}
.work .note a {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------- 자주 묻는 질문 */
.qa details + details {
  border-top: 1px solid var(--rule);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  text-wrap: pretty;
}
.qa summary::-webkit-details-marker {
  display: none;
}
/* 열림 표시: '+' 가 열리면 45도 돌아 'x' 가 된다 */
.qa summary::after {
  content: '+';
  flex: none;
  color: var(--slate);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform 300ms var(--ease);
}
.qa details[open] summary::after {
  transform: rotate(45deg);
}
.qa summary:hover {
  color: var(--signal);
}
.qa details p {
  max-width: 680px;
  padding: 0 0 20px;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- 맨 아래: 문의와 새 글 */
.closing {
  padding: 48px 0;
  background: var(--plate);
}
.closing .wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}
.closing h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: normal;
}
.closing p {
  max-width: 520px;
  margin-top: 12px;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}
.closing .directions {
  margin-top: 24px;
}
.closing-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  object-fit: cover;
  background: var(--paper);
}

/* ---------------------------------------------------------------- 스크롤 등장: html.motion 일 때만(JS 없으면 처음부터 보임) */
.motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.motion .reveal.is-in {
  opacity: 1;
  transform: none;
}
/* 표지판은 위에서부터 하나씩 */
.motion .topic.reveal {
  transform: translateX(-16px);
}
.motion .topic.reveal.is-in {
  transform: none;
}
.motion .topic.reveal:nth-child(2) {
  transition-delay: 80ms;
}
.motion .topic.reveal:nth-child(3) {
  transition-delay: 160ms;
}
.motion .topic.reveal:nth-child(4) {
  transition-delay: 240ms;
}

/* ---------------------------------------------------------------- 바닥글 */
.foot {
  padding: 32px 0 48px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  color: var(--slate);
  font-size: 14px;
  line-height: normal;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: var(--rule);
}
.foot a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* 404 */
.lost {
  padding: 96px 0;
}
.lost h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: normal;
}
.lost p {
  margin-top: 16px;
  color: var(--slate);
  font-size: 18px;
  line-height: 1.5;
}
.lost .directions {
  margin-top: 32px;
}

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

/* ---------------------------------------------------------------- 폰(<768): 회색 바탕 위 흰 블록 */
/* 1024 아래에서는 맨 아래 장식 사진을 숨긴다(사진이 화면을 덮지 않게) */
@media (max-width: 1023px) {
  .closing-photo {
    display: none;
  }
}
@media (max-width: 767px) {
  body {
    background: var(--canvas);
  }
  .part,
  .closing {
    margin: 12px 12px 0;
    padding: 28px 0;
    border-radius: 20px;
    background: var(--paper);
  }
  .part .wrap,
  .closing .wrap {
    padding: 0 20px;
    gap: 16px;
  }
  .closing h2 {
    font-size: 24px;
  }
  .closing .button {
    flex: 1 1 100%;
  }
  .foot {
    margin-top: 12px;
    border-top: 0;
  }
}
@media (max-width: 374px) {
  .hero h1 {
    font-size: 30px;
  }
}

/* ---------------------------------------------------------------- 태블릿 이상 */
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
  .masthead .wrap {
    min-height: 64px;
  }
  .masthead nav ul {
    gap: 24px;
  }
  .hero {
    padding: 64px 0 48px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero .sub {
    margin-top: 24px;
    font-size: 20px;
  }
  .hero-figure {
    aspect-ratio: 3 / 1;
  }
  .ticker li {
    font-size: 20px;
    padding-right: 40px;
  }
  .part {
    padding: 64px 0;
  }
  .part + .part {
    border-top: 1px solid var(--rule);
  }
  .part .wrap {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
  }
  .post a,
  .picks .post a {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 24px;
  }
  .picks .post a {
    grid-template-columns: 24px 112px minmax(0, 1fr);
  }
  .post-title {
    font-size: 18px;
  }
  .signpost {
    max-width: 720px;
    gap: 16px;
  }
  .signpost::before {
    left: 40px;
    width: 10px;
  }
  .topic a {
    grid-template-columns: 80px minmax(0, 1fr);
    column-gap: 20px;
    padding: 16px 64px 16px 16px;
  }
  .topic-photo {
    width: 80px;
    height: 80px;
  }
  .topic-line {
    font-size: 16px;
  }
  /* 실제 이정표처럼 판 길이를 조금씩 다르게 */
  .topic:nth-child(2) {
    width: 94%;
  }
  .topic:nth-child(3) {
    width: 97%;
  }
  .topic:nth-child(4) {
    width: 90%;
  }
  .with-photo {
    grid-template-columns: 160px minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 16px;
  }
  .avatar {
    grid-row: 1 / span 2;
    width: 160px;
    height: 160px;
  }
  .person .bio {
    grid-column: 2;
  }
  .person .name {
    align-self: end;
  }
  .person .bio {
    align-self: start;
  }
  .offers p {
    font-size: 16px;
  }
  .qa summary {
    font-size: 18px;
  }
  .closing {
    margin-top: 32px;
    padding: 64px 0;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 80px 0 64px;
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 64px;
  }
  .hero-figure {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }
  .closing .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
  .offers li {
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 8px 24px;
  }
  .offers h3,
  .offers p {
    grid-column: auto;
  }
  .offers .mail {
    grid-column: 3;
    grid-row: 1;
  }
  .closing-photo {
    aspect-ratio: 2 / 1;
  }
}

@media (min-width: 1280px) {
  .hero {
    padding: 96px 0 80px;
  }
  .part .wrap {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
    animation: none !important;
  }
  .topic a:hover,
  .post a:hover .post-photo img {
    transform: none;
  }
}

/* 폰(<768): 머리글 메뉴가 3개로 늘어 한 줄이 넘치지 않게 — 지금 언어 표시는 숨기고(다른 언어 링크만), 간격을 줄인다 */
@media (max-width: 767px) {
  .masthead nav ul {
    gap: 12px;
  }
  .lang li:has(a[aria-current="page"]) {
    display: none;
  }
  .lang li + li::before {
    content: none;
  }
}
