:root {
  --board: #232120;
  --board-2: #1b1918;
  --chalk-white: #efe9dc;
  --chalk-yellow: #eecf55;
  --chalk-blue: #7fbfd6;
  --chalk-coral: #e2795f;
  --chalk-mint: #86bd97;
  --line-dim: rgba(239, 233, 220, 0.22);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--board);
  color: var(--chalk-white);
  font-family: "Kalam", cursive;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.board-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.board-texture .wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 700px 420px at 12% 8%,
      rgba(239, 233, 220, 0.05),
      transparent 60%
    ),
    radial-gradient(
      ellipse 600px 500px at 88% 20%,
      rgba(239, 233, 220, 0.04),
      transparent 65%
    ),
    radial-gradient(
      ellipse 800px 600px at 30% 85%,
      rgba(239, 233, 220, 0.045),
      transparent 60%
    ),
    radial-gradient(
      ellipse 500px 400px at 75% 70%,
      rgba(239, 233, 220, 0.035),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      var(--board-2),
      var(--board) 30%,
      var(--board) 70%,
      var(--board-2)
    );
}
.board-texture .grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ---- chalk art layer: faded rubbed doodles behind content ---- */
.chalk-art {
  position: absolute;
  top: 0;
  left: -120px;
  right: -120px;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}
.chalk-art svg {
  overflow: visible;
}

.chalk-title {
  font-family: "Permanent Marker", cursive;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-shadow:
    0 0 1px rgba(239, 233, 220, 0.3),
    0 0 10px rgba(239, 233, 220, 0.05);
}
.handwritten {
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.5;
}

.chalk-box {
  position: relative;
  padding: 34px 32px;
}
@media (max-width: 600px) {
  .chalk-box {
    padding: 26px 20px;
  }
}
.chalk-box svg.rough-border {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  z-index: -1;
  overflow: visible;
}
.doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
}

header.hero {
  padding: 100px 0 70px;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  color: var(--chalk-white);
  margin: 0 0 4px;
  transform: rotate(-1.3deg);
}
.hero h1 .line2 {
  display: block;
  transform: rotate(0.9deg);
  margin-top: 6px;
}
.hero h1 span.accent {
  color: var(--chalk-yellow);
  display: inline-block;
  transform: rotate(-2deg);
}
.hero p.lede {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--chalk-blue);
  max-width: 500px;
  margin: 6px 0 0;
  transform: rotate(-0.4deg);
}
.hero .location {
  margin-top: 40px;
  font-size: 1.05rem;
  color: rgba(239, 233, 220, 0.55);
  transform: rotate(0.6deg);
  display: inline-block;
}
.hero .pin {
  top: 30px;
  right: 4px;
  width: 50px;
  height: 50px;
}

section {
  padding: 64px 0;
  border-top: 3px dashed var(--line-dim);
  position: relative;
}
.section-label {
  font-family: "Permanent Marker", cursive;
  font-size: 1.3rem;
  color: var(--chalk-coral);
  margin: 0 0 40px;
  transform: rotate(-1deg);
  display: inline-block;
}

.project {
  margin-bottom: 56px;
}
.project:nth-child(odd) {
  transform: rotate(-0.7deg);
}
.project:nth-child(even) {
  transform: rotate(0.6deg);
}
.project:last-child {
  margin-bottom: 0;
}
.project h3 {
  font-family: "Permanent Marker", cursive;
  font-size: 1.6rem;
  margin: 0 0 14px;
  letter-spacing: 0.3px;
}
.project p {
  margin: 0;
  color: rgba(239, 233, 220, 0.92);
  max-width: 620px;
}
.project .tags {
  margin-top: 18px;
  font-size: 1.05rem;
  color: rgba(239, 233, 220, 0.55);
}
.project .visit {
  display: inline-block;
  margin-top: 14px;
  font-family: "Permanent Marker", cursive;
  font-size: 1.05rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 2px dashed rgba(239, 233, 220, 0.4);
}
.project .visit:hover {
  border-bottom-style: solid;
}

.toggle-desc {
  font-family: "Caveat", cursive;
  font-size: 1.1rem;
  color: var(--chalk-yellow);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
  display: none;
}

@media (max-width: 600px) {
  .line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .toggle-desc {
    display: block;
  }
}

