/* ==========================================================================
   Sierra Leone Matchday
   Layers: settings, generic, elements, objects, components, utilities
   ========================================================================== */


/* 1. SETTINGS ------------------------------------------------------------ */

:root {
  --clr-night: #101828;
  --clr-night-soft: #1b2740;
  --clr-blue: #0072c6;
  --clr-blue-deep: #005a8c;
  --clr-sky: #9fd0f5;
  --clr-green: #1eb53a;
  --clr-green-ink: #07210f;
  --clr-green-deep: #0f7a26;
  --clr-red: #cf1f2e;
  --clr-page: #f7f7f7;
  --clr-mist: #eef2f6;
  --clr-paper: #ffffff;
  --clr-ink: #1b2430;
  --clr-ink-soft: #566173;
  --clr-line: #dbe2ea;

  --ff-head: "Sora", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-body: "PT Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --gutter: 16px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 18px rgba(16, 24, 40, 0.07);
  --flag: linear-gradient(to right, #1eb53a 0 33.34%, #ffffff 33.34% 66.67%, #0072c6 66.67% 100%);
}


/* 2. GENERIC ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 12px;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}


/* 3. ELEMENTS ------------------------------------------------------------ */

body {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--clr-ink);
  background: var(--clr-page);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.o-main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-night);
}

a {
  color: var(--clr-blue-deep);
}

a:hover {
  color: var(--clr-blue);
}

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

.c-masthead :focus-visible,
.c-footer :focus-visible,
.c-lead :focus-visible,
.c-pagehead :focus-visible {
  outline-color: #ffffff;
}

main:focus {
  outline: none;
}


/* 4. OBJECTS ------------------------------------------------------------- */

.o-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.o-band {
  padding-top: 20px;
  padding-bottom: 24px;
}

.o-band--mist {
  background: var(--clr-mist);
}

.o-section {
  padding-top: 24px;
  padding-bottom: 40px;
}

.o-hero {
  display: grid;
  gap: 16px;
}

.o-blocks {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 40px;
}

.o-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.o-split {
  display: grid;
  gap: 28px;
  padding-top: 20px;
  padding-bottom: 36px;
}

.o-section__lead {
  margin-bottom: 20px;
}

.o-docs {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .o-hero {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
  }

  .o-split {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 40px;
  }

  .o-docs {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}


/* 5. COMPONENTS ---------------------------------------------------------- */

/* skip link */
.c-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--clr-night);
  font-weight: 700;
  text-decoration: none;
}

.c-skip:focus {
  top: 12px;
}

/* masthead */
.c-masthead {
  background: var(--clr-night);
  color: #ffffff;
}

.c-masthead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 4px;
  padding-top: 10px;
  padding-bottom: 8px;
}

.c-brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.c-brand__logo {
  height: 38px;
  width: auto;
}

.c-masthead__side {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.c-masthead__today {
  display: none;
  color: var(--clr-sky);
}

.c-masthead__today:empty {
  display: none;
}

.c-masthead__rss {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.1em;
}

.c-masthead__rss:hover {
  background: #ffffff;
  color: var(--clr-night);
}

.c-nav {
  order: 3;
  flex: 1 0 100%;
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.c-nav::-webkit-scrollbar {
  display: none;
}

.c-nav__list {
  display: flex;
  width: max-content;
  padding: 0 var(--gutter);
}

.c-nav__link {
  display: block;
  padding: 11px 14px;
  font-family: var(--ff-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e6edf6;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.c-nav__link:hover {
  color: #ffffff;
  border-bottom-color: var(--clr-blue);
}

.c-nav__link.is-current {
  color: #ffffff;
  border-bottom-color: var(--clr-green);
}

.c-flagline {
  height: 4px;
  background: var(--flag);
}

@media (min-width: 900px) {
  .c-masthead__bar {
    flex-wrap: nowrap;
    gap: 28px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .c-brand__logo {
    height: 44px;
  }

  .c-nav {
    order: 0;
    flex: 1 1 auto;
    margin: 0;
    overflow: visible;
  }

  .c-nav__list {
    width: auto;
    justify-content: center;
    padding: 0;
  }

  .c-nav__link {
    padding: 14px 13px;
    font-size: 0.86rem;
  }

  .c-masthead__today {
    display: block;
  }
}

/* ticker */
.c-ticker {
  background: var(--clr-paper);
  border-bottom: 1px solid var(--clr-line);
}

.c-ticker__inner {
  display: flex;
  align-items: stretch;
  min-height: 42px;
  overflow: hidden;
}

.c-ticker__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin: 6px 6px 6px 0;
  padding: 0 14px;
  background: var(--clr-red);
  color: #ffffff;
  font-family: var(--ff-head);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  white-space: nowrap;
}

.c-ticker__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  align-items: center;
}

.c-ticker__viewport::-webkit-scrollbar {
  display: none;
}

.c-ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
}

.c-ticker__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 28px 0 18px;
}

.c-ticker__item::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--clr-green);
}

