/* San Miniato al Monte - static site */
:root{
  --ivory:#f8f4ec; --cream:#efe8da; --paper:#fffdf8;
  --green:#1f4a3e; --green-2:#2e6150; --olive:#5b6a35; --gold:#a5874f;
  --ink:#2a2925; --muted:#6a665d; --line:#d9cfbb;
  --header-h:76px;
  --serif-en:"Cormorant Garamond", "Times New Roman", serif;
  --serif-ko:"Noto Serif KR", serif;
  --sans:"Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{font-variant-numeric:lining-nums;margin:0;background:var(--ivory);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.8;word-break:keep-all;overflow-wrap:break-word}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
.wrap{width:min(1160px,100% - 48px);margin:0 auto}
.narrow{width:min(860px,100% - 48px);margin:0 auto}
section[id]{scroll-margin-top:var(--header-h)}

/* header */
.site-header{position:fixed;inset:0 0 auto 0;height:var(--header-h);z-index:50;background:rgba(248,244,236,.97);border-bottom:1px solid var(--line)}
.site-header .wrap{height:100%;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--green);flex-shrink:0}
.brand img{width:44px;height:44px}
.brand span{font-family:var(--serif-en);font-size:24px;font-weight:600;letter-spacing:.01em;white-space:nowrap}
.nav{display:flex;align-items:center;gap:26px}
.nav a{text-decoration:none;font-size:14.5px;letter-spacing:.02em;color:var(--ink);white-space:nowrap;padding:6px 0;border-bottom:1px solid transparent;transition:border-color .2s,color .2s}
.nav a:hover,.nav a.active{color:var(--green);border-bottom-color:var(--gold)}
.btn-catalog{display:inline-flex;align-items:center;gap:8px;padding:9px 18px !important;border:1px solid var(--green) !important;color:var(--green) !important;font-weight:600;transition:background .2s,color .2s}
.btn-catalog:hover{background:var(--green);color:var(--paper) !important}
.btn-catalog svg{width:14px;height:14px}
.menu-toggle{display:none;background:none;border:1px solid var(--line);width:44px;height:44px;padding:0;cursor:pointer;color:var(--green)}
.menu-toggle span{display:block;width:20px;height:1.5px;background:currentColor;margin:5px auto;transition:transform .2s,opacity .2s}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

/* hero */
.hero{padding:calc(var(--header-h) + 64px) 0 88px;text-align:center}
.hero-emblem{width:96px;height:96px;margin:0 auto 22px}
.since{font-variant-numeric:lining-nums;font-family:var(--serif-en);font-size:17px;letter-spacing:.32em;text-transform:uppercase;color:var(--gold);margin:0}
.hero h1{font-family:var(--serif-en);font-weight:500;font-size:clamp(42px,6.4vw,82px);line-height:1.05;color:var(--green);margin:10px 0 22px;letter-spacing:.005em}
.hero-sub{display:flex;justify-content:center;align-items:center;gap:22px;margin:0 0 42px}
.hero-sub .ko{font-family:var(--serif-ko);font-size:18px;font-weight:500;color:var(--green);letter-spacing:.06em}
.hero-sub .en{font-family:var(--serif-en);font-style:italic;font-size:21px;color:var(--muted)}
.hero-sub .bar{width:1px;height:26px;background:var(--gold)}
.motto{display:inline-block;padding:20px 54px;border-top:1px solid var(--olive);border-bottom:1px solid var(--olive);margin:0 0 40px}
.motto .ko{display:block;font-family:var(--serif-ko);font-size:24px;letter-spacing:.08em;color:var(--ink)}
.motto .en{display:block;font-family:var(--serif-en);font-size:23px;font-style:italic;color:var(--green);margin-top:4px}
.hero-photos{display:grid;grid-template-columns:1.85fr 1fr;gap:18px;text-align:left}
.hero-photos img{width:100%;height:560px;object-fit:cover}
.hero-photos .p2 img{object-position:50% 50%}

