/* 색·글꼴·헤더는 pinda-home/src/app/(frontend)/styles.css와 맞춘다 */
:root {
  --ground: #fff;
  --surface: #f7f4ee;
  --line: #e8e2d8;
  --ink: #22282b;
  --ink-soft: #5d6467;
  --accent: #b9541a;
  --accent-deep: #8f3f12;
  --accent-soft: #fbefe5;
  --shade: 30, 26, 22;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --frame: min(1180px, 100% - 2 * var(--gutter));
  --gap: clamp(56px, 8vw, 104px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0; letter-spacing: -0.025em; line-height: 1.25; }
h2 { font-size: clamp(25px, 3vw, 36px); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  z-index: 30;
}
.skip:focus { top: 8px; }

.frame { width: var(--frame); margin-inline: auto; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.1s;
}
.button:hover { background: var(--accent-deep); }
.button:active { transform: translateY(1px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 64px;
}
.wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  padding-block: 8px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--accent-deep); }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 46vw, 600px);
  overflow: hidden;
  background: rgb(var(--shade));
  color: #fff;
  isolation: isolate;
}
.hero__mosaic {
  position: absolute;
  top: 50%;
  left: 62%;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(3, clamp(260px, 26vw, 360px));
  gap: 16px;
  transform: translate(-50%, -50%) rotate(-7deg);
}
.hero__mosaic img { border-radius: 10px; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(var(--shade), 0.96) 0%,
    rgba(var(--shade), 0.84) 45%,
    rgba(var(--shade), 0.12) 100%
  );
}
.hero__body { padding-block: clamp(40px, 6vw, 72px); }
.hero__body > * { max-width: 600px; }
.hero h1 { font-size: clamp(31px, 4.2vw, 50px); font-weight: 800; }
.hero p { margin: 18px 0 30px; font-size: clamp(17px, 1.6vw, 20px); }

.section { padding-block: var(--gap) 0; }
.section:last-of-type { padding-bottom: var(--gap); }
.section__lede { margin: 10px 0 clamp(24px, 3vw, 36px); color: var(--ink-soft); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ground);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card a:hover { border-color: var(--accent); transform: translateY(-3px); }
.card a:hover .card__name { color: var(--accent-deep); }
.card__shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card__body { display: flex; flex: 1; flex-direction: column; padding: clamp(18px, 2vw, 24px); }
.card__host { font-size: 14px; color: var(--ink-soft); }
.card__name { margin-top: 2px; font-size: 23px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.3; }
.card__tagline { margin-top: 4px; font-weight: 700; color: var(--accent-deep); }
.card__desc { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.card__tags span {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-soft);
}

/* 분류의 첫 사이트는 한 줄 전체를 쓰는 큰 카드 */
@media (min-width: 820px) {
  .card--lead { grid-column: 1 / -1; }
  .card--lead a { flex-direction: row; }
  .card--lead .card__shot { flex: 0 0 58%; border-bottom: 0; border-right: 1px solid var(--line); }
  .card--lead .card__body { justify-content: center; padding: clamp(24px, 3vw, 40px); }
  .card--lead .card__name { font-size: 30px; }
  .card--lead .card__tags { margin-top: 0; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 10px; }
  .site-nav { gap: 18px; width: 100%; overflow-x: auto; font-size: 15px; }
  .hero__mosaic { left: 50%; }
  .hero::after { background: rgba(var(--shade), 0.8); }
}

.site-footer { padding-block: 40px; background: var(--surface); font-size: 15px; color: var(--ink-soft); }
.site-footer strong { color: var(--ink); }
.site-footer p { margin: 6px 0 0; }

.missing { padding-block: var(--gap); }
.missing .button { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
