@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/literata-400.woff2") format("woff2");
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/literata-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-sc-500.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-sc-600.woff2") format("woff2");
}

:root {
  --paper: #e7ebe4;
  --band: #d5ddd4;
  --ink: #1a2824;
  --soft: #3d4a44;
  --rule: #c3cdc4;
  --brass: #c6a15a;
  --on-dark: #f4f7f3;
  --on-dark-soft: #c9d4cc;
  --cond: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --text: "Literata", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
}

.sheet {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  margin: 1.6rem 0 0.55rem;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  color: var(--on-dark);
}

h2 {
  margin: 2.75rem 0 1.05rem;
  font-size: 1.5rem;
}

.mast {
  background: var(--ink);
  color: var(--on-dark);
  border-bottom: 4px solid var(--brass);
}

.mast-inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2rem;
}

.mast-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem 2rem;
}

.company {
  margin: 0;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
}

.motto {
  margin: 0.35rem 0 0;
  color: var(--on-dark-soft);
  font-size: 1.05rem;
}

.contact {
  margin: 0;
  font-style: normal;
  text-align: right;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--on-dark-soft);
}

.contact a {
  color: var(--on-dark);
}

.contact a,
.contact span {
  display: block;
}

.role {
  margin: 0;
  color: var(--brass);
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.lede {
  margin: 0.25rem 0 0.85rem;
  font-size: 1.3125rem;
  line-height: 1.45;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #f7f8f5;
}

th[scope="row"] {
  width: 9.75rem;
  padding: 0 1.15rem 0 0.9rem;
  border-right: 1px solid var(--rule);
  vertical-align: top;
  text-align: right;
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--soft);
  white-space: nowrap;
}

td {
  padding: 0 0.9rem 0 1.25rem;
  vertical-align: top;
}

tbody tr:first-child th,
tbody tr:first-child td {
  border-top: 1px solid var(--rule);
  padding-top: 1.05rem;
}

tbody tr + tr th,
tbody tr + tr td {
  border-top: 1px solid var(--rule);
  padding-top: 1.15rem;
}

th[scope="row"],
td {
  padding-bottom: 1.15rem;
}

.client {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.25;
}

.place {
  font-weight: 400;
  color: var(--soft);
}

.now th[scope="row"] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brass);
}

.agents {
  margin-top: 2.75rem;
  background: var(--ink);
  color: var(--on-dark);
  border-top: 4px solid var(--brass);
}

.agents .sheet {
  padding-top: 0.3rem;
  padding-bottom: 2.4rem;
}

.agents h2 {
  margin: 1.7rem 0 0.9rem;
  color: var(--brass);
}

.agents p {
  max-width: 40rem;
  color: var(--on-dark);
}

.write {
  display: inline-block;
  padding: 0.72rem 1.15rem;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
}

.write:hover {
  background: #243832;
}

.close {
  margin: 0 0 1.15rem;
}

.end {
  padding-top: 2.25rem;
  padding-bottom: 3rem;
}

.life {
  margin: 0;
  color: var(--soft);
}

footer {
  margin-top: 2.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--soft);
  font-size: 1rem;
}

footer p {
  margin: 0;
  max-width: 40rem;
}

.missing {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.missing h1 {
  margin: 0 0 1.25rem;
  color: var(--ink);
  max-width: 12ch;
}

@media (min-width: 800px) {
  .sheet {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .mast-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 2.3rem;
  }
}

@media (max-width: 640px) {
  .mast-top {
    flex-direction: column;
  }

  .contact {
    text-align: left;
  }

  table,
  tbody,
  tr,
  th[scope="row"],
  td {
    display: block;
    width: auto;
    white-space: normal;
    text-align: left;
  }

  th[scope="row"] {
    border-right: 0;
    padding: 0.85rem 0.9rem 0.15rem;
  }

  td {
    padding: 0.15rem 0.9rem 0.95rem;
  }

  tbody tr {
    border-top: 1px solid var(--rule);
  }

  tbody tr:first-child th,
  tbody tr:first-child td,
  tbody tr + tr th,
  tbody tr + tr td {
    border-top: 0;
  }

  .now th[scope="row"] {
    box-shadow: inset 3px 0 0 var(--brass);
  }
}

@media print {
  body {
    background: #fff;
  }

  .mast,
  .agents {
    background: #fff;
    color: #000;
    border-color: #000;
  }

  .mast h1,
  .role,
  .motto,
  .contact,
  .contact a,
  .agents h2,
  .agents p {
    color: #000;
  }

  .write {
    background: #fff;
    color: #000;
    text-decoration: underline;
    padding: 0;
  }

  tr {
    break-inside: avoid;
  }
}
