/* ==========================================================================
   Stonezen Global — media queries (loaded after style.css)
   >= 1100px  : desktop composition (defined in style.css)
   <= 1099px  : tablet  — stacked card layout, side titles hidden
   <= 767px   : mobile  — single column, inline menu replaced by the drawer
   <= 479px   : small phones
   The inline desktop menu is also hidden by js/main.js whenever it no longer
   fits next to the logo and the menu icon (html[data-nav="drawer"]).
   ========================================================================== */

/* ---- Large desktops / short laptop screens ----------------------------- */
@media (min-width:1100px) and (max-width:1399px){
  :root{--lh-body:1.8}
  .about .text-col{max-width:max(calc(var(--ux) * 700), 440px)}
}
@media (min-width:2200px){
  :root{--lh-body:2}
}
/* wide but short windows (e.g. 1920 × 900) keep the composition by scaling with height */
@media (min-width:1100px) and (max-height:760px){
  :root{--lh-body:1.75}
}

/* ---- Tablet & below ----------------------------------------------------- */
@media (max-width:1099px){
  :root{
    --hdr:76px; --gap:18px; --foot:92px; --shl:20px; --shr:20px;
    --fs-body:16px; --fs-small:15px; --fs-nav:16px; --fs-title:clamp(28px, 5.2vw, 42px); --fs-label:16px;
    --wm:min(17vw, 150px); --lh-body:1.75;
  }
  .header{padding:0 20px}
  .brand{width:150px}
  .hamburger{width:34px;height:26px}
  .drawer-close{width:34px;height:34px}
  .drawer-head{padding:0 20px 0 24px}

  /* no JS: fall back to the drawer on small screens */
  html:not([data-nav]) .nav{visibility:hidden;pointer-events:none}

  .shell{min-height:260px;margin:0 var(--shr) 0 var(--shl)}
  .wordmark{top:50%}
  .page-wordmark.wm-about{margin-left:0}
  .side-title{display:none}
  .frame{background:rgba(255,255,255,.9)}
  .right-frame{height:32%}
  .left-frame{height:32%}
  .bottom-frame{right:-8px}
  .top-frame{left:12px;right:0}
  .intro-top{left:12px;right:0}
  .intro-bottom{right:-8px}
  .intro-right,.intro-left{height:32%}

  .page-footer{padding:20px 22px 28px;gap:6px 24px}

  .content-card,.contact .content-card{margin:0 8px 18px 14px;padding:30px 28px 34px;border-radius:20px}
  .about .content-card{padding-top:34px}
  .text-col{max-width:none!important}
  .about .text-col,.contact-card .text-col{max-width:760px!important}
  .page-title{margin-top:10px}
  .body-copy{margin-top:16px}
  .body-copy p{margin-bottom:1.15em}

  /* About: art drops under the copy, never stretched */
  .about-art{position:relative;right:auto;top:auto;display:block;width:100%;max-width:620px;height:auto;margin:22px auto 0}

  /* History / Philosophy: copy + image side by side on tablets */
  .split{grid-template-columns:minmax(0,1fr) minmax(190px,34%);column-gap:28px;padding:30px 28px 34px}
  .split .text-col{padding-top:0}
  .feature-image{align-self:start}
  .feature-image:after{border-width:10px}

  /* Contact: copy first, map below */
  .contact-card{grid-template-columns:minmax(0,1fr);row-gap:28px;padding:30px 28px 34px}
  .contact-intro{margin-top:16px}
  .contact-form{margin-top:22px;gap:16px}
  .contact-details{margin-top:28px}
  .map-image{margin-top:0;width:100%;max-width:560px;justify-self:center}
}

/* ---- Mobile ------------------------------------------------------------- */
@media (max-width:767px){
  :root{--hdr:68px; --gap:14px; --foot:112px; --shl:12px; --shr:12px; --fs-body:15.5px; --fs-title:clamp(26px, 7.4vw, 34px); --wm:min(18.5vw, 120px)}
  .nav{display:none}
  .header{padding:0 16px}
  .brand{width:128px}
  .page-footer{flex-direction:column;align-items:center;text-align:center;padding:18px 16px 26px}
  .content-card,.contact .content-card{margin:0 6px 16px 10px;padding:24px 20px 28px;border-radius:16px}
  .about .content-card{padding-top:28px}
  .about-art{margin-top:18px}

  /* History / Philosophy: image under the copy */
  .split{grid-template-columns:minmax(0,1fr);row-gap:26px;padding:26px 20px 28px}
  .feature-image{width:min(100%, 420px);justify-self:center}

  .contact-card{padding:26px 20px 28px}
  .contact-form{grid-template-columns:minmax(0,1fr)}
  .submit-button{width:100%;justify-self:stretch}
  .map-image{max-width:none}
  .drawer{width:min(400px, 90vw)}
}

/* ---- Small phones -------------------------------------------------------- */
@media (max-width:479px){
  :root{--fs-body:15px; --fs-small:14px}
  .brand{width:118px}
  .content-card,.contact .content-card{margin-right:4px;margin-left:8px;padding:22px 16px 26px}
  .split,.contact-card{padding:22px 16px 26px}
  .field span{min-width:4.2em}
  .drawer-link{font-size:clamp(24px, 7.4vw, 30px)}
}

/* ---- Landscape phones / very short windows ------------------------------ */
@media (max-height:520px) and (orientation:landscape){
  :root{--hdr:58px; --gap:12px; --foot:80px}
  .brand{width:120px}
  .drawer-link{padding:.28em 0;font-size:24px}
  .drawer-nav{padding-top:10px}
}
