:root {
  --color-text: #111;
  --color-text-secondary: #7c7b74;
  --color-bg: #fdfdfc;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --max-width: 640px;
  --spacing-unit: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Hero */
.hero {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* Sections */
section {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

h2 {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #44687E;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* Intro */
.intro p {
  margin-bottom: var(--spacing-unit);
}

.intro p:last-child {
  margin-bottom: 0;
}

/* Projects */
.project {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.project:last-child {
  margin-bottom: 0;
}

.project h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.project h3 a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.project h3 a:hover {
  border-bottom-color: #44687E;
  color: #44687E;
}

.project p {
  color: var(--color-text);
}

.stat {
  font-weight: 600;
}

/* Next */
.next p {
  margin-bottom: var(--spacing-unit);
}

.next p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact ul {
  list-style: none;
}

.contact li {
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.contact a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.contact a:hover {
  border-bottom-color: #44687E;
  color: #44687E;
}

/* Project links */
.project p a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-text-secondary);
  transition: border-color 0.15s ease;
}

.project p a:hover {
  border-bottom-color: #44687E;
  color: #44687E;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
  }

  h1 {
    font-size: 1.75rem;
  }

  .tagline {
    font-size: 1.125rem;
  }

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

/* Footer */
footer {
  margin-top: calc(var(--spacing-unit) * 2);
  padding-top: calc(var(--spacing-unit) * 2);
}

.llms-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.llms-link:hover {
  border-bottom-color: var(--color-text-secondary);
}

/* Toolbox */
.toolbox-card {
  background: #f5f5f4;
  border-radius: 8px;
  padding: calc(var(--spacing-unit) * 1.25);
  position: relative;
}

.toolbox-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.toolbox-card td {
  padding: calc(var(--spacing-unit) * 0.35) 0;
  vertical-align: top;
}

.toolbox-card td:first-child {
  color: var(--color-text-secondary);
  padding-right: var(--spacing-unit);
}

.toolbox-card td:last-child {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: right;
  white-space: nowrap;
}

.toolbox-updated {
  display: block;
  margin-top: calc(var(--spacing-unit) * 0.75);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #7c7b74;
  text-align: right;
}

/* Link icons */
.icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 3px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  color: #908e86;
}

/* Toolkit */
.toolkit-intro {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.toolkit-box {
  background: #f5f5f4;
  border-radius: 8px;
  padding: calc(var(--spacing-unit) * 1.25);
}

.toolkit-list {
  list-style: none;
}

.toolkit-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: calc(var(--spacing-unit) * 0.35) 0;
  font-size: 0.9rem;
}

.toolkit-use {
  color: var(--color-text-secondary);
  padding-right: var(--spacing-unit);
}

.toolkit-tool {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: nowrap;
}

.toolkit-updated {
  margin-top: calc(var(--spacing-unit) * 0.75);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #7c7b74;
  text-align: right;
}


/* Keep last word with icon */
.nowrap {
  white-space: nowrap;
}


/* Next section links */
.next a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-text-secondary);
  transition: border-color 0.15s ease;
}

.next a:hover {
  border-bottom-color: #44687E;
  color: #44687E;
}


/* Icon hover color */
a:hover .icon {
  color: rgba(69, 101, 120, 0.75);
}
