/* papercraft.css — shared design system for Super Slop Studios content pages.
   Mirrors the homepage (site/index.html) papercraft look: kraft + sky palette,
   Baloo 2 / Nunito, hard offset ink shadows, slightly-rotated paper cards. */

:root {
  --sky:          #eaf3ff;
  --kraft:        #e7d4ac;
  --kraft-dark:   #d6bd8c;
  --grass:        #86d54a;
  --grass-deep:   #4f9b22;
  --tomato:       #ff5a4d;
  --marigold:     #ffcc3e;
  --ink:          #3a352c;
  --paper-white:  #fbf7ee;
  --muted:        #6a6353;
  --shadow:       rgba(58,53,44,.22);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background-color: var(--sky);
  background-image:
    radial-gradient(120% 80% at 50% -10%, #fbfdff 0%, var(--sky) 45%, #d8e8ff 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Baloo 2', cursive; color: var(--ink); }
::selection { background: var(--marigold); color: var(--ink); }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 18px; }
.flex-grow { flex: 1; }

/* --- nav (identical across all pages) --- */
nav.top {
  position: fixed; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  left: 18px; right: 18px; max-width: calc(1100px - 0px);
  margin: 14px auto 0; padding: 10px 20px;
  background: rgba(251,247,238,.88);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 2px solid var(--ink);
  border-radius: 40px;
  box-shadow: 4px 5px 0 var(--ink);
}
@media (min-width: 1136px) { nav.top { left: 50%; transform: translateX(-50%); width: 1100px; right: auto; } }
nav.top .logo {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.15rem;
  text-decoration: none; color: var(--ink); letter-spacing: -.01em;
}
nav.top .links { display: flex; gap: 22px; align-items: center; }
nav.top .links a {
  font-family: 'Baloo 2', cursive; font-weight: 700; font-size: .9rem;
  text-decoration: none; color: var(--ink); opacity: .65; transition: opacity .15s;
}
nav.top .links a:hover { opacity: 1; }
nav.top .links a.active { opacity: 1; border-bottom: 3px solid var(--grass); padding-bottom: 1px; }
nav.top .links .cta-nav {
  background: var(--tomato); color: var(--paper-white); opacity: 1;
  border: 2px solid var(--ink); border-radius: 20px; padding: 6px 16px;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
nav.top .links .cta-nav:hover { transform: translate(-1px,-2px); box-shadow: 4px 5px 0 var(--ink); }

/* --- page header --- */
.page-head { padding: 132px 0 8px; text-align: center; }
.page-head h1 {
  font-weight: 800; font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: .98; margin: 0 0 14px;
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 var(--kraft-dark);
}
.page-head h1 .pop  { color: var(--tomato); display: inline-block; transform: rotate(-2deg); }
.page-head h1 .pop2 { color: var(--grass);  display: inline-block; transform: rotate(1.5deg); }
.page-head .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 600;
  color: var(--muted); max-width: 56ch; margin: 0 auto;
}
.page-head .lead b, .page-head .lead strong { color: var(--ink); }

.kicker {
  display: inline-block; font-family: 'Baloo 2', cursive; font-weight: 700;
  background: var(--marigold); color: var(--ink);
  padding: 6px 14px; border-radius: 30px;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg); font-size: 14px; margin-bottom: 16px;
}

