/* ==========================================================================
   Wug Prints — stylesheet
   Fonts: Fraunces (display serif) + Instrument Sans (body)

   Palette: cream + deep ink navy are the neutrals. Green is the primary
   brand/CTA color. Blue-deep is the secondary dark section color. Yellow
   and coral are accents — yellow for numerals on dark, coral for small
   marks (checkmarks, dots). Flat color, no texture: kept deliberately
   plain and bold rather than "crafty."
   ========================================================================== */

:root {
  --cream:      #FBEED0;
  --ink:        #0E1829;
  --ink-soft:   #45505f;

  --green:      #00A14E;
  --green-deep: #007F5B;
  --blue:       #42A7C5;
  --blue-deep:  #195E7E;
  --yellow:     #EFC119;
  --coral:      #F79C86;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1220px;
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 18px 40px -18px rgba(14, 24, 41, 0.28);
  --shadow-soft: 0 10px 26px -14px rgba(14, 24, 41, 0.18);

  color-scheme: light;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; border: none; background: none; cursor: pointer; }
iframe { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .08s; }
.reveal-delay-2.in-view { transition-delay: .16s; }
.reveal-delay-3.in-view { transition-delay: .24s; }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 14px;
  display: inline-block;
}
.eyebrow-center { display: block; text-align: center; }
.eyebrow-on-dark { color: var(--yellow); }

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 54ch;
  line-height: 1.6;
}
.section-head { text-align: center; margin: 0 auto 56px; }
.section-head .section-lede { margin: 16px auto 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color .2s ease;
  border: 2px solid transparent;
}
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 161, 78, 0.5);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(0, 127, 91, 0.55); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(14,24,41,0.06);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(14,24,41,0.12); transform: translateY(-2px); }
.btn-text {
  padding: 0;
  border-radius: 0;
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.btn-text:hover { color: var(--green-deep); }

/* ---------- inline icons (footer, contact links) ---------- */
.icon { flex-shrink: 0; }
.btn-text .icon { text-decoration: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 238, 208, 0.97);
  border-bottom: 1px solid rgba(14,24,41,0.08);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(14,24,41,0.3); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 64px;
  height: 64px;
  margin: -14px 0;
  transform: rotate(-6deg);
  transition: transform .25s ease;
}
.brand:hover .brand-mark { transform: rotate(0deg) scale(1.06); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-on-dark .brand-name { color: var(--cream); }
.brand-mark-dark { filter: brightness(0) invert(1); }

.main-nav {
  display: flex;
  gap: 30px;
  margin: 0 auto 0 48px;
  font-weight: 600;
  font-size: 0.98rem;
}
.main-nav a { position: relative; padding: 4px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--green);
  transition: right .25s ease;
}
.main-nav a:hover::after { right: 0; }

.header-ctas { display: flex; gap: 14px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 32px 30px;
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(14,24,41,0.08);
}
.mobile-nav a { padding: 12px 4px; }
.mobile-nav hr { border: none; border-top: 1px solid rgba(14,24,41,0.12); margin: 10px 0 16px; }
.mobile-nav .btn { justify-content: center; margin-top: 10px; }
.mobile-nav.open { display: flex; }

