@import url('https://fonts.googleapis.com/css2?family=Aboreto&family=Open+Sans:wght@400;500&display=swap');

@font-face {
  font-family: 'Roboto';
  src: url('../assets/fonts/Roboto-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f5f3;
  --bg-dark: #161616;
  --fg: #111111;
  --muted: #6b6b6b;
  --border: #dedede;
  --font-display: 'Aboreto', serif;
  --font-body: 'Roboto', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --sidebar-width: 130px;
}

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

html, body {
  height: 100%;
}

body.landing-page {
  overflow: hidden;
}

body.shop-page {
  background: #ffffff;
  height: auto;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.cursor-dot {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  *, a, button {
    cursor: none !important;
  }

  .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #111111;
    opacity: 1;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
  }
}

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

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

.wordmark {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* ---------- Landing page ---------- */
.landing {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.landing__panel {
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.landing__copy-img {
  position: relative;
}

.copy-layer {
  display: block;
}

.copy-layer--blur {
  width: 100%;
}

.copy-layer--sharp {
  position: absolute;
}

.landing__copy-img--right {
  align-self: flex-end;
}

.landing__copy-img--1 {
  width: 36.39vw;
  max-width: 524px;
  margin-top: 1.5rem;
}

.landing__copy-img--2 {
  width: 27.57vw;
  max-width: 397px;
}

.landing__copy-img--3 {
  width: 23.54vw;
  max-width: 339px;
}

.landing__bottom-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.landing__logo-img {
  width: 100%;
}

.landing__visual {
  position: relative;
  overflow: hidden;
  background: #000;
}

.landing__visual-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.landing__visual-caption {
  position: absolute;
  right: 3rem;
  bottom: 3rem;
  width: 240px;
  opacity: 0.9;
  mix-blend-mode: screen;
  filter: invert(1) brightness(1.3);
}

.landing-mobile {
  display: none;
}

@media (max-width: 768px) {
  .landing {
    display: none;
  }

  body.landing-page {
    overflow: auto;
  }

  .landing-mobile {
    display: block;
  }

  .landing-mobile__visual {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #000;
  }

  .landing-mobile__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    display: block;
  }

  .landing-mobile__copy {
    position: absolute;
    filter: invert(1) brightness(1.4);
    mix-blend-mode: screen;
  }

  .landing-mobile__copy--1 {
    top: calc(45% - 15px);
    left: 24px;
    width: 70%;
  }

  .landing-mobile__copy--2 {
    top: 60%;
    right: 24px;
    width: 53%;
  }

  .landing-mobile__copy--3 {
    top: calc(75% + 15px);
    left: 24px;
    width: 45%;
  }

  .landing-mobile__logo {
    position: absolute;
    top: 24px;
    left: 24px;
    width: calc(100% - 48px);
  }
}

/* ---------- Page layout: fixed left sidebar + content ---------- */
body.shop-page {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main"
    "footer  footer";
}

.site-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.15rem;
  padding: 2.6rem 4px 2.6rem 20px;
}

.site-sidebar a {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-sidebar a:hover {
  color: var(--fg);
}

/* ---------- Site header (inner pages) ---------- */
.site-header {
  grid-area: header;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 30px;
}

.site-header > a:first-child {
  position: fixed;
  top: 44px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.site-header__logo-img {
  height: 28px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.site-header__link {
  opacity: 0.8;
}

.site-header__link:hover {
  opacity: 1;
}

/* ---------- Product detail ---------- */
main {
  grid-area: main;
  min-width: 0;
}

/* ---------- Brand story ---------- */
.brand-story {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 6rem 40px;
  text-align: center;
}

.brand-story__copy {
  max-width: 90%;
}

.brand-story__logo {
  width: min(70%, 640px);
  margin-top: 1rem;
}

.product {
  padding: 3rem 40px 6rem;
  min-height: 100vh;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}

.product-grid__item {
  display: block;
}

.product-grid__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.product-grid__title {
  font-size: 0.78rem;
  margin-top: 0.6rem;
}

.product-grid__price {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 84px;
  }

  .site-sidebar {
    padding: 2rem 4px 2rem 14px;
    gap: 0.15rem;
  }

  .site-sidebar a {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .site-header {
    padding: 16px 14px;
    justify-content: space-between;
  }

  .site-header > a:first-child {
    position: static;
    transform: none;
  }

  .site-header__nav {
    gap: 0.5rem;
    font-size: 0.6rem;
  }

  .site-header__logo-img {
    height: 18px;
  }

  .product {
    min-height: auto;
    padding: 2rem 16px 6rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__brand p {
    font-size: 0.65rem;
  }

  .site-footer__col h4 {
    font-size: 0.62rem;
  }

  .site-footer__col a,
  .site-footer__col p {
    font-size: 0.65rem;
  }

  .site-footer__bottom {
    font-size: 0.6rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  grid-area: footer;
  border-top: 1px solid var(--border);
  padding: 3rem 30px 1.5rem;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0 0 2.5rem;
}

.site-footer__logo-img {
  height: 16px;
  margin-bottom: 0.8rem;
}

.site-footer__brand p {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 30ch;
  line-height: 1.5;
}

.site-footer__cols {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.site-footer__col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  color: var(--muted);
}

.site-footer__col a,
.site-footer__col p {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