/* --- sections + layout --- */
main { position: relative; z-index: 1; }
section { padding: 34px 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2 { font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0; text-shadow: 2px 2px 0 #fff; }
.sec-head .blurb { font-weight: 700; color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.span-2 { grid-column: span 2; }

/* --- paper cards --- */
.card {
  position: relative; background: var(--paper-white);
  border: 3px solid var(--ink); border-radius: 20px; padding: 26px;
  box-shadow: 6px 8px 0 var(--shadow);
  transition: transform .2s cubic-bezier(.22,1.3,.4,1), box-shadow .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.card.tilt-l { transform: rotate(-.7deg); }
.card.tilt-r { transform: rotate(.6deg); }
.card.kraft { background: var(--kraft); }
.card.lift:hover { transform: rotate(0) translateY(-5px); box-shadow: 10px 14px 0 var(--shadow); }
a.card { text-decoration: none; }
.card h2, .card h3 { margin: 0; }
.card h3 { font-weight: 800; font-size: 1.4rem; }
.card p { margin: 0; font-weight: 600; color: var(--muted); }

/* round icon chip */
.chip {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--ink); box-shadow: 3px 4px 0 var(--ink);
  font-size: 1.7rem; flex-shrink: 0;
}
.chip.tomato { background: var(--tomato); }
.chip.grass  { background: var(--grass); }
.chip.gold   { background: var(--marigold); }
.chip.kraft  { background: var(--kraft); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  text-decoration: none; cursor: pointer;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1rem;
  border: 3px solid var(--ink); border-radius: 16px; padding: 11px 22px;
  background: var(--tomato); color: var(--paper-white);
  box-shadow: 5px 6px 0 var(--ink);
  transition: transform .16s cubic-bezier(.22,1.4,.4,1), box-shadow .16s;
}
.btn:hover, .btn:focus-visible { transform: translate(-2px,-4px); box-shadow: 8px 10px 0 var(--ink); outline: none; }
.btn.grass  { background: var(--grass);  color: var(--ink); }
.btn.gold   { background: var(--marigold); color: var(--ink); }
.btn.paper  { background: var(--paper-white); color: var(--ink); }
.btn:disabled, .btn.locked {
  background: var(--kraft-dark); color: var(--ink); cursor: not-allowed;
  opacity: .9; box-shadow: 3px 4px 0 var(--ink);
}
.btn:disabled:hover, .btn.locked:hover { transform: none; box-shadow: 3px 4px 0 var(--ink); }
.btn.full { width: 100%; justify-content: center; }

/* --- forms --- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label {
  font-family: 'Baloo 2', cursive; font-weight: 700; font-size: .9rem; color: var(--ink);
}
.field label .opt { color: var(--muted); font-weight: 600; font-size: .8rem; }
.field input, .field textarea, .field select {
  font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 1rem; color: var(--ink);
  background: var(--paper-white); border: 3px solid var(--ink); border-radius: 14px;
  padding: 12px 14px; width: 100%; transition: box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #a99f86; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; background: #fffdf6; box-shadow: 4px 5px 0 var(--marigold);
}
.field select { appearance: none; background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%233a352c'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* --- footer (identical across all pages) --- */
footer {
  background: var(--kraft);
  border-top: 4px dashed var(--ink);
  padding: 40px 0 30px; margin-top: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot-brand { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.45rem; color: var(--ink); }
.foot-brand small { display: block; font-family: 'Nunito'; font-weight: 700; font-size: .83rem; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 18px; font-weight: 700; font-size: .9rem; margin-top: 10px; }
.foot-links a { text-decoration: none; color: var(--ink); border-bottom: 2px solid transparent; transition: border-color .15s; }
.foot-links a:hover { border-color: var(--tomato); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.socials a {
  font-family: 'Baloo 2'; font-weight: 700; font-size: .8rem; text-decoration: none;
  background: var(--paper-white); border: 2px solid var(--ink); color: var(--ink);
  padding: 4px 11px; border-radius: 14px; box-shadow: 2px 3px 0 var(--ink);
  transition: transform .14s, background .14s;
}
.socials a:hover { transform: translateY(-2px) rotate(-2deg); background: var(--marigold); }
.copyline { margin-top: 28px; font-family: 'Baloo 2'; font-weight: 700; color: var(--ink); text-align: center; font-size: .93rem; }
.copyline .stay { color: var(--tomato); }

a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* --- utility classes consumed by forms.js (keep names in sync) --- */
.hidden { display: none !important; }
.font-body { font-family: 'Nunito', sans-serif; }
.text-sm { font-size: .9rem; }
.text-tertiary { color: var(--grass-deep); font-weight: 700; }
.text-error { color: var(--tomato); font-weight: 700; }

/* --- responsive --- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
}
@media (max-width: 600px) {
  nav.top .links .hide-sm { display: none; }
  .page-head { padding-top: 104px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
