/*
Theme Name: Kalven Clothing
Description: Editorial collection showcase for Kalven Clothing.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: kalven-clothing
*/

:root{--ink:#191a17;--paper:#f5f3ed;--muted:#66665d;--accent:#d5ef81;--line:#d9d7cc;--limit:1360px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--paper);font-family:"DM Sans",Arial,sans-serif;line-height:1.45}
a{color:inherit}
img{max-width:100%;display:block}
[id]{scroll-margin-top:1.5rem}
:focus-visible{outline:3px solid #667b27;outline-offset:4px}
.wrap{width:min(var(--limit),calc(100% - 7vw));margin-inline:auto}
.skip{position:absolute;left:1rem;top:-6rem;padding:.8rem 1rem;background:var(--accent);z-index:3}
.skip:focus{top:1rem}
.site-header{border-bottom:1px solid var(--line)}
.header-inner,.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;min-height:76px}
.wordmark{display:inline-flex;align-items:center;gap:.7rem;text-decoration:none;font-size:1.5rem;letter-spacing:-.09em;font-weight:900;white-space:nowrap}
.wordmark span{font-size:.58rem;letter-spacing:.12em;font-weight:800}
.nav{display:flex;gap:clamp(1rem,3vw,3rem);align-items:center;flex-wrap:wrap}
.nav a,.footer-inner a{font-size:.85rem;text-decoration:none}
.nav a:hover,.footer-inner a:hover{text-decoration:underline;text-underline-offset:.3em}
.hero{position:relative;display:grid;isolation:isolate;align-items:end;min-height:clamp(470px,51vw,730px);overflow:hidden;color:#fff;background:#292a27}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 43%;z-index:-2}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(16,17,15,.91) 0%,rgba(16,17,15,.7) 30%,transparent 83%),linear-gradient(0deg,rgba(16,17,15,.46),transparent 50%)}
.hero-inner{padding-block:clamp(2.5rem,6vw,5.8rem)}
h1,h2,h3,p{margin:0}
.hero h1,.collections h2,.collection h2{font-weight:900;line-height:.92;letter-spacing:-.077em}
.hero h1{font-size:clamp(3.65rem,8vw,8.5rem);max-width:9ch}
.hero p{margin-top:1.4rem;max-width:34ch;color:#efeee9}
.button{display:inline-flex;align-items:center;justify-content:space-between;gap:1.6rem;margin-top:2rem;padding:.8rem 1rem;color:var(--ink);background:var(--accent);font-size:.88rem;font-weight:800;text-decoration:none;min-height:46px}
.button:hover{background:#e6f7b5}
.collections{padding-block:clamp(3.5rem,7vw,7rem)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.7rem}
.collections h2,.collection h2{font-size:clamp(2.7rem,5.6vw,6.1rem)}
.section-head p{color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.9rem,2vw,1.9rem)}
.card{text-decoration:none;display:block;border-bottom:1px solid var(--line)}
.card-media{overflow:hidden;background:#aeaa9d;aspect-ratio:1/1.13}
.card img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.card:hover img{transform:scale(1.035)}
.card-label{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem .05rem .95rem;font-weight:800;font-size:clamp(1rem,2vw,1.5rem)}
.card-label span{font-size:1.2rem}
.collection{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,6vw,6rem);align-items:center;padding-block:clamp(2.5rem,6vw,6rem);border-top:1px solid var(--line)}
.collection-media{width:100%;aspect-ratio:1.32;object-fit:cover}
.collection p{margin-top:1.15rem;color:var(--muted);font-size:1.06rem;max-width:43ch}
.collection ul{padding:0;margin:1.5rem 0 0;list-style:none;display:flex;gap:.5rem;flex-wrap:wrap}
.collection li{border:1px solid var(--line);padding:.37rem .65rem;font-size:.82rem}
.site-footer{background:var(--ink);color:var(--paper)}
.site-footer small{color:#d8d6cc}
.content-page{padding-block:4rem}
.content-page h1{margin-bottom:1.5rem}
@media(max-width:680px){
  .wrap{width:calc(100% - 2rem)}
  .header-inner{align-items:flex-start;flex-direction:column;gap:.65rem;padding-block:.85rem;min-height:0}
  .nav{gap:1.15rem}
  .hero{min-height:520px}
  .hero img{object-position:61% center}
  .hero::before{background:linear-gradient(0deg,rgba(16,17,15,.94),rgba(16,17,15,.55) 47%,transparent 95%)}
  .section-head{align-items:start;flex-direction:column}
  .cards{grid-template-columns:1fr}
  .card-media{aspect-ratio:1.25}
  .collection{grid-template-columns:1fr}
  .footer-inner{flex-wrap:wrap;padding-block:1rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.card img{transition:none}}

/* Kalven storefront typography */
:root {
  --kalven-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body {
  font-family: var(--kalven-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
body input, body select, body textarea, body button, body summary { font-family: inherit; }
body #main h1, body #main h2, body #main h3, body #main h4,
body .kl-footer h2, body .kl-footer h3, body .kalven-dialog h2 { font-family: var(--kalven-font); }
body #main .hero h1 {
  font-size: clamp(2.65rem, 5.65vw, 5.9rem);
  font-weight: 800;
  letter-spacing: -.048em;
  line-height: 1.02;
}
body #main .hero p { font-size: 1rem; line-height: 1.55; }
body #main .collections h2, body #main .collection h2 {
  font-size: clamp(2rem, 4.7vw, 4.75rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.04em;
}
body #main .kalven-range__heading, body #main .kalven-catalog-tools h2, body .kalven-dialog h2 {
  font-size: clamp(1.5rem, 3.1vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.18;
}
body .kl-header .kl-campaign { font-size: .8125rem; letter-spacing: .025em; }
body .kl-header .kl-search, body .kl-header .kl-browse, body .kl-header .kl-nav { font-size: .875rem; font-weight: 650; }
body .kl-header .kl-nav a, body .kl-header .kl-nav summary { line-height: 1.35; }
body #main .card-label, body #main .kalven-product__name { font-weight: 700; line-height: 1.35; }
body #main .kalven-product__name, body #main .kalven-toolbar input, body #main .kalven-toolbar select { font-size: 1rem; }
body #main .kalven-product__color, body #main .kalven-toolbar label, body #main .kalven-toolbar output,
body #main .kalven-quick-view, body .kl-footer .kl-footer-bottom { font-size: .875rem; line-height: 1.45; }
body .kalven-product__view figcaption, body .kl-footer details p { font-size: .875rem; line-height: 1.45; }
body .kl-footer h3 { font-size: .875rem; font-weight: 750; letter-spacing: .045em; }
body .kl-footer .kl-footer-brand a { letter-spacing: -.04em; }
@media(max-width:580px) {
  body #main .hero h1 { font-size: clamp(2.8rem, 13vw, 4.5rem); }
  body .kl-header .kl-nav { font-size: .8125rem; }
  body .kl-header .kl-browse { font-size: .8125rem; }
}
