:root {
  --night: #071311;
  --deep-green: #0d211d;
  --panel: #132923;
  --panel-dark: #091716;
  --black: #030807;

  --bone: #eadfc8;
  --aged-paper: #cbbd9f;
  --silt: #b79b70;
  --faded: #788b82;

  --coral: #e38c79;
  --marian-blue: #496a88;
  --marian-dark: #263f58;
  --oxblood: #762f32;
  --gold: #c49a51;
  --gold-dark: #71592f;

  --line: #53655e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 24px 12px 60px;

  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.016) 4px
    ),
    var(--night);

  color: var(--bone);

  font-family:
    "Courier New",
    Courier,
    monospace;

  font-size: 14px;
  line-height: 1.7;
}

a {
  color: var(--coral);
  text-decoration: underline;
}

a:hover,
a:focus-visible {
  color: var(--black);
  background: var(--coral);
  text-decoration: none;
}

/* SHARED SITE SHELL */

.site-shell {
  width: min(100%, 980px);
  margin: 0 auto;

  border: 1px solid var(--line);
  background: var(--panel);

  box-shadow: 8px 8px 0 var(--black);
}

.masthead {
  padding: 22px 24px 18px;

  border-bottom: 1px solid var(--line);

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.masthead h1 {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(32px, 6vw, 58px);
  font-weight: normal;
  line-height: 0.9;
  text-transform: uppercase;

  text-shadow:
    2px 1px 0 rgba(196, 154, 81, 0.24);
}

.masthead h1 a {
  color: var(--bone);
  text-decoration: none;
}

.masthead h1 a:hover,
.masthead h1 a:focus-visible {
  color: var(--bone);
  background: transparent;
}

.masthead p {
  margin: 9px 0 0;

  color: var(--coral);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-style: italic;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.top-nav a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.top-nav a[aria-current="page"] {
  color: var(--bone);
  text-decoration: none;
}

/* TRANSMISSION BAR */

.transmission {
  overflow: hidden;
  white-space: nowrap;

  border-bottom: 1px solid var(--line);
  background: var(--black);
  color: var(--aged-paper);
}

.transmission-text {
  display: inline-block;
  min-width: 100%;

  padding: 7px 0;

  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;

  animation: drift 32s linear infinite;
}

@keyframes drift {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

/* INTERIOR LAYOUT */

.layout {
  display: grid;
  grid-template-columns: 210px 1fr;
}

.sidebar {
  padding: 18px;

  border-right: 1px solid var(--line);

  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.012) 0,
      rgba(255,255,255,0.012) 1px,
      transparent 1px,
      transparent 28px
    ),
    rgba(0, 0, 0, 0.14);
}

.main-content {
  min-width: 0;
  padding: 34px 30px 60px;
}

/* SIDEBAR BOXES */

.side-box {
  margin-bottom: 18px;

  border: 1px solid var(--line);
  background: var(--panel-dark);
}

.side-title {
  margin: 0;
  padding: 6px 9px;

  border-bottom: 1px solid var(--line);
  background: var(--black);
  color: var(--gold);

  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.side-content {
  padding: 11px;
}

.side-content p {
  margin: 0 0 10px;
}

.side-content p:last-child {
  margin-bottom: 0;
}

.side-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-links li {
  margin-bottom: 8px;
}

.side-links li::before {
  content: "✦ ";
  color: var(--gold);
}

.small-record {
  color: var(--aged-paper);

  font-size: 11px;
  line-height: 1.9;
  text-transform: uppercase;
}

.tiny-symbol {
  padding: 17px 7px;

  color: var(--marian-blue);
  text-align: center;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 22px;
  letter-spacing: 7px;
}

/* PAGE TITLES */

.page-stamp {
  display: inline-block;

  margin: 0 0 25px;
  padding: 6px 10px;

  border: 1px solid var(--gold);
  color: var(--gold);

  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;

  transform: rotate(-2deg);
}

.page-title {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(58px, 10vw, 112px);
  font-weight: normal;
  font-style: italic;
  line-height: 0.86;

  text-shadow:
    3px 2px 0 rgba(73, 106, 136, 0.38);
}

.page-subtitle {
  margin: 20px 0 0;

  color: var(--marian-blue);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
}

.intro {
  max-width: 690px;
  margin: 28px 0 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(18px, 2.6vw, 25px);
  line-height: 1.5;
}

.folk-rule {
  margin: 35px 0;

  color: var(--gold);
  text-align: center;

  font-size: 15px;
  letter-spacing: 10px;
}

/* CONTENT SECTIONS */

.section {
  margin-top: 50px;
  padding-top: 28px;

  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0 0 8px;

  color: var(--faded);

  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 22px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(32px, 5vw, 52px);
  font-weight: normal;
}

.section p {
  max-width: 680px;
}

.note {
  margin-top: 30px;
  padding: 18px 20px;

  border-left: 3px solid var(--gold);

  background:
    linear-gradient(
      90deg,
      rgba(196, 154, 81, 0.09),
      rgba(73, 106, 136, 0.04)
    );

  color: var(--aged-paper);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 17px;
  font-style: italic;
}

/* GENERAL CARDS */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;

  margin-top: 25px;
}

.card {
  padding: 18px;

  border: 1px solid var(--line);
  background: var(--panel-dark);
}

.card:nth-child(even) {
  transform: rotate(0.2deg);
}

.card:nth-child(odd) {
  transform: rotate(-0.2deg);
}

.card h3 {
  margin: 0 0 10px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 25px;
  font-weight: normal;
}

.card p {
  margin: 0;
  color: var(--aged-paper);
  font-size: 12px;
}

.status-tag {
  display: inline-block;

  margin-top: 18px;
  padding: 3px 6px;

  border: 1px dotted var(--faded);
  color: var(--faded);

  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* FOOTER */

footer {
  padding: 12px 18px;

  border-top: 1px solid var(--line);

  background: var(--black);
  color: var(--faded);

  font-size: 10px;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

/* MOBILE */

@media (max-width: 720px) {
  body {
    padding: 10px 8px 35px;
  }

  .masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .main-content {
    padding: 27px 18px 50px;
  }

  .page-title {
    font-size: 62px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .transmission-text {
    animation: none;
  }
}