.side-project {
  margin-bottom: 60px;
  position: relative;
}
.side-project:nth-child(odd) {
  transform: rotate(-2deg);
}
.side-project:nth-child(even) {
  transform: rotate(1.8deg);
}
.side-project:last-child {
  margin-bottom: 0;
}
.side-project h3 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 10px;
}
.side-project p {
  margin: 0;
  color: rgba(239, 233, 220, 0.9);
  max-width: 560px;
}
.side-project .visit {
  display: inline-block;
  margin-top: 12px;
  font-size: 1.15rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 2px dashed rgba(239, 233, 220, 0.4);
}
.side-project svg.rough-border {
  position: absolute;
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  z-index: -1;
  overflow: visible;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
}
.links-row a {
  font-family: "Permanent Marker", cursive;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--chalk-white);
  border-bottom: 2px dashed rgba(239, 233, 220, 0.4);
  padding-bottom: 2px;
  display: inline-block;
}
.links-row a:hover {
  border-bottom-style: solid;
}

.post {
  margin-bottom: 38px;
}
.post:nth-child(odd) {
  transform: rotate(0.5deg);
}
.post:nth-child(even) {
  transform: rotate(-0.5deg);
}
.post .date {
  font-size: 1rem;
  color: rgba(239, 233, 220, 0.5);
}
.post h3 {
  font-family: "Permanent Marker", cursive;
  font-size: 1.35rem;
  margin: 4px 0 8px;
  color: var(--chalk-white);
}
.post p {
  margin: 0;
  color: rgba(239, 233, 220, 0.85);
  max-width: 600px;
}
.post a.readmore {
  display: inline-block;
  margin-top: 8px;
  color: var(--chalk-coral);
  text-decoration: none;
  border-bottom: 2px dashed rgba(226, 121, 95, 0.5);
}

.load-more-btn {
  font-family: "Permanent Marker", cursive;
  font-size: 1.1rem;
  color: var(--chalk-white);
  background: transparent;
  border: 2.5px dashed rgba(239, 233, 220, 0.3);
  padding: 9px 26px;
  cursor: pointer;
  margin-top: 12px;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}
.load-more-btn:nth-of-type(1) {
  transform: rotate(-0.8deg);
}
.load-more-btn:nth-of-type(2) {
  transform: rotate(1.1deg);
}
.load-more-btn:nth-of-type(3) {
  transform: rotate(-0.5deg);
}
.load-more-btn:hover {
  border-color: rgba(239, 233, 220, 0.55);
}

form.chalk-form {
  max-width: 480px;
}
form.chalk-form label {
  display: block;
  font-size: 1.2rem;
  margin: 18px 0 6px;
  color: var(--chalk-blue);
}
form.chalk-form label:first-of-type {
  margin-top: 0;
}
form.chalk-form label.field-err {
  color: var(--chalk-coral);
}
form.chalk-form input,
form.chalk-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 16px;
  border-bottom: 2.5px dashed rgba(239, 233, 220, 0.4);
  color: var(--chalk-white);
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  padding: 8px 4px;
  outline: none;
}
form.chalk-form input:focus,
form.chalk-form textarea:focus {
  border-bottom-color: var(--chalk-yellow);
}
form.chalk-form input.field-err,
form.chalk-form textarea.field-err {
  border-bottom-color: var(--chalk-coral);
}
form.chalk-form textarea {
  resize: vertical;
  min-height: 90px;
}
form.chalk-form input:disabled,
form.chalk-form textarea:disabled {
  opacity: 0.4;
}
form.chalk-form .hint {
  font-size: 0.95rem;
  color: var(--chalk-coral);
  margin-top: 4px;
  font-family: "Kalam", cursive;
  height: 0;
  overflow: hidden;
  opacity: 0;
}
form.chalk-form .hint.show {
  height: auto;
  opacity: 1;
}
form.chalk-form .note {
  margin-top: 14px;
  font-size: 0.95rem;
  color: rgba(239, 233, 220, 0.4);
}

.btn-send {
  margin-top: 26px;
  font-family: "Permanent Marker", cursive;
  font-size: 1.3rem;
  color: var(--board);
  background: var(--chalk-mint);
  border: none;
  padding: 13px 26px;
  cursor: pointer;
  transform: rotate(-1deg);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.3);
}
.btn-send:hover {
  transform: rotate(-1deg) scale(1.03);
}

