:root {
  --ledger-paper: #f7f0e4;
  --ledger-black: #181d20;
  --ledger-rule: #cdbfae;
  --ledger-copper: #a95f3c;
  --ledger-teal: #236d69;
  --ledger-olive: #73845f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(35, 109, 105, 0.1), transparent 260px),
    var(--ledger-paper);
  color: var(--ledger-black);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.ledger-leaf {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.ledger-return {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  background: var(--ledger-black);
  color: #fff7ea;
  text-decoration: none;
}

.ledger-heading {
  margin-top: 46px;
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.ledger-heading p {
  margin: 0;
  color: #4e5d59;
}

.ledger-heading p:first-child {
  color: var(--ledger-copper);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.preston-record {
  width: 100%;
  margin: 42px 0;
  border-collapse: collapse;
  background: #fffaf2;
  border: 1px solid var(--ledger-rule);
}

.preston-record caption {
  text-align: left;
  padding: 0 0 12px;
  font-weight: 900;
  color: var(--ledger-teal);
}

.preston-record th,
.preston-record td {
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--ledger-rule);
  padding: 16px;
}

.preston-record th {
  width: 220px;
  color: #253032;
}

.ledger-strips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 3px solid var(--ledger-black);
  border-bottom: 3px solid var(--ledger-black);
}

.ledger-strips li {
  padding: 18px;
  border-left: 1px solid var(--ledger-rule);
  min-height: 290px;
  background: rgba(255, 250, 242, 0.7);
}

.ledger-strips li:first-child {
  border-left: 0;
}

.ledger-strips strong {
  display: block;
  min-height: 54px;
  color: var(--ledger-copper);
  font-size: 1.08rem;
}

.ledger-strips p {
  margin: 0;
}

.media-register {
  margin-top: 42px;
  padding: 22px;
  background: #1b2427;
  color: #fff5e7;
  display: grid;
  gap: 10px;
}

.media-register h2 {
  margin: 0;
  color: #e9c36c;
}

.media-register p {
  margin: 0;
}

@media (max-width: 900px) {
  .ledger-strips {
    grid-template-columns: 1fr;
  }

  .ledger-strips li {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--ledger-rule);
  }

  .ledger-strips li:first-child {
    border-top: 0;
  }
}

@media (max-width: 620px) {
  .preston-record th,
  .preston-record td {
    display: block;
    width: 100%;
  }

  .preston-record td {
    border-top: 0;
    padding-top: 0;
  }
}
