:root {
  --navy: #051e40;
  --navy-deep: #020c1a;
  --red: #c8102e;
  --ivory: #f2f0e9;
  --ivory-dim: rgba(242, 240, 233, 0.66);
  --rule: rgba(242, 240, 233, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 106.25%; }

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--navy);
  color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-color: var(--ivory); }

a:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 2px;
}

.mast,
main {
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.mast { padding-top: 3rem; }

.mast .brand {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 10vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0.015em;
  text-decoration: none;
}

/* Signature: single red bar under the masthead */
.mast::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 5px;
  background: var(--red);
  margin-top: 1.1rem;
}

.is-post .mast { padding-top: 2rem; }
.is-post .mast .brand { font-size: 1.6rem; }

main {
  flex: 1;
  padding-top: 1.4rem;
  padding-bottom: 3.5rem;
}

/* Homepage: list of posts */
.posts { list-style: none; }

.post {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.post time,
.article time {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ivory-dim);
  margin-bottom: 0.35rem;
}

.post h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.2;
}

.post h2 a { text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }

.post p {
  color: var(--ivory-dim);
  margin-top: 0.55rem;
}

.post .more {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Post pages */
.article h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1.6rem;
}

.body p { margin-bottom: 1.1rem; }

.body ul {
  list-style: square;
  padding-left: 1.3rem;
  margin-bottom: 1.2rem;
}

.body li { padding: 0.35rem 0 0.35rem 0.3rem; }
.body li::marker { color: var(--ivory-dim); }

.back {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
}

.foot {
  background: var(--navy-deep);
  padding: 1.6rem 1.25rem 2.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ivory-dim);
}
