/* ========================================
   YZEYUE — BRAND FOUNDATION
======================================== */

:root {
  --moonlight: #F5F4EF;
  --moon-tide: #2D5179;
  --new-moon: #1E1F23;
}


/* ========================================
   BASIC RESET
======================================== */

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

html {
  scroll-behavior: smooth;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* ========================================
   PAGE FOUNDATION
======================================== */

body {
  min-width: 320px;

  background-color: var(--moonlight);
  color: var(--new-moon);

  font-family:
    Avenir,
    "Avenir Next",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  line-height: 1.6;
}


/* ========================================
   TYPOGRAPHY
======================================== */

p {
  color: var(--new-moon);
}


/* ========================================
   HERO LAYOUT
======================================== */

.landing-page {
  min-height: 100vh;
}

.hero {
  min-height: calc(100vh - 96px);
  padding: 64px 24px 80px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.hero-logo {
  width: 150px;
  height: auto;
  margin-bottom: 28px;
}


/* ========================================
   HERO TYPOGRAPHY
======================================== */

.eyebrow {
  margin-bottom: 24px;

  color: var(--new-moon);

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  color: var(--moon-tide);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(64px, 18vw, 140px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.tagline {
  margin-top: 28px;

  color: var(--new-moon);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(24px, 5vw, 38px);
  font-style: italic;
}

.introduction {
  max-width: 640px;
  margin-top: 26px;

  color: var(--new-moon);

  font-size: 16px;
  line-height: 1.8;
}

.hero-link {
  margin-top: 34px;
  padding: 12px 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--moon-tide);

  color: var(--moon-tide);

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}


/* ========================================
   DESKTOP
======================================== */

@media (min-width: 768px) {
  .hero {
    padding: 80px 60px 100px;
  }

  .eyebrow {
    font-size: 13px;
  }
}


/* ========================================
   ABOUT
======================================== */

.about {
  position: relative;

  max-width: 1200px;
  margin: 50px auto 100px;
  padding: 80px 24px 0;

  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}


/* Divider Line */

.about::before {
  content: "";

  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;

  height: 1px;
  background: rgba(79, 84, 111, 0.18);
}

.section-number {
  margin-bottom: 28px;

  color: var(--moon-tide);

  font-family:
    Avenir,
    "Avenir Next",
    sans-serif;

  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.about h2 {
  max-width: 620px;

  color: var(--moon-tide);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(36px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
}

.about-right p {
  margin-bottom: 28px;

  color: var(--new-moon);

  font-family:
    Avenir,
    "Avenir Next",
    sans-serif;

  font-size: 17px;
  line-height: 1.9;
}

.about-right p:last-child {
  margin-bottom: 0;
}


/* About Desktop Layout */

@media (min-width: 900px) {
  .about {
    padding-right: 40px;
    padding-left: 40px;

    grid-template-columns: minmax(500px, 1.35fr) 1fr;
    gap: 100px;
    align-items: start;
  }

  .about::before {
    left: 40px;
    right: 40px;
  }

  .about-right {
    padding-top: 10px;
  }

  .about-right p {
    font-size: 18px;
    line-height: 2;
  }
}


/* ========================================
   HEADER
======================================== */

.site-header {
  position: relative;
  z-index: 100;

  width: 100%;
  padding: 20px 0;

  background-color: var(--moonlight);
}

.header-container {
  position: relative;

  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  min-width: 0;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: inherit;
  text-decoration: none;
}

.brand-logo {
  flex-shrink: 0;

  width: 48px;
  height: 48px;

  object-fit: contain;
}

.brand-name {
  overflow: hidden;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
}

.menu-toggle {
  flex-shrink: 0;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: 0;
  border-radius: 50%;
  background-color: transparent;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 4px;
  height: 4px;

  border-radius: 50%;
  background-color: var(--new-moon);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateX(9px);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateX(-9px);
}

.main-nav {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 110;

  width: min(240px, calc(100vw - 40px));
  padding: 22px 24px;

  background-color: var(--moonlight);
  border: 1px solid rgba(30, 31, 35, 0.12);
  box-shadow: 0 16px 40px rgba(30, 31, 35, 0.08);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-8px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.main-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 18px;

  list-style: none;
}

.nav-list a {
  display: block;

  color: var(--new-moon);

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;

  transition: color 0.2s ease;
}


/* Header Desktop Layout */

@media screen and (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .site-header {
    padding: 24px 0;
  }

  .header-container {
    width: min(1200px, calc(100% - 80px));
  }

  .brand {
    gap: 12px;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;

    width: auto;
    min-width: 0;
    padding: 0;

    background-color: transparent;
    border: 0;
    box-shadow: none;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
  position: relative;

  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;

  text-align: center;
}

.site-footer::before {
  content: "";

  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;

  height: 1px;
  background: rgba(79, 84, 111, 0.18);
}

.footer-copyright {
  color: var(--new-moon);

  font-size: 13px;
  letter-spacing: 0.04em;
}


/* Footer Desktop Layout */

@media (min-width: 900px) {
  .site-footer {
    padding: 48px 40px;
  }

  .site-footer::before {
    left: 40px;
    right: 40px;
  }
}


/* ========================================
   INTERACTION STATES
======================================== */

.menu-toggle:focus-visible,
.nav-list a:focus-visible,
.hero-link:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--moon-tide);
  outline-offset: 4px;
}

@media (hover: hover) {
  .hero-link:hover {
    background-color: var(--moon-tide);
    color: var(--moonlight);
  }

  .nav-list a:hover {
    color: var(--moon-tide);
  }
}


/* ========================================
   REDUCED MOTION
======================================== */

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

  .hero-link,
  .menu-toggle span,
  .main-nav,
  .nav-list a {
    transition: none;
  }
}