/*
 * about.pilgrimjournal.app — 소개 랜딩 전용 스타일시트.
 *
 * 앱(src/styles.css)의 토큰 중 이 페이지에 필요한 것만 옮겨 왔다. 랜딩은
 * 빌드 단계 없이 그대로 배포되므로 앱 CSS를 import 하지 않고, 값이 바뀌면
 * 양쪽을 함께 손봐야 한다. 스크립트·다크모드 분기는 두지 않는다.
 */

:root {
  --paper: #f6edd3;
  --paper-2: #f1e4c4;
  --paper-deep: #e8d7ae;
  --ink: #2f2617;
  --ink-soft: #6f6044;
  --ink-faint: #a49065;
  --pine: #2d4b3a;
  --gilt: #a17b36;
  --gilt-bright: #cda64c;
  --oxblood: #7c342c;
  --line: rgb(126 96 42 / 30%);
  --line-soft: rgb(126 96 42 / 16%);
  --panel: rgb(255 250 238 / 52%);
  --font-body: 'Noto Serif KR', 'Nanum Myeongjo', 'Apple SD Gothic Neo', 'Malgun Gothic', serif;
  --font-title: 'EB Garamond', 'Nanum Myeongjo', 'Noto Serif KR', serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  /* 한국어는 어절 단위로만 줄바꿈해야 읽힌다. 영문에는 영향이 없고, 긴 URL·
     이메일 주소만 예외적으로 끊어 가로 넘침을 막는다. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 양피지 결. 본문 위에 아주 옅게만 얹어 글자 가독성을 해치지 않는다. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: var(--noise);
  opacity: 0.28;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* 읽는 글줄은 넓은 화면에서도 46rem을 넘기지 않는다. */
.prose {
  max-width: 40rem;
}

.prose-center {
  max-width: 40rem;
  margin-inline: auto;
}

a {
  color: var(--oxblood);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--gilt);
}

:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}

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

/* ── 상단 바 ───────────────────────────────────────────────────────── */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.masthead-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.masthead-brand:hover {
  color: var(--ink);
}

.masthead-seal {
  width: 2.25rem;
  height: 2.25rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-faint);
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.lang-switch a {
  color: var(--ink-faint);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--oxblood);
}

.lang-switch [aria-current='true'] {
  color: var(--oxblood);
}

/* ── 표제 ─────────────────────────────────────────────────────────── */

.hero {
  padding: 3.5rem 0 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gilt);
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 6.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.lead {
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.02rem;
  text-align: left;
  text-wrap: pretty;
}

.divider {
  margin: 2.75rem 0;
  color: var(--gilt);
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-align: center;
  user-select: none;
}

/* ── 섹션 공통 ─────────────────────────────────────────────────────── */

section {
  scroll-margin-top: 2rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head .eyebrow {
  margin-bottom: 0.6rem;
}

h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 4.6vw, 1.72rem);
  font-weight: 600;
  line-height: 1.45;
}

h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
}

p {
  text-wrap: pretty;
}

.badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15em 0.6em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-faint);
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  vertical-align: 0.22em;
  white-space: nowrap;
}

/* ── 앱 화면 ───────────────────────────────────────────────────────── */

.screens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  margin: 0;
}

.screen {
  flex: 0 1 15rem;
  margin: 0;
  text-align: center;
}

.screen img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow:
    0 18px 34px -20px rgb(60 40 15 / 55%),
    0 2px 0 rgb(255 255 255 / 40%) inset;
}

.screen figcaption {
  margin-top: 0.75rem;
  color: var(--ink-faint);
  font-size: 0.82rem;
  line-height: 1.6;
}

.hero-screen {
  margin: 2.75rem auto 0;
  max-width: 16rem;
}

/* 글과 화면을 나란히. 좁은 화면에서는 자연스럽게 위아래로 쌓인다. */
.split {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
}

.split .screens {
  justify-content: flex-start;
}