.c-ticker__link {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--clr-night);
  text-decoration: none;
  white-space: nowrap;
}

.c-ticker__link:hover {
  color: var(--clr-blue-deep);
  text-decoration: underline;
}

.c-ticker__toggle {
  flex: 0 0 auto;
  align-self: center;
  position: relative;
  width: 32px;
  height: 32px;
  margin-left: 6px;
  border: 1px solid var(--clr-line);
  border-radius: 50%;
  background: var(--clr-paper);
}

.c-ticker__toggle[hidden] {
  display: none;
}

.c-ticker__toggle::before,
.c-ticker__toggle::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 3px;
  height: 10px;
  background: var(--clr-night);
  border-radius: 1px;
}

.c-ticker__toggle::before {
  left: 11px;
}

.c-ticker__toggle::after {
  right: 11px;
}

.c-ticker__toggle[aria-pressed="true"]::before {
  left: 12px;
  width: 0;
  height: 0;
  top: 9px;
  border-style: solid;
  border-width: 6.5px 0 6.5px 10px;
  border-color: transparent transparent transparent var(--clr-night);
  background: none;
  border-radius: 0;
}

.c-ticker__toggle[aria-pressed="true"]::after {
  display: none;
}

.c-ticker.is-running .c-ticker__viewport {
  overflow: hidden;
}

.c-ticker.is-running .c-ticker__track {
  animation: ticker-run var(--ticker-time, 90s) linear infinite;
}

.c-ticker.is-running:hover .c-ticker__track,
.c-ticker.is-running:focus-within .c-ticker__track,
.c-ticker.is-paused .c-ticker__track {
  animation-play-state: paused;
}

@keyframes ticker-run {
  from {
    transform: translateX(0);
  }

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

@media (prefers-reduced-motion: reduce) {
  .c-ticker.is-running .c-ticker__track {
    animation: none;
  }

  .c-ticker.is-running .c-ticker__viewport {
    overflow-x: auto;
  }
}

/* tag */
.c-tag {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 6px 9px 5px;
  border-radius: 4px;
  background: var(--clr-green);
  color: var(--clr-green-ink);
  font-family: var(--ff-head);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.c-tag:hover {
  background: #ffffff;
  color: var(--clr-green-ink);
}

/* meta */
.c-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--clr-ink-soft);
}

.c-meta__dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

/* media */
.c-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-media__blank {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--clr-night-soft), var(--clr-blue-deep));
}

/* headings and bars */
.c-heading {
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 5px solid var(--clr-green);
  font-size: 1.25rem;
  font-weight: 800;
}

.c-heading a {
  color: inherit;
  text-decoration: none;
}

.c-heading a:hover {
  color: var(--clr-blue);
}

.c-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: linear-gradient(90deg, var(--clr-blue-deep), var(--clr-blue));
  color: #ffffff;
}

.c-bar--red {
  background: var(--clr-red);
}

.c-bar__title {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.c-bar__title::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--clr-green);
}

.c-bar--red .c-bar__title::before {
  background: #ffffff;
}

.c-bar__title a {
  color: inherit;
  text-decoration: none;
}

.c-bar__more {
  flex: 0 0 auto;
  font-family: var(--ff-head);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.c-bar__more:hover {
  color: #ffffff;
  text-decoration: underline;
}

.c-panel {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--clr-paper);
  box-shadow: var(--shadow);
}

.c-panel__body {
  padding: 4px 16px 10px;
}

/* lead card (title on the image) */
.c-lead {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--clr-night);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.c-lead__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.c-lead__body {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 56px 18px 18px;
  background: linear-gradient(to top, rgba(8, 14, 28, 0.94) 0%, rgba(8, 14, 28, 0.7) 38%, rgba(8, 14, 28, 0) 72%);
}

