/* ============================================
   ATANO CRAFT ARCHIVE — 공통 스타일시트
   style.css
   ============================================ */

/* ── 리셋 & 기본 ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #f5f0e8;
  color: #2a2018;
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

/* ── 헤더 & 네비게이션 ── */
header {
  border-bottom: 1px solid #d4c8b0;
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.logo {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: #6b5c45;
  font-weight: 700;
}

.logo span {
  display: block;
  font-size: 30px;
  letter-spacing: 0.15em;
  color: #2a2018;
  margin-bottom: 4px;
  font-weight: 700;
}

nav a {
  color: #6b5c45;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-left: 32px;
  transition: color 0.2s;
  font-weight: 700;
}

nav a:hover { color: #2a2018; }

/* ── 뒤로가기 ── */
.back {
  padding: 24px 48px;
  border-bottom: 1px solid #d4c8b0;
}

.back a {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #6b5c45;
  text-decoration: none;
  font-weight: 700;
}

.back a:hover { color: #2a2018; }

/* ── 푸터 ── */
footer {
  padding: 40px 48px;
  border-top: 1px solid #d4c8b0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8a7a62;
  letter-spacing: 0.15em;
  font-weight: 700;
}

footer a { color: #6b5c45; text-decoration: none; }
footer a:hover { color: #2a2018; }

/* ── 히어로 (detail 페이지 공통) ── */
.hero {
  padding: 80px 48px 64px;
  border-bottom: 1px solid #d4c8b0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #6b5c45;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.0;
  color: #1a1008;
}

.hero-sub {
  font-size: 14px;
  color: #4a3c28;
  line-height: 1.9;
  margin-top: 24px;
  font-weight: 700;
}

/* ── 이미지 플레이스홀더 ── */
.image-placeholder {
  background: #e8e0d0;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #8a7a62;
  font-weight: 700;
}

/* ── 섹션 (detail 페이지 공통) ── */
.section {
  padding: 64px 48px;
  border-bottom: 1px solid #d4c8b0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #6b5c45;
  padding-top: 4px;
  font-weight: 700;
}

.section-body h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  color: #1a1008;
}

.section-body p {
  font-size: 14px;
  color: #4a3c28;
  line-height: 2.0;
  margin-bottom: 16px;
  font-weight: 700;
}

/* ── 스펙 그리드 (3칸) ── */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #d4c8b0;
  margin-top: 32px;
}

.spec-item {
  padding: 28px 32px;
  border-right: 1px solid #d4c8b0;
}

.spec-item:last-child { border-right: none; }

.spec-key {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #8a7a62;
  margin-bottom: 10px;
  font-weight: 700;
}

.spec-value {
  font-size: 20px;
  color: #1a1008;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-weight: 700;
}

.spec-note {
  font-size: 12px;
  color: #6b5c45;
  font-weight: 700;
  line-height: 1.7;
}

/* ── 프로세스 리스트 ── */
.process-list {
  margin-top: 32px;
  border: 1px solid #d4c8b0;
}

.process-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  border-bottom: 1px solid #d4c8b0;
  padding: 24px 32px;
  gap: 32px;
  align-items: start;
}

.process-item:last-child { border-bottom: none; }

.process-num {
  font-size: 12px;
  color: #8a7a62;
  letter-spacing: 0.2em;
  padding-top: 2px;
  font-weight: 700;
}

.process-text h3 {
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #1a1008;
  margin-bottom: 8px;
  font-weight: 700;
}

.process-text p {
  font-size: 13px;
  color: #4a3c28;
  line-height: 1.9;
  font-weight: 700;
}

/* ── 비교 테이블 ── */
.compare-table {
  margin-top: 32px;
  border: 1px solid #d4c8b0;
  width: 100%;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid #d4c8b0;
}

.compare-row:last-child { border-bottom: none; }

.compare-cell {
  padding: 20px 24px;
  font-size: 13px;
  color: #4a3c28;
  border-right: 1px solid #d4c8b0;
  line-height: 1.7;
  font-weight: 700;
}

.compare-cell:last-child { border-right: none; }

.compare-cell.header {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #8a7a62;
  background: #ede6d6;
}

.compare-cell.highlight { color: #1a1008; }
.compare-cell.atano { background: #ede6d6; color: #3a2e20; }

/* ── 이미지 로우 (3분할) ── */
.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #d4c8b0;
  margin-top: 32px;
}

.image-row .image-placeholder { aspect-ratio: 1/1; }

/* ── 구분선 ── */
.divider {
  border: none;
  border-top: 1px solid #d4c8b0;
  margin: 64px 0;
}

/* ============================================
   index.html 전용
   ============================================ */
.hero-index {
  padding: 96px 48px 80px;
  border-bottom: 1px solid #d4c8b0;
}

.hero-index p {
  font-size: 15px;
  color: #4a3c28;
  max-width: 520px;
  line-height: 2.0;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.section-title {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #6b5c45;
  padding: 48px 48px 24px;
  border-bottom: 1px solid #d4c8b0;
  font-weight: 700;
}

.materials-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #d4c8b0;
}

.material-item {
  padding: 32px 40px;
  border-right: 1px solid #d4c8b0;
}

.material-item:last-child { border-right: none; }

.material-symbol {
  font-size: 12px;
  color: #8a7a62;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  font-weight: 700;
}

.material-name {
  font-size: 18px;
  color: #1a1008;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-weight: 700;
}

.material-desc {
  font-size: 12px;
  color: #4a3c28;
  line-height: 1.8;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
  border-right: 1px solid #d4c8b0;
  border-bottom: 1px solid #d4c8b0;
  padding: 40px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover { background: #ede6d6; }

.card-tag {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #8a7a62;
  margin-bottom: 16px;
  font-weight: 700;
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: #1a1008;
}

.card p {
  font-size: 13px;
  color: #4a3c28;
  line-height: 1.9;
  font-weight: 700;
}

.card-meta {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #8a7a62;
  font-weight: 700;
}

.card-arrow {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #6b5c45;
  font-weight: 700;
}

/* ============================================
   materials.html 전용
   ============================================ */
.hero-materials {
  padding: 80px 48px 64px;
  border-bottom: 1px solid #d4c8b0;
}

.hero-materials p {
  font-size: 14px;
  color: #4a3c28;
  max-width: 560px;
  line-height: 2.0;
  font-weight: 700;
}

.material-block { border-bottom: 1px solid #d4c8b0; }

.material-header {
  padding: 48px 48px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
}

.material-index {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #8a7a62;
  padding-top: 6px;
}

.material-title-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 20px;
}

.material-symbol-big {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #8a7a62;
}

.material-name-big {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1008;
}

.material-sub {
  font-size: 14px;
  color: #4a3c28;
  line-height: 2.0;
  max-width: 640px;
  margin-bottom: 40px;
}

.data-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #d4c8b0;
  margin: 0 48px 0 0;
}

.data-cell {
  padding: 24px 24px 24px 0;
  border-right: 1px solid #d4c8b0;
}

.data-cell:last-child { border-right: none; padding-right: 0; }

.data-key {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #8a7a62;
  margin-bottom: 8px;
}

.data-value {
  font-size: 16px;
  color: #1a1008;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.data-note {
  font-size: 11px;
  color: #6b5c45;
  line-height: 1.6;
}

.material-body {
  padding: 40px 48px 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
}

.body-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #8a7a62;
  padding-top: 4px;
}

.body-content p {
  font-size: 14px;
  color: #4a3c28;
  line-height: 2.0;
  margin-bottom: 16px;
}

.tag-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #6b5c45;
  border: 1px solid #d4c8b0;
  padding: 6px 14px;
}

/* ============================================
   about.html 전용
   ============================================ */
.cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  border-bottom: 1px solid #d4c8b0;
}

.cover-text {
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid #d4c8b0;
}

.cover-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: #8a7a62;
  margin-bottom: 40px;
}

