/*
Theme Name: Atelier Handmade Guide
Theme URI: https://example.com/
Author: OpenAI
Description: 올수공 가죽 가방의 제작 공정과 디테일을 소개하는 프리미엄 원페이지 워드프레스 랜딩 테마입니다.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: atelier-handmade-guide
*/

:root {
  --ah-bg: #f3efe8;
  --ah-paper: #fffdf9;
  --ah-ink: #161412;
  --ah-muted: #6c655e;
  --ah-line: rgba(39, 31, 24, .14);
  --ah-orange: #d7641b;
  --ah-orange-dark: #a9430c;
  --ah-brown: #3c2d23;
  --ah-soft: #e8dfd3;
  --ah-radius: 28px;
  --ah-shadow: 0 28px 80px rgba(47, 35, 25, .14);
  --ah-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ah-ink);
  background: var(--ah-bg);
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .ah-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.ah-skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 9999;
  padding: 12px 16px;
  background: #111;
  color: #fff;
  border-radius: 10px;
}
.ah-skip-link:focus { top: 16px; }
.ah-wrap { width: min(calc(100% - 48px), var(--ah-width)); margin-inline: auto; }
.ah-section { position: relative; padding: 112px 0; overflow: hidden; }
.ah-section--paper { background: var(--ah-paper); }
.ah-section--dark { background: #171310; color: #fff; }
.ah-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ah-orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ah-kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.ah-section--dark .ah-kicker { color: #f0a773; }
.ah-title,
.ah-section-title {
  margin: 18px 0 0;
  font-family: "Noto Serif KR", Georgia, serif;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.ah-title { font-size: clamp(48px, 6.1vw, 88px); }
.ah-title span { color: var(--ah-orange); }
.ah-section-title { font-size: clamp(38px, 4.3vw, 64px); }
.ah-section-title span { color: var(--ah-orange); }
.ah-lead { max-width: 760px; margin: 24px 0 0; color: var(--ah-muted); font-size: 18px; }
.ah-section--dark .ah-lead { color: #bdb2a8; }

.ah-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.ah-header.is-scrolled {
  background: rgba(247, 243, 237, .88);
  border-color: var(--ah-line);
  backdrop-filter: blur(16px);
}
.ah-header__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.ah-brand { display: inline-flex; flex-direction: column; line-height: 1; }
.ah-brand strong { font-family: Georgia, serif; font-size: 21px; letter-spacing: .08em; }
.ah-brand span { margin-top: 7px; color: var(--ah-muted); font-size: 9px; font-weight: 900; letter-spacing: .22em; }
.ah-nav { display: flex; align-items: center; gap: 28px; }
.ah-nav > a:not(.ah-btn) { color: #554d46; font-size: 13px; font-weight: 800; }
.ah-nav > a:not(.ah-btn):hover { color: var(--ah-orange); }
.ah-menu-toggle { display: none; padding: 9px 11px; border: 1px solid var(--ah-line); border-radius: 12px; background: rgba(255,255,255,.78); cursor: pointer; }
.ah-menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: #211c18; }

.ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 56px;
  padding: 0 27px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ah-btn:hover { transform: translateY(-2px); }
.ah-btn--primary { color: #fff; background: linear-gradient(135deg, #e1742f, #bd4c0f); box-shadow: 0 18px 36px rgba(184, 76, 18, .25); }
.ah-btn--outline { border-color: var(--ah-line); background: rgba(255,255,255,.55); }
.ah-btn--small { min-height: 44px; padding: 0 20px; font-size: 13px; }
.ah-btn__arrow { font-size: 20px; }

.ah-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 146px 0 92px;
  background:
    radial-gradient(circle at 18% 10%, rgba(215,100,27,.14), transparent 34%),
    linear-gradient(145deg, #f7f1e9, #eee6dc);
}
.ah-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -190px;
  top: -175px;
  border: 1px solid rgba(215,100,27,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 64px rgba(215,100,27,.035), 0 0 0 128px rgba(215,100,27,.02);
}
.ah-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: center; }
.ah-hero__desc { max-width: 650px; margin: 28px 0 0; color: var(--ah-muted); font-size: 18px; }
.ah-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.ah-hero__points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ah-hero__points span { padding: 8px 12px; border: 1px solid var(--ah-line); border-radius: 999px; background: rgba(255,255,255,.48); color: #5e554d; font-size: 12px; font-weight: 800; }
.ah-hero__visual { position: relative; min-height: 640px; }
.ah-photo {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  background: #d8cfc4;
  box-shadow: var(--ah-shadow);
}
.ah-photo img { width: 100%; height: 100%; object-fit: cover; }
.ah-photo--main { inset: 0 4px 56px 90px; transform: rotate(2.4deg); }
.ah-photo--detail { width: 46%; height: 43%; left: 0; bottom: 0; z-index: 3; transform: rotate(-4deg); border: 8px solid rgba(255,255,255,.92); }
.ah-hero__badge {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 5;
  padding: 17px 20px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 18px;
  color: #fff;
  background: rgba(26,21,17,.82);
  backdrop-filter: blur(12px);
}
.ah-hero__badge strong { display: block; font-family: Georgia, serif; font-size: 21px; letter-spacing: .07em; }
.ah-hero__badge span { display: block; margin-top: 5px; color: #d7ccc0; font-size: 11px; }

.ah-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.ah-process__item { position: relative; min-height: 260px; padding: 30px; border: 1px solid var(--ah-line); border-radius: 24px; background: rgba(255,255,255,.58); }
.ah-process__num { color: var(--ah-orange); font-family: Georgia, serif; font-size: 15px; font-weight: 800; }
.ah-process__item h3 { margin: 24px 0 10px; font-family: "Noto Serif KR", Georgia, serif; font-size: 25px; }
.ah-process__item p { margin: 0; color: var(--ah-muted); font-size: 14px; }

.ah-story { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.ah-story__image { overflow: hidden; min-height: 650px; border-radius: var(--ah-radius); box-shadow: var(--ah-shadow); }
.ah-story__image img { width: 100%; height: 100%; object-fit: cover; }
.ah-story__copy { padding: 46px; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); background: #f6f0e8; }
.ah-story__list { display: grid; gap: 18px; margin-top: 34px; }
.ah-story__list article { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.ah-story__list b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: var(--ah-brown); }
.ah-story__list h3 { margin: 0 0 5px; font-size: 18px; }
.ah-story__list p { margin: 0; color: var(--ah-muted); font-size: 14px; }

.ah-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 105px; gap: 15px; margin-top: 54px; }
.ah-gallery figure { position: relative; overflow: hidden; margin: 0; border-radius: 22px; background: #d3c9bd; }
.ah-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.ah-gallery figure:hover img { transform: scale(1.045); }
.ah-gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,13,.26), transparent 46%); pointer-events: none; }
.ah-gallery figure:nth-child(1) { grid-column: span 7; grid-row: span 4; }
.ah-gallery figure:nth-child(2) { grid-column: span 5; grid-row: span 3; }
.ah-gallery figure:nth-child(3) { grid-column: span 5; grid-row: span 3; }
.ah-gallery figure:nth-child(4) { grid-column: span 4; grid-row: span 3; }
.ah-gallery figure:nth-child(5) { grid-column: span 4; grid-row: span 3; }
.ah-gallery figure:nth-child(6) { grid-column: span 4; grid-row: span 3; }
.ah-gallery figure:nth-child(7) { grid-column: span 5; grid-row: span 3; }
.ah-gallery figure:nth-child(8) { grid-column: span 7; grid-row: span 3; }
.ah-gallery figure:nth-child(9) { grid-column: span 6; grid-row: span 3; }
.ah-gallery figure:nth-child(10) { grid-column: span 6; grid-row: span 3; }

.ah-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 50px; }
.ah-detail-card { padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.045); }
.ah-detail-card span { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(240,167,115,.32); border-radius: 50%; color: #f0a773; font-family: Georgia, serif; }
.ah-detail-card h3 { margin: 20px 0 8px; font-family: "Noto Serif KR", Georgia, serif; font-size: 24px; }
.ah-detail-card p { margin: 0; color: #bdb2a8; font-size: 14px; }

.ah-cta {
  position: relative;
  overflow: hidden;
  padding: 76px;
  border-radius: 34px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(215,100,27,.95), rgba(123,53,17,.94)),
    #b54c16;
  box-shadow: 0 30px 80px rgba(118, 48, 15, .27);
}
.ah-cta::after { content: ""; position: absolute; width: 460px; height: 460px; right: -180px; top: -220px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255,255,255,.045), 0 0 0 116px rgba(255,255,255,.025); }
.ah-cta__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ah-cta h2 { margin: 0; max-width: 760px; font-family: "Noto Serif KR", Georgia, serif; font-size: clamp(38px, 4.5vw, 62px); line-height: 1.12; letter-spacing: -.05em; }
.ah-cta p { margin: 18px 0 0; max-width: 720px; color: rgba(255,255,255,.78); }
.ah-cta .ah-btn { color: #23150d; background: #fff8f1; box-shadow: 0 18px 36px rgba(72,28,7,.22); white-space: nowrap; }

.ah-footer { padding: 54px 0; border-top: 1px solid var(--ah-line); background: #171310; color: #fff; }
.ah-footer__inner { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.ah-footer__notice { max-width: 810px; color: #a99d93; font-size: 12px; }
.ah-footer__copy { color: #80756d; font-size: 12px; white-space: nowrap; }

.ah-reveal { opacity: 0; transform: translateY(22px); transition: opacity .72s ease, transform .72s ease; }
.ah-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .ah-nav { display: none; position: absolute; top: 88px; left: 24px; right: 24px; padding: 22px; flex-direction: column; align-items: stretch; border: 1px solid var(--ah-line); border-radius: 20px; background: rgba(247,243,237,.98); box-shadow: var(--ah-shadow); }
  .ah-nav.is-open { display: flex; }
  .ah-nav .ah-btn { width: 100%; }
  .ah-menu-toggle { display: block; }
  .ah-hero__grid { grid-template-columns: 1fr; }
  .ah-hero__visual { min-height: 630px; width: min(100%, 820px); margin-inline: auto; }
  .ah-process { grid-template-columns: repeat(2, 1fr); }
  .ah-story { grid-template-columns: 1fr; }
  .ah-story__image { min-height: 620px; }
  .ah-cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 782px) { body.admin-bar .ah-header { top: 46px; } }

@media (max-width: 720px) {
  .ah-wrap { width: min(calc(100% - 28px), var(--ah-width)); }
  .ah-section { padding: 82px 0; }
  .ah-header__inner { min-height: 72px; }
  .ah-nav { top: 72px; left: 14px; right: 14px; }
  .ah-hero { min-height: auto; padding: 126px 0 72px; }
  .ah-hero__grid { gap: 46px; }
  .ah-hero__desc, .ah-lead { font-size: 16px; }
  .ah-hero__actions { flex-direction: column; }
  .ah-btn { width: 100%; }
  .ah-hero__visual { min-height: 430px; }
  .ah-photo--main { inset: 0 0 46px 34px; }
  .ah-photo--detail { width: 49%; height: 42%; }
  .ah-process { grid-template-columns: 1fr; }
  .ah-story__image { min-height: 460px; }
  .ah-story__copy { padding: 30px 22px; }
  .ah-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 155px; gap: 10px; }
  .ah-gallery figure:nth-child(n) { grid-column: span 1; grid-row: span 2; border-radius: 14px; }
  .ah-gallery figure:nth-child(1), .ah-gallery figure:nth-child(10) { grid-column: span 2; grid-row: span 2; }
  .ah-detail-grid { grid-template-columns: 1fr; }
  .ah-cta { padding: 42px 28px; border-radius: 24px; }
  .ah-footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ah-reveal { opacity: 1; transform: none; }
}