.c-lead__title {
  margin-top: 12px;
  font-size: clamp(1.4rem, 1rem + 2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.c-lead__link {
  color: #ffffff;
  text-decoration: none;
}

.c-lead__link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.c-lead__link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.c-lead__dek {
  display: none;
  max-width: 52ch;
  margin-top: 8px;
  color: #e8eef6;
}

.c-lead .c-meta {
  color: #d7e2ef;
}

@media (min-width: 700px) {
  .c-lead {
    min-height: 420px;
  }

  .c-lead__body {
    padding: 80px 28px 26px;
  }

  .c-lead__dek {
    display: block;
  }
}

@media (min-width: 900px) {
  .t-home .c-lead {
    height: 100%;
    min-height: 480px;
  }
}

/* tile (vertical card) */
.c-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--clr-paper);
  box-shadow: var(--shadow);
}

.c-tile__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--clr-mist);
}

.c-tile__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px 16px;
}

.c-tile__title {
  margin-top: 10px;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.28;
}

.c-tile__link {
  color: var(--clr-night);
  text-decoration: none;
}

.c-tile__link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.c-tile__link:hover {
  color: var(--clr-blue-deep);
  text-decoration: underline;
}

.c-tile__dek {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--clr-ink-soft);
}

.c-tile .c-media__img {
  transition: transform 0.35s ease;
}

.c-tile:hover .c-media__img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .c-tile .c-media__img {
    transition: none;
  }

  .c-tile:hover .c-media__img {
    transform: none;
  }
}

/* row (thumbnail list) */
.c-row {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--clr-line);
}

.c-row:first-child {
  border-top: 0;
}

.c-row--bare {
  grid-template-columns: minmax(0, 1fr);
}

.c-row__media {
  align-self: start;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--clr-mist);
}

.c-row__kicker {
  font-family: var(--ff-head);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-green-deep);
}

.c-row__title {
  margin-top: 2px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.3;
}

.c-row__link {
  color: var(--clr-ink);
  text-decoration: none;
}

.c-row__link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.c-row__link:hover {
  color: var(--clr-blue-deep);
  text-decoration: underline;
}

.c-row .c-meta {
  margin-top: 4px;
  font-size: 0.76rem;
}

/* homepage rubric block */
.c-block__body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.c-block__list {
  display: block;
}

.c-tile--wide .c-tile__title {
  font-size: 1.2rem;
}

@media (min-width: 700px) {
  .c-tile--wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .c-tile--wide .c-tile__media {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
  }

  .c-tile--wide .c-tile__body {
    justify-content: center;
    padding: 24px 28px;
  }

  .c-tile--wide .c-tile__title {
    font-size: 1.45rem;
  }
}

@media (min-width: 760px) {
  .c-block__body {
    padding: 20px;
  }

  .c-block__body:not(.c-block__body--thin) {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .c-block__body--flip .c-block__lead {
    order: 2;
  }

  .c-block__body:not(.c-block__body--thin) .c-block__list .c-row:first-child {
    padding-top: 0;
  }

  .c-block__body--thin {
    gap: 12px;
  }

  .c-block__body--thin .c-block__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .c-block__body--thin .c-block__list .c-row:nth-child(2) {
    border-top: 0;
  }
}

/* pager */
.c-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.c-pager__btn {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--clr-blue-deep);
  color: #ffffff;
  font-family: var(--ff-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.c-pager__btn:hover {
  background: var(--clr-night);
  color: #ffffff;
}

.c-pager__count {
  font-size: 0.85rem;
  color: var(--clr-ink-soft);
  text-align: center;
}

.c-pager__ghost {
  min-width: 1px;
}

/* breadcrumbs */
.c-crumbs {
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--clr-ink-soft);
}

.c-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.c-crumbs__list li + li::before {
  content: "/";
  margin: 0 8px;
  opacity: 0.6;
}

.c-crumbs a {
  color: inherit;
}

.c-crumbs--light {
  color: #cfe0f1;
}

.c-crumbs--light a:hover {
  color: #ffffff;
}

/* page head (section, writer, static pages) */
.c-pagehead {
  padding: 22px 0 28px;
  background: linear-gradient(110deg, var(--clr-night) 0%, var(--clr-night-soft) 55%, var(--clr-blue-deep) 100%);
  color: #ffffff;
  border-bottom: 4px solid var(--clr-green);
}

.c-pagehead--slim {
  padding-bottom: 22px;
}

.c-pagehead__title {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.c-pagehead__text {
  max-width: 62ch;
  margin-top: 10px;
  font-size: 1.1rem;
  color: #dbe7f3;
}

.c-pagehead a {
  color: #ffffff;
}

.c-profile {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.c-profile__avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-top: 28px;
  border-radius: 50%;
  background: var(--clr-green);
  color: var(--clr-green-ink);
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 800;
}

.c-profile__role {
  margin-top: 6px;
  font-family: var(--ff-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-sky);
}

@media (min-width: 700px) {
  .c-profile__avatar {
    width: 104px;
    height: 104px;
    font-size: 2.1rem;
  }
}

/* notice */
.c-notice {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-left: 5px solid var(--clr-red);
  border-radius: var(--radius-sm);
  background: #fdecee;
  color: #4a1218;
  font-size: 0.95rem;
}

/* empty */
.c-empty {
  max-width: 640px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--clr-paper);
  box-shadow: var(--shadow);
}

.c-empty__title {
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 800;
}

/* article */
.c-story {
  min-width: 0;
}

.c-story__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.c-story__title {
  margin-top: 14px;
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.c-story__dek {
  margin-top: 14px;
  font-size: 1.22rem;
  line-height: 1.45;
  color: #324154;
}

.c-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--clr-line);
  width: 100%;
}

