/*
Theme Name: Chippie V12
Theme URI: https://chippie.ch
Author: Chippie
Description: Editable Chippie theme with products, lifestyle photos and homepage texts managed in WordPress. V12 keeps the desktop composition on mobile and automatically places extra products in a two-column grid.
Version: 1.4.0
Text Domain: chippie
*/
:root{
  --bg:#f1eee6;
  --ink:#0d0d0d;
  --paper:#fffdf7;
  --pink:#edb9e9;
  --cyan:#8bdaf0;
  --line:rgba(13,13,13,.18);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  overflow-x:hidden;
  background:
    linear-gradient(to right, rgba(120,116,108,.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120,116,108,.22) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,.35) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(255,255,255,.35) 2px, transparent 2px),
    #ece9e1;
  background-size:68px 68px,68px 68px,68px 68px,68px 68px;
  color:var(--ink);
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:16px;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin-top:0}

.announcement{
  height:32px;
  padding:0 12px;
  background:var(--ink);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:10px;
  font-weight:500;
  line-height:1;
  letter-spacing:.08em;
  position:relative;
  z-index:20;
}
.site-header{
  min-height:88px;
  padding:12px 4vw;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:rgba(236,233,225,.94);
  backdrop-filter:blur(10px);
  z-index:10;
}
.brand{flex:0 0 auto}
.brand img{width:142px;height:62px;object-fit:contain}
.nav{display:flex;align-items:center;gap:30px;font-weight:500;font-size:13px;letter-spacing:-.01em}
.nav a{border-bottom:2px solid transparent;padding:8px 0;transition:opacity .18s ease,border-color .18s ease}
.nav a:hover{border-color:var(--ink);opacity:.62}
.menu-toggle{display:none}

.hero{
  min-height:calc(100vh - 122px);
  background:rgba(255,253,247,.36);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  border-bottom:1px solid var(--line);
}
.hero-copy{
  min-width:0;
  padding:8vw 4vw 6vw;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.eyebrow{
  font-size:11px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:.08em;
  margin:0 0 18px;
  text-transform:uppercase;
}
h1{
  font-size:clamp(64px,8.4vw,138px);
  font-weight:700;
  letter-spacing:-.065em;
  line-height:.84;
  margin-bottom:42px;
}
.hero-text{max-width:470px;font-size:18px;line-height:1.5;margin-bottom:34px;letter-spacing:-.012em}
.button{
  display:inline-flex;
  width:max-content;
  padding:16px 22px;
  background:var(--ink);
  color:#fff;
  font-weight:500;
  font-size:12px;
  letter-spacing:.01em;
  transition:.2s ease;
}
.button:hover{transform:translate(-3px,-3px);box-shadow:5px 5px 0 var(--pink)}
.hero-art{
  min-width:0;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 26% 28%,rgba(237,185,233,.45),transparent 24%),
    radial-gradient(circle at 76% 68%,rgba(139,218,240,.42),transparent 23%),
    rgba(255,253,247,.72);
  border-left:1px solid var(--line);
  display:grid;
  place-items:center;
  min-height:650px;
}
.logo-card{
  width:min(70%,620px);
  aspect-ratio:1/1;
  display:grid;
  place-items:center;
  transform:rotate(-4deg);
  background:rgba(255,253,247,.42);
  border:1px solid rgba(13,13,13,.14);
}
.logo-card img{width:90%;filter:drop-shadow(16px 18px 0 rgba(0,0,0,.08))}

.split-banner{
  overflow:hidden;
  white-space:nowrap;
  background:var(--pink);
  border-bottom:1px solid var(--ink);
  padding:11px 0;
  font-size:15px;
  font-weight:600;
  line-height:1;
  letter-spacing:.03em;
}
.split-banner span{margin-right:48px}
.section{padding:125px 4vw;background:rgba(255,253,247,.28)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:40px;margin-bottom:48px}
.section-head h2,.about h2,.contact h2{
  font-size:clamp(42px,5.2vw,78px);
  font-weight:650;
  line-height:.95;
  letter-spacing:-.055em;
  margin:0;
}
.section-head>p{max-width:420px;line-height:1.5;margin:0}