@media (max-width: 900px) {
  .main-nav, .header-ctas { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 72px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

.hero-copy h1 { margin-top: 14px; }
.hero-lede {
  margin-top: 24px;
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.6;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-sub { margin-top: 22px; font-size: 0.95rem; color: var(--ink-soft); }
.hero-sub a { font-weight: 700; color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }

/* photo + stamp/tape wrapper pattern: overflow:visible so decorations can
   overhang the framed photo without ever being clipped */
.photo-stamp { position: relative; }
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.photo-frame img { border-radius: var(--radius); }

.hero-art { max-width: 560px; margin-left: auto; }
.hero-art .photo-frame { transform: rotate(1deg); }

.stamp { position: absolute; z-index: 3; pointer-events: none; }
.stamp-rot-1 { transform: rotate(-9deg); }
.stamp-rot-2 { transform: rotate(7deg); }

.stamp-on-hero {
  width: 143px;
  height: 143px;
  right: -28px;
  bottom: -26px;
  mix-blend-mode: multiply;
  opacity: 0.95;
}

.headline-stamp-wrap { position: relative; display: inline-block; }
.headline-stamp {
  width: 92px;
  height: 92px;
  right: -54px;
  top: -22px;
  opacity: 0.95;
}
@media (max-width: 560px) {
  .headline-stamp { width: 68px; height: 68px; right: -14px; top: -14px; }
}

/* marquee ticker */
.marquee {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--cream);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: marquee 46s linear infinite;
  padding-left: 100%;
}
.marquee-track .dot { color: var(--coral); font-size: 0.75rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ==========================================================================
   MASONRY WALL — tiles at a fixed 1:√2 aspect ratio, tiled edge-to-edge
   with no gaps or borders. Each image fills its tile completely (cropped
   via object-fit: cover); only the section's own boundary (overflow:hidden)
   may clip a tile that runs past the edge.
   ========================================================================== */
.wall {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.wall-grid {
  position: relative;
  width: 100%;
}
.w-tile {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  background: var(--blue-deep);
}
.w-tile-linked { cursor: pointer; }
.w-tile-linked .w-frame img { transition: transform .4s ease, opacity .3s ease; }
.w-tile-linked:hover .w-frame img { transform: scale(1.05); }
.w-tile .w-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.w-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .3s ease;
}
.w-shield { position: absolute; inset: 0; z-index: 2; background: transparent; }

.w-stamp {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-sizing: border-box;
}
.w-stamp img {
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  transform: scale(0.4) rotate(-14deg);
  mix-blend-mode: multiply;
}
.w-stamp.stamping img {
  animation: wStampThunk 0.7s cubic-bezier(.2,1.4,.4,1) forwards;
}
@keyframes wStampThunk {
  0% { opacity: 0; transform: scale(0.3) rotate(-18deg); }
  35% { opacity: 0.95; transform: scale(1.08) rotate(-6deg); }
  60% { opacity: 0.9; transform: scale(1) rotate(-6deg); }
  100% { opacity: 0; transform: scale(1) rotate(-6deg); }
}

.wall-cta {
  text-align: center;
  padding: 40px 0 0;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.wall-cta a { font-weight: 700; color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.wall-cta a:hover { color: var(--green-deep); }

/* ==========================================================================
   GENERIC SECTION
   ========================================================================== */
.section { position: relative; padding: 104px 0; }
@media (max-width: 900px) { .section { padding: 80px 0; } }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  background: var(--ink);
  color: var(--cream);
  padding: 72px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 0.96rem;
  color: rgba(251,238,208,0.75);
  max-width: 22ch;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
}

/* ==========================================================================
   WHOLESALE / WHERE TO BUY
   ========================================================================== */
.wholesale-section {
  background: var(--blue-deep);
  color: var(--cream);
}
.wholesale-section h2 { color: #fff; }
.wholesale-section .section-lede { color: rgba(251,238,208,0.85); }

.wholesale-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.tape {
  position: absolute;
  width: 88px;
  height: 34px;
  background: rgba(239, 193, 25, 0.85);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 3;
}
.tape-a { top: -15px; left: 26px; transform: rotate(-8deg); }
.tape-b { bottom: -15px; right: 26px; transform: rotate(-8deg); }

.check-list { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; max-width: 50ch; }
.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 1rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-list-compact { margin-bottom: 32px; }
.check-list-compact li::before { background: var(--green); color: #fff; }

.wholesale-ctas { margin-top: 36px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.wholesale-section .btn-text { color: var(--yellow); }
.wholesale-section .btn-text:hover { color: #fff; }

@media (max-width: 900px) {
  .wholesale-grid, .shop-grid { grid-template-columns: 1fr; gap: 52px; }
  .wholesale-photo { order: 2; }
}

/* ==========================================================================
   MAP
   ========================================================================== */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.map-frame iframe { display: block; }
.map-note { text-align: center; margin-top: 28px; color: var(--ink-soft); }

/* ==========================================================================
   HAIKU — a small mock-serious sign-off, styled like a postcard note
   ========================================================================== */
.haiku-section { padding: 8px 0 96px; }
.haiku-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 44px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.haiku-flourish {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 64px;
  height: auto;
  opacity: 0.25;
  transform: rotate(8deg);
  pointer-events: none;
}
.haiku-intro {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 auto 26px;
}
.haiku-poem {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.75;
  color: var(--ink);
}
.map-note a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--blue-deep); }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.page-hero { padding: 96px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-hero .section-lede { margin: 18px auto 0; }

.about-section { background: var(--cream); }
.about-section-first { padding-top: 72px; }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: center;
}
.about-photo .photo-frame { max-width: 420px; margin: 0 auto; transform: rotate(-1deg); }
.stamp-on-about {
  width: 122px;
  height: 122px;
  top: -18px;
  left: -18px;
  mix-blend-mode: multiply;
  opacity: 0.95;
}
.about-copy p { margin-top: 18px; font-size: 1.04rem; color: var(--ink-soft); line-height: 1.65; }
.about-copy p:first-of-type { margin-top: 12px; }
.about-copy p.eyebrow { margin-top: 0; margin-bottom: 10px; }
.about-copy h1, .about-copy h2 { margin: 0 0 20px; }
.signoff { font-weight: 700; color: var(--blue-deep); }
.about-links { margin-top: 24px; }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--blue-deep); }
.text-link:hover { color: var(--green-deep); }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.showcase-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}
.showcase-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-photo:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-photo:first-child { aspect-ratio: 4/5; }
}

.about-section + .about-section { padding-top: 0; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-section { background: var(--cream); padding-top: 32px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.contact-card p { color: var(--ink-soft); margin-bottom: 20px; }
.contact-card .btn { width: 100%; justify-content: center; }
.contact-card + .contact-card { }
.contact-grid-single { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding-top: 76px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(251,238,208,0.14);
}
.footer-brand p { margin-top: 18px; color: rgba(251,238,208,0.72); max-width: 32ch; line-height: 1.6; }
.footer-ctas { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.footer-inner .btn-ghost { background: rgba(251,238,208,0.12); color: var(--cream); }
.footer-inner .btn-ghost:hover { background: rgba(251,238,208,0.22); }

.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 13px; }
.footer-nav-title {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
}
.footer-nav a, .footer-contact a { color: rgba(251,238,208,0.82); font-size: 0.98rem; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact a.icon-link { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact a.icon-link .icon { opacity: 0.85; }

.footer-bottom {
  padding: 20px 32px 28px;
  font-size: 0.85rem;
  color: rgba(251,238,208,0.55);
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}

/* ==========================================================================
   RESPONSIVE — general
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { order: -1; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hero { padding-top: 64px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .wholesale-ctas { flex-direction: column; align-items: flex-start; }
  h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
}
