/* ==========================================================================
   p-otaisan.css — 오타이산 고유 레이어 (fresh.css 위에 얹음)
   모티프: 1879 노포 약방 — 거대한 연도 숫자, 인장/이중테두리, 화지 질감
   정렬: 전면 좌측 (카베진의 중앙 정렬과 정반대)
   질감: 크림 배경 · 각진 모서리 · 그림자 없이 얇은 보더
   타이포: Mono 비중을 높여 SINCE / 1879 / TOKYO 를 장부 번호처럼
   ========================================================================== */

:root {
  /* 카베진이 흰 종이라면 오타이산은 화지(和紙) */
  --paper: #fbf8f1;
  --paper-soft: #f5f0e4;
  --line: #e0d7c4;
  /* 그림자를 쓰지 않는다 — 대신 선으로 구분 */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --radius: 2px;
  --radius-sm: 2px;
  --radius-pill: 2px;
}

body {
  background: var(--paper);
  /* 화지 질감 — 미세한 결 */
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(160, 140, 100, 0.045) 0 1px,
      transparent 1px 3px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(160, 140, 100, 0.035) 0 1px,
      transparent 1px 4px
    );
}

/* ── 전면 좌측 정렬 ★ 카베진(중앙)과 정반대 ──────────────────────────── */
.hero {
  text-align: left;
}
.hero-sub {
  margin-left: 0;
  margin-right: 0;
  max-width: 620px;
}
.hero-actions,
.hero-chips {
  justify-content: flex-start;
}
.section-head {
  text-align: left;
  margin-left: 0;
  max-width: 760px;
}
.check-close {
  text-align: left;
  border-left: 2px solid var(--brand-600);
  padding-left: 18px;
}
.step-card,
.reco-item,
.use-card {
  text-align: left;
}
.step-ic,
.use-card .num {
  margin-left: 0;
}
.panel-note {
  text-align: left;
}
.safety h3 {
  justify-content: flex-start;
}
.price,
.footer {
  text-align: left;
}
.price p {
  margin-left: 0;
}

/* ── 히어로 모티프: 거대한 1879 ──────────────────────────────────────── */
.year-motif {
  position: absolute;
  right: clamp(-30px, -2vw, 0px);
  top: clamp(70px, 12vh, 150px);
  z-index: -1;
  font-family: var(--mono);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--brand-600);
  opacity: 0.09;
  pointer-events: none;
  user-select: none;
}

/* 장부식 표기 — SINCE / 1879 / TOKYO */
.ledger {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--brand-600);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand-700);
  margin-bottom: 22px;
  background: transparent;
}
.ledger span {
  padding: 8px 14px;
}
.ledger span + span {
  border-left: 1px solid var(--brand-600);
}
.ledger span.fill {
  background: var(--brand-600);
  color: var(--paper);
}

.hero h1 {
  letter-spacing: -0.03em;
}
.hero h1 .rule {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--brand-600);
  margin: 18px 0 0;
}

/* ── 도형 언어: 인장·이중 테두리 프레임 ──────────────────────────────── */
.eyebrow,
.sec-label,
.zz-tag,
.chip {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--brand-200);
}
.sec-label {
  border: 0;
  border-left: 3px double var(--brand-600);
  padding: 2px 0 2px 12px;
  background: transparent;
}
.zz-row,
.check-item,
.step-card,
.ing-item,
.reco-item,
.use-card,
.panel,
.safety {
  border-radius: 0;
}
/* 이중 테두리 — 약방 라벨 느낌 */
.panel,
.safety {
  box-shadow:
    inset 0 0 0 1px var(--paper),
    inset 0 0 0 4px var(--line);
  border-color: var(--line);
}
.step-ic,
.ing-item .ic {
  border-radius: 0;
  border: 1px solid var(--brand-200);
  background: transparent;
}
.use-card .num {
  border-radius: 0;
}
.btn {
  border-radius: 0;
}
.mq-card,
.mq-figure {
  border-radius: 0;
}
.hero-stage {
  border-radius: 0;
}

/* ── 시그니처 섹션: 1879 연혁 타임라인 + 생약 기록 카드 ──────────────── */
.chronicle {
  border-top: 1px solid var(--line);
}
.chron-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.chron-year {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-700);
  letter-spacing: 0.02em;
}
.chron-row p {
  font-size: 15px;
  color: var(--ink-700);
  word-break: keep-all;
}
.chron-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-300);
  word-break: keep-all;
}

/* 생약 기록 카드 — 약방 장부처럼 */
.herb-card {
  margin-top: 40px;
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 0 1px var(--paper),
    inset 0 0 0 4px var(--line);
  padding: 30px 32px;
  background: var(--paper-soft);
}
.herb-card h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand-700);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.herb-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0;
}
.herb-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 14.5px;
  color: var(--ink-700);
}
.herb-list li b {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--brand-600);
  font-weight: 600;
}

@media (max-width: 720px) {
  .chron-row {
    grid-template-columns: 72px 1fr;
    gap: 14px;
  }
  .herb-card {
    padding: 22px 20px;
  }
  .year-motif {
    top: 60px;
    opacity: 0.07;
  }
}

/* 안전 유의사항도 화지 톤으로 (그림자 없이 이중 테두리) */
.safety {
  background: #f6ecd8;
  border-color: #dcc9a0;
}
.safety h3 {
  color: #8a6417;
}
.safety h3 svg {
  stroke: #a97c22;
}
.safety li::before {
  background: #a97c22;
}
.safety li {
  border-bottom-color: #e3d4b4;
}
/* 그림자를 쓰지 않는 톤이므로 버튼 글로우도 제거 */
.btn-primary,
.btn-primary:hover {
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--brand-700);
}
