/* 1rem = 100px at the 1536px reference width: design px / 100 = rem */
html { font-size: calc(100vw / 15.36); }
* { box-sizing: border-box; }

:root {
  --ink: #2b2b29;
  --cream: #f6f3f1;
  --blue: #3f598c;
}

body {
  margin: 0;
  display: flow-root;
  height: 8.64rem;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream) url("assets/bg.jpg") left top / 100% 100% no-repeat;
  font-family: "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.logo {
  position: absolute;
  left: 1.05rem;
  top: 0.28rem;
  font-size: 0.20rem;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  position: absolute;
  left: 4.45rem;
  top: 0.48rem;
  display: flex;
  gap: 0.52rem;
  font-size: 0.181rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav a { color: var(--ink); text-decoration: none; }

.cart {
  position: absolute;
  left: 14.62rem;
  top: 0.48rem;
  font-size: 0.19rem;
  line-height: 1;
}

.eyebrow {
  position: absolute;
  left: 0.57rem;
  top: 1.66rem;
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.172rem;
  line-height: 1;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
}

.headline {
  position: absolute;
  left: 0.54rem;
  top: 2.04rem;
  margin: 0;
  font-family: "Libre Caslon Text", serif;
  font-weight: 400;
  font-size: 1.165rem;
  line-height: 1.21rem;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.sub {
  position: absolute;
  left: 0.57rem;
  top: 4.94rem;
  margin: 0;
  font-size: 0.266rem;
  line-height: 0.38rem;
  letter-spacing: -0.006em;
  white-space: nowrap;
}

.btn {
  position: absolute;
  left: 0.57rem;
  top: 6.04rem;
  width: 2.70rem;
  height: 0.66rem;
  background: var(--blue);
  color: #f7f6f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.27rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
}

.btn-link {
  position: absolute;
  left: 3.60rem;
  top: 6.23rem;
  font-size: 0.225rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.05rem;
  white-space: nowrap;
}

.details {
  position: absolute;
  left: 0.58rem;
  top: 7.13rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.192rem;
  line-height: 0.315rem;
  letter-spacing: 0.005em;
}
.details p { margin: 0; }

@media (max-width: 900px) {
  html { font-size: 16px; }
  body {
    height: auto;
    min-height: 100vh;
    background: var(--cream) url("assets/photo.jpg") center 0 / cover no-repeat;
    padding-bottom: 42vh;
  }
  .logo { position: static; display: block; padding: 18px 20px 0; font-size: 13px; }
  .nav {
    position: static;
    padding: 12px 20px 0;
    gap: 14px;
    font-size: 13px;
    flex-wrap: wrap;
    white-space: normal;
  }
  .cart { position: static; display: block; padding: 8px 20px 0; font-size: 13px; }
  .eyebrow { position: static; padding: 22px 20px 0; font-size: 12px; letter-spacing: 0.14em; white-space: normal; }
  .headline {
    position: static; margin: 12px 20px 0; font-size: clamp(36px, 10.4vw, 62px);
    line-height: 1.02; letter-spacing: -0.015em; white-space: normal;
  }
  .headline br { display: none; }
  .sub { position: static; margin: 16px 20px 0; font-size: 16px; line-height: 1.45; white-space: normal; }
  .btn {
    position: static; margin: 22px 20px 0; width: fit-content; min-height: 48px;
    padding: 0 22px; font-size: 16px;
  }
  .btn-link { position: static; display: inline-block; margin: 14px 20px 0; font-size: 16px; }
  .details { position: static; margin: 26px 20px 0; font-size: 13px; line-height: 1.6; }
}
