/* ═══════════════════════════════════════════
   BASE — the foundation the AWSTRA theme was built on.

   On Shopify the site ran on top of the Dawn theme, and a handful of Dawn's
   defaults still shaped every page: the 62.5% root font size (so 1rem is
   10.5px here, not 16px), the body text metrics, heading spacing and the
   light-mode page canvas. Those rules are reproduced here so awstra.css and
   the page stylesheets render exactly as they did on awstra.com.
   ═══════════════════════════════════════════ */

:root{
  --font-body-scale:1.05;
  --font-heading-scale:1.0476;
  --color-foreground:14,27,77;
  /* The AWSTRA --bg colour (#F5F4F1), so every page shares the homepage
     and footer background instead of Dawn's grey-blue canvas. */
  --color-background:245,244,241;
}

*,*::before,*::after{box-sizing:inherit}

html{
  box-sizing:border-box;
  font-size:calc(var(--font-body-scale) * 62.5%);
  height:100%;
}

body{
  display:flex;
  flex-direction:column;
  min-height:100%;
  margin:0;
  font-size:1.5rem;
  letter-spacing:.06rem;
  line-height:calc(1 + .8 / var(--font-body-scale));
}
@media screen and (min-width:750px){
  body{font-size:1.6rem}
}

/* Light-mode page canvas. awstra.css repaints it for dark mode. */
body.canvas{background:rgb(var(--color-background));background-attachment:fixed}

/* <main> stretches so the footer sits at the bottom of short pages. It stays
   a plain block box: page sections that centre themselves with margin:auto
   must keep their full width, as they did inside Shopify's section wrappers. */
.content-for-layout{flex:1}

/* ── Headings ── */
h1,h2,h3,h4,h5{
  font-family:var(--mono);
  font-weight:700;
  letter-spacing:calc(var(--font-heading-scale) * .06rem);
  color:var(--text);
  line-height:calc(1 + .3 / max(1, var(--font-heading-scale)));
  word-break:break-word;
}
h1{font-size:calc(var(--font-heading-scale) * 3rem)}
h2{font-size:calc(var(--font-heading-scale) * 2rem)}
h3{font-size:calc(var(--font-heading-scale) * 1.7rem)}
h4{font-size:calc(var(--font-heading-scale) * 1.5rem)}
h5{font-size:calc(var(--font-heading-scale) * 1.2rem)}
@media only screen and (min-width:750px){
  h1{font-size:calc(var(--font-heading-scale) * 4rem)}
  h2{font-size:calc(var(--font-heading-scale) * 2.4rem)}
  h3{font-size:calc(var(--font-heading-scale) * 1.8rem)}
  h5{font-size:calc(var(--font-heading-scale) * 1.3rem)}
}

/* Empty containers take no space (this hides, for example, the About
   timeline dots and the cart summary divider, as on awstra.com). */
a:empty,ul:empty,dl:empty,div:empty,section:empty,article:empty,p:empty,
h1:empty,h2:empty,h3:empty,h4:empty,h5:empty,h6:empty{display:none}

a:not([href]){cursor:not-allowed}

/* Scripts toggle sections with the hidden attribute; it must beat the
   display:flex/grid rules in the page stylesheets. */
[hidden]{display:none!important}

summary{cursor:pointer;list-style:none;position:relative}
summary::-webkit-details-marker{display:none}

/* ── Focus ── */
*:focus{outline:0;box-shadow:none}
*:focus-visible{
  outline:.2rem solid rgba(var(--color-foreground),.5);
  outline-offset:.3rem;
  box-shadow:0 0 0 .3rem rgb(var(--color-background)),0 0 .5rem .4rem rgba(var(--color-foreground),.3);
}
.focus-none{box-shadow:none!important;outline:0!important}

/* ── Skip link ── */
.skip-to-content-link{position:absolute!important;overflow:hidden;width:1px;height:1px;margin:-1px;padding:0;border:0;clip:rect(0 0 0 0);word-wrap:normal!important}
.skip-to-content-link:focus{z-index:9999;position:inherit!important;overflow:auto;width:auto;height:auto;clip:auto;padding:12px 20px;background:var(--white);color:var(--text)}
