:root{
  --kraft-base:#c99b63;
  --kraft-dark:#a56f39;
  --ink:#17120d;
  --paper:#f7f0e3;
  --paper-2:#fff8ed;
  --muted:#6d5a46;
  --green:#0f6a43;
  --green-2:#1d8b5d;
  --red:#b4332f;
  --red-2:#d54a44;
  --cream:#fff6ea;
  --line:rgba(60,35,10,.14);
  --shadow:0 10px 30px rgba(45,24,7,.14);
  --shadow-strong:0 18px 60px rgba(40,20,5,.18);
  --radius-xl:28px;
  --radius-lg:20px;
  --radius-md:16px;
  --radius-pill:999px;
  --font-display:'Bebas Neue', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-note:'Special Elite', monospace;
  --t:220ms cubic-bezier(.2,.8,.2,1);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  min-height:100vh;
  color:var(--ink);
  font-family:var(--font-body);
  background:
    linear-gradient(rgba(255,245,228,.20), rgba(120,70,20,.08)),
    url('assets/kraft.jpg') center top / cover fixed no-repeat;
  position:relative;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 32%),
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.08), transparent 26%),
    radial-gradient(circle at 50% 80%, rgba(120,70,20,.10), transparent 34%);
  mix-blend-mode:soft-light;
  opacity:.9;
}

button,input,textarea{
  font:inherit;
}

.site-shell{
  width:min(100%, 1280px);
  margin:0 auto;
  padding:18px 14px 80px;
  position:relative;
  z-index:2;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  margin-bottom:2px;
}

.topbar-brand{
  font-family:var(--font-display);
  font-size:clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing:.06em;
  color:rgba(25,15,10,.82);
}

.open-modal-btn{
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,248,237,.68);
  backdrop-filter:blur(4px);
  color:var(--ink);
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  box-shadow:var(--shadow);
  transition:transform var(--t), background var(--t);
}

.open-modal-btn:hover{
  transform:translateY(-2px);
  background:rgba(255,248,237,.9);
}

.hero-stage{
  min-height:auto;
  display:grid;
  grid-template-columns:1fr;
  align-items:start;
  position:relative;
  padding:8px 0 0;
  z-index:1;
}

.hero-center{
  position:relative;
  z-index:1;
  text-align:center;
  padding:18px 0 4px;
  pointer-events:none;
}

.cta-primary{
  pointer-events:auto;
}

.hero-actions{
  pointer-events:auto;
}

.hero-kicker{
  margin:0 0 6px;
  font-size:.92rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(30,20,10,.75);
}

.giant-title{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.05em;
  line-height:.82;
  margin:0 auto 18px;
}

.giant-title-inline{
  flex-direction:row;
  gap:.08em;
  flex-wrap:wrap;
}

.giant-title-inline .word{
  font-size:clamp(3.5rem, 16vw, 8rem);
  transform:none !important;
}

.giant-title .word{
  font-family:var(--font-display);
  font-size:clamp(4.2rem, 19vw, 12rem);
  letter-spacing:.03em;
  text-transform:uppercase;
  text-shadow:
    0 2px 0 rgba(255,255,255,.22),
    0 6px 18px rgba(0,0,0,.12);
  transform:rotate(-1deg);
}

.giant-title .word:nth-child(2){
  transform:rotate(1deg);
}

.giant-title .green{ color:var(--green); }
.giant-title .white{ color:var(--cream); text-shadow:0 1px 0 rgba(0,0,0,.18), 0 6px 18px rgba(0,0,0,.12); }
.giant-title .red{ color:var(--red); }

.hero-sub{
  width:min(100%, 680px);
  margin:0 auto;
  color:rgba(27,18,10,.78);
  font-size:clamp(.98rem, 2.6vw, 1.1rem);
  line-height:1.45;
}