/* section common */
.section{padding:112px 0}
.section.cream{background:var(--cream)}
.section.paper{background:var(--paper)}
.sec-head{text-align:center;margin-bottom:56px}
.eyebrow{font-family:var(--serif-en);font-size:16px;letter-spacing:.28em;text-transform:uppercase;color:var(--gold);margin:0 0 10px}
.sec-head h2{font-family:var(--serif-en);font-weight:500;font-size:clamp(36px,4.6vw,56px);line-height:1.15;color:var(--green);margin:0}
.sec-head h2 .ko{font-family:var(--serif-ko);font-weight:500;font-size:.78em}
.rule{width:56px;height:1px;background:var(--gold);margin:22px auto 0}
.lead{font-family:var(--serif-ko);font-size:19px;line-height:1.95;color:var(--ink)}
.body p{margin:0 0 1.2em}
.body p:last-child{margin-bottom:0}
.dbr{display:inline}

/* history */
.panorama img{width:100%;aspect-ratio:934/258;object-fit:cover}
.history-text{max-width:860px;margin:60px auto 64px;text-align:center}
.history-text .lead{margin:0}
.history-text p.second{margin:28px auto 0;padding-top:28px;border-top:1px solid var(--line);max-width:720px;font-size:16.5px;color:var(--muted)}
.photo-row{display:flex;gap:16px}
.photo-row figure{margin:0;flex:var(--r) 1 0;min-width:0}
.photo-row img{width:100%;height:auto;aspect-ratio:var(--ar);object-fit:cover}

