:root {
  --bg: #e8e2d3;
  --fg: #34312c;
  --muted: #7d766c;
  --rule: #d6cfbd;
  --bar: #6b6b28;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 106.25%;
}

body {
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.top-bar {
  height: 6px;
  width: 100%;
  background: var(--bar);
  flex: none;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  margin: 0;
  padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 32px);
}

.name {
  margin: 0 0 4px;
  font-size: clamp(1.75rem, 4vw + 1rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin: 0 0 24px;
}

.contact .line {
  padding: 2px 0;
}


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

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 2px;
}

.projects {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  padding-left: clamp(20px, 5vw, 32px);
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: auto;
  padding-top: 40px;
}

.social-icons a:hover {
  text-decoration: none;
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
}

.social-icons a:hover svg,
.social-icons a:focus-visible svg {
  fill: var(--fg);
}

.projects a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.treks-link {
  display: inline-block;
  padding: 6px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.treks-link:hover,
.treks-link:focus-visible {
  border-color: var(--fg);
  text-decoration: none;
}

