/* This site was custom designed by Sitethreesixty.com and is actively managed by Sitethreesixty.com */
/* ================================
   LAYOUT STRUCTURE - COREY'S BOOKSHOP
   Generous spacing for a browsing experience
   Bookshop layout should breathe
   ================================ */

/* ================================
   SPACING TOKENS (CSS Variables)
   ================================ */
:root {
  --margin-page: 5%;
  --section-gap-sm: 80px;
  --section-gap-md: 120px;
  --section-gap-lg: 150px;
  --content-gap: 40px;
}

/* ================================
   CONTAINER SYSTEM
   5% margins on desktop
   ================================ */
.container {
  max-width: 1200px;
  width: calc(100% - (var(--margin-page) * 2));
  margin-left: auto;
  margin-right: auto;
}

.container-narrow {
  max-width: 800px;
  width: calc(100% - (var(--margin-page) * 2));
  margin-left: auto;
  margin-right: auto;
}

.container-wide {
  max-width: 1400px;
  width: calc(100% - (var(--margin-page) * 2));
  margin-left: auto;
  margin-right: auto;
}

.container-full {
  width: 100%;
  padding-left: var(--margin-page);
  padding-right: var(--margin-page);
}

/* ================================
   SECTION SPACING
   Generous gaps for browsing rhythm
   ================================ */
.section {
  padding-top: var(--section-gap-md);
  padding-bottom: var(--section-gap-md);
}

.section-sm {
  padding-top: var(--section-gap-sm);
  padding-bottom: var(--section-gap-sm);
}

.section-lg {
  padding-top: var(--section-gap-lg);
  padding-bottom: var(--section-gap-lg);
}

.section-hero {
  padding-top: 0;
  padding-bottom: var(--section-gap-md);
}

/* ================================
   FLEXBOX UTILITIES
   ================================ */
.flex {
  display: flex;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-start {
  display: flex;
  align-items: flex-start;
}

.flex-end {
  display: flex;
  align-items: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* ================================
   GAP UTILITIES
   ================================ */
.gap-xs {
  gap: 8px;
}

.gap-sm {
  gap: 16px;
}

.gap-md {
  gap: 24px;
}

.gap-lg {
  gap: 40px;
}

.gap-xl {
  gap: 60px;
}

.gap-2xl {
  gap: 80px;
}

/* ================================
   GRID SYSTEM
   ================================ */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--content-gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--content-gap);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--content-gap);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--content-gap);
}

.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--content-gap);
  align-items: center;
}

/* ================================
   POSITIONING
   ================================ */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
  top: 0;
}

/* ================================
   ALIGNMENT
   ================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-start {
  justify-content: flex-start;
}

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

/* ================================
   DISPLAY
   ================================ */
.block {
  display: block;
}

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

.inline {
  display: inline;
}

.hidden {
  display: none;
}

/* ================================
   WIDTH UTILITIES
   ================================ */
.w-full {
  width: 100%;
}

.w-half {
  width: 50%;
}

.max-w-prose {
  max-width: var(--max-line-width);
}

/* ================================
   OVERFLOW
   ================================ */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

/* ================================
   SPACING UTILITIES
   ================================ */
.mt-auto {
  margin-top: auto;
}

.mb-0 {
  margin-bottom: 0;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */
@media (max-width: 1024px) {
  :root {
    --margin-page: 4%;
    --section-gap-md: 100px;
    --section-gap-lg: 120px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --margin-page: 5%;
    --section-gap-sm: 60px;
    --section-gap-md: 80px;
    --section-gap-lg: 100px;
    --content-gap: 30px;
  }

  .container,
  .container-narrow,
  .container-wide {
    width: calc(100% - 40px);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-split {
    grid-template-columns: 1fr;
  }

  .gap-lg {
    gap: 24px;
  }

  .gap-xl {
    gap: 40px;
  }

  .gap-2xl {
    gap: 60px;
  }

  .hide-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none;
  }
}

/* This site was custom designed by Sitethreesixty.com and is actively managed by Sitethreesixty.com */
