/* the simple files — channel A design system
   paper + black felt-tip + one orange. intentionally imperfect. */

@font-face {
  font-family: 'Gochi Hand';
  src: url('/assets/fonts/gochi-hand-v27-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Shantell Sans';
  src: url('/assets/fonts/shantell-sans-v13-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Shantell Sans';
  src: url('/assets/fonts/shantell-sans-v13-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #faf5ea;
  --paper-deep: #f3ecdc;
  --ink: #221f1a;
  --ink-soft: #4a453c;
  --orange: #f25c05;
  --orange-soft: #ffe3d1;
  --hand: 'Gochi Hand', 'Comic Sans MS', cursive;
  --body: 'Shantell Sans', 'Trebuchet MS', sans-serif;
  /* the classic hand-drawn border trick: uneven radii = wobbly rectangle */
  --wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-2: 15px 225px 15px 255px / 225px 15px 255px 15px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* faint paper grain */
  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.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0 0.42 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-wrap: break-word;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* ---------- type ---------- */

h1, h2, h3, .hand {
  font-family: var(--hand);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.3rem, 7vw, 3.4rem); margin: 0.5rem 0 1rem; }
h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 1.75rem 0 0.5rem; }

p { margin: 0 0 1rem; }
p, li { max-width: 62ch; }

a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

.orange { color: var(--orange); }
.small { font-size: 0.85rem; color: var(--ink-soft); }

/* hand-drawn squiggle underline for key words */
.squiggle {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='9' viewBox='0 0 120 9'%3E%3Cpath d='M2 6 Q 12 2, 24 5 T 48 5 T 72 4 T 96 6 T 118 4' fill='none' stroke='%23f25c05' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left bottom / 120px 9px;
  padding-bottom: 7px;
}

/* ---------- header / footer ---------- */

.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}
.site-head .logo {
  font-family: var(--hand);
  font-size: 1.5rem;
  text-decoration: none;
}
.site-head .logo .accent { color: var(--orange); }
.site-head nav a {
  font-family: var(--hand);
  font-size: 1.1rem;
  margin-left: 1.1rem;
  text-decoration: none;
}
.site-head nav a:hover { text-decoration: underline; text-decoration-color: var(--orange); }

.site-foot {
  margin-top: 5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.site-foot .scribble-rule { margin-bottom: 1rem; }
.site-foot a { color: var(--ink-soft); margin-right: 1rem; }

/* hand-drawn horizontal rule */
.scribble-rule {
  border: none;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='10' viewBox='0 0 300 10'%3E%3Cpath d='M2 6 Q 30 1, 60 5 T 120 5 T 180 4 T 240 6 T 298 4' fill='none' stroke='%23221f1a' stroke-width='2' stroke-linecap='round' opacity='0.7'/%3E%3C/svg%3E") repeat-x left center / 300px 10px;
}

/* ---------- cards & boxes ---------- */

.doodle-box {
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble);
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--paper);
  position: relative;
}
.doodle-box.alt { border-radius: var(--wobble-2); }
.doodle-box.orange-box { border-color: var(--orange); background: var(--orange-soft); }