.cover h1 {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1.2;
  color: #1a1008;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.cover-caption {
  font-size: 12px;
  color: #8a7a62;
  letter-spacing: 0.15em;
  line-height: 2.0;
  border-top: 1px solid #d4c8b0;
  padding-top: 24px;
}

.cover-image {
  background: #e8e0d0;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #8a7a62;
}

.article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 96px 48px;
}

.article-intro {
  font-size: 15px;
  color: #4a3c28;
  line-height: 2.2;
  padding-bottom: 64px;
  border-bottom: 1px solid #d4c8b0;
  margin-bottom: 72px;
  letter-spacing: 0.02em;
}

.qa { margin-bottom: 64px; }

.question {
  font-size: 11px;
  color: #6b5c45;
  letter-spacing: 0.2em;
  margin-bottom: 28px;
  font-style: italic;
  line-height: 1.8;
  padding-left: 16px;
  border-left: 2px solid #d4c8b0;
}

.answer {
  font-size: 15px;
  color: #2a2018;
  line-height: 2.2;
  letter-spacing: 0.02em;
}

.answer p { margin-bottom: 20px; }
.answer p:last-child { margin-bottom: 0; }

.answer .pull-quote {
  font-size: clamp(20px, 2.5vw, 26px);
  color: #1a1008;
  line-height: 1.6;
  display: block;
  margin: 32px 0;
  letter-spacing: 0.02em;
  border-left: 3px solid #8a7a62;
  padding-left: 28px;
}

