body {
  margin: 0;
  font-family: "Special Elite", monospace;
  background: #f6f3ee;
  color: #2b2b2b;

  /* paper-like grid texture */
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 80px 20px 40px;
}

.hero h1 {
  font-size: 64px;
  letter-spacing: 6px;
  margin: 0;
  font-family: "Reenie Beanie", cursive;
}

.subtitle {
  font-style: italic;
  opacity: 0.7;
}

/* NAV */
nav {
  text-align: center;
  margin-bottom: 40px;
}

nav a {
  margin: 0 15px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px dashed #999;
}

/* MAIN LAYOUT */
main {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* HEADINGS */
h2 {
  font-family: "Reenie Beanie", cursive;
  font-size: 36px;
  border-bottom: 1px dashed #aaa;
  padding-bottom: 5px;
}

/* STORY CARDS */
.card {
  background: rgba(255,255,255,0.6);
  border: 1px dashed #aaa;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.05);
  transform: rotate(-0.3deg);
  transition: all 0.2s ease;
}

.card:hover {
  transform: rotate(0deg) scale(1.01);
}

/* LINKS INSIDE CARDS */
.card a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed #666;
}

.card a:hover {
  opacity: 0.7;
}

/* GALLERY */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.sketch-box {
  border: 1px dashed #888;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.5);
  transform: rotate(0.5deg);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  font-size: 12px;
  opacity: 0.6;
}

/* STORY PAGES (used by lighthouse.html + repair-shop.html) */
.story-header {
  text-align: center;
  padding: 60px 20px 20px;
}

.story {
  max-width: 750px;
  margin: auto;
  padding: 20px;
  line-height: 1.7;
}

.sketch-frame {
  border: 1px dashed #999;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
  background: rgba(255,255,255,0.4);
  transform: rotate(-0.5deg);
}

.sketch-label {
  font-style: italic;
  opacity: 0.6;
}

.back {
  display: inline-block;
  margin-top: 40px;
  text-decoration: none;
  border-bottom: 1px dashed #666;
  color: #333;
}