/* Google Font — Inter (clean, modern) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

/* ============================================
   CSS VARIABLES — change these to retheme
   rgb(198, 182, 163)
   #dcd2cb
   #DDDDD5
   
   ============================================ */
:root {
  --bg:        #dcd2cb; /* dark warm near-black */
  --surface:   #1c1b17;            /* slightly lighter surface */
  --text:      #32302e;            /* warm cream white */
  --text-2:    #32302e;            /* secondary text */
  --muted:     #21201f;            /* muted / placeholder */
  --line:      #87817d;  /* subtle dividers */
  --hover-bg:  #87817d; /* hover background */
  --max:       680px;              /* max content width */
}

/* ============================================
   RESET + BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.8;
  padding: 0 1.5rem;
  -webkit-font-smoothing: antialiased;
}



/* Page fade-in — JS adds .loaded to body */
body { opacity: 0; transition: opacity 0.2s ease; }
body.loaded { opacity: 1; }

/* ============================================
   LAYOUT WRAPPER
   ============================================ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0 1.2rem;
}



.logo {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.logo:hover { opacity: 1; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  display: block;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover  { color: var(--text); background: var(--hover-bg); }
.nav-links a.active { color: var(--text); }

.nav-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin-bottom: 4rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 1.75rem 0 0.75rem;
}

h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.02rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.88rem; }

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 1rem;
}

p { margin-bottom: 0.9rem; color: var(--text-2); }
p:last-child { margin-bottom: 0; }

/* Inline links inside body text */
.content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.15s;
}
.content a:hover { text-decoration-color: var(--muted); }

/* ============================================
   HOMEPAGE — bio + sketches
   ============================================ */
.bio {
  margin-bottom: 2.5rem;
}
.bio p { font-size: 1rem; line-height: 1.85; }

/* Where you say "Find me on …" */
.find-me {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 2;
}
.find-me a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.find-me a:hover {
  color: var(--text);
  text-decoration-color: var(--muted);
}

/* ── SKETCHES ─────────────────────────────── */
/*
  Put sketch image files in /sketches/ folder.
  Then in index.html, remove the HTML comment tags around <img>.
*/
.sketches {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem 0;
}
.sketches img {
  height: 180px;       /* change this to resize sketches */
  width: auto;
  opacity: 0.65;
  filter: sepia(0.15) brightness(0.85);
  transition: opacity 0.3s, filter 0.3s;
  border-radius: 2px;
}
.sketches img:hover {
  opacity: 0.9;
  filter: sepia(0) brightness(1);
}

/* ============================================
   BLOG — post list
   ============================================ */
.post-list {
  list-style: none;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.8rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 8px;
  gap: 1rem;
  transition: background 0.15s;
  cursor: pointer;
}
.post-item:hover { background: var(--hover-bg); }

.post-title {
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s;
}
.post-item:hover .post-title { color: var(--text); }

.post-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.empty-state {
  padding: 3rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ============================================
   PROJECTS — list
   ============================================ */
.project-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.project-item:hover { background: var(--hover-bg); }

.project-icon {
  margin-top: 0.15rem;
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.project-body { flex: 1; min-width: 0; }

.project-name {
  display: block;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.1rem;
  transition: color 0.15s;
}
.project-item:hover .project-name { color: var(--text); }

.project-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 400;
}

/* ============================================
   PHOTOS — masonry
   ============================================ */
.photo-grid {
  columns: 3;
  column-gap: 8px;
  margin-top: 0.5rem;
}
@media (max-width: 560px) { .photo-grid { columns: 2; } }
@media (max-width: 360px) { .photo-grid { columns: 1; } }

.photo-item {
  break-inside: avoid;
  margin-bottom: 8px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.photo-item img {
  width: 100%;
  display: block;
  opacity: 0.80;
  filter: saturate(0.7) brightness(0.9);
  transition: opacity 0.35s, filter 0.35s, transform 0.35s;
}
.photo-item:hover img {
  opacity: 1;
  filter: saturate(1) brightness(1);
  transform: scale(1.02);
}

/* Caption shown on hover */
.photo-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0.75rem 0.6rem;
  background: linear-gradient(transparent, rgba(13,12,10,0.85));
  font-size: 0.72rem;
  color: rgba(216,210,200,0.7);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.photo-item:hover .photo-cap { opacity: 1; }

/* ============================================
   GAMES
   ============================================ */
.game-area {
  margin-top: 1rem;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.game-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 420px;
  color: var(--muted);
  font-size: 0.85rem;
  gap: 0.5rem;
}
.game-placeholder span { font-size: 1.5rem; opacity: 0.3; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  margin-top: 6rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
footer a:hover { color: var(--text-2); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 500px) {
  h1 { font-size: 1.4rem; }
  nav { padding: 1.5rem 0 1rem; }
  .nav-divider { margin-bottom: 2.5rem; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0.3rem 0.5rem; font-size: 0.83rem; }
}




/* SKETCH BACKGROUND */
.sketch-bg {
  position: fixed;
  z-index: 0;
  opacity: 1.0;
  width: 300px;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
}

@media (max-width: 1500px) {
  .sketch-bg {
    display: none
  }
}