:root {
  --bg: #f2f1ef;
  --text: #101010;
  --green: #087143;
  --green-dash: rgba(8, 113, 67, 0.8);
  --rule: rgba(0, 0, 0, 0.2);

  --col: 46.8rem;   /* content column width */
  --pad: 1.3rem;    /* page gutter */
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- links ---------- */

a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px dashed var(--green-dash);
  padding-bottom: 1px;
}

a:hover {
  opacity: 0.7;
}

/* ---------- header ---------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--rule);
}

.site-title {
  font-size: 1rem;
  font-weight: 400;
}

/* the title is plain text on the page you're already on */
.site-title.is-current {
  color: var(--text);
  border-bottom: none;
  cursor: default;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.875rem;
  font-weight: 700;
}

/* ---------- main ---------- */

main {
  padding: 3rem var(--pad) 0;
}

.portrait {
  width: 242px;
  height: 242px;
  overflow: hidden;
  margin: 0 auto 4.2rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* --- the two knobs ---
     scale:           1 = no zoom, 1.35 = 35% closer. bump it up to zoom in.
     object-position: where the crop sits. first number is left/right,
                      second is up/down. lower the second to favor the top. */
  scale: 1.5;
  object-position: 50% 40%;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 2.1rem;
  max-width: var(--col);
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.625;
}

.content p {
  margin: 0;
}

.content.center {
  text-align: center;
}

/* ---------- footer ---------- */

footer {
  margin-top: 3rem;
  padding: 0 var(--pad) 2.5rem;
  text-align: center;
  font-size: 0.875rem;
}

footer .sep {
  color: var(--text);
  margin: 0 0.6rem;
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  header {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.3rem var(--pad);
  }

  nav {
    gap: 1.5rem;
  }

  main {
    padding-top: 2.5rem;
  }

  .portrait {
    width: 200px;
    height: 200px;
    margin-bottom: 3rem;
  }
}
