:root{--bg:#f4f1eb;--surface:#fff;--ink:#1f2326;--muted:#686d70;--line:#d9d4cc;--accent:#2f3438;--max:1120px}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;line-height:1.65}
a{color:inherit}.wrap{width:min(calc(100% - 32px),var(--max));margin:0 auto}
.site-header{position:sticky;top:0;z-index:30;border-bottom:1px solid rgba(217,212,204,.9);background:rgba(244,241,235,.94);backdrop-filter:blur(12px)}
.header-inner{min-height:68px;display:flex;align-items:center;gap:24px}.brand{font-weight:800;text-decoration:none;white-space:nowrap}
.main-nav{display:flex;gap:22px;margin-left:auto}.main-nav a{color:var(--muted);font-size:14px;text-decoration:none}
.header-call{padding:9px 14px;border:1px solid var(--ink);border-radius:999px;text-decoration:none;font-size:14px;font-weight:700}
.hero{padding:110px 0 96px;background:radial-gradient(circle at 80% 20%,rgba(88,94,98,.13),transparent 34%),linear-gradient(180deg,#ece8e0 0%,#f4f1eb 100%)}
.hero-inner{max-width:820px}.eyebrow,.section-kicker{margin:0 0 12px;color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.18em}
h1{margin:0;font-size:clamp(46px,8vw,86px);line-height:1.05;letter-spacing:-.045em}
h2{margin:0 0 18px;font-size:clamp(30px,5vw,48px);line-height:1.2;letter-spacing:-.03em}h3{margin-top:0;font-size:22px}
.lead{margin:28px 0 8px;font-size:21px;font-weight:700}.hero-copy{max-width:680px;margin:0;color:var(--muted);font-size:17px}
.actions,.contact-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.button{display:inline-flex;min-height:48px;align-items:center;justify-content:center;padding:0 20px;border-radius:10px;text-decoration:none;font-weight:800}
.button.primary{background:var(--accent);color:#fff}.button.secondary{border:1px solid var(--line);background:var(--surface)}
.section{padding:84px 0}.section.alt{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#ebe7df}
.split{display:grid;grid-template-columns:.9fr 1.1fr;gap:64px}.section-copy{color:var(--muted);font-size:18px}
.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:32px}
.card{min-height:210px;padding:26px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.card p{color:var(--muted);margin-bottom:0}
.shop-panel,.contact-grid{display:grid;grid-template-columns:1fr auto;gap:36px;align-items:center}.contact-note{color:var(--muted);font-size:14px}
.site-footer{padding:34px 0;background:#202428;color:#fff}.site-footer p{margin-bottom:0;color:#c8cccf}
@media(max-width:820px){.main-nav{display:none}.header-inner{min-height:60px}.header-call{margin-left:auto;padding:8px 12px}.hero{padding:80px 0 72px}.split,.shop-panel,.contact-grid{grid-template-columns:1fr;gap:24px}.service-grid{grid-template-columns:repeat(2,1fr)}.section{padding:64px 0}}
@media(max-width:560px){.wrap{width:min(calc(100% - 24px),var(--max))}.brand{font-size:15px}h1{font-size:48px}.lead{font-size:18px}.service-grid{grid-template-columns:1fr}.card{min-height:auto}.button{width:100%}.header-call{width:auto;min-height:0}}

@media(max-width:560px){
}

.hero-media,.workshop-media{margin:38px 0 0;overflow:hidden;border-radius:18px;background:#ded9d1}
.hero-media img,.workshop-media img{display:block;width:100%;height:auto;object-fit:cover}
.hero-media{box-shadow:0 22px 60px rgba(31,35,38,.14)}
.workshop-media{max-width:820px}
.service-card{padding:0;overflow:hidden}
.card-body{padding:24px 26px 26px}
.card-body h3{margin-bottom:10px}
@media(max-width:560px){.hero-media{margin-top:28px;border-radius:14px}.workshop-media{margin-top:26px}.card-body{padding:20px}}

.directions-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.directions-head h3{margin:0 0 8px;font-size:28px}
.directions-head p{margin:0;color:var(--muted)}
.map-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center}
.map-fallback p{margin:0;color:var(--muted)}
.map-fallback a{font-weight:800;color:var(--ink)}
.map-status{margin:10px 0 0;color:var(--muted);font-size:13px}
.kakao-info{padding:8px 12px;white-space:nowrap;font-size:13px;font-weight:800}
@media(max-width:820px){
  .directions-head{align-items:flex-start;flex-direction:column}
  .kakao-map-link{width:auto}
  .kakao-map{height:320px}
}
@media(max-width:560px){
  .service-card img{aspect-ratio:16/9;object-position:center 38%}
  .directions-panel{margin-top:32px;padding-top:26px}
  .directions-head h3{font-size:24px}
  .kakao-map{height:280px;border-radius:14px}
  .kakao-map-link{width:100%;text-align:center}
}

/* P2-7B: compact service-card images */
#services .service-card > img{
  display:block;
  width:100%;
  height:220px;
  max-height:220px;
  object-fit:cover;
  object-position:center 38%;
  aspect-ratio:auto;
  background:#ddd8d0;
}

/* P2-7B: map aligned to homepage content width */
.directions-panel{
  width:min(1080px, calc(100% - 48px));
  margin:42px auto 0;
  padding:32px 0 0;
  border-top:1px solid var(--line);
}
.kakao-map{
  width:100%;
  height:420px;
  border-radius:18px;
  overflow:hidden;
  background:#ded9d1;
}
@media(max-width:820px){
  #services .service-card > img{height:190px;max-height:190px;}
  .directions-panel{width:min(100% - 32px, 1080px);}
  .kakao-map{height:340px}
}
@media(max-width:560px){
  #services .service-card > img{height:170px;max-height:170px;}
  .directions-panel{width:calc(100% - 24px);margin-top:32px;padding-top:26px;}
  .kakao-map{height:300px;border-radius:14px}
}

/* HOME-STORY-CARD-SIZE-V1
   최근 칼이야기와 공방소식 전용 카드 크기
   다른 서비스 카드에는 적용하지 않음
*/
#stories .service-grid {
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 420px));
    justify-content: start;
    align-items: start;
}

#stories .card {
    width: 100%;
    max-width: 420px;
}

#stories .card > a {
    display: block;
    width: 100%;
    overflow: hidden;
}

#stories .card > a > img {
    display: block;
    width: 100%;
    height: 236px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    #stories .service-grid {
        grid-template-columns: 1fr;
    }

    #stories .card {
        max-width: 100%;
    }

    #stories .card > a > img {
        height: 220px;
    }
}

/* HOME-ABOUT-STOREFRONT-V2 */
#about .about-storefront {
    width: 100%;
    max-width: 560px;
    margin: 28px 0 0;
    overflow: hidden;
    border-radius: 16px;
    background: #ddd8cf;
}

#about .about-storefront img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    #about .about-storefront {
        max-width: 100%;
        margin-top: 22px;
        border-radius: 14px;
    }
}