.fact-box {
  border: 1px solid #d4c8b0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 32px 0;
}

.fact-item {
  padding: 28px 32px;
  border-right: 1px solid #d4c8b0;
}

.fact-item:last-child { border-right: none; }

.fact-key {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #8a7a62;
  margin-bottom: 10px;
}

.fact-value {
  font-size: 24px;
  color: #1a1008;
  margin-bottom: 6px;
}

.fact-note {
  font-size: 12px;
  color: #6b5c45;
  line-height: 1.7;
}

.editors-note {
  background: #ede6d6;
  border: 1px solid #d4c8b0;
  padding: 40px 48px;
  margin-top: 72px;
}

.editors-note-label {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: #8a7a62;
  margin-bottom: 20px;
}

.editors-note p {
  font-size: 14px;
  color: #4a3c28;
  line-height: 2.1;
  font-style: italic;
}

.closing {
  padding: 80px 48px;
  border-top: 1px solid #d4c8b0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.closing-word {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #1a1008;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.closing-desc {
  font-size: 13px;
  color: #6b5c45;
  line-height: 2.2;
  border-left: 1px solid #d4c8b0;
  padding-left: 48px;
}

/* ============================================
   bronze.html 전용
   ============================================ */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid #d4c8b0;
  margin-top: 32px;
}

.principle-item {
  padding: 32px;
  border-right: 1px solid #d4c8b0;
  border-bottom: 1px solid #d4c8b0;
}

.principle-item:nth-child(2) { border-right: none; }
.principle-item:nth-child(3) { border-bottom: none; }
.principle-item:nth-child(4) { border-right: none; border-bottom: none; }

.principle-key {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #8a7a62;
  margin-bottom: 12px;
  font-weight: 700;
}

.principle-value {
  font-size: 18px;
  color: #1a1008;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  font-weight: 700;
}

.principle-note {
  font-size: 13px;
  color: #4a3c28;
  line-height: 1.8;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid #d4c8b0;
  margin-top: 32px;
}

.product-item {
  padding: 36px 32px;
  border-right: 1px solid #d4c8b0;
}

.product-item:last-child { border-right: none; }

.product-tag {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #8a7a62;
  margin-bottom: 12px;
  font-weight: 700;
}

.product-name {
  font-size: 20px;
  color: #1a1008;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.product-desc {
  font-size: 13px;
  color: #4a3c28;
  line-height: 1.9;
  font-weight: 700;
}

/* ============================================
   모바일 반응형 — 768px 이하
   ============================================ */
