/* Bom dia, Vietnã — a typed sheet: one narrow column, typewriter faces, a single red for dates. */

@font-face {
  font-family: "Special Elite";
  src: url("/static/fonts/SpecialElite-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/static/fonts/CourierPrime-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  font-style: italic;
  src: url("/static/fonts/CourierPrime-Italic.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  font-weight: bold;
  src: url("/static/fonts/CourierPrime-Bold.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #efeee9;
  --ink: #222222;
  --date: #8a2b22;
  --muted: #666666;
  --rule: #999999;
  --head: "Special Elite", "Courier New", monospace;
  --body: "Courier Prime", "Courier New", monospace;
}

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.page {
  max-width: 62ch;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

/* masthead */
.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .3rem 1rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .6rem;
  margin-bottom: 2.2rem;
  font-family: var(--head);
  font-size: .95rem;
  line-height: 1.3;
}
.mast-title {
  display: flex;
  align-items: flex-end;
  gap: .6rem;
  text-decoration: none;
}
.mast-symbol {
  width: 4.8rem;
  height: auto;
  margin-bottom: -.1rem;
}

/* a note */
.note-date {
  margin: 0;
  font-family: var(--head);
  font-size: 1.05rem;
  color: var(--date);
}
.note-title {
  margin: .3rem 0 1.2rem;
  font-family: var(--head);
  font-size: 1.3rem;
  font-weight: normal;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.note-body p {
  margin: 0 0 1rem;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.signature {
  margin: 1.4rem 0 0;
}

/* the work the note read */
.work {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  font-size: .85rem;
  line-height: 1.6;
  color: #444444;
}
.work + .work {
  margin-top: 1rem;
}
.work img {
  flex: none;
  align-self: flex-start;
  width: 64px;
  height: auto;
}
.work-label {
  display: block;
  font-family: var(--head);
  letter-spacing: .04em;
}
.work-link {
  display: block;
  margin-top: .2rem;
}

/* navigation and lists */
.note-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  font-size: .85rem;
}
.earlier {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--rule);
}
.label {
  margin: 0 0 .6rem;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rows li {
  display: flex;
  gap: 1rem;
  padding: .25rem 0;
}
.row-date {
  flex: 0 0 7.2rem;
  color: var(--date);
}
.month {
  margin: 1.6rem 0 .3rem;
  font-family: var(--head);
  font-size: 1rem;
  font-weight: normal;
}
.more {
  margin: .8rem 0 0;
}

/* who did what */
.colophon {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #c9c7be;
  font-size: .72rem;
  line-height: 1.5;
  color: #777777;
}
.colophon p {
  margin: 0 0 .3rem;
}

@media (max-width: 30rem) {
  .mast-symbol { width: 4.2rem; }
  .row-date { flex-basis: 6.6rem; }
}
