:root {
  --ink: #1c2226;
  --ink-soft: #34424a;
  --muted: #5c6a70;
  --accent: #2f4550;
  --paper: rgba(255, 255, 255, 0.38);
  --paper-strong: rgba(255, 255, 255, 0.55);
  --rule: rgba(28, 34, 38, 0.15);
  --status-color: #747f8d;
}

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

body {
  font-family: "Roboto Mono", "Fira Code", monospace;
  font-variation-settings: "wght" 400;
  color: var(--ink);
  background: linear-gradient(180deg, #9db7c0 0%, #7ea1ab 50%, #657a82 100%);
  background-attachment: fixed;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 69, 80, 0.35);
}

a:hover {
  border-bottom-color: var(--accent);
}

.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transition: transform 0.15s ease;
  opacity: 0.8;
}

.cursor.hover {
  transform: scale(1.6);
}

.cursor.click {
  transform: scale(0.7);
}

.fish-bg {
  position: fixed;
  z-index: 0;
  color: rgba(28, 34, 38, 0.5);
  font-size: 16px;
  white-space: pre;
  pointer-events: none;
  font-family: "Fira Code", monospace;
}

.nav-strip {
  padding: 14px 24px;
  font-size: 13px;
  color: rgba(28, 34, 38, 0.65);
  letter-spacing: 0.02em;
}

.nav-strip a {
  color: var(--ink-soft);
  border: none;
  margin-right: 2px;
}

.nav-strip a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.nav-strip .sep {
  color: rgba(28, 34, 38, 0.3);
  margin: 0 8px;
}

.nav-strip .current {
  color: var(--ink);
  text-decoration: underline;
  margin-right: 2px;
}


.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 24px 90px;
  position: relative;
  z-index: 1;
}

.tagline {
  color: rgba(28, 34, 38, 0.6);
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: start;
  margin: 36px 0 56px;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar-container {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 52px;
  height: 52px;
  display: block;
  border: 2px solid var(--paper-strong);
}

.status-dot {
  width: 11px;
  height: 11px;
  background: var(--status-color);
  position: absolute;
  bottom: -2px;
  right: -2px;
  border: 2px solid #7ea1ab;
  border-radius: 50%;
}

.username {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.status-text {
  color: var(--muted);
  font-size: 12px;
}

.spotify-section {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.spotify-section .label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  display: block;
  margin-bottom: 3px;
}

.hero-text h1 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.about-text {
  color: var(--ink-soft);
  font-size: 14.5px;
}

#art {
  height: 320px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-sizing: content-box;
  justify-self: end;
  display: block;
  border: 3px solid var(--paper-strong);
  transform: rotate(0.6deg);
}

@media (max-width: 760px) {
  #art {
    width: auto;
    max-width: 100%;
    height: 320px;
    justify-self: center;
  }
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 760px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.side-col {
  grid-column: 2;
}

@media (max-width: 760px) {
  .side-col {
    grid-column: auto;
  }
}

.main-col section,
.side-col section {
  margin-bottom: 40px;
}

h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.links-list a {
  color: var(--ink-soft);
  border: none;
  display: inline-flex;
  gap: 8px;
}

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

.links-list .glyph {
  color: var(--accent);
  width: 14px;
  display: inline-block;
}

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

.post-list li {
  margin-bottom: 20px;
  padding-left: 0;
}

.post-list .post-date {
  color: var(--muted);
  font-size: 11px;
  display: block;
  margin-bottom: 2px;
}

.post-list .post-title {
  font-size: 15px;
  font-weight: 600;
}

.post-list .post-excerpt {
  color: var(--ink-soft);
  font-size: 13px;
  margin-top: 3px;
}

.guestbook-section {
  margin-top: 20px;
}

.guestbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 760px) {
  .guestbook-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.comments-container {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.comments-container.js-fade {
  --fade-top: 24px;
  --fade-bottom: 24px;
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0,
      black var(--fade-top),
      black calc(100% - var(--fade-bottom)),
      transparent 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0,
      black var(--fade-top),
      black calc(100% - var(--fade-bottom)),
      transparent 100%);
}

.comments-container.js-fade[data-at-top="true"] {
  --fade-top: 0px;
}

.comments-container.js-fade[data-at-bottom="true"] {
  --fade-bottom: 0px;
}

.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-header {
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
}

.comment-text {
  color: var(--ink-soft);
  white-space: pre-wrap;
  margin: 3px 0;
}

.comment-timestamp {
  font-size: 10.5px;
  color: var(--muted);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: rgba(28, 34, 38, 0.45);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper-strong);
}