/* farmacia */
.farmacia-intro{display:grid;grid-template-columns:1.05fr 1fr;gap:64px;align-items:center;margin-bottom:72px}
.farmacia-intro .body{font-size:16.5px}
.farmacia-intro .body p:first-child{font-family:var(--serif-ko);font-size:19px;line-height:1.9;color:var(--green)}
.farmacia-intro .body p:last-child{font-family:var(--serif-ko);font-size:18px;color:var(--green);border-top:1px solid var(--line);padding-top:1.1em}
.mosaic{display:grid;grid-template-columns:1.5fr .9fr 1.4fr;grid-template-rows:280px 300px;gap:16px}
.mosaic figure{margin:0;overflow:hidden;background:var(--paper)}
.mosaic img{width:100%;height:100%;object-fit:cover}
.mosaic .m-court{grid-column:1;grid-row:1 / 3}
.mosaic .m-sign{grid-column:2;grid-row:1}
.mosaic .m-entr{grid-column:2;grid-row:2}
.mosaic .m-herb{grid-column:3;grid-row:1}
.mosaic .m-shop{grid-column:3;grid-row:2}
.intro-photos{position:relative;padding:0 0 60px 0}
.intro-photos figure{margin:0}
.intro-photos .lab img{width:100%;aspect-ratio:520/334;object-fit:cover}
.intro-photos .cert{position:absolute;right:-18px;bottom:0;width:150px;background:#fff;padding:8px;border:1px solid var(--line);box-shadow:0 6px 18px rgba(40,35,25,.10)}
.intro-photos .cert img{width:100%}

/* shop */
.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.shop-grid img{width:100%;height:100%;object-fit:cover}
.shop-grid .s-main{grid-row:1 / 3}
.shop-grid figure{margin:0}
.shop-grid .s-main img{aspect-ratio:1/1}
.shop-grid .s-side img{aspect-ratio:849/478}
.shop-info{display:grid;grid-template-columns:1.5fr 1fr;gap:56px;margin-top:64px;align-items:start}
.shop-info .body p{font-size:16.5px}
.shop-info .body strong{font-weight:600;color:var(--green)}
.contact-card{background:var(--paper);border:1px solid var(--line);border-top:3px solid var(--green);padding:30px 32px}
.contact-card dl{margin:0}
.contact-card dt{font-size:13px;letter-spacing:.12em;color:var(--gold);margin:0 0 4px}
.contact-card dd{margin:0 0 22px;font-family:var(--serif-ko);font-size:18px;color:var(--green)}
.contact-card dd:last-child{margin-bottom:0}
.contact-card a{text-decoration:none;border-bottom:1px solid var(--gold)}

/* ingredient */
.herb-def{background:var(--paper);border:1px solid var(--line);padding:40px 48px;margin-bottom:56px}
.herb-def h3{font-family:var(--serif-ko);font-weight:600;font-size:22px;color:var(--green);margin:0 0 10px}
.herb-def p{margin:0 0 1em}
.herb-def p:last-child{margin:0}
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:860px;margin:0 auto}
.tiles img{width:100%;aspect-ratio:195/135;object-fit:cover;border-radius:10px}
.lineup{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;max-width:960px;margin:40px auto 0}
.lineup figure{margin:0;background:#fff;display:flex;align-items:center;justify-content:center;aspect-ratio:3/4;padding:8px}
.lineup img{max-height:100%;width:auto;object-fit:contain}

/* products */
.product{display:grid;grid-template-columns:300px 1fr;gap:28px 48px;padding:56px 0;border-top:1px solid var(--line)}
.product:first-of-type{border-top:0;padding-top:0}
.product .ph{background:#fff;display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;padding:12px}
.product .ph img{max-height:100%;width:auto}
.product h3{font-family:var(--serif-ko);font-weight:600;font-size:27px;color:var(--green);margin:0 0 8px;line-height:1.35}
.product .it{font-size:13.5px;letter-spacing:.06em;color:var(--muted);margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.product .it span{color:var(--green-2);letter-spacing:0}
.product ul{list-style:none;margin:0 0 14px;padding:0}
.product li{padding:3px 0 3px 18px;position:relative}
.product li::before{content:"";position:absolute;left:0;top:.85em;width:6px;height:1px;background:var(--gold)}
.product .ing{font-size:14.5px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;margin:0}
.note{grid-column:2;background:var(--cream);border-left:2px solid var(--olive);padding:26px 32px;font-size:16px;line-height:1.9}
.note p{margin:0 0 .9em}
.note p:last-child{margin:0}
.note-split{display:grid;grid-template-columns:1fr 300px;gap:32px;align-items:center}
.note-split img{width:100%}
.soap-photos{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr 2.2fr;gap:16px;margin-top:8px}
.soap-photos img{width:100%;height:100%;object-fit:cover}
.soap-photos figure{margin:0;height:400px;overflow:hidden}
.gallery{display:grid;grid-template-columns:1.25fr 1fr;gap:16px;margin-top:88px}
.gallery figure{margin:0;overflow:hidden}
.gallery img{width:100%;height:100%;object-fit:cover}
.gallery .g-stack{display:grid;grid-template-rows:auto auto;gap:16px}

/* closing / footer */
.closing{padding:112px 0 0;text-align:center;background:var(--ivory);border-top:1px solid var(--line)}
.closing .photo img{width:100%;max-width:900px;margin:0 auto;aspect-ratio:704/453;object-fit:cover}
.lockup{display:flex;align-items:center;justify-content:center;gap:22px;margin:48px 0 26px;flex-wrap:wrap}
.lockup img{width:72px;height:72px}
.lockup .name{font-family:var(--serif-en);font-size:42px;color:var(--green);line-height:1.1;text-align:left}
.lockup .name small{display:block;font-size:15px;letter-spacing:.3em;color:var(--gold);text-transform:uppercase}
.lockup .bar{width:1px;height:48px;background:var(--gold)}
.lockup .sub{text-align:left}
.lockup .sub .ko{display:block;font-family:var(--serif-ko);font-weight:500;color:var(--green);letter-spacing:.06em}
.lockup .sub .en{display:block;font-family:var(--serif-en);font-style:italic;font-size:19px;color:var(--muted)}
.closing .motto{margin-bottom:40px}
.closing .btn-catalog{margin-bottom:72px;text-decoration:none}
.site-footer{background:var(--green);color:#e9e3d4;font-size:14px;padding:28px 0;text-align:center;line-height:1.7}
.site-footer p{margin:0}

/* tablet */
@media (max-width:1100px){
  .nav{gap:18px}.nav a{font-size:13.5px}
  .brand span{font-size:21px}
}
@media (max-width:960px){
  :root{--header-h:64px}
  .brand img{width:38px;height:38px}
  .menu-toggle{display:block}
  .nav{position:fixed;top:var(--header-h);left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:var(--ivory);border-bottom:1px solid var(--line);padding:8px 24px 24px;display:none}
  .nav.open{display:flex}
  .nav a{padding:14px 0;border-bottom:1px solid var(--line);font-size:16px}
  .nav a:hover,.nav a.active{border-bottom-color:var(--line)}
  .nav .btn-catalog{justify-content:center;margin-top:18px}
  .history-text,.farmacia-intro,.shop-info{grid-template-columns:1fr;gap:32px}
  .product{grid-template-columns:220px 1fr;gap:28px}
  .note-split{grid-template-columns:1fr}
  .note{grid-column:1 / -1}
  .lineup{grid-template-columns:repeat(3,1fr)}
}
/* mobile */
@media (max-width:640px){
  body{font-size:15.5px}
  .wrap,.narrow{width:calc(100% - 32px)}
  .brand span{font-size:19px}
  .hero{padding:calc(var(--header-h) + 40px) 0 56px}
  .hero-emblem{width:80px;height:80px}
  .since{font-size:14px}
  .hero h1{font-size:38px}
  .hero-sub{flex-direction:column;gap:4px;margin-bottom:30px}
  .hero-sub .bar{display:none}
  .motto{padding:16px 8px;margin-bottom:36px;display:block}
  .motto .ko{font-size:19px}.motto .en{font-size:19px}
  .hero-photos{grid-template-columns:1fr;gap:10px}
  .hero-photos img{height:auto;aspect-ratio:4/3}
  .hero-photos .p2 img{aspect-ratio:4/5}
  .section{padding:72px 0}
  .sec-head{margin-bottom:36px}
  .eyebrow{font-size:13px;letter-spacing:.22em}
  .lead{font-size:17px}
  .dbr{display:none}
  .history-text{margin:36px 0 40px}
  .photo-row{display:grid;grid-template-columns:1.6fr 1fr;gap:10px}
  .photo-row figure:first-child{grid-column:1 / 3}
  .photo-row figure:not(:first-child) img{aspect-ratio:auto;height:190px}
  .mosaic{grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:10px}
  .mosaic figure{aspect-ratio:3/4}
  .mosaic .m-court{grid-column:1 / 3;grid-row:auto;aspect-ratio:4/3}
  .mosaic .m-sign,.mosaic .m-entr{grid-column:auto;grid-row:auto}
  .mosaic .m-herb,.mosaic .m-shop{grid-column:1 / 3;grid-row:auto;aspect-ratio:3/2}
  .intro-photos{padding-bottom:48px}
  .intro-photos .cert{right:0;width:118px}
  .shop-grid{grid-template-columns:1fr;gap:10px}
  .shop-grid .s-main{grid-row:auto}
  .contact-card{padding:24px}
  .herb-def{padding:26px 22px}
  .herb-def h3{font-size:19px}
  .tiles{grid-template-columns:repeat(2,1fr);gap:8px}
  .lineup{grid-template-columns:repeat(3,1fr);gap:8px}
  .product{grid-template-columns:1fr;gap:22px;padding:44px 0}
  .product .ph{max-width:280px;margin:0 auto;width:100%}
  .product h3{font-size:23px}
  .note{padding:22px 20px;font-size:15.5px}
  .soap-photos{grid-template-columns:1fr 1fr;gap:10px}
  .soap-photos figure{height:auto;aspect-ratio:389/544}
  .soap-photos figure:last-child{grid-column:1 / 3;aspect-ratio:904/579}
  .history-text{text-align:left}
  .gallery{grid-template-columns:1fr;gap:10px;margin-top:56px}
  .gallery .g-stack{gap:10px}
  .closing{padding-top:72px}
  .lockup{flex-direction:column;gap:12px}
  .lockup .name,.lockup .sub{text-align:center}
  .lockup .name{font-size:32px}
  .lockup .bar{width:40px;height:1px}
  .site-footer{font-size:13px;padding:24px 0}
}
.nw{white-space:nowrap}

/* hero shortcut buttons (pptx slide 1) */
.hero-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:0 auto 52px;max-width:1160px}
.hero-buttons a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:10px 22px;border:2px solid var(--olive);background:var(--paper);color:var(--ink);text-decoration:none;font-size:16px;letter-spacing:.01em;white-space:nowrap;transition:background .2s,color .2s,border-color .2s}
.hero-buttons a:hover{background:var(--green);border-color:var(--green);color:var(--paper)}
.hero-buttons .hb-catalog{border-color:var(--green);color:var(--green);font-weight:600}
.hero-buttons svg{width:14px;height:14px}
@media (max-width:640px){
  .hero-emblem{width:80px;height:80px}
  .motto{margin-bottom:28px}
  .hero-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:36px}
  .hero-buttons a{font-size:14.5px;padding:10px 6px;min-height:48px;white-space:normal;text-align:center}
}

/* v3 (11/20 21:23 고객 요청): PPT처럼 '올바르게 만듭니다' 상자 바로 아래, 메인 사진 위에 버튼을 크게 */
.motto{display:block;max-width:1160px;margin:0 auto 22px;padding:16px 24px;border:2.5px solid var(--olive)}
.hero-buttons{display:grid;grid-template-columns:.8fr 1.5fr 1.35fr 1.1fr 1.15fr .95fr;gap:14px;max-width:1160px;margin:0 auto 24px}
.hero-buttons a{min-height:64px;padding:10px 12px;border:2.5px solid var(--olive);font-size:19px;font-weight:500}
.hero-buttons .hb-catalog{border-color:var(--olive)}
.hero-buttons svg{width:16px;height:16px}
@media (max-width:1100px){.hero-buttons{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){
  .motto{padding:12px 14px}
  .hero-buttons{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:20px}
  .hero-buttons a{font-size:15px;min-height:52px;white-space:normal}
}

/* 11/23 고객 요청: 첫 화면에서 스크롤 없이 상단 한 줄 + 문구 박스 + 버튼 + 사진까지 */
.hero{padding:calc(var(--header-h) + 28px) 0 64px}
.hero-head{display:flex;align-items:center;justify-content:center;gap:26px;margin:0 auto 22px;max-width:1160px}
.hero-head .hero-emblem{width:92px;height:92px;margin:0;flex:none}
.hero-title{text-align:left;position:relative}
.hero-title .since{position:absolute;right:0;top:-6px;font-size:15px;letter-spacing:.12em;text-transform:none;font-weight:600}
.hero-title h1{margin:12px 0 0;font-size:clamp(40px,4.6vw,64px);line-height:1}
.hero-bar{width:2px;height:56px;background:var(--gold);flex:none}
.hero-head .hero-sub{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0;text-align:left}
.hero-head .hero-sub .ko{font-size:19px}
.hero-head .hero-sub .en{font-size:18px}
.hero .motto{margin-top:0;margin-bottom:18px}
.hero-buttons{margin-bottom:20px}
.hero-photos img{height:clamp(320px,46vh,520px)}
@media (max-width:960px){
  .hero-head{gap:16px}
  .hero-head .hero-emblem{width:72px;height:72px}
  .hero-bar{height:44px}
  .hero-head .hero-sub .ko{font-size:16px}.hero-head .hero-sub .en{font-size:15px}
}
@media (max-width:760px){
  .hero{padding:calc(var(--header-h) + 22px) 0 48px}
  .hero-head{flex-wrap:wrap;gap:10px 14px}
  .hero-head .hero-emblem{width:60px;height:60px}
  .hero-title h1{font-size:30px}
  .hero-title .since{font-size:12px;top:-10px}
  .hero-bar{display:none}
  .hero-head .hero-sub{flex-basis:100%;align-items:center;text-align:center}
  .hero-head .hero-sub .ko{font-size:15px}.hero-head .hero-sub .en{font-size:14px}
  .hero-photos img{height:auto}
}
/* 11/23 15:37 고객: 모니터 첫 화면에 두 사진까지 — 브랜드 글자·여백 축소, 사진 높이를 화면 높이에 맞춤 */
@media (min-width:761px){
  .hero{padding:calc(var(--header-h) + 16px) 0 56px}
  .hero-head{gap:20px;margin-bottom:14px}
  .hero-head .hero-emblem{width:64px;height:64px}
  .hero-title h1{font-size:clamp(34px,3.2vw,46px);margin-top:10px}
  .hero-title .since{font-size:13px;top:-8px}
  .hero-bar{height:42px}
  .hero-head .hero-sub .ko{font-size:16px}.hero-head .hero-sub .en{font-size:15px}
  .hero .motto{padding-top:12px;padding-bottom:12px;margin-bottom:12px}
  .hero .motto .ko{font-size:22px}
  .hero-buttons{margin-bottom:14px}
  .hero-buttons a{min-height:50px;font-size:17px}
  .hero-photos img{height:clamp(240px,calc(100vh - var(--header-h) - 300px),560px)}
}
/* 11/23 고객: 대표제품 바탕이 하얘서 휑함 — 연한 세이지 바탕 + 상품별 카드 */
#products.section{background:#e7ebe1}
#products .product{background:var(--paper);border:1px solid rgba(31,74,62,.14);border-top:3px solid var(--green);padding:40px 44px;margin-top:28px}
#products .product:first-of-type{padding-top:40px;border-top:3px solid var(--green)}
#products .product .ph{background:#fff;border:1px solid rgba(31,74,62,.10)}
@media (max-width:760px){#products .product{padding:26px 20px}}
