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

* { box-sizing: border-box; }

:root {
  --ink: #131212;
  --paper: #f2eee2;
  --grey: #a09d96;
  --cyan: #4fd6ee;
}

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

/* ---------- masthead ---------- */
.masthead {
  display: flex;
  align-items: center;
  padding: 0.16rem 0 0 0.36rem;
  gap: 0.94rem;
}

.logo img { display: block; width: 1.74rem; height: auto; }

.skip {
  font-size: 0.26rem;
  line-height: 1;
  color: var(--grey);
  text-decoration: underline;
  text-underline-offset: 0.04rem;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 0.200rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav a { color: var(--ink); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding-left: 0.42rem; }

.eyebrow {
  margin: 0;
  padding-top: 0.385rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.258rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.headline {
  margin: 0.10rem 0 0;
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-stretch: 78%;
  font-size: 1.68rem;
  line-height: 1.33rem;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.sub {
  margin: 0.21rem 0 0;
  font-size: 0.370rem;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

/* ---------- table ---------- */
.table {
  margin-top: 0.32rem;
  width: 14.53rem;
  border-top: 0.015rem solid var(--ink);
}

.row {
  display: grid;
  grid-template-columns: 0.865rem 2.45rem 2.95rem 1.72rem 1fr;
  align-items: center;
  height: 0.625rem;
  border-bottom: 0.01rem solid var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.200rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.row > * { border-left: 0.01rem solid var(--ink); height: 100%; display: flex; align-items: center; }
.row > :first-child { border-left: 0; }
.num { padding-left: 0.10rem; }
.name { padding-left: 0.39rem; font-size: 0.155rem; }
.badge--free {
  background: var(--ink);
  color: var(--cyan);
  justify-content: center;
  letter-spacing: 0;
}
.badge--paid {
  justify-content: center;
  letter-spacing: 0;
  outline: 0.015rem solid var(--ink);
  outline-offset: -0.06rem;
  margin: 0.09rem 0.10rem;
  height: auto;
}
.title { padding-left: 0.37rem; font-size: 0.225rem; }

/* ---------- actions ---------- */
.actions { margin-top: 0.40rem; display: flex; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.44rem;
  height: 0.57rem;
  background: var(--ink);
  color: #fdfbf4;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 0.245rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.btn-link {
  margin-left: 0.48rem;
  margin-top: 0.09rem;
  font-size: 0.28rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.05rem;
  white-space: nowrap;
}

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

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

  .masthead {
    padding: 16px 18px;
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .logo img { width: 96px; }
  .skip { font-size: 15px; }

  .nav {
    width: 100%;
    gap: 14px;
    font-size: 13px;
    flex-wrap: wrap;
  }

  .hero { padding: 0 18px 36px; }

  .eyebrow { padding-top: 10px; font-size: 12px; }

  .headline {
    margin-top: 12px;
    font-size: clamp(32px, 10.5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    white-space: normal;
  }
  .headline br { display: none; }

  .sub {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.45;
    white-space: normal;
  }

  .table {
    margin-top: 24px;
    width: auto;
    border-top: 1px solid var(--ink);
  }

  .row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    height: auto;
    padding: 12px 0;
    gap: 4px 10px;
    border-bottom: 1px solid var(--ink);
    font-size: 13px;
  }
  .row > * { border-left: 0; height: auto; }
  .slot { display: none; }
  .num { padding-left: 0; grid-row: span 2; }
  .name { padding-left: 0; }
  .badge--free, .badge--paid {
    margin: 0;
    padding: 4px 8px;
    height: auto;
    justify-self: start;
    grid-column: 2;
  }
  .title { grid-column: 2 / -1; padding-left: 0; font-size: 12px; }

  .actions {
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .btn {
    width: auto;
    height: auto;
    min-height: 48px;
    padding: 0 22px;
    font-size: 14px;
  }
  .btn-link { margin-left: 0; font-size: 16px; padding-bottom: 4px; }
}
