/* SKYLET — Asket-inspired quiet luxury
   Focus: large layout, rhythm, alignment, hierarchy */

:root {
  --bg: #fefefc;
  --bg-soft: #f5f3ef;
  --surface: #ffffff;
  --border: rgba(0, 0, 0, 0.12);
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.54);
  --text-faint: rgba(0, 0, 0, 0.30);
  --max: 1680px;
  --nav-h: 52px;
  --margin: 20px;
  --gutter: 6px;
  --row-gap: 36px;
  --section-y: 88px;
  --section-y-lg: 112px;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --ease: cubic-bezier(0.35, 0, 0.15, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 10px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(254, 254, 252, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--margin);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.logo:hover { color: var(--text-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: flex-start;
  margin-left: 40px;
}
.nav-links a {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0 14px;
  height: var(--nav-h);
  display: inline-flex;
  align-items: center;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-muted); }

.nav-bag {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-bag:hover { color: var(--text-muted); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 8px 0;
}

/* —— Layout frame —— */
main { flex: 1; width: 100%; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--margin);
}

.container-wide {
  max-width: none;
  margin: 0;
  padding: 0 var(--margin);
}

.section {
  padding: var(--section-y) 0;
}
.section-lg {
  padding: var(--section-y-lg) 0;
}
.section-sm {
  padding: 32px 0 var(--section-y);
}
.section-flush {
  padding: 0;
}

.eyebrow {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2.4rem, 3.2vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

/* —— Full-bleed hero (editorial) —— */
.hero-bleed {
  position: relative;
  width: 100%;
  height: calc(100svh - var(--nav-h));
  min-height: 560px;
  max-height: none;
  background: var(--bg-soft);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-bleed-media {
  position: absolute;
  inset: 0;
}
.hero-bleed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hero-bleed-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 var(--margin) clamp(40px, 6vh, 72px);
  background: linear-gradient(
    to top,
    rgba(254, 254, 252, 0.78) 0%,
    rgba(254, 254, 252, 0.28) 42%,
    transparent 72%
  );
}
.hero-bleed-copy {
  max-width: 560px;
  padding-top: 80px;
}
.hero-bleed h1 {
  font-size: clamp(3.2rem, 5.5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 18px;
}
.hero-bleed p {
  font-size: 1.45rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 0 32px;
  line-height: 1.5;
}

/* Legacy split hero */
.hero-split {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--margin) 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-split .hero-copy { max-width: 420px; }
.hero-split h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-split p {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.5;
}
.hero-visual {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* —— Links / buttons —— */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 4px 0;
  border-bottom: 1px solid var(--text);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link-cta:hover {
  color: var(--text-muted);
  border-bottom-color: var(--text-muted);
}
.link-cta.svg-arrow::after {
  content: "→";
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease);
}
.link-cta.svg-arrow:hover::after { transform: translateX(3px); }

.hero-actions {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-fill {
  background: var(--text);
  color: var(--bg);
}
.btn-fill:hover { opacity: 0.82; background: var(--text); color: var(--bg); }
.btn-outline {
  background: transparent;
  color: var(--text);
}
.btn-block { width: 100%; text-align: center; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; color: var(--text); }

/* —— Product grid (Asket-like density) —— */
.grid-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--margin);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--row-gap) var(--gutter);
}

.product-card {
  display: block;
  transition: opacity 0.3s var(--ease);
  min-width: 0;
}
.product-card:hover { opacity: 0.92; }
.product-card:hover .product-media img { opacity: 0.94; }

.product-media {
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: opacity 0.4s var(--ease);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px 4px;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.product-meta {
  font-size: 1.15rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  line-height: 1.4;
}

.product-price {
  font-size: 1.15rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.stock-tag {
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--text-faint);
  white-space: nowrap;
}

/* —— Editorial split (image + copy) —— */
.editorial {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  align-items: stretch;
  min-height: min(72vh, 720px);
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.editorial-media {
  background: var(--bg-soft);
  overflow: hidden;
  min-height: 420px;
}
.editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.editorial-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 96px) clamp(32px, 6vw, 80px);
  max-width: 520px;
}
.editorial-copy h2 {
  font-size: clamp(2.6rem, 3.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 20px;
}
.editorial-copy p {
  font-size: 1.45rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 360px;
}
.editorial.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}
.editorial.reverse .editorial-media { order: 2; }
.editorial.reverse .editorial-copy { order: 1; margin-left: auto; }

/* —— Product detail —— */
.pdp-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--margin) var(--section-y);
}

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(32px, 5vw, 72px);
  padding: 24px 0 0;
  align-items: start;
}

