/* Maine the Way — homepage sections */
.mtw-home {
  --h-black: #131316; --h-white: #FFFFFF; --h-wispy: #F4F4F4; --h-smoke: #E5E5E8; --h-sky: #D7E2F2;
  --h-blueberry: #4C648E; --h-midnight: #283344; --h-seagrass: #D6D6AA; --h-muted: #5E6470;
  --h-head: "proxima-nova-extra-condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
  --h-sub: "courier-prime", "Courier Prime", "Courier New", monospace;
  --h-body: "canada-type-gibson", "Figtree", "Gill Sans", sans-serif;
  --h-pad: clamp(20px, 5vw, 72px);
  width: 100%; color: var(--h-black); font-family: var(--h-body);
}
.mtw-home *, .mtw-home *::before, .mtw-home *::after { box-sizing: border-box; }
.mtw-home a { text-decoration: none !important; }
.mtw-home img { display: block; }

/* type */
.mtw-home .mtw-home__kicker { font-family: var(--h-sub) !important; font-size: 13px !important; text-transform: uppercase; letter-spacing: .03em !important; color: var(--h-blueberry) !important; margin: 0 0 12px !important; line-height: 1.3 !important; }
.mtw-home .mtw-home__kicker--light { color: var(--h-sky) !important; }
.mtw-home .mtw-home__h1, .mtw-home .mtw-home__h2, .mtw-home .mtw-home__h3, .mtw-home .mtw-home__h4 {
  font-family: var(--h-head) !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: 0 !important; line-height: .95 !important; margin: 0 !important;
}
.mtw-home .mtw-home__h1 { font-size: clamp(52px, 7vw, 72px) !important; color: var(--h-white) !important; }
.mtw-home .mtw-home__h2 { font-size: clamp(36px, 4.4vw, 56px) !important; color: var(--h-black) !important; }
.mtw-home .mtw-home__h3 { font-size: clamp(28px, 2.6vw, 36px) !important; color: var(--h-black) !important; }
.mtw-home .mtw-home__h4 { font-size: 24px !important; color: var(--h-black) !important; }
.mtw-home .mtw-home__lede { font-family: var(--h-body) !important; font-weight: 300; font-size: 18px !important; line-height: 1.6 !important; letter-spacing: .025em; color: var(--h-white) !important; max-width: 600px; margin: 22px 0 32px !important; }
.mtw-home .mtw-home__meta, .mtw-home .mtw-home__place, .mtw-home .mtw-home__price, .mtw-home .mtw-home__more {
  font-family: var(--h-sub) !important; text-transform: uppercase; letter-spacing: .03em !important; font-size: 12px !important; line-height: 1.4 !important; margin: 0 !important; color: var(--h-muted) !important;
}
.mtw-home .mtw-home__meta-type { color: var(--h-blueberry); }
.mtw-home .mtw-home__price { font-size: 14px !important; color: var(--h-black) !important; display: flex; gap: 10px; }
.mtw-home .mtw-home__price s { color: var(--h-muted); }
.mtw-home .mtw-home__more { font-size: 13px !important; color: var(--h-black) !important; border-bottom: 1px solid var(--h-blueberry); padding-bottom: 2px; white-space: nowrap; }
.mtw-home .mtw-home__more:hover { color: var(--h-blueberry) !important; }

/* buttons */
.mtw-home__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.mtw-home .mtw-home__btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--h-head) !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0; font-size: 22px; line-height: 1; padding: 16px 28px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.mtw-home .mtw-home__btn::after { content: '→'; font-family: var(--h-sub); font-size: .8em; transition: transform .2s ease; }
.mtw-home .mtw-home__btn:hover { transform: translateY(-2px); }
.mtw-home .mtw-home__btn:hover::after { transform: translateX(4px); }
.mtw-home .mtw-home__btn--sky { background: var(--h-sky); color: var(--h-black) !important; }
.mtw-home .mtw-home__btn--sky:hover { background: var(--h-white); }
.mtw-home .mtw-home__btn--ghost { border: 2px solid var(--h-white); color: var(--h-white) !important; padding: 14px 26px; }
.mtw-home .mtw-home__btn--ghost:hover { background: var(--h-white); color: var(--h-black) !important; }

/* hero */
.mtw-home__hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; background: var(--h-midnight); overflow: hidden; }
.mtw-home__hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.mtw-home__hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(19,19,22,.85) 0%, rgba(19,19,22,.35) 45%, rgba(19,19,22,0) 75%); }
.mtw-home__hero-copy { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; padding: 160px var(--h-pad) clamp(40px, 7vw, 80px); }

/* sections */
.mtw-home__section { padding: clamp(56px, 8vw, 104px) 0; }
.mtw-home__section--white { background: var(--h-white); }
.mtw-home__section--sky { background: var(--h-sky); }
.mtw-home__section--print, .mtw-home__section--print + .mtw-home__section--white { border-top: 1px solid var(--h-smoke); }
.mtw-home__wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--h-pad); }
.mtw-home__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.mtw-home__grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.mtw-home__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mtw-home__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* story cards */
.mtw-home__story { display: flex; flex-direction: column; gap: 12px; }
.mtw-home__story-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--h-sky); margin-bottom: 4px; }
.mtw-home__story-img img, .mtw-home__product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mtw-home__story:hover img, .mtw-home__product:hover img { transform: scale(1.03); }
.mtw-home__story:hover .mtw-home__h3, .mtw-home__product:hover .mtw-home__h4 { color: var(--h-blueberry) !important; }

/* product cards */
.mtw-home__product { display: flex; flex-direction: column; gap: 10px; }
.mtw-home__product-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--h-wispy); margin-bottom: 4px; }
.mtw-home__section--sky .mtw-home__product-img { background: var(--h-white); }

@media (max-width: 1000px) {
  .mtw-home__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .mtw-home__grid--3 { grid-template-columns: 1fr; gap: 40px; }
  .mtw-home__hero { min-height: 640px; }
  .mtw-home__hero-copy { padding-top: 220px; }
  .mtw-home .mtw-home__h4 { font-size: 20px !important; }
  .mtw-home .mtw-home__btn { font-size: 20px; }
}

/* Squarespace wrapper: let the homepage fill its section edge to edge */
.page-section:has(#mtw-home) { padding: 0 !important; min-height: 0 !important; }
.page-section:has(#mtw-home) .content-wrapper { padding: 0 !important; max-width: none !important; }
.page-section:has(#mtw-home) .content { width: 100% !important; }
.fluid-engine:has(#mtw-home) { display: block !important; }
.fe-block:has(#mtw-home) { grid-area: auto !important; width: 100% !important; }
.sqs-block:has(#mtw-home), .sqs-block:has(#mtw-home) .sqs-block-content { padding: 0 !important; }

/* Phones: product rows become a swipeable rail (Dec 2, 2026) */
@media (max-width: 767px) {
  .mtw-home__rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--h-pad); gap: 16px; margin: 0 calc(-1 * var(--h-pad)); padding: 0 var(--h-pad) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mtw-home__rail::-webkit-scrollbar { display: none; }
  .mtw-home__rail > * { flex: 0 0 72%; scroll-snap-align: start; }
}
