/* =========================================
   DABBLE & DWELL — FULL SITE STYLESHEET
   Mobile-first, single-source version
   ========================================= */

/* =========================================
   GLOBAL FOUNDATION
   ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

main {
  min-height: 60vh;
}

.hidden,
[hidden] {
  display: none !important;
}

/* =========================================
   ACCESSIBILITY
   ========================================= */

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: top var(--transition-standard);
}

.skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

/* =========================================
   LAYOUT
   ========================================= */

.container-page,
.site-header-inner,
.site-footer-inner {
  width: min(calc(100% - 2rem), var(--container-max));
  margin-inline: auto;
}

.section-shell {
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
}

section[id] {
  scroll-margin-top: 96px;
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-grid {
  display: grid;
  gap: 1rem;
}

.content-grid-2 {
  display: grid;
  gap: 1.5rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.action-list,
.events-list {
  display: grid;
  gap: 1rem;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */

.text-balance {
  text-wrap: balance;
}

.eyebrow {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heading-page,
.heading-section,
.heading-sub,
.event-title,
.brand-mark {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.heading-page {
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  max-width: 16ch;
}

.heading-section {
  font-size: clamp(1.8rem, 3.7vw, 2.8rem);
  max-width: 26ch;
}

.heading-sub,
.event-title {
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  line-height: 1.15;
}

.text-page-lead,
.text-section-lead,
.text-body,
.text-body-sm,
.text-note,
.product-meta,
.event-meta,
.footer-text,
.brand-line,
.custom-note {
  margin: 0;
}

.text-page-lead,
.text-section-lead {
  color: var(--color-text-muted);
  max-width: 46ch;
}

.text-page-lead {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.text-body {
  color: var(--color-text);
}

.text-body-sm,
.text-note,
.product-meta,
.event-meta,
.footer-text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.brand-line {
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-lg);
}

.custom-note {
  max-width: 58ch;
  padding: 1rem 1.125rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.68);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* =========================================
   SURFACES
   ========================================= */

.card,
.product-card,
.action-card,
.about-panel,
.hero-card,
.event-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: #FCFBF9;
  box-shadow: var(--shadow-sm);
}

.card-soft {
  background-color: var(--color-accent-soft);
}

.card-pad,
.product-card,
.action-card,
.about-panel,
.hero-card,
.event-item {
  padding: 1.25rem;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary-soft);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* =========================================
   BUTTONS + LINKS
   ========================================= */

.btn-primary,
.btn-secondary,
.action-link,
.footer-link,
.nav-link {
  transition:
    background-color var(--transition-standard),
    border-color var(--transition-standard),
    color var(--transition-standard),
    opacity var(--transition-standard);
}

.btn-primary,
.btn-secondary,
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.btn-primary,
.btn-secondary {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-text-inverse);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--color-primary-soft);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.action-link {
  width: fit-content;
  min-height: auto;
  padding: 0;
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.action-link:hover,
.action-link:focus-visible {
  color: var(--color-link-hover);
}

.footer-link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--color-link-hover);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.action-link:focus-visible,
.footer-link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

/* =========================================
   HEADER + NAV
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background-color: #404040;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 96px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-shop-link {
  display: inline-flex;
  min-height: 40px;
  padding: 0.68rem 0.95rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  margin-left: auto;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.55rem;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--text-sm);
  font-weight: 600;
  background-color: transparent !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="location"],
.nav-link-active,
.nav-link:active {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.78);
  background-color: transparent !important;
  box-shadow: none !important;
}

.nav-link:focus,
.nav-link:focus-visible {
  outline: none;
}

.nav-mobile {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(28, 28, 28, 0.98);
}

.nav-mobile-list {
  width: min(calc(100% - 2rem), var(--container-max));
  margin: 0 auto;
  padding: 0.8rem 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-mobile .nav-link {
  width: 100%;
  justify-content: flex-start;
  padding: 0.95rem 0.1rem;
  border-radius: 0;
  border-width: 0 0 1px 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.nav-mobile .nav-link:hover,
.nav-mobile .nav-link:focus-visible,
.nav-mobile .nav-link:active,
.nav-mobile .nav-link[aria-current="location"],
.nav-mobile .nav-link-active {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.24);
  background-color: transparent !important;
  box-shadow: none !important;
}

.site-header .btn-primary,
.nav-shop-link.btn-primary,
.nav-mobile-shop.btn-primary {
  background-color: #4F9992;
  border-color: #4F9992;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(79, 153, 146, 0.20);
}

.site-header .btn-primary:hover,
.site-header .btn-primary:focus-visible,
.nav-shop-link.btn-primary:hover,
.nav-shop-link.btn-primary:focus-visible,
.nav-mobile-shop.btn-primary:hover,
.nav-mobile-shop.btn-primary:focus-visible {
  background-color: #5DA8A1;
  border-color: #5DA8A1;
  color: #FFFFFF;
}

.nav-mobile-shop {
  width: 100%;
  justify-content: center;
  margin-top: 0.35rem;
}

/* =========================================
   MOBILE NAV TOGGLE
   ========================================= */

#mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: #FFFFFF !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#mobile-menu-toggle:hover,
#mobile-menu-toggle:focus-visible,
#mobile-menu-toggle:active,
#mobile-menu-toggle.is-open {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.26);
  color: #FFFFFF !important;
}

#mobile-menu-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 3px;
}

.nav-toggle-lines {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 18px;
}

.nav-toggle-line {
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background-color: #FFFFFF !important;
  transition:
    transform var(--transition-standard),
    opacity var(--transition-standard),
    background-color var(--transition-standard);
}

.nav-toggle-line[data-line="top"] {
  top: 0;
}

.nav-toggle-line[data-line="middle"] {
  top: 8px;
}

.nav-toggle-line[data-line="bottom"] {
  top: 16px;
}

#mobile-menu-toggle.is-open .nav-toggle-line[data-line="top"] {
  transform: translateY(8px) rotate(45deg);
}