.btn-erasing {
  margin-top: 26px;
  font-family: "Permanent Marker", cursive;
  font-size: 1.3rem;
  color: var(--chalk-white);
  background: transparent;
  border: 2.5px dashed rgba(239, 233, 220, 0.15);
  padding: 13px 26px;
  cursor: default;
  transform: rotate(-1deg);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  position: relative;
  overflow: hidden;
  min-width: 200px;
  text-align: left;
}
.btn-erasing .btn-text {
  position: relative;
  z-index: 0;
}
.eraser-trail {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--board);
  width: 0;
  z-index: 1;
  animation: trailGrow 2.4s ease-in-out infinite;
}
@keyframes trailGrow {
  0% {
    width: 0;
  }
  6% {
    width: 0;
  }
  78% {
    width: 100%;
  }
  100% {
    width: 100%;
  }
}
.eraser-block {
  position: absolute;
  top: 50%;
  left: -38px;
  width: 32px;
  height: 18px;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(175, 165, 150, 0.55),
    rgba(135, 125, 110, 0.4)
  );
  border: 1px solid rgba(239, 233, 220, 0.12);
  transform: translateY(-50%) rotate(-4deg);
  border-radius: 2px;
  animation: eraserSlide 2.4s ease-in-out infinite;
}
.eraser-block::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 3px;
  bottom: 3px;
  width: 5px;
  background: rgba(239, 233, 220, 0.18);
  border-radius: 0 2px 2px 0;
  filter: blur(1px);
}
@keyframes eraserSlide {
  0% {
    left: -38px;
  }
  6% {
    left: -38px;
  }
  78% {
    left: calc(100% + 14px);
  }
  100% {
    left: calc(100% + 14px);
  }
}
.dust-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(239, 233, 220, 0.3);
  width: var(--s, 3px);
  height: var(--s, 3px);
  left: var(--x, 50%);
  top: 50%;
  z-index: 3;
  opacity: 0;
  animation: dustPop 2.4s var(--d, 0s) ease-out infinite;
}
@keyframes dustPop {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  5% {
    transform: translate(0, 0) scale(1);
    opacity: 0.45;
  }
  35% {
    opacity: 0.2;
  }
  60% {
    transform: translate(var(--dx, 4px), var(--dy, -16px)) scale(0.15);
    opacity: 0;
  }
  100% {
    transform: translate(var(--dx, 4px), var(--dy, -16px)) scale(0.15);
    opacity: 0;
  }
}

.success-inline {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: rotate(-0.6deg);
  opacity: 0;
  animation: fadeUp 0.4s ease forwards 0.1s;
}
.check-mini {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.check-mini circle {
  fill: none;
  stroke: var(--chalk-mint);
  stroke-width: 2.5;
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  animation: drawCircle 0.45s ease forwards 0.15s;
}
.check-mini path {
  fill: none;
  stroke: var(--chalk-mint);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: drawCheck 0.3s ease forwards 0.5s;
}
@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}
.success-burst {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 0;
  left: 0;
  pointer-events: none;
}
.burst-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--chalk-mint);
  opacity: 0;
  width: var(--s, 3px);
  height: var(--s, 3px);
  left: 50%;
  top: 50%;
  animation: burstOut 0.6s var(--d, 0s) ease-out forwards;
}
@keyframes burstOut {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  15% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.55;
  }
  100% {
    transform: translate(
        calc(-50% + var(--dx, 10px)),
        calc(-50% + var(--dy, -10px))
      )
      scale(0.2);
    opacity: 0;
  }
}
.sent-label {
  font-family: "Permanent Marker", cursive;
  font-size: 1.15rem;
  color: var(--chalk-mint);
}
.send-again {
  font-family: "Caveat", cursive;
  font-size: 1.1rem;
  color: rgba(239, 233, 220, 0.45);
  text-decoration: none;
  border-bottom: 1.5px dashed rgba(239, 233, 220, 0.25);
  margin-left: 6px;
}
.send-again:hover {
  color: rgba(239, 233, 220, 0.7);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: rotate(-0.6deg) translateY(8px);
  }
  to {
    opacity: 1;
    transform: rotate(-0.6deg) translateY(0);
  }
}

.closing p.handwritten {
  max-width: 580px;
  color: rgba(239, 233, 220, 0.94);
}
.closing .chalk-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--chalk-mint);
  margin-top: 30px;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.closing .star {
  width: 30px;
  height: 30px;
  margin-left: 8px;
  vertical-align: middle;
  position: static;
  display: inline-block;
}
footer {
  padding: 20px 0 100px;
  text-align: left;
}
footer .signature {
  margin-top: 10px;
  color: rgba(239, 233, 220, 0.5);
  font-size: 1.15rem;
  transform: rotate(0.5deg);
  display: inline-block;
}

@media (max-width: 600px) {
  header.hero {
    padding: 70px 0 50px;
  }
  section {
    padding: 46px 0;
  }
  .hero .pin {
    display: none;
  }
  .chalk-art {
    left: -20px;
    right: -20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
[x-cloak] {
  display: none !important;
}