.storyline{
  background:rgba(255,253,247,.30);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.story-row{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:18px;
  margin-bottom:18px;
  align-items:stretch;
}
.story-row.reverse{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.story-product,.product-card{
  min-width:0;
  border:1px solid var(--ink);
  background:var(--paper);
  display:flex;
  flex-direction:column;
}
.story-product-image,.product-image{
  aspect-ratio:1/1;
  background:#f3efe6;
  display:grid;
  place-items:center;
  overflow:hidden;
  padding:7%;
}
.story-product-image img,.product-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.product-image img{transition:transform .35s ease}
.product-card:hover .product-image img{transform:scale(1.035)}
.story-product-meta,.product-meta{
  min-height:105px;
  padding:18px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--ink);
  background:rgba(255,253,247,.94);
}
.story-product-meta h3,.product-meta h3{font-size:16px;font-weight:600;letter-spacing:-.02em;margin:0 0 5px}
.story-product-meta p,.product-meta p{font-size:12px;color:#555;margin:0;line-height:1.35}
.product-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto}
.product-side strong{font-size:13px;font-weight:600}
.product-side span{font-size:9px;font-weight:500;line-height:1.2;letter-spacing:.05em;text-align:right;white-space:nowrap}
.story-photo{
  min-width:0;
  margin:0;
  overflow:hidden;
  border:1px solid var(--ink);
  background:#111;
}
.story-photo img{width:100%;height:100%;object-fit:cover;display:block}
.story-photo:empty{display:none}

/* Extra products always arrange themselves in two columns. */
.product-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.product-grid--remaining{margin-top:0}

.empty-product{
  min-height:100%;
  display:grid;
  place-items:center;
  text-align:center;
  padding:16px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#777;
  background:#f5f2eb;
}

.about{
  background:rgba(13,13,13,.96);
  color:white;
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:6vw;
  align-items:center;
}
.about-logo{
  min-height:480px;
  background:var(--pink);
  display:grid;
  place-items:center;
  padding:8%;
  transform:rotate(-2deg);
}
.about-logo img{width:95%}
.about-copy{min-width:0}
.about-copy p:not(.eyebrow){font-size:19px;line-height:1.55;max-width:680px}
.about-copy .micro{font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase;letter-spacing:.06em}

.catalog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.catalog-grid figure{margin:0;border:1px solid var(--ink);background:white}
.catalog-grid img{aspect-ratio:1/1;object-fit:contain;padding:7%}
.catalog-grid figcaption{border-top:1px solid var(--ink);padding:12px;font-size:10px;font-weight:500;line-height:1.2;letter-spacing:.03em}
.contact{background:rgba(139,218,240,.84);text-align:center;border-top:1px solid var(--ink);border-bottom:1px solid var(--ink)}
.contact p{font-size:18px}
.email-link{
  display:inline-block;
  max-width:100%;
  margin-top:22px;
  font-size:clamp(28px,5vw,70px);
  font-weight:600;
  line-height:1;
  letter-spacing:-.045em;
  border-bottom:2px solid var(--ink);
  overflow-wrap:anywhere;
}
footer{
  min-height:170px;
  padding:32px 4vw;
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:40px;
  align-items:end;
  font-size:10px;
  font-weight:500;
  line-height:1.3;
  letter-spacing:.03em;
}
.footer-brand img{width:130px;height:60px;object-fit:contain}

/*
V12 responsive behaviour:
Keep the same two-column composition as desktop, but scale typography,
spacing and controls so the design remains usable on phones.
*/
@media (max-width:900px){
  body{font-size:14px}
  .announcement{height:28px;font-size:8px;letter-spacing:.08em}
  .site-header{min-height:66px;padding:8px 4vw;gap:14px}
  .brand img{width:102px;height:46px}
  .menu-toggle{display:none}
  .nav{display:flex;position:static;padding:0;background:none;border:0;flex-direction:row;gap:16px;font-size:11px}
  .nav a{padding:6px 0}

  .hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:620px}
  .hero-copy{padding:9vw 4vw 8vw}
  .hero-art{border-left:1px solid var(--line);border-top:0;min-height:620px}
  h1{font-size:clamp(44px,9.2vw,76px);margin-bottom:28px}
  .hero-text{font-size:15px;margin-bottom:26px}
  .button{padding:13px 18px;font-size:11px}
  .logo-card{width:76%}

  .section{padding:78px 4vw}
  .section-head{display:flex;align-items:end;gap:26px;margin-bottom:34px}
  .section-head>p{max-width:300px;margin:0;font-size:13px}
  .section-head h2,.about h2,.contact h2{font-size:clamp(36px,6.8vw,58px)}

  .story-row,.story-row.reverse{gap:12px;margin-bottom:12px}
  .product-grid{gap:12px}
  .story-product-meta,.product-meta{min-height:92px;padding:14px;gap:12px}
  .story-product-meta h3,.product-meta h3{font-size:14px}
  .story-product-meta p,.product-meta p{font-size:11px}
  .product-side strong{font-size:12px}
  .product-side span{font-size:8px}

  .about{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:5vw}
  .about-logo{min-height:340px}
  .about-copy p:not(.eyebrow){font-size:16px}
  .catalog-grid{grid-template-columns:repeat(4,1fr);gap:9px}

  footer{grid-template-columns:1fr auto auto;gap:20px;align-items:end}
}

