:root {
  --ink: #1a1f1c;
  --muted: #5a6a63;
  --rule: #dfe6e1;
  --accent: #2f6e4f;
  --accent-soft: #e7f3ec;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  background: #fff;
  color: var(--ink);
  font: 17px/1.68 Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif
}

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

a:hover {
  text-decoration-thickness: 2px
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px
}

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.id {
  display: flex;
  align-items: center;
  gap: 18px
}

.seal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  border: 2px solid var(--accent);
  background: radial-gradient(circle at 35% 35%, var(--accent-soft), #fff 60%)
}

.title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .2px
}

.subtitle {
  color: var(--muted);
  font-size: 14px
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

nav {
  margin: 8px 0 0
}

nav a {
  padding: 0 10px;
  border-right: 1px solid var(--rule);
  text-decoration: none
}

nav a:first-child {
  padding-left: 0
}

nav a:last-child {
  border-right: 0
}


main section {
  padding: 28px 0
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  font-weight: 600
}

h1 {
  font-size: 26px;
  font-variant: small-caps;
  letter-spacing: .5px
}

h2 {
  font-size: 21px;
  font-variant: small-caps;
  letter-spacing: .4px
}

h3 {
  font-size: 17px
}

p {
  margin: 0 0 12px
}

ul {
  margin: 0 0 0 20px
}

li {
  margin: 4px 0
}


.orn {
  border: 0;
  height: 10px;
  margin: 20px auto;
  max-width: 820px;
  background:
    linear-gradient(to right, transparent, var(--accent) 15%, var(--accent) 85%, transparent);
  -webkit-mask: linear-gradient(#000, transparent 60%);
  mask: linear-gradient(#000, transparent 60%);
}

.note {
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  padding: 14px;
  border-radius: 10px
}

.dropcap:first-letter {
  float: left;
  font-size: 3.1em;
  line-height: .9;
  color: var(--accent);
  font-weight: 700;
  margin: .05em .16em 0 0
}

footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  padding: 18px 0
}

/* Mobile responsive */
@media (max-width: 767px) {
  .wrap {
    padding: 16px;
  }

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }

  .id {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 100%;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .title {
    font-size: 20px;
  }

  .subtitle {
    font-size: 13px;
  }

  nav {
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  nav a {
    padding: 8px 12px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    border-right: 1px solid var(--rule);
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: calc(50% - 4px);
  }

  nav a:first-child {
    padding: 8px 12px;
  }

  main section {
    padding: 20px 0;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 16px;
  }

  .dropcap:first-letter {
    font-size: 2.5em;
    margin: 0.05em 0.12em 0 0;
  }

  .note {
    padding: 12px;
    font-size: 15px;
  }

  ul {
    margin: 0 0 0 16px;
  }

  header {
    padding-bottom: 16px;
  }

  footer {
    padding: 16px 0;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 12px;
  }

  .profile-pic {
    width: 100px;
    height: 100px;
  }

  .title {
    font-size: 18px;
  }

  nav a {
    min-width: 100%;
    margin-bottom: 4px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }
}