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

@font-face { font-family: "AesCormorant"; src: url("assets/CormorantGaramond.ttf") format("truetype"); font-weight: 400; }
@font-face { font-family: "AesLato"; src: url("assets/Lato-Light.ttf") format("truetype"); font-weight: 300; }
@font-face { font-family: "AesSpace"; src: url("assets/SpaceMono-Regular.ttf") format("truetype"); font-weight: 400; }
@font-face { font-family: "AesSpace"; src: url("assets/SpaceMono-Bold.ttf") format("truetype"); font-weight: 700; }

:root {
  --bg: #121210;
  --ink: #e3dbce;
  --amber: #8d6027;
  --rule: rgba(227, 219, 206, 0.28);
}

body {
  margin: 0;
  display: flow-root;
  height: 8.64rem;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "AesSpace", monospace;
  -webkit-font-smoothing: antialiased;
}

.logo {
  position: absolute;
  left: 0.43rem;
  top: 0.18rem;
  font-family: "AesCormorant", serif;
  font-size: 0.53rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.rule { position: absolute; left: 0.43rem; height: 0.01rem; background: var(--rule); }
.rule--head { top: 0.90rem; width: 14.51rem; }

.eyebrow {
  position: absolute;
  left: 0.43rem;
  top: 1.32rem;
  margin: 0;
  font-size: 0.197rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.headline {
  position: absolute;
  left: 0.42rem;
  top: 1.56rem;
  margin: 0;
  font-family: "AesCormorant", serif;
  font-weight: 400;
  font-size: 1.17rem;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.sub {
  position: absolute;
  left: 0.44rem;
  top: 2.64rem;
  margin: 0;
  font-family: "AesSpace", monospace;
  font-size: 0.215rem;
  line-height: 1;
  white-space: nowrap;
}

.btn {
  position: absolute;
  left: 0.42rem;
  top: 3.25rem;
  width: 2.83rem;
  height: 0.62rem;
  background: var(--amber);
  color: #f3ece0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.205rem;
  text-decoration: none;
}

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

.ledger {
  position: absolute;
  left: 0.43rem;
  top: 4.30rem;
  width: 14.51rem;
  border-collapse: collapse;
  font-size: 0.20rem;
  line-height: 1;
}
.ledger th {
  text-align: left;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-bottom: 0.20rem;
}
.ledger td { padding: 0.145rem 0 0.075rem; }
.ledger thead tr { border-bottom: 0.01rem solid var(--rule); }
.ledger tbody tr { border-bottom: 0.01rem solid var(--rule); }
.ledger th:nth-child(1), .ledger td:nth-child(1) { width: 6.10rem; }
.ledger th:nth-child(2), .ledger td:nth-child(2) { width: 2.83rem; }
.ledger th:nth-child(3), .ledger td:nth-child(3) { width: 3.02rem; }
.ledger .is-key td { background: rgba(141, 96, 39, 0.28); }

.notes {
  position: absolute;
  left: 0.44rem;
  top: 7.72rem;
  font-size: 0.163rem;
  line-height: 0.24rem;
}
.notes p { margin: 0; }

@media (max-width: 900px) {
  html { font-size: 16px; }
  body { height: auto; min-height: 100vh; padding: 0 0 32px; }

  .logo { position: static; display: block; padding: 18px 18px 0; font-size: 34px; }
  .rule--head { position: static; width: auto; margin: 14px 18px 0; height: 1px; }
  .eyebrow { position: static; padding: 18px 18px 0; font-size: 12px; white-space: normal; }
  .headline {
    position: static; margin: 10px 18px 0; font-size: clamp(34px, 10vw, 58px);
    line-height: 1.04; white-space: normal;
  }
  .sub { position: static; margin: 12px 18px 0; font-size: 14px; line-height: 1.5; white-space: normal; }
  .btn {
    position: static; margin: 20px 18px 0; width: fit-content; min-height: 48px;
    padding: 0 22px; font-size: 15px;
  }
  .btn-link { position: static; display: inline-block; margin: 14px 18px 0; font-size: 15px; }
  .ledger {
    position: static; width: auto; margin: 26px 18px 0; font-size: 13px;
    display: block;
  }
  .ledger thead { display: none; }
  .ledger tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--rule);
  }
  .ledger td { padding: 0; border: 0; }
  .ledger td:nth-child(1) { grid-column: 1 / -1; }
  .ledger td:nth-child(2) { color: #cbbfa9; }
  .ledger td:nth-child(3), .ledger td:nth-child(4) { font-size: 11px; color: #a99f8c; }
  .notes { position: static; margin: 22px 18px 0; font-size: 12px; line-height: 1.6; }
}
