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

* { box-sizing: border-box; }

:root {
  --ink: #2b2721;
  --ink-soft: #322d26;
  --paper: #f1e7db;
  --peach: #f4b999;
  --rule: rgba(43, 39, 33, 0.5);
  --pad: 0.64rem;
}

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

/* ---------- masthead ---------- */
.masthead {
  height: 0.97rem;
  margin-left: var(--pad);
  padding-right: 0.80rem;
  border-bottom: 0.01rem solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 0.475rem;
  line-height: 1;
  letter-spacing: 0.078em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.455rem;
  margin-top: 0.06rem;
}

.nav__item,
.nav__search {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.189rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.nav__search {
  font-family: "Playfair Display", serif;
  font-size: 0.225rem;
  letter-spacing: 0.005em;
  text-transform: none;
  margin-left: 0.16rem;
}

/* ---------- hero ---------- */
.hero {
  height: 6.79rem;
  padding-left: var(--pad);
  display: flow-root;
}

.hero__body {
  padding-top: 0.53rem;
  width: 9.4rem;
}

.eyebrow {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.229rem;
  line-height: 1;
  letter-spacing: 0.014em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.headline {
  margin: 0.305rem 0 0;
  font-family: "Libre Caslon Text", serif;
  font-weight: 400;
  font-size: 1.024rem;
  line-height: 1.02rem;
  letter-spacing: -0.027em;
  -webkit-text-stroke: 0.015rem currentColor;
  width: 8.9rem;
}

.sub {
  margin: 0.29rem 0 0;
  font-size: 0.2996rem;
  line-height: 0.355rem;
  letter-spacing: -0.004em;
  width: 7.6rem;
  color: var(--ink-soft);
}

.actions {
  margin-top: 0.36rem;
  display: flex;
  align-items: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.17rem;
  height: 0.78rem;
  background: var(--peach);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.313rem;
  line-height: 1;
  letter-spacing: -0.008em;
  text-decoration: none;
}

.btn-link {
  margin-left: 0.45rem;
  margin-top: 0.28rem;
  color: var(--ink);
  font-size: 0.236rem;
  line-height: 1;
  text-decoration: none;
  border-bottom: 0.04rem solid var(--peach);
  padding-bottom: 0.115rem;
}

.hero__photo { display: none; }

/* ---------- footer ---------- */
.footer {
  margin: 0 var(--pad);
  border-top: 0.01rem solid var(--rule);
  padding-top: 0.23rem;
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.381rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.182rem;
  line-height: 1;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  html { font-size: 16px; }

  body {
    height: auto;
    min-height: 100vh;
    background: var(--paper);
    overflow-x: hidden;
  }

  .masthead {
    height: auto;
    margin: 0;
    padding: 18px 20px 14px;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .logo { font-size: 30px; letter-spacing: 0.06em; }

  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav__item, .nav__search { font-size: 12px; letter-spacing: 0.06em; }
  .nav__search { margin-left: 0; font-size: 14px; letter-spacing: 0; }

  .hero {
    height: auto;
    padding: 0 0 28px;
  }

  .hero__body {
    width: auto;
    max-width: none;
    padding: 26px 20px 0;
  }

  .eyebrow { font-size: 12px; letter-spacing: 0.08em; }

  .headline {
    width: auto;
    max-width: none;
    margin-top: 16px;
    font-size: clamp(38px, 10.4vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.015em;
  }

  .sub {
    width: auto;
    max-width: none;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: 0;
  }

  .actions {
    margin-top: 26px;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
  }

  .btn {
    width: auto;
    min-height: 48px;
    padding: 0 26px;
    font-size: 17px;
    letter-spacing: 0;
  }

  .btn-link {
    margin: 0;
    font-size: 16px;
    padding-bottom: 6px;
    border-bottom-width: 2px;
    white-space: nowrap;
  }

  .hero__photo {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 32px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 40%;
  }

  .footer {
    margin: 0;
    padding: 16px 20px 28px;
  }

  .footer__list {
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
  }

  .footer__sep { display: none; }
}