.c-byline__avatar,
.c-writer__avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-blue-deep);
  color: #ffffff;
  font-family: var(--ff-head);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.c-byline__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
  color: var(--clr-ink-soft);
}

.c-byline__who {
  color: var(--clr-ink);
}

.c-byline__who a {
  font-weight: 700;
  color: var(--clr-night);
}

.c-byline__who a:hover {
  color: var(--clr-blue);
}

.c-byline__when {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.c-cover {
  margin-top: 20px;
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
}

.c-cover__img {
  width: 100%;
  background: var(--clr-mist);
}

.c-cover__cap,
.c-figure__cap {
  padding: 8px var(--gutter) 0;
  font-size: 0.8rem;
  color: var(--clr-ink-soft);
}

@media (min-width: 700px) {
  .c-cover {
    margin-left: 0;
    margin-right: 0;
  }

  .c-cover__img {
    border-radius: var(--radius);
  }

  .c-cover__cap,
  .c-figure__cap {
    padding-left: 0;
    padding-right: 0;
  }
}

/* share */
.c-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.c-share__label {
  margin-right: 4px;
  font-family: var(--ff-head);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-ink-soft);
}

.c-share__btn {
  padding: 8px 14px;
  border: 1px solid var(--clr-line);
  border-radius: 999px;
  background: var(--clr-paper);
  color: var(--clr-night);
  font-family: var(--ff-head);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.c-share__btn:hover {
  border-color: var(--clr-blue);
  background: var(--clr-blue);
  color: #ffffff;
}

.c-share__btn[hidden] {
  display: none;
}

/* prose */
.c-prose {
  font-size: 1.1875rem;
  line-height: 1.7;
}

.c-prose > * + * {
  margin-top: 1.1em;
}

.c-story__body {
  max-width: 44rem;
}

.c-prose h2 {
  margin-top: 1.9em;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
}

.c-prose h3 {
  margin-top: 1.6em;
  font-size: 1.2rem;
  font-weight: 700;
}

.c-prose h2 + *,
.c-prose h3 + * {
  margin-top: 0.6em;
}

.c-prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.c-prose ul,
.c-prose ol {
  padding-left: 1.4rem;
}

.c-prose ul {
  list-style: disc;
}

.c-prose ol {
  list-style: decimal;
}

.c-prose li + li {
  margin-top: 0.4em;
}

.c-prose li::marker {
  color: var(--clr-green-deep);
}

.c-prose blockquote {
  padding: 4px 0 4px 18px;
  border-left: 5px solid var(--clr-green);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: #263446;
}

.c-prose blockquote p + p {
  margin-top: 0.6em;
}

.c-prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.c-prose th,
.c-prose td {
  padding: 8px 12px;
  border: 1px solid var(--clr-line);
  text-align: left;
}

.c-prose th {
  background: var(--clr-mist);
  font-family: var(--ff-head);
  font-size: 0.82rem;
}

.c-prose hr {
  border: 0;
  border-top: 1px solid var(--clr-line);
}

.c-figure {
  margin-top: 1.6em;
  margin-bottom: 1.6em;
}

.c-figure__img {
  width: 100%;
  border-radius: var(--radius-sm);
  background: var(--clr-mist);
}

.c-figure__cap {
  padding-left: 0;
  padding-right: 0;
}

/* topics, sources, writer, neighbours */
.c-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.c-topics__item {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--clr-mist);
  color: var(--clr-night);
  font-size: 0.82rem;
  font-weight: 700;
}

