@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Inter:wght@400;500&display=swap');

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

body {
  background: #1a140e;
  background-image: 
    radial-gradient(ellipse at 15% 20%, rgba(70, 50, 30, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(50, 30, 15, 0.4) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.03) 2px,
      rgba(0,0,0,0.03) 4px
    );
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: #2a2118;
}

.notebook {
  width: 100%;
  max-width: 820px;
  background: #f5ead6;
  border-radius: 4px;
  padding: 3.2rem 3rem 2.5rem 4.2rem;
  position: relative;
  box-shadow: 
    0 18px 45px rgba(0,0,0,0.5),
    0 6px 15px rgba(0,0,0,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.3),
    inset 2px 2px 0 rgba(255,255,255,0.1);
  background-image: 
    linear-gradient(90deg, transparent 38px, rgba(160, 120, 70, 0.22) 38px, rgba(160, 120, 70, 0.22) 40px, transparent 40px),
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 31px,
      rgba(140, 100, 50, 0.3) 32px
    ),
    radial-gradient(circle at 20% 30%, rgba(180, 140, 90, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(120, 80, 40, 0.06) 0%, transparent 35%);
  background-size: 100% 100%, 100% 32px, 100% 100%, 100% 100%;
  background-position: 0 0, 0 8px, 0 0, 0 0;
  filter: contrast(1.02);
}

/* Leather cover effect around the edges */
.notebook::before {
  content: "";
  position: absolute;
  inset: -14px;
  background: linear-gradient(145deg, #3d2a1c 0%, #1f150e 35%, #4a3424 70%, #2a1c12 100%);
  border-radius: 8px;
  z-index: -1;
  box-shadow: 
    inset 0 3px 6px rgba(255,255,255,0.12),
    inset 0 -4px 8px rgba(0,0,0,0.5),
    0 10px 25px rgba(0,0,0,0.6);
  background-image: 
    repeating-linear-gradient(
      42deg,
      transparent,
      transparent 1px,
      rgba(0,0,0,0.12) 1px,
      rgba(0,0,0,0.12) 3px
    ),
    repeating-linear-gradient(
      -15deg,
      transparent,
      transparent 8px,
      rgba(255,255,255,0.03) 8px,
      rgba(255,255,255,0.03) 10px
    ),
    radial-gradient(circle at 30% 20%, rgba(0,0,0,0.15) 0%, transparent 20%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,0.1) 0%, transparent 25%);
}

/* Stitching */
.notebook::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    #8b6b4a 0px,
    #8b6b4a 8px,
    transparent 8px,
    transparent 14px
  );
  border-radius: 2px;
  opacity: 0.7;
}

header.hero {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

h1 {
  font-family: 'Caveat', cursive;
  font-size: 4.4rem;
  font-weight: 700;
  color: #1e1610;
  letter-spacing: -0.5px;
  margin-bottom: 0.2rem;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.4);
}

.tagline {
  font-size: 1.15rem;
  color: #5a4632;
  font-weight: 500;
}

.underline {
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c65d2e, transparent);
  margin: 0.7rem auto 0;
  border-radius: 2px;
}

h2 {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  color: #1e1610;
  margin-bottom: 1rem;
  border-bottom: 2px solid #c65d2e;
  display: inline-block;
  padding-bottom: 0.1rem;
}

section {
  margin-bottom: 2.6rem;
}

.about p {
  margin-bottom: 0.9rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.project-card {
  background: rgba(255, 252, 245, 0.65);
  border: 1px solid #d9cbb0;
  border-radius: 5px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-header h3 {
  font-family: 'Caveat', cursive;
  font-size: 2.1rem;
  color: #1e1610;
}

.status {
  background: #c65d2e;
  color: #fff8f0;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.placeholder-image {
  height: 170px;
  background: #e8dcc6;
  border: 2px dashed #a88b68;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #6b5840;
  font-style: italic;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(140, 100, 50, 0.1) 8px,
      rgba(140, 100, 50, 0.1) 16px
    ),
    radial-gradient(circle at 40% 60%, rgba(100, 70, 30, 0.08) 0%, transparent 30%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.project-card p {
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.note {
  font-size: 0.9rem;
  color: #6b5840;
  font-style: italic;
}

footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #7a674f;
}

@media (max-width: 600px) {
  .notebook {
    padding: 2.4rem 1.4rem 2rem 3rem;
  }
  h1 {
    font-size: 3.3rem;
  }
  h2 {
    font-size: 2.1rem;
  }
  .notebook::before {
    inset: -8px;
  }
}