/* Self-hosted variable fonts — see brand.reset.club/fonts/README.md */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://brand.reset.club/fonts/inter/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('https://brand.reset.club/fonts/jetbrains-mono/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
}

/* ============================================
   RESET CLUB — Stay Drops v5
   Matching 2026.reset.club/drops design
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-ink: #000000;
  --color-sand: #fcf6e9;
  --text-micro: 9px;
  --text-body: 18px;
  --text-heading: 36px;
}

html {
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-body);
  line-height: 1.5;
  background: var(--color-sand);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  min-width: 100%;
}

/* Nav — fixed, fades on scroll */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  box-sizing: border-box;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  pointer-events: none;
  background-color: var(--color-sand);
}
/* At 1024px+, match .section-inner's 48px inner padding and grow with
   viewport width so nav content aligns with the centered 1200px column:
   (100% - 1200) / 2 is the outer gutter, + 48px is section-inner padding */
@media (min-width: 1024px) {
  nav {
    padding-top: 16px;
    padding-bottom: 16px;
    padding-inline: max(48px, calc((100% - 1200px) / 2 + 48px));
  }
}
nav a, nav span { pointer-events: auto; }
.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-dot {
  font-size: var(--text-body);
  font-weight: 700;
  opacity: 0.5;
}
nav.hidden {
  opacity: 0;
  transform: translateY(-100%);
}
/* Join card — compact form inside current section */
.join-card {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 24px;
  box-sizing: border-box;
}
@media (min-width: 641px) {
  .join-card { padding: 16px 24px 24px; }
}
@media (min-width: 1024px) {
  .join-card { padding: 16px 48px 24px; }
}
/* When nav is inside join card, remove fixed positioning artifacts */
.join-card nav {
  position: relative !important;
  top: auto !important;
}
.join-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .join-fields { grid-template-columns: 1fr; }
}
.join-fields input {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 3px solid currentColor;
  color: inherit;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}
.join-fields input::placeholder {
  color: inherit;
  opacity: 0.35;
}
.join-fields input:focus {
  border-bottom-color: currentColor;
  opacity: 1;
}
#join-submit {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-body);
  font-weight: 700;
  border: none;
  padding: 12px 48px;
  cursor: pointer;
  border-radius: 0;
}
#join-submit:hover { opacity: 0.8; }
#join-submit:disabled { opacity: 0.4; cursor: default; }
#join-success {
  font-size: var(--text-body);
  font-weight: 700;
  margin: 0;
  padding: 8px 0;
}

.nav-logo {
  font-size: var(--text-body);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
  color: inherit;
}
.nav-breadcrumb {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.5;
}
.nav-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

/* Sections */
.section {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section-inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 80px 24px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .section-inner { padding: 80px 48px 48px; }
}

/* Scaled title — T2 */
.text-scaled {
  font-size: clamp(48px, 12vw, 160px);
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  margin-left: -0.07em;
}
/* T1 — Hero Full (reset-site uses 35.5cqi with system font; Inter is wider, so adjusted) */
.text-scaled-full {
  font-size: 33.5cqi;
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-left: calc(-0.05em - 2px);
  margin-bottom: 24px;
}

/* Season meta */
.section-meta {
  font-size: var(--text-body);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Inline toggle — replaces group heading */
.toggle-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.drop-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 3rem;
  padding: 4px;
  border-radius: 1.5rem;
  border: 3px solid currentColor;
  cursor: pointer;
  width: 20rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 200ms ease-in-out;
}

.drop-toggle-selector {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 1.25rem;
  transition: transform 200ms ease-in-out, background-color 200ms ease-in-out;
  pointer-events: none;
}

.drop-toggle-option {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 200ms ease-in-out;
}
/* Hero section — matches reset-site exactly */
.hero-container {
  container-type: inline-size;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 16px 16px 32px;
}
@media (min-width: 1024px) {
  .hero-container { padding: 16px 48px 32px; }
}
.hero-desc {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.hero-nav {
  margin-top: 16px;
}

.hero-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 3px solid currentColor;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.hero-option:first-child {
  border-top: none;
}
.hero-option:hover {
  opacity: 0.7;
}
.hero-option-label {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}
.hero-logo {
  flex-shrink: 0;
}
.hero-logo svg {
  width: 100px;
  height: 100px;
}
.hero-option-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 3px solid currentColor;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 12px;
  vertical-align: middle;
}
.hero-option-arrow {
  flex-shrink: 0;
}
.hero-option-arrow svg {
  width: 28px;
  height: 28px;
  transition: transform 0.15s ease;
}
.hero-option:hover .hero-option-arrow svg {
  transform: translateX(4px);
}

