:root {
  --color-brand-red: #ce1d38;
  --color-brand-blue: #173682;
  --color-slate: #324a5c;
  --color-green: #10b981;
  --color-grey-light: #f5f5f5;

  --content-max-width: 60em;
  --grid-view-min-width: 25em;
  --grid-view-max-width: 1fr;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 300;
  font-display: fallback;
  src: url("/fonts/roboto_normal_300.ttf") format("truetype");
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("/fonts/roboto_normal_400.ttf") format("truetype");
}

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  background-color: var(--color-grey-light);
  color: var(--color-slate);
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

h1 {
  font-size: 1.75em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.25em;
}

p {
  margin: 0;
  font-size: 1em;
}

a {
  text-decoration: none;
}

hr {
  width: 100%;
  margin: 1em 0;
  border: 0;
  border-bottom: .125em solid rgb(0 0 0 / 5%);
}

svg.icon {
  display: block;
  width: 1em;
  height: 1em;
  min-width: 1em;
  fill: currentColor;
}

[hidden] {
  display: none;
}

/* Header */
header {
  background-color: var(--color-slate);
  color: #fff;
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75em;
  width: 100%;
  max-width: var(--content-max-width);
  padding: 1em;
  margin: 0 auto;
}

header .logo {
  display: block;
  width: 100%;
  max-width: 12.5em;
}

/* Content */
.content {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 2em 1em 4em;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(
      min(var(--grid-view-min-width), 100%),
      var(--grid-view-max-width)
    ));
  gap: 1em;
}

.link-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75em;
  padding: 1em;
  border-radius: .5em;
  background-color: #fff;
  color: var(--color-slate);
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 7.5%),
    0 2px 4px -2px rgb(0 0 0 / 7.5%);
  overflow: hidden;
}

.link-item::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-left: .125em solid var(--color-brand-blue);
  border-radius: .5em;
  pointer-events: none;
}

.link-item.accent-solo::before {
  border-left-color: var(--color-green);
}

.link-item:hover {
  text-decoration: none;
}

.link-item:hover::before {
  border-left-width: .2em;
}

.link-item .item-heading {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  font-size: 1.25em;
}

.link-item .tag {
  margin-top: -0.5em;
  font-size: .875em;
  opacity: 50%;
}

@media (width > 60em) {
  .link-item .tag {
    display: none;
  }
}

.link-item .item-heading svg {
  opacity: 25%;
}

.link-item:hover .item-heading svg {
  opacity: 100%;
}
