/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 *





 */
@layer reset, commerce7, commerce7-reset, theme, base;

/* Import Commerce7 CSS */
@import url("https://cdn.commerce7.com/v2/commerce7.css") layer(commerce7);

.center {
  text-align: center;
}

.hidden {
  display: none;
}
@layer base {
    body {
        background-color: var(--color-background);
        font-family: var(--font-body);
        font-size: var(--text-base);
        font-weight: var(--font-weight);
    }

    h1,
    h2,
    h3,
    h4 {
        color: var(--color-primary);
        font-family: var(--font-heading);
        font-weight: 400;
        letter-spacing: 0.05em;
    }

    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    h3 {
        font-size: var(--text-lg);
        text-transform: uppercase;
    }

    p {
        color: var(--color-text-secondary);
    }

    ul li,
    ol li {
        list-style-type: none;
    }

    a:not(.c7-btn) {
        text-decoration: none;
        position: relative;
        color: var(--color-primary);
        font-size: var(--text-base);
    }

    .underscore-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -0.2em;
        width: 0;
        transform: translateX(-50%);
        border-bottom: 1px solid;
        transition: width 0.3s;
        opacity: 0.7;
    }

    /* Apply underline to all links by default, except those marked as block-links */
    /* Alternative:
    /* Select links that only contain text or only contain inline elements */
    a:is(:not(:has(*), .button), :has(span, em, strong))::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -0.2em;
        width: 0;
        transform: translateX(-50%);
        border-bottom: 1px solid;
        transition: width 0.3s;
        opacity: 0.7;
    }

    a:hover::after {
        width: 100%;
    }

    .home {
        display: flex;
        flex-direction: column;
        padding-bottom: var(--space-2x);
    }
}
@layer commerce7-reset {
/* Commerce7 variable overrides to match theme.css values */
:root {
    /* Font families */
    --c7-font-family: var(--font-body);
    --c7-heading-font-family: var(--font-heading);
    
    /* Colors */
    --c7-body-text-color: var(--color-text);
    --c7-heading-text-color: var(--color-primary);
    --c7-primary-color: var(--color-primary);
    --c7-primary-color-text: var(--color-primary);
    --c7-primary-color-dark: var(--color-primary);
    --c7-link-color: var(--color-primary);
    --c7-bg: var(--color-background);

    /* Buttons */
    --c7-primary-button-bg: var(--color-background);
    --c7-primary-button-bg-hover: var(--color-primary);
    --c7-primary-button-text-color: var(--color-primary);
    
    /* Font sizes */
    --c7-font-size: var(--text-base);
    --c7-font-size-sub: var(--text-sm);

    
    /* Spacing/Borders */
    --c7-border-radius: 0;
    --c7-field-border-radius: 0;
    --c7-button-border-radius: 0;
    --c7-modal-border-radius: 0;
    --c7-dropdown-border-radius: 0;
    --c7-block-border-radius: 0;
    
    /* Page widths */
    --c7-page-width: 100%;
    --c7-page-width-checkout: 100%;
}

*:not([class*="c7-"]) p {
    margin: initial
}

*:not([class*="c7-"]) ul {
    padding-left: inherit;
}

.c7-user-nav__account {
    padding-right: 0;
}

.c7-user-nav__account > a {
    padding: 0;
}

.c7-user-nav__cart > button {
    color: inherit;
    display: flex;
}

.c7-user-nav__cart__title svg {
    stroke: currentColor;
}

.c7-btn.c7-btn--primary {
    border: 1px solid var(--color-primary)
}

.c7-btn.c7-btn--primary:hover {
    color: var(--color-text-inverse);
}

}
@layer reset {

    /* 1. Use a more-intuitive box-sizing model */
    *, *::before, *::after {
        box-sizing: border-box;
    }

    /* 2. Remove default margin */
    * {
        margin: 0;
        padding: 0;
    }

    body {
        /* 3. Add accessible line-height */
        line-height: 1.5;
        /* 4. Improve text rendering */
        -webkit-font-smoothing: antialiased;
    }

    /* 5. Improve media defaults */
    img, picture, video, canvas, svg {
        display: block;
        max-width: 100%;
    }

    /* 6. Inherit fonts for form controls */
    input, button, textarea, select {
        font: inherit;
    }

    /* 7. Avoid text overflows */
    p, h1, h2, h3, h4, h5, h6 {
        overflow-wrap: break-word;
    }

    /* 8. Improve line wrapping */
    p {
        text-wrap: pretty;
    }

    h1, h2, h3, h4, h5, h6 {
        text-wrap: balance;
    }

    ul, ol {
        list-style: none;
    }
}
@layer theme {
    :root {
        /* Color palette */
        --color-copper: #ad683d;
        --color-cream: #fdfbf6;
        --color-light-gray: #666;
        --color-dark-gray: #333;
        --color-white: #fff;
        --color-green: #6b7657;

        /* Semantic colors */
        --color-primary: var(--color-copper);
        --color-accent: var(--color-green);
        --color-background: var(--color-cream);
        --color-text: var(--color-light-gray);
        --color-text-secondary: var(--color-light-gray);
        --color-text-accent: var(--color-primary);
        --color-text-inverse: var(--color-cream);

        /* Spacing */
        --space: 1rem;
        --space-half: calc(var(--space) / 2);
        --space-quarter: calc(var(--space) / 4);
        --space-loose: calc(var(--space) * 1.5);
        --space-2x: calc(var(--space) * 2);
        --space-3x: calc(var(--space) * 3);
        --space-4x: calc(var(--space) * 4);
        --space-6x: calc(var(--space) * 6);
        --space-8x: calc(var(--space) * 8);

        /* Layout */
        --max-content-width: 1200px;
        --topbar-height: 5rem;

        --blurb-max-width: 65ch;
        --text-max-width: 65ch;

        /* Typography */
        --font-heading: "Cormorant Garamond", serif;
        --font-body: "Work Sans", sans-serif;

        --font-weight: 300;
        --font-weight-heavy: 400;
        --font-weight-bold: 700;

        --letter-spacing-medium: 0.05em;
        --letter-spacing-wide: 0.1em;

        /* Fluid type scale (adjusted for ~17px at 1280px viewport) */
        /* --text-xs: clamp(0.75rem, 0.7158rem + -0.0766vw, 0.825rem);
        --text-sm: clamp(0.875rem, 0.8296rem + 0.0135vw, 0.94rem);
        --text-base: clamp(
            1rem,
            0.9565rem + 0.0674vw,
            1.06rem
        );
        --text-lg: clamp(1.25rem, 1.0958rem + 0.3211vw, 1.35rem);
        --text-xl: clamp(1.5rem, 1.2456rem + 0.6722vw, 1.8rem);
        --text-2xl: clamp(1.75rem, 1.4022rem + 1.229vw, 2.2rem);
        --text-3xl: clamp(2rem, 1.5594rem + 1.7711vw, 3rem);
        --text-4xl: clamp(2.5rem, 1.7069rem + 2.907vw, 4rem); */

        --text-3xs: 0.5em;
        --text-2xs: 0.6em;
        --text-xs: 0.7em;
        --text-s: 0.8em;
        --text-base: 1em;
        --text-lg: 1.25em;
        --text-xl: 1.5em;
        --text-2xl: 1.75em;
        --text-3xl: 2em;
        --text-4xl: 2.25em;
    }
}
.checkout {
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.club-aside + .newsletter-aside {
  margin-top: var(--space-3x);
}
.join {
  --c7-btn-height: 48px;

  display: flex;
  flex-direction: column;
  align-items: center;

  p {
    max-width: var(--text-max-width);
  }

  p + p {
    margin-top: var(--space);
  }

  section + section {
    margin-top: var(--space-2x);
  }

  ul li {
    list-style-type: disc;
    margin-top: var(--space-quarter);
  }

  .join-button {
    text-align: center;
    height: var(--c7-btn-height);
    margin-top: var(--space-2x);
  }
}
.longform {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block-end: var(--space-4x);

  header {
    width: 100%;
  }

  h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 2em;
    height: 1px;
    background-color: var(--color-primary);
    transform: translateX(-50%);
  }

  h3 {
    text-align: center;
  }

  /* Non-leading paragraphs indent first character */
  p + p {
    text-indent: 1em;
  }

  > section {
    max-width: var(--text-max-width);
    padding-inline: var(--space-2x);
  }

  /* Space between sections */
  > section + section {
    margin-block-start: var(--space-3x);
  }

  /* Space between content elements within a section */
  > section > * + * {
    margin-block-start: var(--space);
  }
}

