/* Look and feel of naturaknitting.is (Shopify "Debut" theme): white page, grey-brown
   Helvetica body text, Anonymous Pro headings, square dark buttons in uppercase. */
@font-face {
  font-family: "Anonymous Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/anonymous-pro-latin-400.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --color-bg: #ffffff;
  --color-body-text: #685858;
  --color-text: #3a3a3a;
  --color-text-focus: #606060;
  --color-border: #f5f5f5;
  --color-btn: #3a3a3a;
  --color-btn-focus: #606060;
  --color-sale-text: #ea0606;
  --font-header: "Anonymous Pro", monospace;
  --font-body: Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; /* mobile: excludes the browser toolbar, so centered content isn't pushed low */
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-body-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  margin: 0 0 17.5px;
  font-family: var(--font-header);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  overflow-wrap: break-word;
}
h1 { font-size: 26px; }
p { margin: 0 0 19.44444px; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--color-text); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
a:hover, a:focus { color: var(--color-text-focus); }

/* Header: centered text logo over a full-width hairline, like the shop */
.site-header { padding: 30px 22px 20px; text-align: center; border-bottom: 1px solid var(--color-border); }
.site-header__logo {
  margin: 15px auto;
  font-family: var(--font-header);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-text);
}
.site-header__logo a { color: inherit; border-bottom: 0; padding-bottom: 0; }

/* Fills the space under the header and centers its content vertically */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px;
  text-align: center;
}
#ready, #problem, .status { max-width: 480px; margin: 0 auto; }
#ready img { margin: 0 auto 45px; }
#download-error { color: var(--color-sale-text); }

.button {
  display: inline-block;
  min-height: 46px;
  padding: 10px 18px;
  margin-top: 20px;
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: var(--color-btn);
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.button:hover, .button:focus { background: var(--color-btn-focus); }
.button:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
.button[disabled] { cursor: default; opacity: .5; }

@media (min-width: 750px) {
  .site-header { padding-left: 55px; padding-right: 55px; }
  main { padding: 55px; }
}
