@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --guide: #0f5a3c;      /* guide-sign green */
  --guide-deep: #0a4129;
  --snow: #f3f6f4;       /* page */
  --asphalt: #22302a;    /* text */
  --fog: #56655e;        /* secondary text */
  --line: #ccd6d0;
  --white: #ffffff;
  --measure: 62ch;
}

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

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

body {
  margin: 0;
  background: var(--snow);
  color: var(--asphalt);
  font-family: "Overpass", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: var(--guide);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  background: var(--asphalt);
  color: var(--white);
  border-radius: 6px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0;
}

.wordmark {
  color: var(--asphalt);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--asphalt);
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--asphalt);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* The guide sign: the one bold element on the page */

.sign {
  margin: 8px 0 0;
  padding: clamp(32px, 6vw, 64px) clamp(28px, 6vw, 72px) clamp(36px, 6vw, 68px);
  background: var(--guide);
  color: var(--white);
  border-radius: 22px;
  /* A white border line inset from the edge, like a real highway guide sign */
  box-shadow: inset 0 0 0 9px var(--guide), inset 0 0 0 13px var(--white);
}

.sign h1 {
  margin: 0;
  font-size: clamp(3rem, 9.5vw, 6.25rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.sign p {
  margin: 18px 0 0;
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.intro {
  max-width: var(--measure);
  margin: 40px 0 0;
  font-size: 21px;
  line-height: 1.5;
}

/* Sections */

.block {
  margin-top: 80px;
  scroll-margin-top: 24px;
}

.block h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* App list */

.apps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--asphalt);
}

.app {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 4px 32px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.app-name {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}

.app-name a {
  color: var(--asphalt);
  text-decoration-color: var(--guide);
}

.app-name a:hover {
  color: var(--guide);
}

.app-desc {
  max-width: 54ch;
  margin: 0;
}

/* About and contact */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.split .block {
  margin-top: 0;
}

.split-row {
  margin-top: 80px;
}

.about-text {
  max-width: 44ch;
  margin: 0;
}

.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 0;
}

.contact-list dt {
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
}

address {
  font-style: normal;
}

/* Privacy page */

.page-title {
  margin: 24px 0 8px;
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.updated {
  margin: 0;
  color: var(--fog);
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin: 44px 0 10px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.prose p {
  margin: 0 0 14px;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 96px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: 16px;
}

.site-footer a {
  color: var(--fog);
}

.site-footer a:hover {
  color: var(--asphalt);
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .wrap {
    padding: 0 16px;
  }

  .sign {
    border-radius: 16px;
    box-shadow: inset 0 0 0 7px var(--guide), inset 0 0 0 10px var(--white);
  }

  .intro {
    font-size: 19px;
  }

  .block,
  .split-row {
    margin-top: 64px;
  }

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

  .split {
    grid-template-columns: 1fr;
    gap: 64px;
  }
}
