/* =========================================================
   LOOM & LINEN — PREMIUM HANDMADE KNITWEAR
   ========================================================= */

:root {
  --bg: #f4f1ec;
  --bg-light: #faf9f7;
  --bg-warm: #eeeae3;
  --text: #22201d;
  --muted: #6f6a63;
  --border: #d5d0c8;
  --soft: #e8e3db;
  --dark: #25231f;
  --white: #fff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --container: 1320px;
  --transition: 0.45s cubic-bezier(.2,.65,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open,
body.modal-open { overflow: hidden; }

img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }
::selection { background: var(--text); color: var(--white); }

.container {
  width: min(calc(100% - 96px), var(--container));
  margin-inline: auto;
}
.container.narrow { width: min(calc(100% - 96px), 1040px); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow.light { color: rgba(255,255,255,.82); }

h1, h2, h3 { font-family: var(--serif); }
h2 { font-size: clamp(32px, 3.1vw, 46px); line-height: .98; }
h3 { line-height: 1.05; }

.announcement {
  position: relative;
  z-index: 20;
  height: 25px;
  display: grid;
  place-items: center;
  background: var(--bg-warm);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .06em;
}

.site-header {
  position: absolute;
  z-index: 15;
  top: 25px;
  left: 0;
  width: 100%;
  color: var(--white);
  transition: background .35s ease, color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.site-header.scrolled {
  position: fixed;
  top: 0;
  background: rgba(244,241,236,.96);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(34,32,29,.08);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.desktop-nav,
.header-tools {
  display: flex;
  align-items: center;
  gap: 22px;
}
.desktop-nav a,
.tool-link {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: opacity .25s ease;
}
.desktop-nav a:hover,
.tool-link:hover { opacity: .58; }
.header-tools { justify-content: flex-end; }
.brand-mark { display: inline-flex; justify-content: center; }
.brand-circle {
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1;
}
.icon-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mobile-menu-toggle { display: none; }
.cart-count { margin-left: 3px; }

.hero {
  position: relative;
  min-height: 700px;
  height: min(82vh, 780px);
  color: var(--white);
  overflow: hidden;
}
.hero-image,
.story-banner > img,
.promo-banner > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}
.hero-image { object-position: center 45%; }
.hero-overlay,
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(35,31,27,.28);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(700px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 320px;
  text-align: center;
}
.hero-content h1 {
  margin: 0 auto 17px;
  font-size: clamp(48px, 5.5vw, 78px);
  line-height: .88;
  letter-spacing: -.025em;
}
.hero-content > p:not(.eyebrow) {
  width: min(500px, 100%);
  margin: 0 auto 27px;
  color: rgba(255,255,255,.9);
  font-size: 11px;
}
.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-scroll span { font-size: 13px; }

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border: 1px solid currentColor;
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-light:hover { background: var(--white); color: var(--text); }

.section { padding: 105px 0; }
.arrivals { background: var(--bg); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}
.section-head h2 { margin-bottom: 5px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.text-link span { font-size: 13px; }

.slider-controls {
  display: flex;
  gap: 8px;
}
.circle-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.circle-arrow:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

.product-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.product-slider::-webkit-scrollbar { display: none; }
.product-card {
  min-width: 0;
  scroll-snap-align: start;
  transition: transform .4s ease;
}
.product-card:hover { transform: translateY(-4px); }
.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: var(--soft);
}
.product-image-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.65,.2,1);
}
.product-card:hover img { transform: scale(1.045); }
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 7px;
  background: rgba(250,249,247,.9);
  font-size: 7px;
  text-transform: uppercase;
}
.quick-view {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 12px);
  opacity: 0;
  border: 1px solid var(--text);
  background: var(--bg-light);
  padding: 9px 14px;
  cursor: pointer;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: opacity .3s ease, transform .3s ease;
}
.product-card:hover .quick-view { opacity: 1; transform: translate(-50%, 0); }
.product-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
}
.product-info h3 {
  margin-bottom: 3px;
  font-size: 17px;
}
.product-info p,
.product-info strong {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 400;
}
.product-info strong { color: var(--text); }

.values { background: var(--bg-light); }
.center-heading {
  max-width: 600px;
  margin: 0 auto 55px;
  text-align: center;
}
.center-heading h2 { margin-bottom: 15px; }
.center-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.value-item {
  min-height: 175px;
  padding: 30px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.value-item:last-child { border-right: 0; }
.line-icon {
  height: 38px;
  margin-bottom: 13px;
  font-family: var(--serif);
  font-size: 29px;
}
.value-item h3 { margin-bottom: 6px; font-size: 19px; }
.value-item p { margin: 0; color: var(--muted); font-size: 9px; }

.promo-banner,
.story-banner {
  position: relative;
  min-height: 540px;
  color: var(--white);
  overflow: hidden;
}
.promo-banner > img { object-position: center; }
.promo-content,
.story-content {
  position: relative;
  z-index: 2;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}
.promo-number {
  font-family: var(--serif);
  font-size: 76px;
  line-height: .7;
}
.promo-off {
  margin: 11px 0 14px;
  font-family: var(--serif);
  font-size: 25px;
}
.promo-content h2 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 52px); }
.promo-content > p:not(.eyebrow):not(.promo-off) {
  margin-bottom: 22px;
  color: rgba(255,255,255,.88);
  font-size: 10px;
}