.pdp-gallery .product-media {
  margin-bottom: 6px;
  aspect-ratio: 3 / 4;
}

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.pdp-thumbs .product-media {
  aspect-ratio: 1;
  margin: 0;
  cursor: pointer;
  border: 1px solid transparent;
  opacity: 0.65;
  transition: opacity 0.25s, border-color 0.25s;
}
.pdp-thumbs .product-media.active,
.pdp-thumbs .product-media:hover {
  border-color: var(--border);
  opacity: 1;
}

.pdp-info {
  padding-top: 12px;
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  max-width: 400px;
}

.pdp-info h1,
#pdp-title {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.pdp-price {
  font-size: 1.45rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pdp-desc {
  font-size: 1.35rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 360px;
}

.field-label {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.size-row {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.size-btn {
  min-width: 52px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.size-btn:hover { border-color: var(--text-muted); }
.size-btn.selected {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.pdp-note {
  margin-top: 28px;
  font-size: 1.35rem;
  color: var(--text-faint);
  line-height: 1.55;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— About / Contact —— */
.prose-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--margin);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 96px);
  align-items: start;
}
.prose-page .prose-intro {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.prose-page .prose-intro h1 {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.prose-page .prose-intro .lede {
  font-size: 1.45rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
}
.prose {
  max-width: 560px;
}
.prose h1 {
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 32px;
  text-align: left;
}
.prose p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
  font-size: 1.45rem;
}
.prose ul {
  color: var(--text-muted);
  margin: 36px 0 40px;
}
.prose li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.35rem;
  display: flex;
  gap: 28px;
  line-height: 1.5;
}
.prose li span:first-child {
  color: var(--text);
  min-width: 88px;
  flex-shrink: 0;
}

.contact-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--margin);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 96px);
  align-items: start;
}
.contact-layout h1 {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.contact-layout .lede {
  font-size: 1.45rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 360px;
  margin-bottom: 24px;
}
.contact-meta {
  font-size: 1.35rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.contact-form {
  max-width: 440px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: inherit;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  resize: vertical;
  border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--text);
}
.contact-form textarea { min-height: 140px; }
.contact-form .btn { margin-top: 24px; }

.page-header {
  text-align: left;
  padding: clamp(48px, 7vh, 72px) var(--margin) 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.page-header h1 {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-header p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.45rem;
  max-width: 420px;
}

/* —— Feature strip —— */
.features {
  border-top: 1px solid var(--border);
  padding: var(--section-y) 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.feature h3 {
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.feature p {
  font-size: 1.35rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 300px;
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--section-y) 0 36px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px 32px;
  margin-bottom: 56px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.footer h4 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  font-weight: 400;
  color: var(--text);
}
.footer p, .footer a {
  font-size: 1.35rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.footer a:hover { color: var(--text); }
.footer ul li { margin-bottom: 10px; }
.footer-brand p { max-width: 320px; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 1.35rem;
  color: var(--text-faint);
  letter-spacing: -0.01em;
  max-width: var(--max);
  margin: 0 auto;
}
.demo-zh {
  font-size: 1.35rem;
  color: var(--text-faint);
}

/* —— Responsive —— */
@media (min-width: 768px) {
  :root {
    --margin: 28px;
    --gutter: 8px;
    --row-gap: 40px;
  }
}

@media (min-width: 1200px) {
  :root {
    --margin: 36px;
    --section-y: 104px;
    --section-y-lg: 128px;
  }
}

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; max-width: 420px; }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px var(--gutter); }
  .pdp {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pdp-info {
    position: static;
    max-width: none;
    padding-top: 0;
  }
  .features-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: auto; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { max-width: 480px; }
  .hero-bleed {
    height: auto;
    min-height: 78svh;
  }
  .editorial,
  .editorial.reverse {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .editorial.reverse .editorial-media,
  .editorial.reverse .editorial-copy { order: unset; }
  .editorial-media { min-height: 360px; aspect-ratio: 4 / 5; }
  .editorial-copy {
    padding: 48px var(--margin) 64px;
    max-width: none;
  }
  .prose-page,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 56px;
  }
  .prose-page .prose-intro { position: static; }
}

@media (max-width: 640px) {
  :root {
    --margin: 16px;
    --nav-h: 48px;
    --section-y: 64px;
    --row-gap: 28px;
  }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    padding: 16px var(--margin) 24px;
    gap: 0;
    margin: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a {
    width: 100%;
    padding: 12px 0;
    height: auto;
  }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-bag { display: none; }
  .hero-bleed-overlay { padding-bottom: 36px; }
  .hero-bleed h1 { font-size: clamp(2.8rem, 9vw, 3.6rem); }
  .grid { gap: 28px 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 28px; }
  .page-header { padding-top: 40px; padding-bottom: 20px; }
}
