/* Vasona Technologies
   Tokens first: change the look here before touching the rules below. */
:root {
  --paper: #ffffff;
  --ink: #171c26;
  --navy: #16305c;
  --navy-light: #27467c;
  --muted: #5b6472;
  --rule: #dee2e8;

  --display: "Besley", "Clarendon", Georgia, serif;
  --text: "Libre Franklin", "Franklin Gothic Medium", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --column: 40rem;
  --gutter: 1.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header */
.site-header {
  display: flex;
  align-items: baseline;
  padding: 1.125rem var(--gutter);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration-line: none;
}

.site-nav a:hover {
  color: var(--navy);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* Small wordmark shown on inner pages, where there is no large one */
.home-link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration-line: none;
}

.home-link:hover {
  color: var(--ink);
}

/* Wordmark */
.wordmark {
  margin: clamp(1.25rem, 4vh, 2.5rem) 0 clamp(2.5rem, 7vh, 4rem);
  padding: 0 var(--gutter);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(4rem, 17vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
  color: var(--navy);
}

/* The wordmark drifts up and down a few pixels while a barely lighter navy
   gradient turns slowly inside the letters. */
@property --sheen-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 100deg;
}

.wordmark a {
  display: inline-block;
  padding: 0.08em 0.02em;
  background: linear-gradient(var(--sheen-angle), var(--navy) 15%, var(--navy-light) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration-line: none;
  animation:
    wordmark-in 0.6s ease-out both,
    wordmark-float 7s ease-in-out infinite,
    wordmark-sheen 9s linear infinite;
}

/* Keep the letters filled by the gradient when hovered */
.wordmark a:hover {
  color: transparent;
}

@keyframes wordmark-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wordmark-float {
  0%, 100% { transform: translateY(4px); }
  50% { transform: translateY(-4px); }
}

@keyframes wordmark-sheen {
  from { --sheen-angle: 100deg; }
  to { --sheen-angle: 460deg; }
}

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

/* Mission */
.mission,
.team,
.company {
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mission h1,
.page h1 {
  margin: 0 0 1.75rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 5.2vw, 2.375rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.mission p {
  margin: 0 0 1.5rem;
  text-wrap: pretty;
}

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

/* Team: names in one row under the mission statement, separated by dots.
   Every name carries a dot in its left padding. The list is shifted left and
   clipped, so the dot before the first name on a line never shows, including
   when the row wraps on a narrow screen. */
.team {
  margin-top: 2.5rem;
}

.team ul {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.25rem;
  margin: 0 0 0 -1.5rem;
  padding: 0;
  list-style: none;
  font-size: 1.0625rem;
  line-height: 1.5;
  clip-path: inset(-0.5rem -0.5rem -0.5rem 1.1rem);
}

.team li {
  position: relative;
  padding-left: 1.5rem;
}

.team li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  width: 1.5rem;
  text-align: center;
  color: var(--muted);
}

.team a {
  font-weight: 500;
}

/* Company */
.company {
  margin-top: 3.5rem;
}

.company p {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--muted);
}

.company a {
  color: var(--ink);
}

.company a:hover {
  color: var(--navy);
}

/* Inner pages */
.page {
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 3.5rem) var(--gutter) 0;
}

.page h1 {
  margin-bottom: 0.75rem;
}

/* News list */
.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  column-gap: 1.75rem;
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--rule);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-meta {
  padding-top: 0.1875rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.news-outlet {
  display: block;
  font-weight: 600;
}

.news-meta time {
  display: block;
  color: var(--muted);
}

.news-title {
  margin: 0;
  font-family: var(--text);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

.news-title a {
  text-decoration-line: none;
}

.news-title a:hover {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
}

.news-note {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 34rem) {
  .news-item {
    grid-template-columns: 1fr;
    row-gap: 0.375rem;
  }

  .news-meta {
    padding-top: 0;
  }

  .news-outlet,
  .news-meta time {
    display: inline;
  }

  .news-outlet {
    margin-right: 0.5rem;
  }
}

/* Footer */
.site-footer {
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 4.5rem var(--gutter) 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}
