/* ==========================================================================
   Nyqiro — Burgundy Atelier
   Luxury Editorial × Fashion Publication
   ========================================================================== */

:root {
  --burgundy: #7F1D1D;
  --wine: #991B1B;
  --rose-beige: #E7D3D3;
  --ivory: #FFFCFA;
  --charcoal: #1F1F1F;
  --blush: #F5EAEA;

  --font-display: "Bodoni Moda", "Bodoni MT", "Didot", serif;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  --ease-editorial: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-slow: 1.4s;
  --duration-medium: 0.8s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Editorial reveal animations (CSS only)
   -------------------------------------------------------------------------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    letter-spacing: 0.35em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.12em;
  }
}

@keyframes watermarkFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.06;
  }
}

.reveal {
  animation: fadeUp var(--duration-slow) var(--ease-editorial) both;
  animation-delay: 0.15s;
}

.reveal:nth-child(2) { animation-delay: 0.3s; }
.reveal:nth-child(3) { animation-delay: 0.45s; }
.reveal:nth-child(4) { animation-delay: 0.6s; }
.reveal:nth-child(5) { animation-delay: 0.75s; }

/* --------------------------------------------------------------------------
   Masthead — top-centered luxury header
   -------------------------------------------------------------------------- */

.masthead {
  text-align: center;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  position: relative;
  z-index: 10;
}

.masthead__brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  animation: titleReveal 1.6s var(--ease-editorial) both;
}

.masthead__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 400;
  color: var(--wine);
  margin-top: var(--space-xs);
  letter-spacing: 0.04em;
  animation: fadeUp var(--duration-slow) var(--ease-editorial) 0.4s both;
}

.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: var(--space-md);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: fadeUp var(--duration-slow) var(--ease-editorial) 0.6s both;
}

.masthead__nav a {
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--duration-medium) var(--ease-editorial);
}

.masthead__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-editorial);
}

.masthead__nav a:hover {
  color: var(--burgundy);
}

.masthead__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.masthead__sep {
  color: var(--rose-beige);
  font-size: 0.5rem;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Magazine cover — opening section
   -------------------------------------------------------------------------- */

.cover {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(
    180deg,
    var(--ivory) 0%,
    var(--blush) 45%,
    var(--ivory) 100%
  );
}

.cover__inner {
  max-width: 52rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cover__issue {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: var(--space-md);
}

.cover__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--burgundy);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.cover__lead {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.85;
  color: var(--charcoal);
  max-width: 36rem;
  margin: 0 auto;
  opacity: 0.85;
}

.cover__ornament {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 5rem;
  background: linear-gradient(to bottom, transparent, var(--burgundy), transparent);
  opacity: 0.4;
}

/* --------------------------------------------------------------------------
   Section utilities
   -------------------------------------------------------------------------- */

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  color: var(--burgundy);
  letter-spacing: -0.01em;
}

.section-title--light {
  color: var(--rose-beige);
}

.section-intro {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding: 0 var(--space-md);
}

/* --------------------------------------------------------------------------
   Collections — editorial blocks with CSS shapes
   -------------------------------------------------------------------------- */

.collections {
  padding: var(--space-2xl) var(--space-md);
  background: var(--ivory);
}

.collections__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 72rem;
  margin: 0 auto;
}

.collection-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.collection-block__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--blush);
  overflow: hidden;
}

.collection-block--expression .collection-block__visual {
  background: var(--rose-beige);
}

.collection-block--craft .collection-block__visual {
  background: linear-gradient(135deg, var(--blush) 0%, var(--ivory) 100%);
}

.collection-block--legacy .collection-block__visual {
  background: linear-gradient(180deg, var(--burgundy) 0%, var(--wine) 100%);
}

/* CSS shape compositions */
.shape {
  position: absolute;
  display: block;
}

.shape--circle {
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--burgundy);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.shape--line-v {
  width: 1px;
  height: 70%;
  background: var(--burgundy);
  top: 15%;
  left: 30%;
  opacity: 0.35;
}

.shape--diagonal {
  width: 120%;
  height: 1px;
  background: var(--burgundy);
  top: 40%;
  left: -10%;
  transform: rotate(-35deg);
  opacity: 0.4;
}

.shape--rect {
  width: 40%;
  height: 55%;
  border: 1px solid var(--wine);
  bottom: 12%;
  right: 15%;
  opacity: 0.55;
}

.shape--frame {
  inset: 15%;
  border: 1px solid var(--burgundy);
  opacity: 0.45;
}

.shape--dot-grid {
  width: 60%;
  height: 40%;
  bottom: 20%;
  left: 20%;
  background-image: radial-gradient(var(--burgundy) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.25;
}

.shape--arch {
  width: 70%;
  height: 85%;
  border: 1px solid var(--rose-beige);
  border-radius: 50% 50% 0 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
}

.shape--horizon {
  width: 100%;
  height: 1px;
  background: var(--rose-beige);
  bottom: 25%;
  left: 0;
  opacity: 0.6;
}

.collection-block__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--burgundy);
  letter-spacing: 0.06em;
}

