/* ==========================================================================
   TRENCHAL — plain, black and white, Helvetica.
   ========================================================================== */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --line: rgba(255, 255, 255, 0.2);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --edge: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border: 2px solid var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------------------------------- home ---------------------------------- */

.home {
  position: relative;
  height: 200vh;
  display: grid;
}

.home > * {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 0;
  height: 100vh;
}

.home__art {
  opacity: 0.28;
  background-image: url("../assets/hero.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.05);
}

.home__stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(36px, 6vh, 72px);
  will-change: opacity, transform;
}

.enter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.08em;
  font-size: 14px;
  text-transform: uppercase;
}

.enter__arrow {
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------------------------------- logo mark (persistent, scroll-linked) ---------------------------------- */

.logo-mark {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  width: min(46vh, 46vw, 460px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: auto;
  color: var(--fg);
}

/* ---------------------------------- menu ---------------------------------- */

.menu {
  position: relative;
  z-index: 1;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(80px, 11vw, 120px) var(--edge) clamp(50px, 6vw, 80px);
}

.menu__title {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}

.menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 320px;
}

.menu__item {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px 0;
  border: 1px solid var(--fg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.menu__item:hover,
.menu__item:focus-visible {
  background: var(--fg);
  color: var(--bg);
}

/* ---------------------------------- site header (inner pages) ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 28px) var(--edge);
  background: var(--bg);
}

.header__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--fg);
}

.header__logo img {
  display: block;
  width: 46px;
  height: auto;
  color: var(--fg);
}

/* ---------------------------------- nav overlay ---------------------------------- */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 32px);
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-overlay__item {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.55;
  transition: opacity 0.2s;
}

.nav-overlay__item:hover,
.nav-overlay__item.is-current {
  opacity: 1;
}

/* ---------------------------------- product ---------------------------------- */

.product {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 40px) var(--edge) clamp(60px, 8vw, 90px);
}

.product__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 6vw, 48px) 0 clamp(30px, 6vw, 56px);
}

.product__placeholder {
  width: 100%;
  max-width: 340px;
  height: auto;
}

.product__title {
  margin: 0 0 16px;
  text-align: center;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.product__price {
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 700;
}

.product__price span {
  font-size: 0.55em;
  vertical-align: 0.3em;
}

.product__desc {
  margin: 0 0 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.7;
}

.product__shipping {
  margin: 0 0 24px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}

.size-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.size-btn {
  flex: 1 1 calc(33.333% - 10px);
  min-width: 92px;
  padding: 18px 0;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.size-btn:hover,
.size-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.size-btn.is-selected {
  background: var(--fg);
  color: var(--bg);
}

.add-to-cart {
  display: block;
  width: 100%;
  padding: 20px 0;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.add-to-cart:hover { opacity: 0.85; }

/* ---------------------------------- footer ---------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(28px, 4vw, 40px) var(--edge);
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
}

.footer__social { display: flex; gap: clamp(16px, 3vw, 28px); }

.footer__link { opacity: 0.7; transition: opacity 0.2s; }
.footer__link:hover { opacity: 1; }

/* ---------------------------------- toast ---------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 500;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  background: var(--fg);
  color: var(--bg);
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 560px) {
  .logo-mark { width: min(58vw, 300px); }
  .toast {
    left: 16px;
    right: 16px;
    bottom: 20px;
    white-space: normal;
    text-align: center;
    transform: translateY(12px);
  }
  .toast.is-visible { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter__arrow { animation: none; }
}