.hero-actions{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.cta-primary{
  border:none;
  background:linear-gradient(135deg, var(--green), var(--green-2));
  color:#fff;
  padding:15px 24px;
  border-radius:999px;
  font-weight:800;
  font-size:1rem;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(12,95,61,.28);
  transition:transform var(--t), box-shadow var(--t);
}

.cta-primary:hover{
  transform:translateY(-2px) scale(1.01);
  box-shadow:0 18px 32px rgba(12,95,61,.34);
}

.hero-hint{
  font-size:.92rem;
  color:rgba(27,18,10,.68);
}

.floating-wall{
  position:relative;
  margin-top:22px;
  min-height:430px;
  pointer-events:auto;
  z-index:5;
}

.floating-note{
  position:absolute;
  width:min(270px, 70vw);
  background:rgba(255,248,235,.95);
  border:1px solid rgba(70,40,15,.12);
  box-shadow:var(--shadow-strong);
  border-radius:8px;
  padding:20px 16px 14px;
  font-family:var(--font-note);
  font-size:1rem;
  line-height:1.45;
  color:#2a1c12;
  backdrop-filter:blur(2px);
  animation:floatNote 7s ease-in-out infinite;
  pointer-events:auto;
  z-index:6;
}

.floating-note p{
  margin:0;
}

.pin{
  position:absolute;
  width:13px;
  height:13px;
  border-radius:50%;
  top:8px;
  left:12px;
  box-shadow:0 2px 4px rgba(0,0,0,.15);
}
.pin-green{ background:var(--green); }
.pin-red{ background:var(--red); }

.note-1{ top:10px; left:2%; transform:rotate(-5deg); animation-delay:0s; }
.note-2{ top:14px; right:2%; transform:rotate(4deg); animation-delay:1.3s; }
.note-3{ top:145px; left:7%; transform:rotate(3deg); animation-delay:2.2s; }
.note-4{ top:150px; right:8%; transform:rotate(-4deg); animation-delay:.8s; }
.note-5{ top:285px; left:50%; transform:translateX(-50%) rotate(-2deg); animation-delay:1.7s; }

@keyframes floatNote{
  0%,100%{ translate:0 0; }
  50%{ translate:0 -8px; }
}

.mural-section{
  margin-top:20px;
  position:relative;
  z-index:2;
}

.section-head{
  text-align:center;
  margin:0 auto 18px;
  max-width:780px;
}

.section-head h2{
  margin:0 0 6px;
  font-family:var(--font-display);
  font-size:clamp(2rem, 7vw, 3.6rem);
  letter-spacing:.03em;
}

.section-head p{
  margin:0;
  color:rgba(27,18,10,.74);
}

.collage-wall{
  display:grid;
  grid-template-columns:repeat(1, minmax(0,1fr));
  gap:18px;
  align-items:start;
}

.entry-card{
  position:relative;
  background:rgba(255,249,238,.95);
  border:1px solid rgba(70,40,15,.12);
  border-radius:10px;
  box-shadow:var(--shadow-strong);
  padding:18px 16px 14px;
  overflow:hidden;
  transition:transform var(--t), box-shadow var(--t);
}

.entry-card:hover{
  transform:translateY(-4px) rotate(0deg) scale(1.01);
}

.entry-card:nth-child(2n){ transform:rotate(-1.1deg); }
.entry-card:nth-child(3n){ transform:rotate(1.4deg); }
.entry-card:nth-child(4n){ transform:rotate(-2deg); }
.entry-card:nth-child(5n){ transform:rotate(.8deg); }

.entry-card::before{
  content:"";
  position:absolute;
  top:10px;
  left:12px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--green);
  box-shadow:18px 6px 0 var(--red);
  opacity:.92;
}

.entry-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  padding-top:8px;
}

.entry-alias{
  font-weight:800;
  font-size:.98rem;
}

.entry-state{
  font-size:.82rem;
  color:var(--muted);
}

.entry-text{
  margin:0 0 12px;
  font-family:var(--font-note);
  font-size:1.06rem;
  line-height:1.5;
  color:#24170f;
  white-space:pre-wrap;
  word-break:break-word;
}

.entry-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  font-size:.86rem;
  color:var(--muted);
}

.entry-meta button{
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.68);
  color:#2f2117;
  padding:7px 10px;
  border-radius:999px;
  cursor:pointer;
}

.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(28,17,10,.48);
  backdrop-filter:blur(4px);
  z-index:30;
  opacity:0;
  visibility:hidden;
  transition:opacity var(--t), visibility var(--t);
}