.collection-block--legacy .collection-block__name {
  color: var(--burgundy);
}

.collection-block__text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--charcoal);
  opacity: 0.8;
  max-width: 28ch;
}

/* --------------------------------------------------------------------------
   Feature story — multi-column editorial
   -------------------------------------------------------------------------- */

.feature-story {
  padding: var(--space-2xl) var(--space-md);
  background: var(--blush);
  border-top: 1px solid var(--rose-beige);
  border-bottom: 1px solid var(--rose-beige);
}

.feature-story__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto var(--space-xl);
}

.feature-story__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 500;
  color: var(--burgundy);
  line-height: 1.15;
}

.feature-story__columns {
  column-count: 2;
  column-gap: var(--space-lg);
  max-width: 56rem;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--charcoal);
}

.feature-story__columns p {
  margin-bottom: var(--space-md);
  break-inside: avoid;
}

.feature-story__columns p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  float: left;
  line-height: 0.85;
  padding-right: 0.15em;
  padding-top: 0.05em;
  color: var(--burgundy);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Signature values — numbered typography
   -------------------------------------------------------------------------- */

.values {
  padding: var(--space-2xl) var(--space-md);
  background: var(--burgundy);
}

.values__list {
  list-style: none;
  max-width: 52rem;
  margin: 0 auto;
}

.values__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(231, 211, 211, 0.15);
}

.values__item:last-child {
  border-bottom: none;
}

.values__num {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--rose-beige);
  opacity: 0.7;
  min-width: 3ch;
}

.values__word {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: -0.02em;
  transition: letter-spacing var(--duration-medium) var(--ease-editorial);
}

.values__item:hover .values__word {
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Highlights — editorial statistics
   -------------------------------------------------------------------------- */

.highlights {
  padding: var(--space-2xl) var(--space-md);
  background: var(--ivory);
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.highlights__figure {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.highlights__label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--wine);
}

/* --------------------------------------------------------------------------
   Journal — magazine article previews
   -------------------------------------------------------------------------- */

.journal {
  padding: var(--space-2xl) var(--space-md);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--blush) 100%);
}

.journal__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-xl);
  max-width: 64rem;
  margin: 0 auto;
}

.journal__article {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--rose-beige);
}

.journal__date {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wine);
}

.journal__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  color: var(--burgundy);
  margin: var(--space-sm) 0;
  line-height: 1.3;
}

.journal__excerpt {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--charcoal);
  opacity: 0.8;
  margin-bottom: var(--space-sm);
}

.journal__link {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wine);
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.journal__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-editorial);
}

.journal__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   Invitation
   -------------------------------------------------------------------------- */

.invitation {
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  background: var(--burgundy);
}

.invitation__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.invitation__btn {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--ivory);
  padding: 1.15rem 2.75rem;
  border: 1px solid var(--ivory);
  transition:
    background var(--duration-medium) var(--ease-editorial),
    color var(--duration-medium) var(--ease-editorial);
}

.invitation__btn:hover {
  background: transparent;
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   Contact — typography only
   -------------------------------------------------------------------------- */

.contact {
  padding: var(--space-2xl) var(--space-md);
  background: var(--ivory);
}

.contact__details {
  font-style: normal;
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.contact__row {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--blush);
}

.contact__row:last-child {
  border-bottom: none;
}

.contact__key {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: var(--space-xs);
}

.contact__value {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--charcoal);
}

a.contact__value {
  position: relative;
  display: inline-block;
}

a.contact__value::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-editorial);
}

a.contact__value:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   Footer — faded watermark typography
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  background: var(--charcoal);
  overflow: hidden;
  min-height: 14rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.footer__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 18rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  animation: watermarkFade 2s var(--ease-editorial) 0.5s forwards;
}

.footer__content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.footer__copy,
.footer__motto {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-beige);
  opacity: 0.7;
}

.footer__motto {
  margin-top: var(--space-xs);
  font-family: var(--font-heading);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .collections__grid {
    grid-template-columns: 1fr;
    max-width: 24rem;
  }

  .feature-story__columns {
    column-count: 1;
    max-width: 32rem;
  }

  .highlights__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .journal__list {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }
}

@media (max-width: 600px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }

  .masthead {
    padding-top: var(--space-md);
  }

  .masthead__sep {
    display: none;
  }

  .masthead__nav {
    flex-direction: column;
    gap: 0.75rem;
    letter-spacing: 0.18em;
  }

  .cover {
    min-height: 85vh;
    min-height: 85dvh;
  }

  .values__item {
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-sm) 0;
  }

  .highlights__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer {
    min-height: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