@media (min-width: 768px) {
  .longform {
    /* Mobile padding */
    > section {
      padding-inline: 0;
    }
  }
}
@layer layouts {
  .page-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-8x);
    padding-bottom: var(--space-2x);
  }

  /* Base page layout pattern for all content pages */
  .page {
    --spacing-block: var(--space-8x);
    --spacing-block-half: calc(0.5 * var(--spacing-block));
    --spacing-block-start: var(--block-spacing-half);
    --spacing-block-end: var(--block-spacing-half);
  }

  /* .page > header + * {
        --spacing-block-start: 0;
    }

    .page > footer {
        --spacing-block-end: var(--space-2x);
    } */

  .page > header + * {
    padding-block-end: var(--spacing-block-half);
  }

  /* .page > *:not(header) + * {
    padding-block: var(--spacing-block-half);
  } */

  .c7-content:has(.page) {
    padding: 0;
  }

  .page h1 {
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
    font-size: var(--text-4xl);
  }

  .page h2 {
    text-align: center;
    position: relative;
    padding-block-end: 0.25em;
    margin-block-end: var(--space);
  }

  .underscored::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 2em;
    height: 1px;
    background-color: var(--color-primary);
    transform: translateX(-50%);
  }

  /* Page content can be padded or not */
  .page-content.padded {
    padding-inline: var(--space);
  }

  /* Page content can be constrained or full-width */
  .page-content.constrained {
    max-width: var(--max-content-width);
    margin-inline: auto;
  }

  @media (min-width: 768px) {
    .page {
      gap: var(--space-2x);
    }

    .page-content.padded {
      padding-inline: var(--space-2x);
    }
  }
}
.policy-wrapper {
  padding-bottom: var(--space-2x);
}

