:root {
  --bg: #ffffff;
  --text: #171717;
  --muted: #555555;
  --small: #666666;
  --border: #e5e5e5;
  --link: #0645ad;
  --code-bg: #f7f7f7;
}

* {
  box-sizing: border-box;
}

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

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 24px 76px;
}

header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.site-header {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.headshot {
  width: 96px;
  height: 96px;

  object-fit: cover;

  /* move image upward inside crop */
  object-position: center 18%;

  border-radius: 50%;
  border: 1px solid var(--border);

  flex-shrink: 0;
}

.header-copy {
  flex: 1;
  min-width: 0;
}

.header-link {
  color: inherit;
  text-decoration: none;
}

.header-link:hover {
  text-decoration: none;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  color: #111;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.subtitle {
  margin-top: 6px;
  margin-bottom: 18px;
  color: var(--muted);
}

.profile-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  transition: background 0.15s ease;
}

.icon-link:hover {
  background: #f5f5f5;
  text-decoration: none;
}

.icon-link svg {
  width: 15px;
  height: 15px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section {
  margin: 42px 0;
}

h2 {
  margin: 0 0 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  color: #222;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h3 {
  margin: 0 0 4px;
  color: #222;
  font-size: 16px;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

li {
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.small {
  color: var(--small);
  font-size: 13px;
}

.manifesto {
  margin: 0 0 18px;
}

.manifesto p {
  margin-bottom: 10px;
}

.resource-list {
  display: grid;
  gap: 18px;
}

.resource-card {
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 10px;
}
.gpg-wrapper {
  position: relative;
  width: 90%;
  margin: 0 auto;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: #f1f1f1;
  overflow: hidden;
}

.copy-icon-button {
  position: absolute;
  top: 18px;
  right: 18px;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  border: 1px solid #d8d8d8;
  background: #ffffff;

  padding: 7px 10px;
  border-radius: 8px;

  font: inherit;
  font-size: 12px;
  color: var(--text);

  cursor: pointer;
}

.copy-icon-button:hover {
  background: #eeeeee;
}

.copy-icon-button:active {
  transform: scale(0.98);
}

.copy-icon-button svg {
  width: 14px;
  height: 14px;
}

.gpg-block {
  margin: 0;
  padding: 22px 96px 22px 22px;

  background: #f1f1f1;

  font-size: 12px;
  line-height: 1.75;

  white-space: pre-wrap;
  word-break: break-word;

  overflow-x: auto;
  overflow-y: hidden;
}

@media (max-width: 640px) {
  .gpg-wrapper {
    width: 100%;
  }

  .gpg-block {
    padding: 64px 18px 18px;
  }
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 50px;
  padding-top: 18px;
  color: var(--small);
  font-size: 13px;
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  main {
    padding: 32px 20px 56px;
  }

  .site-header {
    gap: 16px;
  }

  .headshot {
    width: 82px;
    height: 82px;
  }

  h1 {
    font-size: 30px;
  }

  nav {
    gap: 10px;
  }

  .manifesto {
    font-size: 16px;
    padding-left: 16px;
  }
}