@media (max-width:620px){
  body{font-size:12px;background-size:48px 48px,48px 48px,48px 48px,48px 48px}
  .announcement{height:25px;padding:0 8px;font-size:6.5px;letter-spacing:.065em;white-space:nowrap}
  .site-header{min-height:54px;padding:6px 3vw;gap:8px}
  .brand img{width:76px;height:38px}
  .nav{gap:9px;font-size:9px}
  .nav a{padding:4px 0;border-bottom-width:1px}

  .hero{min-height:430px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .hero-copy{padding:8vw 3vw 7vw}
  .hero-art{min-height:430px}
  .eyebrow{font-size:7px;letter-spacing:.07em;margin-bottom:10px}
  h1{font-size:clamp(30px,9.6vw,43px);line-height:.88;margin-bottom:18px}
  .hero-text{font-size:10px;line-height:1.4;margin-bottom:16px;max-width:180px}
  .button{padding:9px 11px;font-size:8px}
  .logo-card{width:82%}
  .logo-card img{filter:drop-shadow(8px 9px 0 rgba(0,0,0,.08))}

  .section{padding:52px 3vw}
  .section-head{display:flex;gap:12px;margin-bottom:24px}
  .section-head>div{min-width:0;flex:1}
  .section-head>p{width:42%;max-width:none;font-size:9px;line-height:1.35}
  .section-head h2,.about h2,.contact h2{font-size:clamp(27px,8.2vw,38px)}

  .story-row,.story-row.reverse{
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    gap:7px;
    margin-bottom:7px;
  }
  .story-row.reverse{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .story-product-meta,.product-meta{min-height:70px;padding:9px;gap:7px}
  .story-product-meta h3,.product-meta h3{font-size:10px;margin-bottom:3px}
  .story-product-meta p,.product-meta p{font-size:8px;line-height:1.25}
  .product-side{gap:3px}
  .product-side strong{font-size:9px}
  .product-side span{font-size:6.5px;letter-spacing:.03em}
  .empty-product{font-size:8px;letter-spacing:.05em;padding:8px}

  .about{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:5vw}
  .about-logo{min-height:220px;padding:7%}
  .about-copy p:not(.eyebrow){font-size:10px;line-height:1.45;margin-bottom:10px}
  .about-copy .micro{font-size:7px}

  .contact p{font-size:10px}
  .email-link{font-size:7.4vw;margin-top:14px}
  .catalog-grid{grid-template-columns:repeat(4,1fr);gap:5px}
  .catalog-grid figcaption{padding:6px;font-size:6px}

  footer{min-height:110px;padding:20px 3vw;grid-template-columns:1fr auto auto;gap:10px;align-items:end;font-size:7px}
  .footer-brand img{width:76px;height:38px}
}

@media (max-width:390px){
  .nav{gap:7px;font-size:8px}
  .brand img{width:70px}
  h1{font-size:clamp(28px,9.2vw,36px)}
  .hero-text{font-size:9px}
  .story-product-meta,.product-meta{padding:7px;min-height:64px}
  .story-product-meta h3,.product-meta h3{font-size:9px}
  .story-product-meta p,.product-meta p{font-size:7px}
  .product-side span{font-size:6px}
}