.policy {
  max-width: var(--text-max-width);
  margin: 0 auto;
  padding-inline: var(--space-2x);
  margin-block: var(--space-2x) var(--space-4x);
}

.policy > * + h2 {
  margin-top: var(--space-2x);
}

.policy > * + h3 {
  margin-top: var(--space);
}

.policy > p + p {
  margin-top: var(--space);
}
/* Shop page specific layout */
.shop {
  max-width: var(--max-content-width);
  margin-inline: auto;
  padding-inline: var(--space-2x);

  @media (min-width: 768px) {
    padding-inline: 0;
  }

  h1 {
    text-align: center;
  }
}

.shop-content {
}

.shop-collection {
  width: 100%;
}

.shop-collection .c7-product-collection__product-list {
  grid-template-columns: 1fr;
  justify-items: center;
  margin: 0;
  gap: var(--space-6x);

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card .product-card-image {
  transition: all ease 0.5s;
}

.product-card:hover .product-card-image {
  transform: translateY(calc(-1 * var(--space)));
}

.site-footer {
  background-color: var(--color-background);
  color: var(--color-text);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2x);
  justify-items: center;
  padding-block-end: var(--space-2x);
}

/* Navigation */
.footer-nav {
  text-align: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space);
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  justify-content: center;
}

.footer-logo img {
  transform: translateX(-5%);
  max-width: 250px;
}

.footer-legal {
  font-size: var(--text-xs);
  opacity: 0.8;
  line-height: 1.6;
}

.footer-legal a {
  color: var(--color-text);
}

/* Social Media Links */
.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-background);
  color: var(--color-primary);
  transition: all 0.2s ease;
}

/* a {
    display: flex;
    transition: all 0.2s ease;
}
a:hover {
    transform: translateY(-2px);
} */

.social-icon {
  --icon-size: var(--text-lg);
  width: var(--icon-size);
  height: var(--icon-size);
  fill: currentColor;
}

/* Desktop Layout */
@media (min-width: 768px) {
  .footer-nav {
    text-align: left;
  }

  .footer-links {
    display: flex;
    flex-direction: row;
    gap: var(--space-2x);
  }

  .footer-links a {
    text-align: left;
  }

  .footer-logo {
    justify-content: flex-end;
  }

  .footer-social {
    justify-content: flex-start;
  }
}
:root {
  --logo-width: 3em;
}

/* Main navigation component */
.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4x);
  padding: var(--space-half) var(--space);
  height: var(--topbar-height);
  position: relative;
}

/* Left navigation section */
.nav-left {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-2x);
}

/* Center logo section */
.nav-center {
  display: flex;
  justify-content: center;
  z-index: 2;
}

