/* Gabriela Mendez Photography: colours and type carried over from the Big Cartel "Nova" theme. */
:root {
  --bg: #1a0909;
  --bg-raised: #241010;
  --text: #ff0000;
  --text-soft: #ff5a5a;
  --line: #ffffff;
  --line-soft: rgba(255, 255, 255, .22);
  --white: #ffffff;
  --font: "Abril Fatface", Georgia, "Times New Roman", serif;
  --gap: 16px;
  --wrap: 1240px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.45;
  min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text-soft); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
main.wrap { flex: 1; padding-top: 40px; padding-bottom: 72px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--bg); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.center { text-align: center; }
.muted { color: var(--text-soft); }

/* Header */
.header { border-bottom: 1px solid transparent; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 8px; }
.logo { font-size: clamp(20px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; flex: none; }
.cart-link svg { width: 24px; height: 21px; }
.nav ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding-top: 14px; padding-bottom: 14px; }
.nav a, .nav summary { font-size: 15px; cursor: pointer; padding: 4px 0; display: inline-block; }
.nav [aria-current="page"] { box-shadow: inset 0 -1px 0 var(--text); }
.nav::after { content: ""; display: block; width: 120px; height: 1px; background: var(--line); margin: 6px auto 0; }
.shop-menu { position: relative; }
.shop-menu summary { list-style: none; }
.shop-menu summary::-webkit-details-marker { display: none; }
.shop-menu summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.shop-menu details[open] summary::after { transform: translateY(0) rotate(-135deg); }
.shop-menu details > ul {
  position: absolute; z-index: 10; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  display: block; min-width: 190px; padding: 10px 0; background: var(--bg); border: 1px solid var(--line);
}
.shop-menu details > ul a { display: block; padding: 8px 18px; white-space: nowrap; }

/* Footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line-soft); }
.footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; font-size: 14px; }
.footer .ig svg { width: 30px; height: 30px; }

/* Shared type */
.page-title, .section-title { text-align: center; font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 32px; text-wrap: balance; }
.section-title { margin-top: 64px; }
.prose { max-width: 62ch; margin: 0 auto; font-size: 18px; }
.prose.center { text-align: center; }
.lede { text-align: center; max-width: 40ch; margin: -12px auto 40px; font-size: 20px; color: var(--text-soft); }

/* Buttons and fields */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border: 1px solid var(--line); background: transparent;
  color: var(--text); font: inherit; font-size: 16px; cursor: pointer; text-align: center;
  transition: background-color .15s ease, color .15s ease;
}
.button:hover { background: var(--text); color: var(--bg); }
.button-solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.button-solid:hover { background: var(--white); border-color: var(--white); color: var(--bg); }
.button:disabled { opacity: .5; cursor: progress; }
select, input[type="password"], input[type="search"], input[type="number"] {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 0;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.form-note { min-height: 1.4em; margin: 10px 0 0; font-size: 15px; }
.form-note.is-error { color: var(--white); }

/* Home */
.slideshow { position: relative; }
.slides { list-style: none; margin: 0; padding: 0; position: relative; height: min(78vh, 860px); background: var(--bg); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
.dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--white); }
.dot[aria-current="true"]::before { background: var(--text); }
.featured .button { margin-top: 40px; }

/* Product grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.card a { display: block; text-align: center; }
.card-img { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg-raised); margin-bottom: 14px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s ease; }
.card a:hover .card-img img { transform: scale(1.03); }
.card-name { display: block; font-size: 17px; line-height: 1.2; }
.card-price { display: block; margin-top: 4px; font-size: 15px; color: var(--white); }
.card-badge { display: none; margin-top: 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.card.is-sold-out .card-badge { display: block; }
.card.is-sold-out .card-price { display: none; }
.card.is-sold-out .card-img img { opacity: .55; }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.product-img img { width: 100%; }
.product-info { position: sticky; top: 24px; }
.product-info h1 { font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin: 0 0 8px; }
.product-info .price { margin: 0 0 24px; font-size: 20px; color: var(--white); }
.add-form { display: grid; gap: 14px; margin-bottom: 28px; }
.description { font-size: 15px; }
.description p { margin: 0 0 14px; }

/* Gallery: masonry columns that glide slowly up and down, neighbours moving in opposite directions.
   Each column is its own scroller; site.js drives the glide and hands a column over while someone scrolls it. */