.collections { background: var(--bg); }
.collection-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 10px;
}
.collection-large { grid-row: span 2; }
.collection-tile {
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.collection-tile img {
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.collection-tile:hover img { transform: scale(1.045); }
.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,18,15,.48), rgba(20,18,15,.02) 65%);
  transition: background .4s ease;
}
.collection-tile:hover .tile-overlay { background: linear-gradient(to top, rgba(20,18,15,.6), rgba(20,18,15,.05) 70%); }
.tile-content {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 19px;
  transition: transform .4s ease;
}
.collection-tile:hover .tile-content { transform: translateY(-4px); }
.tile-content span,
.tile-content small {
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tile-content h3 {
  margin: 5px 0 7px;
  font-size: clamp(21px, 2vw, 30px);
}
.collection-tile:not(.collection-large) .tile-content h3 { font-size: 24px; }

.testimonial { background: var(--bg-light); }
.testimonial-inner {
  min-height: 300px;
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  align-items: center;
  gap: 30px;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 150px;
  line-height: .5;
  color: var(--soft);
}
.testimonial-slider { position: relative; min-height: 170px; }
.testimonial-slide {
  display: none;
  margin: 0;
  max-width: 650px;
}
.testimonial-slide.active {
  display: block;
  animation: fadeIn .5s ease;
}
.testimonial-slide > p {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 35px);
  line-height: 1.05;
  font-style: italic;
}
.testimonial-slide footer { display: flex; flex-direction: column; gap: 2px; }
.testimonial-slide footer strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.testimonial-slide footer span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.testimonial-controls { display: flex; justify-content: flex-end; gap: 8px; }

.journal { background: var(--bg); }
.journal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
.journal-card { min-width: 0; }
.journal-card + .journal-card { border-left: 1px solid var(--border); padding-left: 18px; }
.journal-image {
  display: block;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  margin-bottom: 18px;
}
.journal-feature .journal-image { aspect-ratio: 1.48 / 1; }
.journal-image img {
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.journal-card:hover .journal-image img { transform: scale(1.04); }
.journal-card h3 { margin-bottom: 9px; font-size: 26px; }
.journal-card p:not(.eyebrow) { max-width: 470px; margin-bottom: 14px; color: var(--muted); font-size: 9px; }
.read-more {
  font-size: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
}

.story-banner { min-height: 520px; }
.story-banner > img { object-position: center 55%; }
.story-content { min-height: 520px; }
.story-content h2 { margin-bottom: 13px; font-size: clamp(39px, 5vw, 62px); line-height: .9; }
.story-content > p:not(.eyebrow) { max-width: 510px; margin: 0; color: rgba(255,255,255,.88); font-size: 10px; }

.instagram { background: var(--bg-light); padding-bottom: 85px; }
.insta-symbol { margin-top: 5px; font-family: var(--serif); font-size: 26px; }
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.instagram-grid a { overflow: hidden; aspect-ratio: 1; }
.instagram-grid img {
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}
.instagram-grid a:hover img { transform: scale(1.07); }
.instagram-caption { margin: 15px 0 0; text-align: center; color: var(--muted); font-size: 8px; }

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 90px;
  padding-top: 62px;
  padding-bottom: 55px;
}
.newsletter h2 {
  max-width: 470px;
  margin-bottom: 22px;
  font-size: 30px;
}
.newsletter-form {
  width: min(100%, 440px);
  display: flex;
  border-bottom: 1px solid var(--text);
}
.newsletter-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--text);
  font-size: 9px;
}
.newsletter-form button {
  border: 0;
  background: transparent;
  padding: 12px 0 12px 18px;
  cursor: pointer;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.form-message { min-height: 15px; margin: 8px 0 0; font-size: 8px; color: var(--muted); }
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.footer-links > div { border-left: 1px solid var(--border); padding-left: 30px; }
.footer-links a { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 7px;
}
.footer-bottom p { margin: 0; }
.footer-logo { color: var(--text); }
.social-links { display: flex; justify-content: flex-end; gap: 13px; }
.social-links a { color: var(--text); font-size: 7px; }

.search-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(34,32,29,.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.search-modal.open { opacity: 1; visibility: visible; }
.search-box {
  width: min(650px, 100%);
  padding: 55px;
  background: var(--bg-light);
}
.search-box input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--text);
  outline: 0;
  background: transparent;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 32px;
}
.search-hint { margin: 10px 0 0; color: var(--muted); font-size: 9px; }
.search-close {
  position: absolute;
  top: 25px;
  right: 30px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 34px;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-light);
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.2,.65,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 30px;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.mobile-menu nav a { font-family: var(--serif); font-size: 36px; }
.mobile-menu-note { position: absolute; bottom: 35px; color: var(--muted); font-size: 9px; }