/* Right navigation section */
.nav-right {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-2x);
}

/* Mobile menu trigger */
.nav-mobile {
  position: absolute;
  left: var(--space);
  display: block;
  z-index: 10;
}

/* Commerce7 components */
.nav-commerce {
  position: absolute;
  right: var(--space);
  display: flex;
  align-items: center;
  gap: var(--space);
  z-index: 10;
}

/* Navigation items */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-2x);
}

/* Responsive behavior */
@media screen and (min-width: 1000px) {
  .nav-mobile {
    display: none;
  }

  .nav-links {
    display: flex;
  }
}

/* If viewport is narrower than max-content-width + space for commerce links, switch to mobile */
@media screen and (max-width: calc(var(--max-content-width) + 200px)) and (min-width: 1000px) {
  .nav-links {
    display: none;
  }

  .nav-mobile {
    display: block;
  }
}

/* Adjustments for medium screens */
@media screen and (max-width: 1000px) {
  .site-nav {
    gap: var(--space);
  }
}

/* Smaller screens */
@media screen and (max-width: 768px) {
  .site-nav {
    padding-left: var(--space-half);
    padding-right: var(--space-half);
  }

  .nav-mobile {
    left: var(--space-half);
  }

  .nav-commerce {
    right: var(--space-half);
  }
}

/* Logo styling */
.logo {
  display: block;
  width: var(--logo-width);
}

/* Mobile menu overlay styling */
.nav-overlay {
  display: grid;
  grid-template-areas:
    "logo"
    "menu"
    "contact";
  gap: var(--space-2x);
  padding: var(--space-2x);
  height: 100%;
  overflow-y: auto;
}

.nav-logo {
  grid-area: logo;
  display: block;
  width: 50%;
  max-width: 200px;
  margin: 0 auto;
}

.nav-menu {
  grid-area: menu;
}

.nav-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space);
  text-align: center;
}

.nav-contact {
  grid-area: contact;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-half);
}

/* Commerce7 styling overrides */
.site-nav #c7-account,
.site-nav #c7-cart,
.nav-overlay #c7-account-mobile,
.nav-overlay #c7-cart-mobile {
  color: var(--color-primary);
}

.site-nav :where(.c7-account-icon),
.site-nav :where(.c7-cart-icon) {
  width: 1.4em;
  height: 1.4em;
}

.site-nav :where(.c7-account-button),
.site-nav :where(.c7-cart-button) {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary);
  cursor: pointer;
}

.site-nav :where(.c7-account-text),
.site-nav :where(.c7-cart-text) {
  display: none;
  font-size: var(--text-sm);
}

@media screen and (min-width: 768px) {
  .site-nav :where(.c7-account-text),
  .site-nav :where(.c7-cart-text) {
    display: inline;
  }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--color-background);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0s 0.4s;
  pointer-events: none;

  /* Use grid for layout */
  display: grid;
  grid-template-areas:
    "header"
    "content";
  grid-template-rows: auto 1fr;
  height: 100%;
}

.overlay[data-overlay-open] {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.4s ease,
    visibility 0s;
  pointer-events: auto;
}

/* Prevent scroll on underlying content when the overlay is open */
body:has(.overlay[data-overlay-open]) {
  overflow-y: hidden;
}

/* Header area of overlay */
.overlay-header {
  grid-area: header;
  display: flex;
  justify-content: flex-start;
  padding: var(--space-half) var(--space);
  height: var(--topbar-height);
}

/* Main content area of overlay */
.overlay-content {
  grid-area: content;
  overflow-y: auto;
}

/* Close button container */
.overlay-close {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Fade in animation for overlay content */
.nav-overlay {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  transition-delay: 0.1s;
}

.overlay[data-overlay-open] .nav-overlay {
  opacity: 1;
  transform: translateY(0);
}

.blurb {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--blurb-max-width);
  margin-inline: auto;
  padding-inline: var(--space-2x);

  @media (min-width: 768px) {
    padding-inline: unset;
  }

  p {
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: center;
  }
}
.button {
  --button-primary-color: var(--color-primary);
  --button-secondary-color: var(--color-background);

  display: inline-block;
  width: max-content;
  padding: 0.8em 1.4em;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  text-decoration: none;
  cursor: pointer;

  border: 1px solid var(--button-primary-color);
  color: var(--button-primary-color);
  background-color: transparent;

  &:hover {
    background-color: var(--button-primary-color);
    color: var(--button-secondary-color);
  }
}