.mm-gallery { width: 100vw; position: relative; left: 50%; margin-left: -50vw; padding: 0 48px; }
.mm-g4, .mm-g2 { --mm-h: min(88vh, 960px); display: flex; gap: 6px; align-items: flex-start; height: var(--mm-h); overflow: hidden; }
.mm-g2 { display: none; }
.mm-col { flex: 1 1 0; min-width: 0; height: 100%; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mm-col::-webkit-scrollbar { display: none; }
.mm-track { display: block; }
.mm-track > a, .mm-track > .mm-tile { display: block; line-height: 0; overflow: hidden; margin-bottom: 6px; }
.mm-track img { width: 100%; height: auto; display: block; transition: opacity .3s ease, transform .6s ease; }
.mm-track > a:hover img, .mm-track > .mm-tile:hover img { opacity: .85; transform: scale(1.02); }

/* Love Project */
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.video-card { position: relative; background: #000; aspect-ratio: 4 / 3; overflow: hidden; }
.video-play { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.video-play:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-card video { width: 100%; height: 100%; object-fit: contain; }
.video-card video { background: #000; display: block; }
.play-icon { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(26, 9, 9, .72); border: 1px solid var(--white); transition: background-color .15s ease, transform .15s ease; }
.play-icon::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 20px solid var(--white); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.video-play:hover .play-icon { background: var(--text); transform: scale(1.06); }

/* Cart */
.cart { max-width: 760px; margin: 0 auto; }
.cart-items { list-style: none; margin: 0 0 32px; padding: 0; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item img { width: 84px; aspect-ratio: 2 / 3; object-fit: cover; }
.cart-item-name { font-size: 18px; line-height: 1.2; }
.cart-item-meta { color: var(--white); font-size: 15px; margin-top: 4px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 40px; height: 40px; border: 0; background: none; color: var(--text); font: inherit; font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--text); color: var(--bg); }
.qty span { min-width: 32px; text-align: center; color: var(--white); }
.link-button { border: 0; background: none; color: var(--text-soft); font: inherit; font-size: 14px; cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.cart-summary { display: grid; gap: 12px; max-width: 380px; margin-left: auto; }
.cart-summary label { font-size: 15px; }
.cart-summary dl { margin: 8px 0; }
.cart-summary dl div { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary dt { margin: 0; }
.cart-summary dd { margin: 0; color: var(--white); font-variant-numeric: tabular-nums; }
.cart-summary .total { border-top: 1px solid var(--line-soft); padding-top: 12px; font-size: 20px; }

/* Admin */
.admin { max-width: 760px; margin: 0 auto; }
.admin-login { display: grid; gap: 12px; max-width: 360px; margin: 0 auto; }
.admin table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.admin th, .admin td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line-soft); }
.admin td input { width: 96px; min-height: 38px; padding: 6px 10px; }
.admin-filter { margin-top: 8px; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 24px; }
  .header-top { padding-top: 18px; }
  .nav ul { gap: 2px 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .card-name { font-size: 15px; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .product-info { position: static; }
  .slides { height: 62vh; }
  .mm-gallery { padding: 0 12px; }
  .mm-g4 { display: none; }
  .mm-g2 { --mm-h: 80vh; display: flex; gap: 4px; }
  .mm-track > a, .mm-track > .mm-tile { margin-bottom: 4px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .play-icon { width: 48px; height: 48px; }
  .play-icon::after { left: 19px; top: 14px; border-left-width: 15px; border-top-width: 9px; border-bottom-width: 9px; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img { width: 64px; }
  .cart-item-actions { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .cart-summary { max-width: none; }
}
@media (max-width: 420px) {
  .video-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .mm-g4, .mm-g2 { height: auto; overflow: visible; }
  .mm-col { height: auto; overflow: visible; }
}
