@font-face {
  font-family: 'IBM Selectric Light';
  src: url('IBM Selectric Light Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #d6007a;
  --white: #ffffff;
  --gray: #999999;
  --gray-light: #e5e5e5;
  --dark: #38040E;
  --font-serif: 'Instrument Serif', serif;
  --font-mono: 'IBM Selectric Light', 'Courier New', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, p, ul, ol {
  margin: 0;
  padding: 0;
}

body {
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
}

/* Background seagull GIF */
.bg-seagull {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  max-width: 500px;
  width: 80%;
}

/* Main container */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

/* Homepage title */
h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 2rem;
}

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

/* About section */
.about {
  margin-bottom: 3rem;
}

.about p {
  margin-bottom: 1rem;
}

.about ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.5rem;
}

.about li {
  margin-bottom: 0.3rem;
}

/* Navigation grid - square block buttons */
.nav-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.nav-block {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dark);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--dark);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-block:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
}

/* Sub-page header */
.back-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gray);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--pink);
}

.page-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 2rem;
}

/* Section titles on sub-pages */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--pink);
  margin: 2.5rem 0 1rem;
}

.section-title:first-of-type {
  margin-top: 0;
}

/* Project list */
.project-list {
  list-style: none;
  padding: 0;
}

.project-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.project-list li:last-child {
  border-bottom: none;
}

.project-name {
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.project-name a {
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
}

.project-name a:hover {
  color: var(--pink);
}

.project-desc {
  color: #666;
  margin-top: 0.25rem;
  font-size: 1rem;
}

/* Generic content text */
.content-text {
  margin-bottom: 1rem;
}

.content-text a {
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
}

.content-text a:hover {
  color: var(--pink);
}

/* Social / contact links */
.social-list {
  list-style: none;
  padding: 0;
}

.social-list li {
  margin-bottom: 0.8rem;
}

.social-list a {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
}

.social-list a:hover {
  color: var(--pink);
}

/* Spotify embed */
.spotify-container {
  margin-top: 1.5rem;
  max-width: 100%;
}

.spotify-container iframe {
  max-width: 100%;
  border-radius: 0;
}

/* Focus styles */
a:focus {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 3rem 1.5rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .nav-block {
    width: 130px;
    height: 130px;
    font-size: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 400px) {
  .nav-block {
    width: 110px;
    height: 110px;
    font-size: 0.95rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bg-seagull {
    animation: none;
  }
}

/* Print */
@media print {
  .bg-seagull {
    display: none;
  }

  body {
    color: black;
  }
}