#mobile-menu-toggle.is-open .nav-toggle-line[data-line="middle"] {
  opacity: 0;
}

#mobile-menu-toggle.is-open .nav-toggle-line[data-line="bottom"] {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   HERO COLLAGE
   ========================================= */

.hero-section {
  position: relative;
  padding: 1rem 0 3rem;
  background:
    linear-gradient(180deg, rgba(64, 64, 64, 0.08) 0%, rgba(64, 64, 64, 0.02) 20%, transparent 100%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-shell {
  width: min(calc(100% - 2rem), var(--container-max));
  margin-inline: auto;
}

.hero-collage {
  position: relative;
  min-height: clamp(420px, 68vw, 760px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.hero-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shot-front {
  z-index: 5;
  width: clamp(230px, 30vw, 420px);
  aspect-ratio: 4 / 5;
  transform: rotate(-1.5deg);
}

.hero-shot-left {
  z-index: 3;
  width: clamp(170px, 22vw, 300px);
  aspect-ratio: 4 / 5;
  left: 15%;
  top: 16%;
  transform: rotate(-9deg);
}

.hero-shot-right {
  z-index: 3;
  width: clamp(170px, 22vw, 300px);
  aspect-ratio: 4 / 5;
  right: 15%;
  top: 16%;
  transform: rotate(8deg);
}

.hero-shot-left-far {
  z-index: 2;
  width: clamp(145px, 18vw, 245px);
  aspect-ratio: 4 / 5;
  left: 5%;
  bottom: 8%;
  transform: rotate(-13deg);
  opacity: 0.98;
}

.hero-shot-right-far {
  z-index: 2;
  width: clamp(145px, 18vw, 245px);
  aspect-ratio: 4 / 5;
  right: 5%;
  bottom: 8%;
  transform: rotate(12deg);
  opacity: 0.98;
}

.hero-copy {
  width: min(100%, 980px);
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: center;
}

.hero-title {
  margin: 0 auto;
  max-width: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: none;
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 1.9vw, 1.15rem);
  line-height: 1.25;
}

.hero-copy .btn-row {
  justify-content: center;
}

.hero-custom-note {
  max-width: 58ch;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .hero-collage {
    min-height: 500px;
  }

  .hero-shot-left {
    left: 7%;
  }

  .hero-shot-right {
    right: 7%;
  }

  .hero-shot-left-far {
    left: 1%;
  }

  .hero-shot-right-far {
    right: 1%;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 0.75rem;
  }

  .hero-collage {
    min-height: 330px;
  }

  .hero-shot-front {
    width: min(46vw, 190px);
    transform: rotate(-1deg);
  }

  .hero-shot-left,
  .hero-shot-right {
    width: min(24vw, 95px);
    top: 20%;
    opacity: 0.94;
  }

  .hero-shot-left {
    left: 8%;
    transform: rotate(-7deg);
  }

  .hero-shot-right {
    right: 8%;
    transform: rotate(7deg);
  }

  .hero-shot-left-far,
  .hero-shot-right-far {
    display: none;
  }

  .hero-copy {
    margin-top: 1.25rem;
    text-align: center;
  }

  .hero-copy .btn-row {
    justify-content: center;
  }

  .hero-custom-note {
    margin: 0 auto;
  }
}

/* =========================================
   HOMEPAGE COMPONENTS
   ========================================= */

#featured-products {
  background: linear-gradient(180deg, #FAF6F1 0%, #F5EFE8 100%);
}

#upcoming-events {
  background-color: #F7F4EF;
}

#about {
  background-color: #FCFBF9;
}

#connect {
  background: linear-gradient(180deg, #D9E3E0 0%, #CFDBD6 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.card.card-pad {
  background-color: #F7F2EC;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  border: 1px solid var(--color-border-strong);
  background: linear-gradient(180deg, #FCFBF9 0%, #F7F2EC 100%);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-card .heading-sub {
  font-weight: 700;
}

.product-card .product-meta {
  color: var(--color-text);
  opacity: 0.82;
}

.product-card {
  overflow: hidden;
}

.product-card-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

.event-item {
  display: grid;
  gap: 0.45rem;
  background-color: #FCFBF9;
}

.events-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.events-image-wrap {
  order: 1;
}

.events-list {
  order: 2;
}

.events-side-image {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
}

@media (min-width: 768px) {
  .events-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .events-list {
    order: 1;
    flex: 1 1 65%;
  }

  .events-image-wrap {
    order: 2;
    flex: 0 0 32%;
  }

  .events-side-image {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

.about-panel {
  padding: 1.45rem;
  background-color: #FCFBF9;
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background-color: rgba(252, 251, 249, 0.94);
}

.makers-section {
  background: linear-gradient(180deg, #F7F4EF 0%, #FCFBF9 100%);
}

.makers-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.makers-photo-wrap,
.makers-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.makers-photo-wrap {
  border: 1px solid var(--color-border);
  background-color: #FCFBF9;
  box-shadow: var(--shadow-sm);
}

.makers-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.makers-panel {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  background-color: #FCFBF9;
  box-shadow: var(--shadow-sm);
}

.custom-print-contact {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem auto 0;
  max-width: 540px;
}

.custom-print-callout {
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

.custom-print-line {
  display: block;
}

.custom-print-line + .custom-print-line {
  margin-top: 0.25rem;
}

.custom-print-callout a {
  color: #01696f;
  font-weight: 600;
  text-decoration: none;
}

.custom-print-callout a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .custom-print-contact {
    max-width: 100%;
    padding: 1rem;
  }
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0 3rem;
}

.site-footer-inner {
  display: grid;
  gap: 1.5rem;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid-2 {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }

  .action-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .makers-grid {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.2fr);
  }

  .makers-panel {
    padding: 1.75rem;
  }

  .site-footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }

  .nav-shop-link {
    display: inline-flex;
  }

  #mobile-menu-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link,
  .nav-toggle-line,
  .btn-primary,
  .btn-secondary,
  .action-link,
  .footer-link,
  .nav-link,
  #mobile-menu-toggle {
    transition: none;
  }
}

/* =========================================
   ICON + BRAND HELPERS
   ========================================= */

.btn-with-icon,
.icon-pill-with-mark,
.action-heading,
.action-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-with-icon img,
.icon-pill-with-mark img,
.action-heading img,
.action-link-with-icon img {
  flex-shrink: 0;
}

.action-heading {
  display: flex;
}

.site-logo {
  display: block;
  width: auto;
  height: 84px;
  max-width: none;
  object-fit: contain;
  border-radius: 12px;
  overflow: hidden;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.12));
  flex-shrink: 0;
}

.action-brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