.c-sources {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--clr-paper);
  box-shadow: var(--shadow);
}

.c-sources__title {
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-ink-soft);
}

.c-sources__list li + li {
  margin-top: 6px;
}

.c-sources__list a {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.c-writer {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--clr-mist);
}

.c-writer__avatar {
  width: 56px;
  height: 56px;
  font-size: 1.1rem;
  background: var(--clr-green);
  color: var(--clr-green-ink);
}

.c-writer__name {
  font-size: 1.05rem;
  font-weight: 800;
}

.c-writer__name a {
  color: var(--clr-night);
  text-decoration: none;
}

.c-writer__name a:hover {
  color: var(--clr-blue);
  text-decoration: underline;
}

.c-writer__role {
  font-family: var(--ff-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-green-deep);
}

.c-writer__bio {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #324154;
}

.c-neighbours {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.c-neighbours__item {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius);
  background: var(--clr-paper);
  color: var(--clr-night);
  text-decoration: none;
}

.c-neighbours__item:hover {
  border-color: var(--clr-blue);
}

.c-neighbours__dir {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ff-head);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-blue-deep);
}

.c-neighbours__title {
  display: block;
  font-family: var(--ff-head);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.c-neighbours__item--next {
  text-align: right;
}

@media (min-width: 700px) {
  .c-neighbours {
    grid-template-columns: 1fr 1fr;
  }

  .c-neighbours__item--prev:only-child {
    grid-column: 1;
  }

  .c-neighbours__item--next:only-child {
    grid-column: 2;
  }
}

/* article rail */
.c-rail {
  min-width: 0;
}

@media (min-width: 900px) {
  .c-rail {
    position: sticky;
    top: 16px;
  }
}

/* static pages */
.c-docnav__title {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-ink-soft);
}

.c-docnav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c-docnav__link {
  display: block;
  padding: 8px 14px;
  border: 1px solid var(--clr-line);
  border-radius: 999px;
  background: var(--clr-paper);
  color: var(--clr-night);
  font-family: var(--ff-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.c-docnav__link:hover {
  border-color: var(--clr-blue);
  color: var(--clr-blue-deep);
}

.c-docnav__link.is-current {
  border-color: var(--clr-blue-deep);
  background: var(--clr-blue-deep);
  color: #ffffff;
}

.c-doc {
  max-width: 720px;
  min-width: 0;
}

@media (min-width: 900px) {
  .c-docnav__list {
    flex-direction: column;
    gap: 0;
  }

  .c-docnav__link {
    padding: 10px 14px;
    border: 0;
    border-left: 4px solid var(--clr-line);
    border-radius: 0;
    background: transparent;
  }

  .c-docnav__link.is-current {
    border-left-color: var(--clr-green);
    background: var(--clr-paper);
    color: var(--clr-night);
  }
}

/* 404 */
.c-lost {
  max-width: 640px;
  margin-bottom: 32px;
}

.c-lost__code {
  font-family: var(--ff-head);
  font-size: clamp(4rem, 3rem + 8vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--clr-blue);
}

.c-lost__title {
  margin-top: 8px;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 800;
}

.c-lost__text {
  margin-top: 10px;
  font-size: 1.1rem;
}

.c-lost__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.c-chip {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--clr-night);
  color: #ffffff;
  font-family: var(--ff-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.c-chip:hover {
  background: var(--clr-blue-deep);
  color: #ffffff;
}

.c-lost__latest {
  max-width: 640px;
}

/* footer */
.c-footer {
  margin-top: 8px;
  background: var(--clr-night);
  color: #cdd8e6;
}

.c-footer__main {
  display: grid;
  gap: 28px;
  padding-top: 36px;
  padding-bottom: 28px;
}

.c-footer__logo {
  width: 208px;
  height: auto;
}

.c-footer__blurb {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 0.95rem;
}

.c-footer__title {
  margin-bottom: 10px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-sky);
}

.c-footer__list li + li {
  margin-top: 6px;
}

.c-footer a {
  color: #ffffff;
  text-decoration: none;
}

.c-footer a:hover {
  text-decoration: underline;
}

.c-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #9fb0c5;
}

@media (min-width: 760px) {
  .c-footer__main {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}


/* 6. UTILITIES ----------------------------------------------------------- */

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

.u-hidden {
  display: none;
}

.u-nowrap {
  white-space: nowrap;
}
