.light-color-scheme {
  --color-background: white;
  --color-foreground: black;
  --color-caption: #999;
  --color-link: blue;
  --color-link-hover: magenta;
  --color-outline: magenta;
  --color-text-selection: yellow;
  --color-button-bg: blue;
  --color-button-bg-hover: black;
  --color-border: rgba(0,0,0,0.1);
}

.dark-color-scheme {
  --color-background: blue;
  --color-foreground: white;
  --color-caption: #999;
  --color-link: cyan;
  --color-link-hover: magenta;
  --color-outline: magenta;
  --color-text-selection: black;
  --color-button-bg: white;
  --color-button-bg-hover: cyan;
  --color-border: rgba(255,255,255,0.1);
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
}

html,
body {
  background-color: var(--color-background);
  height: 100%;
  font-size: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

html,
button,
input,
select,
textarea {
  font-family: "adobe-garamond-pro", serif;
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-foreground);
}

::-moz-selection {
  background: var(--color-text-selection);
  text-shadow: none;
}

::selection {
  background: var(--color-text-selection);
  text-shadow: none;
}

textarea {
  resize: vertical;
}

p {
  margin: 0 0 1rem 0;
}

.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
}

h2 {
  font-size: 1.2rem;
  margin: 0;
}

h3 {
  font-size: 1rem;
  margin: 0;
}

/* ==========================================================================
   Links
   ========================================================================== */
a:link,
a:visited {
  color: var(--color-link);
}

a:hover,
a:focus {
  color: var(--color-link-hover);
}

a:focus-visible {
  outline-color: var(--color-outline);
  outline-style: dotted;
  outline-width: 2px;
}

a img {
  border: none;
}

.skip-link {
  background-color: var(--color-foreground);
  display: block;
  font-size: 0.8rem;
  padding: 5px 8px;
  position: absolute;
  left: -9999px;
  text-decoration: none;
}

.skip-link:link,
.skip-link:visited {
  color: var(--color-background);
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  z-index: 100;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.main {
  margin-bottom: 3rem;
}

.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1400px;
  width: 97%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  margin-bottom: 2rem;
  position: relative;
}

.header__logo {
  display: block;
  font-family: "Jacquard 12", system-ui;
  font-size: 2rem;
  line-height: 0.9;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 0 0 0;
  text-align: center;
  text-decoration: none;
  max-width: 10rem;
}

.primary-nav {
  display: flex;
  justify-content: space-between;
}

.primary-nav > ul {
  display: flex;
  flex-grow: 1;
}

.primary-nav > ul:last-child {
  text-align: right;
}

.primary-nav__item {
  flex-grow: 1;
  list-style: none;
}

.primary-nav__item--cart {
  flex-grow: unset;
  padding-left: 1rem;
}

.primary-nav__item__link {
  display: inline-block;
  margin: 0.3rem 0 0.7rem 0;
  padding: 0.3rem 0;
  text-decoration: none;
}

/* ==========================================================================
   Woocommerce overrides
   ========================================================================== */
/* Cart icon ---------- */
.cart-icon {
  display: block;
}

.cart-icon > svg {
  width: 22px;
}

.cart-icon > svg > * {
  fill: var(--color-link);
}

.cart-icon:hover > svg > *,
.cart-icon:focus > svg > * {
  fill: var(--color-link-hover);
}

/* Product ---------- */
.woocommerce-result-count {
  display: none;
}

.woocommerce-ordering {
  display: none;
}

.woocommerce ul.products li.product a img {
  margin: 0;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  border-bottom: 1px solid var(--color-border);
}

.woocommerce ul.products li.product .woocommerce-loop-category__title, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3 {
  font-weight: normal;
  padding: 0.5rem 0 0.1rem 0;
}

.woocommerce ul.products li.product .button {
  display: none;
}

.woocommerce-product-details__short-description {
  font-size: 1rem;
}

.product_meta {
  display: none;
}

.price {
  font-size: 1.2rem;
  font-weight: bold;
}

.woocommerce .quantity .qty {
  padding: 0.318em 0;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  margin-right: 2.5%;
  margin-top: 2.5%;
  width: 23%;
}

.woocommerce div.product div.images .flex-control-thumbs li:nth-child(4n) {
  margin-right: 0;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
  background-color: var(--color-button-bg);
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:hover {
  background-color: var(--color-button-bg-hover);
}

/* Cart ---------- */
.wp-element-button {
  background-color: var(--color-button-bg);
  color: var(--color-background);
  cursor: pointer;
  text-decoration: none;
}

.wp-element-button:link,
.wp-element-button:visited {
  color: var(--color-background);
}

.wp-element-button:hover,
.wp-element-button:focus {
  background-color: var(--color-button-bg-hover);
}

.woocommerce-message {
  border-top-color: #0f0;
}

.woocommerce-message::before {
  color: #0f0;
}

/* Checkout ---------- */
input:focus-visible {
  outline-color: var(--color-link);
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-nav__item {
  border-top: 1px solid var(--color-border);
  list-style: none;
}

.blog-nav__item:first-child {
  border-top: none;
}

.blog-nav__item__link {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
}

.blog__article img {
  height: auto;
  max-width: 100%;
  width: auto;
}

.blog__article ul {
  margin: 0 0 1rem 20px;
}

.blog__article hr {
  border: 0;
  border-bottom: 1px solid var(--color-border);
  margin: 2rem 0;
}

.wp-caption-text {
  color: var(--color-caption);
  font-size: 0.8rem;
}

.alignleft,
.alignright,
.aligncenter,
.alignnone {
  max-width: 100%;
}

.alignleft {
  float: left;
  margin: 0 1.5em 1.5em 0;
}

.alignright {
  float: right;
  margin: 0 0 1.5em 1.5em;
}

.aligncenter {
  display: block;
  margin: 0 auto 1.5em auto;
  text-align: center;
}

.aligncenter figcaption {
  text-align: left;
}

/* ==========================================================================
   Page
   ========================================================================== */
.page {
  font-size: 1.2rem;
  margin: 3rem auto 5rem auto;
  max-width: 38rem;
  text-align: center;
}

.page__title {
  font-size: 1.5rem;
  margin: 1rem 0;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.secondary-nav {
  margin-bottom: 0.7rem;
}

.secondary-nav__item {
  list-style: none;
}

.secondary-nav__item__link {
  display: block;
  margin-right: 2rem;
  text-decoration: none;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media only screen and (min-width: 550px) {
  .header__logo {
    display: inline-block;
    left: 50%;
    padding: 0.5rem 0;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    max-width: none;
  }
  .primary-nav {
    gap: 200px;
  }
}
@media only screen and (min-width: 700px) {
  html,
  button,
  input,
  select,
  textarea {
    font-size: 18px;
  }
  .footer {
    display: flex;
    justify-content: space-between;
  }
  .secondary-nav__item {
    display: inline-block;
  }
  .blog {
    display: flex;
    justify-content: space-between;
  }
  .blog-nav {
    width: 25%;
  }
  .blog__article {
    width: 65%;
  }
}
/* ==========================================================================
   Admin
   ========================================================================== */
#wp-admin-bar-new-content,
#wp-admin-bar-wp-logo {
  display: none !important;
}

/* ==========================================================================
   Clearfix
   ========================================================================== */
.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  *zoom: 1;
}