.button.inverse {
  --button-primary-color: var(--color-background);
  --button-secondary-color: var(--color-primary);
}

.container {
    @media (min-width: 50rem) {
        max-width: 65rem;
        margin: 0 auto;
        padding-inline: var(--space);
    }
}

.region {
    padding-block: var(--space-2x);
}

.flow > * + * {
    --flow-space: 1em;
    margin-block-start: var(--flow-space);
}

.prose > * + * {
    --flow-space: 1em;
    margin-block-start: var(--flow-space);
}

.prose > p + p {
    text-indent: 1em;
}

.home-cards {
    display: grid;
    grid-template-columns: 1fr;
}

.home-cards_full-width {
    grid-column: 1 / -1;
}

@media (min-width: 50rem) {
    .home-cards {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-2x);
    }
}

.card {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card > picture img {
    aspect-ratio: 16 / 9;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
}

.card > div {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space);
}

.card > div :last-child {
    margin-block-start: auto;
}

@media (min-width: 60rem) {
    .card--switcher {
        flex-direction: row;
    }

    .card--switcher > picture {
        max-width: 50%;
    }

    .card--switcher > div {
        justify-content: center;
    }
    .card--switcher > div :last-child {
        margin-top: unset;
    }
}

.u-inline-block {
    display: inline-block;
}

.u-text-center {
    text-align: center;
}

.motif-accent {
    --color-surface: var(--color-green);
    --color-text: var(--color-white);
    --color-heading: var(--color-white);
    --color-link: var(--color-white);

    background-color: var(--color-surface);
    color: var(--color-text);
}

.motif-accent-2 {
    --color-surface: var(--color-copper);
    --color-text: var(--color-white);
    --color-heading: var(--color-white);
    --color-link: var(--color-white);

    background-color: var(--color-surface);
    color: var(--color-text);
}
/* Club section */
.club-aside {
  display: flex;
  flex-direction: column;
  background-color: var(--color-primary);

  @media (min-width: 768px) {
    flex-direction: row;
    align-items: center;
  }
}

.club-aside-image {
  flex: 0 0 50%;

  img {
    width: 100%;
    height: auto;
    display: block;
  }
}

.club-aside-content {
  flex: 1;
  padding: var(--space-2x);
  display: flex;
  flex-direction: column;
  justify-content: center;

  @media (min-width: 768px) {
    padding: var(--space-3x);
    text-align: left;
  }

  h2,
  p,
  a {
    color: var(--color-text-inverse);
  }

  h2 {
    text-align: center;

    @media (min-width: 768px) {
      text-align: left;
    }

    &:after {
      background-color: var(--color-text-inverse);
    }
  }

  p {
    text-align: center;
    max-width: 65ch;

    @media (min-width: 768px) {
      text-align: left;
    }
  }

  a {
    margin-block-start: var(--space-2x);
    align-self: center;

    @media (min-width: 768px) {
      align-self: flex-start;
    }
  }
}

.club-aside-content > * + * {
  margin-block-start: 1em;
}

.cover-header {
  /* Mobile-first values */
  --justify-content: start;
  --copy-display: none;
  --title-margin-block-start: var(--space-4x);

  /* Fill whatever remains of the viewport after the top nav bar */
  display: flex;
  flex-direction: column;
  justify-content: var(--justify-content);
  align-items: center;
  position: relative;
  min-block-size: calc(100vh - var(--topbar-height));

  /* Hero image */
  img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: -1;
  }

  h1 {
    margin-block-start: var(--title-margin-block-start);
    margin-block-end: var(--space-2x);
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.02em;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
  }

  p {
    display: var(--copy-display);
    margin-block-end: var(--space);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 45ch;
    text-align: center;
    line-height: 1.4;
    font-weight: 300;
  }
}

@media (min-width: 768px) {
  .cover-header {
    --justify-content: center;
    --copy-display: initial;
    --title-margin-block-start: 0;
  }
}
.region {
    padding-block: var(--space-4x);
}

@media (min-width: 768px) {
    .region {
        padding-block: var(--space-6x);
    }
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
}