@media (max-width: 768px) {

  /* 헤더 */
  header {
    padding: 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  nav { display: flex; flex-wrap: wrap; gap: 8px 0; }
  nav a { margin-left: 0; margin-right: 20px; font-size: 11px; }

  /* 뒤로가기 */
  .back { padding: 16px 20px; }

  /* 히어로 (detail) */
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 20px 40px;
    gap: 32px;
  }

  /* index 히어로 */
  .hero-index { padding: 48px 20px 40px; }

  /* materials 히어로 */
  .hero-materials { padding: 48px 20px 40px; }

  /* 섹션 */
  .section {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 20px;
  }

  .section-title { padding: 32px 20px 16px; }

  /* index — materials row */
  .materials-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .material-item { padding: 20px; }
  .material-item:nth-child(2) { border-right: none; }
  .material-item:nth-child(3) { border-top: 1px solid #d4c8b0; }

  /* index — 카드 그리드 */
  .grid { grid-template-columns: 1fr; }
  .card { padding: 28px 20px; border-right: none; }

  /* spec 그리드 (3칸 → 1칸) */
  .spec-grid { grid-template-columns: 1fr; }
  .spec-item { border-right: none; border-bottom: 1px solid #d4c8b0; }
  .spec-item:last-child { border-bottom: none; }

  /* 프로세스 */
  .process-item { padding: 20px; gap: 16px; }

  /* 비교 테이블 */
  .compare-row { grid-template-columns: 1fr; }
  .compare-cell { border-right: none; border-bottom: 1px solid #d4c8b0; }
  .compare-cell:last-child { border-bottom: none; }
  .compare-row:last-child .compare-cell:last-child { border-bottom: none; }

  /* 이미지 로우 */
  .image-row { grid-template-columns: 1fr; }

  /* about — 커버 */
  .cover {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cover-text {
    padding: 48px 20px;
    border-right: none;
    border-bottom: 1px solid #d4c8b0;
  }

  .cover-image { min-height: 240px; }

  /* about — 아티클 */
  .article-wrap { padding: 48px 20px; }
  .article-intro { font-size: 13px; margin-bottom: 48px; padding-bottom: 40px; }
  .answer { font-size: 13px; }

  /* about — fact box */
  .fact-box { grid-template-columns: 1fr; }
  .fact-item { border-right: none; border-bottom: 1px solid #d4c8b0; }
  .fact-item:last-child { border-bottom: none; }

  /* about — editors note */
  .editors-note { padding: 28px 20px; }

  /* about — closing */
  .closing {
    grid-template-columns: 1fr;
    padding: 48px 20px;
    gap: 32px;
  }

  .closing-desc {
    border-left: none;
    border-top: 1px solid #d4c8b0;
    padding-left: 0;
    padding-top: 28px;
  }

  /* bronze/surface — principle grid */
  .principle-grid { grid-template-columns: 1fr; }
  .principle-item {
    border-right: none;
    border-bottom: 1px solid #d4c8b0;
  }
  .principle-item:nth-child(2) { border-right: none; }
  .principle-item:nth-child(3) { border-bottom: 1px solid #d4c8b0; }
  .principle-item:nth-child(4) { border-bottom: none; }

  /* bronze — product grid */
  .product-grid { grid-template-columns: 1fr; }
  .product-item { border-right: none; border-bottom: 1px solid #d4c8b0; }
  .product-item:last-child { border-bottom: none; }

  /* materials — 블록 */
  .material-header {
    grid-template-columns: 1fr;
    padding: 32px 20px 0;
    gap: 12px;
  }

  .material-body {
    grid-template-columns: 1fr;
    padding: 24px 20px 32px;
    gap: 12px;
  }

  .data-row {
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
  }

  .data-cell {
    padding: 16px;
    border-bottom: 1px solid #d4c8b0;
  }

  .data-cell:nth-child(2) { border-right: none; }
  .data-cell:nth-child(3) { border-bottom: none; }
  .data-cell:nth-child(4) { border-right: none; border-bottom: none; }

  .material-title-row { flex-direction: column; gap: 4px; }

  /* 푸터 */
  footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 8px;
  }
}