@media (min-width: 46rem) {
  .split {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }

  /* 좌우를 번갈아 놓는다. 화면이 왼쪽으로 가면 컬럼 폭도 함께 뒤집어야
     글줄이 좁은 `auto` 칸에 끼지 않는다. */
  .split-reverse {
    grid-template-columns: auto 1fr;
  }

  .split-reverse .split-text {
    order: 2;
  }
}

/* ── W.A.Y.S. ─────────────────────────────────────────────────────── */

.ways-flow {
  margin: 0 0 2rem;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-family: var(--font-title);
  font-size: clamp(0.95rem, 3.4vw, 1.12rem);
  line-height: 2;
  text-align: center;
}

.ways-flow b {
  color: var(--oxblood);
  font-weight: 600;
}

/* 네 걸음은 순서가 있는 한 벌이므로 2×2로 묶는다. 3+1로 흩어지면 S가 부록처럼
   보인다. */
.ways-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0;
}

@media (min-width: 46rem) {
  .ways-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ways-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: var(--panel);
}

.ways-letter {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gilt);
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.ways-card h3 {
  margin-bottom: 0.6rem;
}

.ways-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* 방법론의 태도를 그대로 옮긴 문장. 규칙이 아니라 태도이므로 작게 두지 않는다. */
.ways-grace {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-title);
  font-size: clamp(1.02rem, 3.6vw, 1.18rem);
  line-height: 1.9;
  text-align: center;
}

.ways-grace span {
  display: block;
}

/* ── 성경 인용 ─────────────────────────────────────────────────────── */

.scripture {
  margin: 0 0 1.5rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--gilt);
}

.scripture p {
  margin: 0 0 0.4rem;
  font-family: var(--font-title);
  font-size: 1.02rem;
  line-height: 1.85;
}

.scripture cite {
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ── 목록 ─────────────────────────────────────────────────────────── */

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.plain-list li:first-child {
  border-top: 1px solid var(--line-soft);
}

.plain-list b {
  font-weight: 600;
}

.plain-list span {
  color: var(--ink-soft);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: var(--panel);
}

.platforms p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.platform-state {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gilt);
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── 카드 판화 ─────────────────────────────────────────────────────── */

/* 판화 원본의 비율이 제각각이라 자르지 않고 아래를 맞춘다 — 캡션이 한 줄로
   정렬되고 위쪽만 자연스럽게 어긋난다. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  align-items: end;
  gap: 1.5rem;
  margin: 0;
}

.gallery figure {
  margin: 0;
  text-align: center;
}

.gallery img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  box-shadow: 0 12px 26px -14px rgb(60 40 15 / 45%);
}

.gallery figcaption {
  margin-top: 0.7rem;
  color: var(--ink-faint);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ── 맺음 · 행동 유도 ───────────────────────────────────────────────── */

.closing {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 3.8vw, 1.3rem);
  line-height: 1.75;
  text-align: center;
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--oxblood);
  border-radius: 2px;
  background: var(--oxblood);
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.button:hover {
  background: #6b2c25;
  color: var(--paper);
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.button-quiet:hover {
  border-color: var(--gilt);
  background: transparent;
  color: var(--oxblood);
}

/* ── 푸터 ─────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.8rem;
  line-height: 1.75;
  text-align: center;
}

.site-footer-brand {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.site-footer-links a {
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer-notice {
  margin-bottom: 0.9rem;
  color: rgb(164 144 101 / 85%);
  font-size: 0.75rem;
}

/* ── 404 ──────────────────────────────────────────────────────────── */

.notfound {
  padding: 5rem 0 3rem;
  text-align: center;
}

/* 좁은 화면에서는 상단 CTA가 한 줄을 통째로 쓰게 해 어중간한 왼쪽 정렬을 피한다. */
@media (max-width: 26rem) {
  .masthead .button {
    flex: 1 0 100%;
    text-align: center;
  }
}

@media (min-width: 40rem) {
  .page {
    padding-bottom: 5rem;
  }

  .hero {
    padding-top: 4.5rem;
  }
}

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