@media (min-width: 768px) {
    .region {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.u-full-span {
    grid-column: -1 / 1;
}

.motif-accent {
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
}

.stack {
    display: flex;
    flex-direction: column;
}

.stack[data-align="center"] {
    align-items: center;
}

.stack[data-align="start"] {
    align-items: start;
}

.feature {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
}

.feature_image {

}

.feature_content {

}

.feature > picture img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.feature > div {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    max-width: var(--blurb-max-width);
    padding: var(--space-2x);
    text-align: center;
}

.feature > div * + * {
    margin-block-start: 1em;
}

.feature :is(h3, p, a) {
    color: var(--color-text-inverse);
}


.feature_link {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.feature_link > a {
    width: fit-content;
    text-transform: uppercase;
    font-weight: var(--font-weight-heavy);
    font-size: var(--text-sm);
    letter-spacing: var(--letter-spacing-wide);
}

@media (min-width: 768px) {
    .features {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-2x);
        max-width: var(--max-content-width);
        margin: 0 auto;
        gap: var(--space-2x);
    }
}
.hero-header {
  --hero-height: 500px;
  /* TODO: handle this from the parent? */
  width: 100%;
}

.hero-header img {
  height: var(--hero-height);
  width: 100%;
  object-fit: cover;
}

.hero-header h1 {
  text-align: center;
  margin-block: var(--space-2x);
}
.newsletter-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-1x) var(--space-1x);

  @media (min-width: 768px) {
    padding: var(--space-1-5x) 0;
  }

  > * {
    max-width: 55ch;
  }

  h2 {
    margin-bottom: var(--space-half);
  }

  p {
    margin-bottom: var(--space-1x);
    line-height: 1.4;
  }

  /* Force the subscribe form to full width */
  .c7-subscribe {
    margin-block-top: var(--space-1x);
    width: 100%;
  }
}

.OverlayTrigger {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  border: 0;
  background: none;
}

.OverlayTrigger::before,
.OverlayTrigger::after,
.OverlayTrigger > * {
  content: "";
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--color-primary);
  border-radius: 2px;
}

.OverlayTrigger::before {
  top: 0;
}

.OverlayTrigger > * {
  top: 50%;
  transform: translateY(-50%);
}

.OverlayTrigger::after {
  bottom: 0;
}

/* Animation for when overlay is open */
body:has(.overlay[data-overlay-open]) {
  .OverlayTrigger::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .OverlayTrigger > * {
    transform: translateY(-50%) scale(0);
  }

  .OverlayTrigger::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
  }
}

/* Product page specific layout */
.product-page .product {
  max-width: var(--max-content-width);
  margin-inline: auto;
}

.product {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "header"
    "purchase"
    "description";
  gap: var(--space-2x);

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "media header"
      "media purchase"
      "media description";
  }
}

.product-header {
  grid-area: header;
}

/* TODO: h1 styling from `page` is overlay specific */
.product-header h1 {
  padding: 0;

  @media (min-width: 768px) {
    text-align: left;
  }
}

.product-media {
  grid-area: media;
  /* Full bleed on mobile */
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: lightgoldenrodyellow;
}

.product-purchase {
  grid-area: purchase;
  justify-self: center;
  text-align: center;

  @media (min-width: 769px) {
    text-align: left;
    justify-self: left;
  }

  /* Override margin added by c7 */
  .c7-product__add-to-cart__price {
    margin: 0;
  }
}

.product-description {
  grid-area: description;
}

/* Apply appropriate mobile and desktop padding. */
.product-media,
.product-purchase,
.product-description {
  padding-inline: var(--space-2x);

  @media (min-width: 768px) {
    padding-inline: 0;
  }
}

.site-header {
  width: 100%;
  position: relative;
  z-index: 100;
}

@layer utilities {
  /* Container to limit content width while allowing backgrounds to span full width */
  .container,
  .Container {
    width: 100%;
    max-width: var(--max-content-width, 1200px);
    margin-left: auto;
    margin-right: auto;
  }

  /* Responsive padding system */
  .padded {
    padding: var(--space);
  }

  .padded-inline {
    padding-inline: var(--space);
  }

  @media (min-width: 768px) {
    .padded {
      padding: var(--space-2x);
    }

    .padded-inline {
      padding-inline: var(--space-2x);
    }
  }

  /* Content width constraint */
  .constrained {
    max-width: var(--max-content-width);
    margin-inline: auto;
  }

  /* Full bleed utility */
  .full-bleed {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }
}