/* Day toggle */
.day-toggle {
  width: 10rem;
}

.section-description {
  font-size: var(--text-body);
  font-weight: 500;
  max-width: 480px;
  margin-bottom: 32px;
}

/* Day type groups */
.group-heading {
  font-size: var(--text-heading);
  font-weight: 700;
  padding-top: 12px;
  padding-bottom: 4px;
}
.group-heading.sold-out {
  opacity: 0.4;
  text-decoration: line-through;
}
.group-sold-label {
  font-size: var(--text-body);
  font-weight: 700;
  opacity: 0.4;
}

/* Sold out row */
.sold-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 3px solid currentColor;
  opacity: 0.4;
}

/* Drops grid — single shared grid per day-type group */
/* Col: property | days | sep | dates | sep | nights | tag | spacer | price | arrow */
.drops-grid {
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto 1fr auto auto;
  align-items: baseline;
}

/* Property name — first column, only on first row per property */
.drop-prop {
  font-size: var(--text-body);
  font-weight: 700;
  white-space: nowrap;
  padding-right: 16px;
  padding-top: 8px;
  align-self: start;
}

/* Full-width divider between properties */
.property-divider {
  grid-column: 1 / -1;
  border-bottom: 3px solid currentColor;
}
/* Collapse double border: last inner row + divider */
.drop-row-inner + .property-divider,
.drop-row + .property-divider {
  margin-top: -3px;
}
/* Hide divider if it's the first visible child (no content above it) */
.drops-grid > .property-divider:first-child {
  display: none;
}

/* Drop rows */
/* Drop rows span columns 2-8 (after property name column) */
.drop-row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 2 / -1;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
  cursor: pointer;
  align-items: baseline;
}
.drop-row:hover { opacity: 0.7; }

/* Divider between rows within same property (same column span as drop-row, not full width) */
.drop-row-inner {
  border-bottom: 3px solid currentColor;
  grid-column: 2 / -1;
}

.drop-days,
.drop-dates,
.drop-nights,
.drop-tag,
.drop-sep,
.drop-price {
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}
.drop-sep {
  padding: 0 8px;
}
.drop-tag {
  padding-left: 8px;
}

/* Tag flip — quick rotateX cycle when a property has multiple drops_tags */
.tag-flipping {
  animation: tagFlipX 400ms ease-in-out;
}
@keyframes tagFlipX {
  0%   { transform: rotateX(0deg); }
  50%  { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tag-flipping { animation: none; }
}
.nights-short {
  display: none;
}
.drop-price {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
}
.drop-spacer {
  min-width: 0;
}
.drop-row-sold {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}
.drop-row-sold .drop-days,
.drop-row-sold .drop-sep,
.drop-row-sold .drop-dates,
.drop-row-sold .drop-nights {
  text-decoration: line-through;
}

svg.drop-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.15s ease;
}
.drop-row:hover svg.drop-arrow {
  transform: translateX(4px);
}

/* Mobile layout */
@media (max-width: 640px) {
  .drop-tag {
    display: none;
  }
  .nights-long {
    display: none;
  }
  .nights-short {
    display: inline;
  }
  .day-toggle {
    width: 9rem;
  }
  .drops-grid {
    grid-template-columns: auto 1fr;
  }
  .drop-prop {
    padding-right: 10px;
    grid-column: 1;
  }
  .drop-row {
    display: flex;
    grid-column: 2;
    align-items: baseline;
  }
  .drop-price {
    margin-left: auto;
  }
  .property-divider {
    grid-column: 1 / -1;
  }
  .section-inner {
    padding-top: 72px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .drop-sep {
    padding: 0 3px;
  }
  svg.drop-arrow {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    flex-shrink: 0;
  }
  .text-scaled {
    font-size: clamp(36px, 12vw, 160px);
  }
  .group-heading {
    font-size: 24px;
    padding-top: 8px;
    padding-bottom: 2px;
  }
}

/* Fallback for browsers without subgrid */
@supports not (grid-template-columns: subgrid) {
  .drops-grid {
    display: flex;
    flex-direction: column;
  }
  .drop-row {
    display: flex;
    gap: 0 8px;
  }
  .drop-spacer { flex: 1; }
  .drop-price { padding-left: 0; }
}
/* Down arrow button */
.scroll-btn {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding: 24px 0 16px;
  width: 100%;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  transition: opacity 0.15s ease;
}
.scroll-btn:hover { opacity: 0.7; }
.scroll-btn.bounce {
  animation: dropsBounce 1.5s ease 0.5s 1;
}
@keyframes dropsBounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-12px); }
  60% { transform: translateY(4px); }
}

