/* ---------------------------------------
   VIUDA ALEGRE — storefront starter
   Drop licensed font files in /fonts and
   update the src paths below.
---------------------------------------- */

@font-face {
  font-family: "ChordBrights";
  src: url("fonts/ChordBrights.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Shillow";
  src: url("fonts/Shillow.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #0b0a0d;
  --ink-2: #121015;
  --ink-3: #1a171e;
  --bone: #eee8de;
  --paper: #d8d0c5;
  --muted: #918995;
  --line: #302b34;
  --blood: #861f2d;
  --acid: #a6a0aa;
  --headline: "ChordBrights", "Times New Roman", serif;
  --copy: "Shillow", "Garamond", "Georgia", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--copy);
  font-size: 17px;
  line-height: 1.55;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }

.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;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 108px;
  padding: 0 clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(238,232,222,.14);
  background: rgba(11,10,13,.92);
  backdrop-filter: blur(14px);
}
.brand {
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  letter-spacing: .04em;
}
.tagline {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.menu-toggle {
  width: 46px;
  height: 46px;
  padding: 11px 8px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 29px;
  height: 1px;
  background: var(--bone);
}
.header-actions {
  justify-self: end;
  display: flex;
  gap: 20px;
  align-items: center;
}
.icon-link {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.bag-count {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 10px;
}

/* DRAWER */
.drawer {
  position: fixed;
  z-index: 100;
  inset: 0 auto 0 0;
  width: min(430px, 90vw);
  padding: 28px;
  background: #0f0d11;
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  transition: transform .35s ease;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-title, .eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-close {
  border: 0;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
}
.menu-list, .submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-list > li {
  border-bottom: 1px solid var(--line);
}
.menu-list > li > a,
.submenu-toggle {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 16px 0;
  border: 0;
  background: transparent;
  font-family: var(--headline);
  font-size: 27px;
  cursor: pointer;
  text-align: left;
}
.sale-link { color: #d64f5f; }
.submenu {
  display: none;
  padding: 0 0 14px 16px;
}
.submenu.open { display: block; }
.submenu a {
  display: block;
  padding: 8px 0;
  color: var(--paper);
}
.drawer-social {
  margin-top: 35px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(0,0,0,.7);
}

/* HERO */
.hero {
  min-height: calc(100vh - 92px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  padding: clamp(65px, 8vw, 120px) clamp(24px, 7vw, 110px);
  background:
    radial-gradient(circle at 70% 45%, rgba(134,31,45,.19), transparent 30%),
    linear-gradient(135deg, #0b0a0d 20%, #151117 100%);
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.03) 4px 5px);
  mix-blend-mode: screen;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero h1 {
  margin: 12px 0 22px;
  max-width: 820px;
  font-family: var(--headline);
  font-size: clamp(56px, 7.8vw, 126px);
  font-weight: 400;
  line-height: .85;
  letter-spacing: -.025em;
}
.hero h1 em {
  color: transparent;
  -webkit-text-stroke: 1px var(--bone);
  font-style: normal;
}
.hero-copy {
  max-width: 610px;
  color: #bbb2be;
  font-size: clamp(17px, 1.55vw, 22px);
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-block;
  padding: 13px 19px;
  border: 1px solid var(--bone);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: .2s ease;
}
.btn-primary {
  background: var(--bone);
  color: var(--ink);
}
.btn-primary:hover { background: white; }
.btn-ghost:hover { background: var(--bone); color: var(--ink); }
.btn-light { background: var(--bone); color: var(--ink); }
.hero-art {
  position: relative;
  min-height: 570px;
}
.moon {
  position: absolute;
  width: min(31vw, 410px);
  aspect-ratio: 1;
  border-radius: 50%;
  left: 50%;
  top: 48%;
  transform: translate(-50%,-50%);
  border: 1px solid #49414b;
  box-shadow:
    0 0 0 30px rgba(255,255,255,.015),
    0 0 110px rgba(134,31,45,.3),
    inset -50px -20px 100px rgba(0,0,0,.7);
}
.moon::before,
.moon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #17131a;
  opacity: .7;
}
.moon::before { width: 18%; height: 18%; left: 22%; top: 28%; }
.moon::after { width: 10%; height: 10%; right: 25%; top: 18%; }
.frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(20vw, 270px);
  aspect-ratio: .72;
  border: 1px solid #5c515e;
  transform: translate(-50%,-50%) rotate(7deg);
}
.frame::before {
  content: "VA";
  position: absolute;
  inset: 13px;
  display: grid;
  place-items: center;
  border: 1px solid #3b343d;
  font-family: var(--headline);
  font-size: 85px;
  color: rgba(238,232,222,.08);
}
.frame-two {
  transform: translate(-47%,-52%) rotate(-6deg);
  opacity: .5;
}
.thorn {
  position: absolute;
  color: #5b515d;
  font-size: 28px;
}
.thorn-left { left: 12%; top: 28%; }
.thorn-right { right: 12%; bottom: 24%; }

/* MARQUEE */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0e0c10;
}
.marquee-track {
  min-width: max-content;
  display: flex;
  gap: 34px;
  align-items: center;
  padding: 14px 0;
  animation: crawl 28s linear infinite;
  font-size: 12px;
  letter-spacing: .18em;
}
.marquee b { color: var(--blood); }
@keyframes crawl {
  from { transform: translateX(0); }
  to { transform: translateX(-32%); }
}

/* CATEGORIES */
.split-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}
.category-panel {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: end;
  padding: clamp(28px, 5vw, 70px);
  overflow: hidden;
}
.category-panel:first-child { border-right: 1px solid var(--line); }
.category-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .65;
  transition: transform .5s ease;
}
.goth-panel::before {
  background:
    radial-gradient(circle at 72% 24%, rgba(134,31,45,.36), transparent 25%),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(255,255,255,.017) 38px 39px),
    #111014;
}
.vintage-panel::before {
  background:
    radial-gradient(circle at 20% 25%, rgba(216,208,197,.08), transparent 23%),
    linear-gradient(155deg, #17131a, #0c0b0e 60%);
}
.category-panel:hover::before { transform: scale(1.025); }
.category-content { position: relative; z-index: 2; max-width: 520px; }
.category-panel h2,
.section-heading h2,
.manifesto h2,
.sale-banner h2,
.newsletter h2,
.instagram h2 {
  font-family: var(--headline);
  font-weight: 400;
}
.category-panel h2 {
  margin: 0;
  font-size: clamp(56px, 6vw, 95px);
}
.category-panel p:not(.eyebrow) { color: #aaa1ad; max-width: 430px; }
.text-link {
  display: inline-block;
  margin-top: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #615765;
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* SECTIONS */
.section-pad { padding: clamp(72px, 9vw, 130px) clamp(22px, 6vw, 90px); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}
.section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(46px, 5vw, 76px);
  line-height: .9;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-image {
  aspect-ratio: .78;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.04), transparent),
    #151218;
  overflow: hidden;
}
.product-image span {
  color: rgba(238,232,222,.18);
  font-size: 11px;
  letter-spacing: .2em;
}
.p2 { background-color: #191318; }
.p3 { background-color: #141419; }
.p4 { background-color: #171216; }
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 13px;
  border-top: 1px solid transparent;
}
.product-meta h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}
.product-meta p {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

/* MANIFESTO */
.manifesto {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(30px, 7vw, 120px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0d0b0f;
}
.manifesto-mark {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-family: var(--headline);
  font-size: clamp(100px, 15vw, 230px);
  color: #221c24;
  background:
    radial-gradient(circle at 50% 50%, rgba(134,31,45,.14), transparent 42%);
}
.manifesto h2 {
  margin: 10px 0 25px;
  max-width: 800px;
  font-size: clamp(44px, 5vw, 74px);
  line-height: .95;
}
.manifesto-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: #aaa1ad;
  font-size: 19px;
}

/* SALE */
.sale-banner {
  padding: clamp(45px, 6vw, 85px) clamp(22px, 6vw, 90px);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  background: var(--blood);
}
.sale-banner .eyebrow { color: #d7b9be; }
.sale-banner h2 {
  margin: 0;
  font-size: clamp(72px, 10vw, 150px);
  line-height: .75;
}
.sale-banner p:not(.eyebrow) { margin-bottom: 0; }

/* INSTAGRAM */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ig-tile {
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(134,31,45,.13), transparent 35%),
    #121014;
  transition: transform .2s ease, border-color .2s ease;
}
.ig-tile:hover {
  transform: translateY(-4px);
  border-color: #5d5360;
}
.ig-tile span {
  color: #7f7581;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.embed-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 16px;
}

/* NEWSLETTER */
.newsletter {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 110%, rgba(134,31,45,.22), transparent 36%),
    #0c0a0d;
}
.newsletter h2 {
  max-width: 850px;
  margin: 12px auto 30px;
  font-size: clamp(40px, 5vw, 70px);
  line-height: .98;
}
.newsletter-form {
  max-width: 670px;
  margin: 0 auto;
  display: flex;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 15px;
  border: 1px solid #443b47;
  border-right: 0;
  background: #0b090c;
  color: var(--bone);
  outline: 0;
}
.newsletter-form button {
  padding: 0 22px;
  border: 1px solid var(--bone);
  background: var(--bone);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* FOOTER */
.site-footer {
  padding: 70px clamp(22px, 6vw, 90px) 30px;
}
.footer-brand .brand-name { font-size: clamp(35px, 5vw, 70px); }
.footer-brand p { color: var(--muted); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 30px;
  max-width: 650px;
  margin: 60px 0;
}
.footer-links h3 {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.footer-links a { display: block; margin: 8px 0; }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* MOBILE */
@media (max-width: 900px) {
  .site-header { grid-template-columns: 46px 1fr auto; height: 92px; }
  .tagline { display: none; }
  .header-actions .icon-link:first-child { display: none; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 90px;
  }
  .hero-art {
    min-height: 420px;
    margin-top: 30px;
  }
  .moon { width: min(70vw, 360px); }
  .frame { width: min(45vw, 240px); }

  .split-categories { grid-template-columns: 1fr; }
  .category-panel:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .category-panel { min-height: 480px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-mark { min-height: 260px; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .site-header { padding: 0 14px; }
  .brand-name { font-size: 20px; }
  .icon-link { font-size: 11px; }
  .hero h1 { font-size: clamp(52px, 17vw, 78px); }
  .hero-art { min-height: 350px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }

  .section-heading { align-items: start; flex-direction: column; }
  .product-grid { grid-template-columns: 1fr; gap: 35px; }
  .sale-banner { align-items: start; flex-direction: column; }
  .instagram-grid { grid-template-columns: 1fr 1fr; }

  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input {
    border-right: 1px solid #443b47;
  }
  .newsletter-form button { padding: 14px 22px; }

  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}


/* Uploaded brand assets */
.brand-banner {
  display: block;
  width: clamp(220px, 36vw, 520px);
  height: auto;
  max-width: 100%;
}

.footer-banner {
  display: block;
  width: clamp(220px, 30vw, 440px);
  height: auto;
  max-width: 100%;
  margin-bottom: 10px;
}

.blog-mark-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  background: #0f0d11;
}

.blog-mark-icon {
  width: 100%;
  max-width: 128px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #08080a;
}

.blog-mark h3 {
  margin: 0 0 10px 0;
  font-family: var(--headline);
  font-weight: 400;
  font-size: 32px;
}

.blog-mark p {
  margin: 0;
  color: #aaa1ad;
}

@media (max-width: 900px) {
  .brand-banner {
    width: clamp(170px, 42vw, 340px);
  }
}

@media (max-width: 560px) {
  .brand-banner {
    width: 160px;
  }
  .blog-mark-card {
    grid-template-columns: 1fr;
  }
  .blog-mark-icon {
    max-width: 110px;
  }
}