:root {
  --bg-dark: #0a0a0a;
  --text-light: #dad8d0;
  --bg-light: #dad8d0;
  --text-dark: #0a0a0a;
}

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

body {
  font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

body.light-mode .dash {
  color: var(--text-dark);
}

main {
  text-align: left;
  max-width: 800px;
  width: 100%;
}

h1 {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.dash {
  color: var(--text-light);
  margin: 0 0 2rem 0;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

nav div {
  display: flex;
  gap: 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.5;
}

nav div > span {
  min-width: 90px;
  flex-shrink: 0;
}

nav a {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.2s ease;
  word-break: break-word;
  opacity: 0.65;
}

nav a:hover {
  opacity: 1;
}

#duck {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.2s ease;
  opacity: 0.6;
}

#duck img {
  display: block;
  filter: brightness(0) saturate(100%) invert(18%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(95%) contrast(91%);
  transition: filter 0.3s ease;
}

body.light-mode #duck img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(95%) contrast(91%);
}

#duck:hover {
  transform: scale(1.1);
  opacity: 1;
}

#duck:active {
  transform: scale(0.95);
}

footer {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-size: 0.875rem;
}

footer a {
  color: inherit;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 1;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal[hidden] {
  display: none;
}

.modal-content {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

body.light-mode .modal-content {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: inherit;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 1;
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 400;
}

.privacy-sections {
  margin-top: 1rem;
}

.modal-content .section {
  margin-bottom: 1.5rem;
}

.modal-content .section p {
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

.modal-content a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  
  h1 {
    margin-bottom: 1.5rem;
  }
  
  .dash {
    margin: 0 0 1.5rem 0;
  }
  
  nav {
    gap: 0.875rem;
  }
  
  #duck {
    bottom: 1rem;
    left: 1rem;
  }
  
  footer {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.75rem;
  }
  
  .modal {
    padding: 1rem;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
}