/* DM Mono layout (pre-5iri) + peeks / multi-page chrome */

@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&display=swap");

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

:root {
  --background: #ffffff;
  --text: #0a0a0a;
  --text-secondary: #6b6b6b;
  --link: #0a0a0a;
  --link-hover: #000000;
}

html {
  font-size: 15px;
}

body {
  font-family: "DM Mono", monospace;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.5;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--text);
  color: var(--background);
  z-index: 100;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 20px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 40px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text-secondary);
  padding: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--text);
}

h1 {
  font-size: 1.72rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 40px;
  color: var(--text);
}

.subtitle {
  margin-top: -28px;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

section {
  margin-bottom: 50px;
}

h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text);
}

section p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

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

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: none;
  padding: 4px 0;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: hsla(0, 0%, 100%, 0.1);
  cursor: pointer;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

.emphasis-link {
  color: var(--text);
  font-size: 1.04em;
}

.list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list li {
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 18px;
  text-indent: -18px;
}

.list li::before {
  content: "• ";
  padding-right: 8px;
}

.list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

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

.project {
  margin-bottom: 30px;
}

.project:last-of-type {
  margin-bottom: 20px;
}

.project h3 {
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 5px;
}

.project h3 a {
  border-bottom: none;
  display: inline-block;
  padding: 5px 0;
  color: var(--text);
}

.project p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.see-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
}

.links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.links a {
  color: var(--text-secondary);
  padding: 0;
  display: flex;
  align-items: center;
}

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

.elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.elsewhere a {
  color: var(--text-secondary);
  padding: 0;
}

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

.elsewhere .sep {
  color: var(--text-secondary);
  opacity: 0.45;
  user-select: none;
}

.email {
  margin-top: 48px;
  color: var(--text-secondary);
}

.email a {
  color: var(--text-secondary);
  padding: 0;
}

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

.page-desc {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.page-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.year {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin: 36px 0 16px;
}

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

.note-block {
  margin-bottom: 28px;
}

.note-block h3 {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}

.note-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.note-meta a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.empty-note {
  color: var(--text-secondary);
}

::selection {
  color: #3b82f6;
  background: #dbeafe;
}

/* Hover peeks (childhood / valedictorian) */
.hover-peek {
  position: relative;
  display: inline;
}

.hover-peek__trigger {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  cursor: help;
}

.hover-peek__card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(calc(-50% + var(--shift, 0px)));
  width: 148px;
  padding: 8px 8px 10px;
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 20;
}

.hover-peek__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hover-peek__card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
}

.hover-peek__card--below {
  bottom: auto;
  top: calc(100% + 10px);
}

.hover-peek:hover .hover-peek__card,
.hover-peek:focus-within .hover-peek__card {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .hover-peek__card {
    transition: none;
  }
}

.llm-note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .container {
    padding: 60px 20px;
  }

  html {
    font-size: 14px;
  }

  section {
    margin-bottom: 40px;
  }

  .hover-peek__card {
    width: 128px;
  }
}