/* Rainbow gradient background — cycles through brand colors */
.rainbow-bg {
  background: linear-gradient(135deg, #ffc974, #ff551e, #008f4c, #3f65f6, #31e898, #ffc974);
  background-size: 400% 400%;
  animation: rainbowShift 12s ease infinite;
}
@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 100%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

/* Fade in drops */
.drops-content {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drops-content.loaded { opacity: 1; }

/* Footer */
.footer-row {
  margin-top: auto;
  padding-top: 48px;
}
.footer-top {
  margin-bottom: 12px;
}
.footer-brand {
  font-size: var(--text-body);
  font-weight: 700;
}
.footer-line {
  width: 100%;
  height: 3px;
  background: currentColor;
  margin-bottom: 12px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-links {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-links a {
  color: inherit;
  text-decoration: none;
}
.footer-links .footer-link-short { display: none; }
@media (max-width: 480px) {
  .footer-links .footer-link-full { display: none; }
  .footer-links .footer-link-short { display: inline; }
}
.footer-links a:hover { opacity: 0.6; }
.footer-links .footer-sep { opacity: 0.3; }
.footer-copy {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Filter notice */
.filter-notice {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 8px;
}
.filter-notice a {
  color: inherit;
  text-decoration: underline;
}

/* Price status bar */
.price-status {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.4;
  padding-top: 12px;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-status-done {
  opacity: 0.3;
}

/* Gallery overlay */
.gallery-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.gallery-overlay.open {
  transform: translateX(0);
}
body.gallery-open {
  overflow: hidden;
}
html.gallery-open {
  overflow: hidden;
  scroll-snap-type: none !important;
}
body.gallery-open #main,
body.gallery-open > nav {
  transform: translateX(-30%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.gallery-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
@media (min-width: 1024px) {
  .gallery-nav { padding: 16px 48px; }
}
/* Gallery snap carousel — both directions */
.gallery-track {
  flex: 1;
  overflow: auto;
  scroll-snap-type: both mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  min-width: 100%;
  min-height: 100%;
  scroll-snap-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
@media (min-width: 768px) {
  .gallery-item {
    padding: 24px 48px;
  }
}
.gallery-item img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  display: block;
}
.gallery-counter {
  font-size: 14px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.5;
}

/* Save/share capture sheet */
.cap-actions{display:flex;gap:16px;margin-top:6px;grid-column:2 / -1}
.cap-btn{font-family:inherit;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;background:none;border:none;color:inherit;cursor:pointer;padding:2px 0;border-bottom:2px solid currentColor}
.cap-sheet{position:fixed;inset:auto 0 0 0;background:#fcf6e9;color:#000;border-top:2px solid #000;padding:24px;z-index:1000;transform:translateY(100%);transition:transform .25s ease}
.cap-sheet.open{transform:translateY(0)}
.cap-sheet form{display:flex;flex-direction:column;gap:12px;max-width:480px;margin:0 auto}
.cap-sheet label{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.cap-sheet input{font-family:inherit;font-size:17px;padding:12px;border:2px solid #000;background:#fff;color:#000}
.cap-sheet .cap-submit{font-family:inherit;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;background:#000;color:#fcf6e9;border:2px solid #000;padding:14px;cursor:pointer}
.cap-sheet .cap-close{position:absolute;top:12px;right:16px;background:none;border:none;font-size:22px;cursor:pointer;color:#000}
.cap-sheet .cap-done{font-size:17px;text-align:center;padding:24px 0}