/* library card */
.file-card {
  display: block;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble);
  background: #fff;
  text-decoration: none;
  margin: 2rem 0;
  transform: rotate(-0.4deg);
  transition: transform 0.15s ease;
  overflow: hidden;
}
.file-card:nth-of-type(even) { transform: rotate(0.5deg); border-radius: var(--wobble-2); }
.file-card:hover { transform: rotate(0deg) translateY(-3px); color: var(--ink); }
.file-card img {
  width: 100%;
  display: block;
  border-bottom: 2.5px solid var(--ink);
}
.file-card .card-body { padding: 1.1rem 1.35rem 1.25rem; }
.file-card .file-no {
  font-family: var(--hand);
  color: var(--orange);
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.file-card .card-title {
  font-family: var(--hand);
  font-size: 1.7rem;
  margin: 0.15rem 0 0.4rem;
}
.file-card .card-sub { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.file-card.soon {
  background: transparent;
  border-style: dashed;
  transform: rotate(0.6deg);
  pointer-events: none;
}
.file-card.soon .card-body { padding: 1.5rem 1.35rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--hand);
  font-size: 1.25rem;
  padding: 0.55rem 1.4rem 0.5rem;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-2);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transform: rotate(-0.6deg);
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: rotate(0.4deg) scale(1.03); }
.btn.primary { background: var(--orange); border-color: var(--ink); color: #fff; }
.btn.primary:hover { color: #fff; }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; margin: 1.25rem 0; }

/* ---------- checklist ---------- */

.check-steps { list-style: none; counter-reset: step; margin: 1rem 0 1.5rem; }
.check-steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.2rem 3.4rem;
  max-width: none;
}
.check-steps > li::before {
  /* crooked hand-drawn checkbox */
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 2.5px solid var(--ink);
  border-radius: 3px 8px 4px 9px / 8px 4px 9px 3px;
  transform: rotate(-2deg);
  background: #fff;
}
.check-steps > li:nth-child(even)::before { transform: rotate(2.5deg); }
.check-steps > li::after {
  content: counter(step);
  position: absolute;
  left: 0.5rem;
  top: 0.28rem;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--orange);
}
.check-steps .step-title {
  font-family: var(--hand);
  font-size: 1.45rem;
  display: block;
  margin-bottom: 0.15rem;
}
.check-steps .minutes {
  font-family: var(--hand);
  color: var(--orange);
  font-size: 1rem;
  white-space: nowrap;
}

.doc-list { list-style: none; margin: 0.5rem 0 1rem; }
.doc-list li { padding-left: 1.9rem; position: relative; margin-bottom: 0.4rem; }
.doc-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.42rem;
  width: 1rem; height: 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 2px 5px 3px 6px / 5px 2px 6px 3px;
  transform: rotate(-3deg);
  background: #fff;
}

/* numbers table (the 3 numbers of the year) */
.numbers { width: 100%; border-collapse: collapse; margin: 1rem 0 0.25rem; }
.numbers td, .numbers th {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 2px dashed rgba(34,31,26,0.35);
  vertical-align: top;
}
.numbers tr:last-child td { border-bottom: none; }
.numbers .num {
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--orange);
  white-space: nowrap;
}

/* ---------- opt-in form ---------- */

.optin { margin: 2.5rem 0; }
.optin form { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.75rem; }
.optin input[type='email'] {
  flex: 1 1 14rem;
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble);
  background: #fff;
  color: var(--ink);
}
.optin input[type='email']:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.optin .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.optin .form-msg { font-family: var(--hand); font-size: 1.15rem; margin-top: 0.6rem; display: none; }
.optin .form-msg.show { display: block; }
.optin .form-msg.ok { color: var(--ink); }
.optin .form-msg.err { color: var(--orange); }

/* ---------- video facade ---------- */

.video-slot { margin: 2rem 0; }
.video-facade {
  position: relative;
  display: block;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble);
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  padding: 0;
  width: 100%;
}
.video-facade img { width: 100%; display: block; opacity: 0.92; }
.video-facade .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.video-facade .play svg { width: 84px; height: 60px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.video-facade:hover .play svg { transform: scale(1.06); }
.video-slot iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  display: block;
}

/* ---------- misc ---------- */

.sam-corner { text-align: right; margin-top: 2rem; }
.sam-corner svg { width: 90px; height: auto; }

.note-tape {
  display: inline-block;
  background: var(--orange-soft);
  border: 2px solid var(--orange);
  border-radius: var(--wobble-2);
  padding: 0.35rem 0.9rem;
  font-family: var(--hand);
  font-size: 1.05rem;
  transform: rotate(-1deg);
}

.legal h2 { font-size: 1.5rem; }
.legal p, .legal li { font-size: 0.98rem; }

/* gentle entrance */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { animation: fadeUp 0.5s ease both; }
  .fade-up.d1 { animation-delay: 0.08s; }
  .fade-up.d2 { animation-delay: 0.16s; }
  .fade-up.d3 { animation-delay: 0.24s; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

@media print {
  .site-head nav, .optin, .video-slot, .btn-row, .site-foot { display: none !important; }
}
