/* jacobpeters.com — shared styles */

:root {
  --text: rgb(114, 112, 115);
  --link: #000;
  --bg: #F7F3EC;
  --wrap: 500px;
  --size-lead: 21px;
  --size-body: 16.8px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-size: var(--size-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 130px 30px 80px;
}

p { margin: 0 0 40px; }

p:last-of-type { margin-bottom: 0; }

/* the opening line, e.g. "hi 👋 i'm jacob 🐻" */
.lead {
  font-size: var(--size-lead);
  margin-bottom: 50px;
}

.sub {
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.45;
  margin: -28px 0 0;
}

.proof {
  font-size: 13px;
  font-style: italic;
  line-height: 1.4;
  margin: 12px 0 0;
  color: rgb(114, 112, 115);
  text-align: center;
}

.note a {
  font-weight: 400;
}

a {
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease-in-out;
}

a:hover { opacity: 0.6; }

.wordmark {
  position: absolute;
  top: 28px;
  left: 36px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.wordmark:hover { opacity: 0.6; }

.nav {
  position: absolute;
  top: 28px;
  right: 36px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 14px;
  line-height: 1.2;
}

.nav a {
  margin-right: 0;
  color: var(--text);
  font-weight: 400;
  text-decoration: none;
}

.nav a:hover { text-decoration: none; opacity: 0.6; }

.nav a[aria-current="page"] { font-weight: 500; color: var(--link); }

.nav-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-x svg {
  width: 12px;
  height: 12px;
  display: block;
}

.page-blank { min-height: 40vh; }

.rule {
  border: 0;
  border-top: 1px solid rgba(114, 112, 115, 0.35);
  margin: 40px 0 32px;
}

.note { margin: 0 0 18px; }

.note:last-child { margin-bottom: 0; }

.embed {
  width: 100%;
  max-width: 400px;
  height: 72px;
  margin-top: 22px;
  overflow: hidden;
}

.embed iframe {
  width: 100%;
  height: 72px;
  border: 0;
  display: block;
  background: transparent;
}


@media (max-width: 560px) {
  .nav {
    position: static;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 16px 20px;
    top: auto;
    right: auto;
    gap: 8px;
    font-size: 14px;
  }
  .nav a { padding: 10px 2px; }
  .wordmark {
    position: static;
    display: block;
    margin: 16px 20px 0;
  }
  .wrap { padding: 28px 20px 72px; }
  .embed {
    max-width: none;
    height: 88px;
    margin-top: 28px;
  }
  .embed iframe { height: 88px; }
}
