:root {
  --pink: #e64980;
  --yellow: #ffd43b;
  --blue: #4dabf7;
  --green: #69db7c;
  --cream: #fff8ec;
  --ink: #495057;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Kalam', cursive;
  color: var(--ink);
  background-color: var(--cream);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    #f4c2d7 32px
  );
  background-size: 100% 32px;
}

h1, h2, h3 {
  font-family: 'Kalam', cursive;
  font-weight: 700;
  color: var(--pink);
}

a {
  color: var(--pink);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: white;
  border-bottom: 4px solid var(--ink);
  flex-wrap: wrap;
}

.nav-logo {
  text-decoration: none;
}

/* Blocky brand title ("TOSA SITTERS") — chunky letter blocks, hand-drawn font */
.brand-blocks {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.brand-word {
  display: inline-flex;
  gap: 4px;
}

.brand-letter {
  display: inline-block;
  font-family: 'Kalam', cursive;
  font-weight: 700;
  color: white;
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 4px 9px;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-letter:nth-child(4n+1) { background: var(--pink); transform: rotate(-5deg); }
.brand-letter:nth-child(4n+2) { background: var(--blue); transform: rotate(4deg); }
.brand-letter:nth-child(4n+3) { background: var(--green); transform: rotate(-3deg); }
.brand-letter:nth-child(4n)   { background: var(--yellow); color: var(--ink); transform: rotate(5deg); }

.nav-logo .brand-letter {
  font-size: 13px;
  padding: 2px 5px;
  border-width: 2px;
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--ink);
}

.hero .brand-letter {
  font-size: 34px;
  padding: 6px 12px;
}

/* Sticker-style section headings */
.sticker-heading {
  display: inline-block;
  font-family: 'Kalam', cursive;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 4px 16px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg);
}

.contact .sticker-heading { background: var(--green); transform: rotate(2deg); }
.booking .sticker-heading { background: var(--pink); color: white; transform: rotate(-2deg); }

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  font-size: 18px;
  color: var(--ink);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--pink);
  text-decoration: underline wavy var(--yellow);
}

/* Layout */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

section {
  margin-bottom: 40px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 40px 16px;
}

.hero h1 {
  margin-bottom: 8px;
}

.hero .tagline {
  font-size: 20px;
  margin-top: 16px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: inline-block;
}

.dots span:nth-child(1) { background: var(--pink); }
.dots span:nth-child(2) { background: var(--yellow); }
.dots span:nth-child(3) { background: var(--blue); }
.dots span:nth-child(4) { background: var(--green); }

/* Cards (used by contact, booking, and sitter cards) */
.card {
  background: white;
  border: 4px solid var(--ink);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-1deg);
}

.card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 24px;
  width: 50px;
  height: 20px;
  background: rgba(255, 212, 59, 0.85);
  border: 2px solid var(--ink);
  transform: rotate(-4deg);
}

.contact .card {
  transform: rotate(1deg);
}

label {
  display: block;
  margin-top: 16px;
  font-size: 18px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  font-family: 'Kalam', cursive;
  font-size: 16px;
  border: 2px solid var(--ink);
  border-radius: 6px;
}

button[type="submit"] {
  margin-top: 20px;
  padding: 12px 28px;
  font-family: 'Kalam', cursive;
  font-size: 18px;
  font-weight: 700;
  color: white;
  background: var(--pink);
  border: 3px solid var(--ink);
  border-radius: 30px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button[type="submit"]:hover {
  transform: rotate(-2deg) scale(1.05) translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
}

.form-message.success {
  background: #d3f9d8;
  border: 3px solid var(--green);
  box-shadow: 3px 3px 0 var(--ink);
}

.form-message.error {
  background: #ffe3e3;
  border: 3px solid var(--pink);
  box-shadow: 3px 3px 0 var(--ink);
}

/* Sitter cards (about page) */
.sitter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.sitter-card {
  text-align: center;
  transform: rotate(1deg);
}

.sitter-card:nth-child(even) {
  transform: rotate(-1deg);
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: white;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.role-badge {
  display: inline-block;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-2deg);
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: var(--ink);
}

/* Responsive */
@media (max-width: 480px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links a {
    margin-left: 0;
    margin-right: 16px;
  }
  .hero .brand-letter {
    font-size: 22px;
    padding: 4px 8px;
  }
}