.back-top {
  position: fixed;
  z-index: 10;
  right: 20px;
  bottom: 20px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: rgba(250,249,247,.9);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.back-top.visible { opacity: 1; visibility: visible; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .product-slider { grid-auto-columns: calc((100% - 16px) / 2); }
  .collection-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 220px 220px; }
  .collection-large { grid-row: span 1; grid-column: span 2; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .value-item:nth-child(2) { border-right: 0; }
  .value-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .testimonial-inner { grid-template-columns: 90px 1fr 100px; }
  .journal-grid { grid-template-columns: 1fr 1fr; }
  .journal-feature { grid-column: span 2; }
  .journal-card + .journal-card { border-left: 0; padding-left: 0; }
  .footer-top { gap: 45px; }
}

@media (max-width: 767px) {
  body { font-size: 11px; }
  .container, .container.narrow { width: min(calc(100% - 32px), var(--container)); }
  .announcement { height: 23px; font-size: 7px; }
  .site-header { top: 23px; }
  .header-inner { min-height: 65px; grid-template-columns: 1fr auto 1fr; }
  .desktop-nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .mobile-menu-toggle span { display: block; width: 19px; height: 1px; background: currentColor; }
  .header-tools { gap: 0; }
  .hide-mobile, .search-trigger { display: none; }
  .tool-link { font-size: 8px; }
  .hero {
    min-height: 600px;
    height: 82vh;
  }
  .hero-image { object-position: 57% center; }
  .hero-content { padding-top: 255px; }
  .hero-content h1 { font-size: clamp(42px, 12vw, 56px); }
  .hero-content > p:not(.eyebrow) { font-size: 10px; }
  .section { padding: 72px 0; }
  .section-head { align-items: end; margin-bottom: 25px; }
  .section-head h2 { font-size: 34px; }
  .slider-controls { gap: 5px; }
  .circle-arrow { width: 35px; height: 35px; }
  .product-slider { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; }
  .product-info { align-items: start; }
  .product-info h3 { font-size: 16px; }
  .product-info p, .product-info strong { font-size: 7px; }
  .quick-view { display: none; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .value-item { min-height: 155px; padding: 25px 12px; }
  .value-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .value-item:nth-child(even) { border-right: 0; }
  .promo-banner, .story-banner { min-height: 480px; }
  .promo-content, .story-content { min-height: 480px; }
  .promo-number { font-size: 66px; }
  .promo-content h2 { font-size: 39px; }
  .collection-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 190px 190px;
    gap: 7px;
  }
  .collection-large { grid-column: span 2; }
  .tile-content { left: 13px; right: 13px; bottom: 13px; }
  .tile-content h3 { font-size: 21px !important; }
  .testimonial-inner {
    min-height: 360px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .quote-mark { height: 40px; font-size: 90px; }
  .testimonial-slider { min-height: 170px; }
  .testimonial-controls { justify-content: flex-start; }
  .testimonial-slide > p { font-size: 28px; }
  .journal-grid { grid-template-columns: 1fr; gap: 40px; }
  .journal-feature { grid-column: auto; }
  .journal-card + .journal-card { border-top: 1px solid var(--border); padding-top: 30px; }
  .journal-card h3 { font-size: 27px; }
  .story-content h2 { font-size: 44px; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .footer-top { grid-template-columns: 1fr; gap: 45px; padding-top: 50px; }
  .newsletter h2 { font-size: 27px; }
  .footer-links { gap: 20px; }
  .footer-links > div { padding-left: 17px; }
  .footer-bottom {
    min-height: 100px;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo social" "copy copy";
    row-gap: 12px;
    padding: 18px 0;
  }
  .footer-logo { grid-area: logo; justify-self: start; }
  .social-links { grid-area: social; }
  .footer-bottom p { grid-area: copy; }
  .search-box { padding: 35px 22px; }
  .search-box input { font-size: 27px; }
}

@media (max-width: 390px) {
  .product-slider { grid-auto-columns: 82%; }
  .hero-content { padding-top: 235px; }
  .collection-grid { grid-template-rows: 275px 175px 175px; }
}

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