.entry-modal{
  position:fixed;
  inset:0;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transition:opacity var(--t), visibility var(--t);
}

.modal-overlay.is-visible,
.entry-modal.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.modal-card{
  width:min(100%, 470px);
  background:linear-gradient(180deg, rgba(255,247,236,.98), rgba(247,237,222,.98));
  border:1px solid rgba(70,40,15,.16);
  border-radius:26px;
  box-shadow:0 20px 80px rgba(20,10,5,.25);
  padding:22px 18px 18px;
  position:relative;
}

.modal-mini-brand{
  margin:0 0 6px;
  font-size:.8rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(27,18,10,.6);
  font-weight:800;
}

.modal-card h2{
  margin:0 0 8px;
  font-size:1.35rem;
}

.modal-base-phrase{
  font-family:var(--font-display);
  font-size:clamp(2.2rem, 10vw, 3.6rem);
  line-height:.95;
  margin-bottom:16px;
  color:var(--ink);
}

.modal-close{
  position:absolute;
  top:10px;
  right:12px;
  width:40px;
  height:40px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,.06);
  font-size:1.5rem;
  line-height:1;
  cursor:pointer;
}

.entry-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.entry-form input,
.entry-form textarea{
  width:100%;
  border:1px solid rgba(70,40,15,.16);
  background:rgba(255,255,255,.72);
  color:var(--ink);
  border-radius:18px;
  padding:14px 16px;
  outline:none;
  font-size:16px;
}

.entry-form textarea{
  min-height:122px;
  resize:vertical;
}

.entry-form input:focus,
.entry-form textarea:focus{
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(15,106,67,.14);
}

.form-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

#char-count{
  font-size:.9rem;
  color:var(--muted);
}

.submit-btn{
  border:none;
  background:linear-gradient(135deg, var(--red), var(--red-2));
  color:#fff;
  padding:14px 18px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  min-width:132px;
}

.form-msg{
  margin-top:12px;
  min-height:20px;
  font-size:.92rem;
  color:#3b2b1f;
}

@media (min-width: 700px){
  .collage-wall{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (min-width: 980px){
  .site-shell{
    padding-inline:22px;
  }

  .hero-stage{
    min-height:85vh;
  }

  .collage-wall{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }

  .note-1{ left:0; }
  .note-2{ right:0; }
  .note-3{ left:8%; }
  .note-4{ right:10%; }
}

.top-meta{
  margin-top:12px;
}

.entry-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  font-size:.86rem;
  color:var(--muted);
}

.entry-meta button{
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.72);
  color:#2f2117;
  padding:7px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  transition:transform .18s ease, background .18s ease;
}

.entry-meta button:hover{
  transform:translateY(-1px);
  background:#fff;
}

.entry-meta button:disabled{
  opacity:.65;
  cursor:wait;
}

.entry-highlight{
  box-shadow:
    0 0 0 4px rgba(15,106,67,.22),
    0 18px 45px rgba(40,20,5,.22) !important;
  transform:translateY(-3px) scale(1.01);
  transition:box-shadow .25s ease, transform .25s ease;
}

.entry-meta [data-share-btn]{
  border:1px solid rgba(0,0,0,.08);
  background:rgba(15,106,67,.10);
  color:var(--green);
  padding:7px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
}

.entry-meta [data-share-btn]:hover{
  background:rgba(15,106,67,.16);
}

@media (max-width: 640px){
  .hero-stage{
    min-height:auto;
    padding-top:4px;
  }

  .giant-title-inline{
    gap:.02em;
  }

  .floating-wall{
    min-height:470px;
    margin-top:18px;
  }

  .floating-note{
    width:min(250px, 74vw);
    font-size:.92rem;
  }

  .note-1{ top:0; left:2%; }
  .note-2{ top:44px; right:2%; }
  .note-3{ top:150px; left:4%; }
  .note-4{ top:220px; right:3%; }
  .note-5{ top:325px; left:50%; transform:translateX(-50%) rotate(-2deg); }

  .form-row{
    flex-direction:column;
    align-items:stretch;
  }

  .submit-btn{
    width:100%;
  }

  #char-count{
    align-self:flex-end;
  }
}