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

/* Text selection */
::selection {
  background: #000000;
  color: #ffffff;
}

::-moz-selection {
  background: #000000;
  color: #ffffff;
}

/* Custom cursor */
body,
a,
button,
.project {
  cursor: none !important;
}

.cursor {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor.hover {
  width: 8px;
  height: 8px;
}

/* Base */
html {
  font-size: 16px;
  line-height: 1.6;
  overflow-y: scroll;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Inter", "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  color: #000000;
  padding: 3rem 2rem;
  max-width: 720px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
  font-weight: 600;
  max-width: 100%;
  word-wrap: break-word;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

code {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 1rem;
  background: none;
  padding: 0;
  letter-spacing: -0.02em;
  font-weight: 500;
}

/* Header */
header {
  margin-bottom: 5rem;
  position: relative;
}

.wordmark {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.wordmark a {
  text-decoration: none;
  color: #000000;
  display: inline-block;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wordmark a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: #000000;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wordmark a:hover::after {
  width: 100%;
}

nav {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

nav a {
  color: #000000;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #000000;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav a:hover {
  transform: translateY(-2px);
}

/* Main Content */
main {
  margin-bottom: 5rem;
  max-width: 100%;
  width: 100%;
}

.statement {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 3rem;
  font-weight: 600;
  letter-spacing: -0.06em;
}

/* Links */
a {
  color: #000000;
}

a:focus {
  outline: 2px solid #000000;
  outline-offset: 3px;
}

main p a {
  text-decoration: none;
  position: relative;
  font-weight: 500;
  border-bottom: 2px solid #000000;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

main p a:hover {
  background-color: #000000;
  color: #ffffff;
  border-bottom-color: #000000;
}

/* Horizontal Rule */
hr {
  border: none;
  border-top: 2px solid #000000;
  margin: 3rem 0;
}

/* Work Page */
.project {
  margin-bottom: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: -2rem;
  width: 3px;
  height: 0;
  background: #000000;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project:hover::before {
  height: 100%;
}

.project:hover {
  padding-left: 1.5rem;
  border-top-color: #000000;
}

.project-year {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
  text-transform: uppercase;
  font-weight: 500;
}

.project-name {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.project-description {
  margin-bottom: 0;
  opacity: 0.7;
  line-height: 1.7;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.project:hover .project-description {
  opacity: 1;
}

/* Footer */
footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid #000000;
  font-size: 0.85rem;
  opacity: 0.6;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 2rem 1.5rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .statement {
    font-size: 2rem;
  }

  .wordmark {
    font-size: 1.75rem;
  }

  header {
    margin-bottom: 3rem;
  }

  .project::before {
    left: -1.5rem;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  * {
    cursor: auto !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