.comment-form textarea {
  resize: vertical;
  min-height: 70px;
}

.comment-form button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  background: var(--ink);
  color: #eef3f4;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
}

.comment-form button:hover {
  background: var(--accent);
}

.comment-form button:disabled {
  background: rgba(28, 34, 38, 0.25);
  color: rgba(28, 34, 38, 0.5);
  cursor: not-allowed;
}

.error-message {
  color: #7a2222;
  font-size: 13px;
  margin-top: 8px;
}

article.post {
  font-size: 14.5px;
  color: var(--ink-soft);
}

article.post h1 {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
}

article.post .post-meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 24px;
}

article.post p {
  margin-bottom: 16px;
}

article.post pre {
  background: var(--paper-strong);
  padding: 12px;
  overflow-x: auto;
  font-size: 13px;
  margin-bottom: 16px;
}

article.post code {
  font-family: "Fira Code", monospace;
  font-size: 0.9em;
  background-color: #00000020;
  padding: 2px 4px;
}

article.post pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

@media (max-width: 640px) {
  .cursor {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }
}


/* Markdown content styles */
article.post strong,
article.post b {
  font-weight: 700;
  color: var(--ink);
}

article.post em,
article.post i {
  font-style: italic;
}

article.post s,
article.post del,
article.post strike {
  text-decoration: line-through;
  opacity: 0.6;
}

article.post blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--muted);
  font-style: italic;
}

article.post blockquote p:last-child {
  margin-bottom: 0;
}

article.post ul,
article.post ol {
  margin: 16px 0;
  padding-left: 24px;
}

article.post ul {
  list-style: disc;
}

article.post ol {
  list-style: decimal;
}

article.post ul ul,
article.post ol ol,
article.post ul ol,
article.post ol ul {
  margin: 4px 0;
}

article.post li {
  margin-bottom: 4px;
}

article.post hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 32px 0;
}

article.post img:not(.inline) {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px 0;
  border: 2px solid var(--paper-strong);
}

article.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

article.post th,
article.post td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

article.post th {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--rule);
}

article.post tr:nth-child(even) {
  background: var(--paper);
}

article.post h2,
article.post h3,
article.post h4,
article.post h5,
article.post h6 {
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 12px;
}

article.post h2 {
  font-size: 18px;
}

article.post h3 {
  font-size: 16px;
}

article.post h4 {
  font-size: 15px;
}

article.post h5 {
  font-size: 14px;
}

article.post h6 {
  font-size: 13px;
  color: var(--muted);
}

article.post a {
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 69, 80, 0.35);
}

article.post a:hover {
  border-bottom-color: var(--accent);
}

article.post input[type="checkbox"] {
  margin-right: 8px;
}

article.post details {
  margin: 16px 0;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

article.post summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

/* Project icons - inline next to title */
.project-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.15s ease;
  text-decoration: none;
  line-height: 1;
}

.project-icon-link:hover {
  opacity: 1;
}

.project-icon-img {
  width: 12px;
  height: 12px;
  display: block;
}

/* Project page links */
.project-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #e0ddd5);
  font-size: 0.9rem;
}

.project-links .sep {
  margin: 0 8px;
  opacity: 0.4;
}

.project-link {
  color: var(--ink-soft, #34424a);
  text-decoration: none;
  transition: color 0.15s ease;
}

.project-link:hover {
  color: var(--accent, #5c7a8a);
  text-decoration: underline;
}

.back-arrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--ink-soft, #34424a);
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.back-arrow:hover {
  opacity: 1;
}