:root {
  color-scheme: light dark;
  --bg: #f4f4f1;
  --text: #1b1b19;
  --muted: #6f6f69;
  --line: #d7d7d1;
  --hover: #a63f24;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
}

main {
  width: min(100% - 2rem, 43rem);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6rem) 0 3rem;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.avatar {
  display: block;
  width: 132px;
  height: 132px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  filter: grayscale(1) contrast(1.05);
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0;
}

footer {
  padding: 3rem 0 0;
  color: var(--muted);
  font-family: "Noto Serif", "Times New Roman", serif;
  font-size: .75rem;
  letter-spacing: .15rem;
  opacity: .5;
  text-align: center;
}

.identities {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  margin-bottom: 3.25rem;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

.identities a,
.identities span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.public-key {
  max-width: 100%;
  margin-top: .8rem;
  color: var(--muted);
  font: inherit;
  overflow-wrap: anywhere;
}

.emails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  margin-top: .65rem;
}

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.1rem;
}

.socials a {
  display: grid;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-items: center;
}

.socials img {
  display: block;
  width: 22px;
  height: 22px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

a:hover,
a:focus-visible { color: var(--hover); }

h2 {
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.projects {
  margin-bottom: 3.25rem;
}

.projects > h2 {
  padding: 1rem 0 .8rem;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 1.25rem 1rem 1.15rem;
  text-align: center;
}

.project + .project {
  border-left: 1px solid var(--line);
}

.project-logo {
  display: block;
  width: 96px;
  height: 82px;
  margin-bottom: .85rem;
  object-fit: contain;
}

.project h3 {
  margin: 0 0 .3rem;
  font-size: .82rem;
  letter-spacing: 0;
}

.project p {
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.45;
}

.donate > h2 { margin-bottom: .8rem; }
.donate { border-bottom: 0; }
.donate .wallet:first-of-type { border-top: 1px solid var(--line); }

.wallet {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.wallet img {
  display: block;
  width: 28px;
  height: 28px;
  margin-top: .1rem;
}

.wallet img.grin-coin-logo {
  width: 34px;
  height: 34px;
  margin: -.1rem 0 0 -3px;
}

.wallet p {
  margin: 0 0 .25rem;
  font-size: .76rem;
  font-weight: 600;
}

.wallet code {
  display: block;
  color: var(--muted);
  font: inherit;
  font-size: .7rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171716;
    --text: #ecece7;
    --muted: #aaa9a2;
    --line: #3d3d39;
    --hover: #f07855;
  }
}

@media (max-width: 32rem) {
  main { padding-top: 2.5rem; }
  .avatar { width: 112px; height: 112px; }
  .identities { margin-bottom: 2.75rem; font-size: .7rem; }
  .projects { margin-bottom: 2.75rem; }
  .wallet { gap: .8rem; }
  .wallet code { font-size: .64rem; }
}
