/* Draw Me a Friend: warm crayon & paper look. No build step. */

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fffaf0;
  --paper-2: #fdf3e1;
  --card: #fffdf8;
  --ink: #2b2d42;
  --ink-soft: #55586f;
  --pink: #f7a8c4;
  --pink-soft: #ffe4ee;
  --pink-deep: #b3386a;
  --yellow: #ffd84d;
  --yellow-soft: #fff3c4;
  --blue: #a8d8f0;
  --blue-soft: #e2f2fb;
  --blue-deep: #1d5d88;
  --green: #2c7a50;
  --ai: #4a5fc4;
  --radius-sketch: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --radius-sketch-2: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --shadow: 4px 5px 0 rgba(43, 45, 66, 0.14);
  --wrap: 1100px;
  --font: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* paper grain (SVG noise) + a couple of soft pastel washes */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(900px 500px at 100% 0%, rgba(168, 216, 240, 0.28), transparent 70%),
    radial-gradient(700px 500px at 0% 12%, rgba(247, 168, 196, 0.20), transparent 70%);
  background-repeat: repeat, no-repeat, no-repeat;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--pink-deep); }
:focus-visible { outline: 3px dashed var(--pink-deep); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 900; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 7.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }
.small { font-size: 0.92rem; color: var(--ink-soft); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--yellow); color: var(--ink); padding: 0.6rem 1rem; border-radius: 12px; font-weight: 800;
}
.skip-link:focus { top: 1rem; }

/* hand-drawn boxes */
.sketch {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sketch);
  box-shadow: var(--shadow);
}

/* ---------- header ---------- */
.site-header { padding: 0.9rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 1.15rem; }
.brand img { border-radius: 50%; }
.site-nav ul { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--pink); }
.header-socials { list-style: none; display: flex; gap: 0.3rem; margin: 0; padding: 0; }
.header-socials a {
  display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink);
  border: 2px solid transparent; border-radius: 50%;
}
.header-socials a:hover { color: var(--pink-deep); border-color: var(--pink); background: var(--card); }
@media (max-width: 860px) { .site-nav { display: none; } }
@media (min-width: 861px) { .site-nav { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  background: var(--yellow); color: var(--ink);
  font-weight: 900; font-size: 1.05rem; text-decoration: none;
  padding: 0.75rem 1.4rem; min-height: 48px;
  border: 3px solid var(--ink); border-radius: var(--radius-sketch-2);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { color: var(--ink); background: #ffe27a; transform: translateY(-2px) rotate(-0.6deg); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn-big { font-size: 1.25rem; padding: 0.95rem 1.8rem; }
.btn-ghost { background: var(--card); box-shadow: 0 5px 0 rgba(43, 45, 66, 0.25); }
.btn-ghost:hover { background: var(--blue-soft); box-shadow: 0 7px 0 rgba(43, 45, 66, 0.25); }
.icon { width: 1.3em; height: 1.3em; flex: none; }

/* ---------- hero ---------- */
.hero { padding: 1.2rem 0 3rem; }
.hero-grid { display: grid; gap: 1.5rem; }
.hero-art { position: relative; order: -1; justify-self: center; width: min(62vw, 260px); }
.hero-logo { border-radius: 50%; transform: rotate(-3deg); filter: drop-shadow(4px 6px 0 rgba(43, 45, 66, 0.12)); }
.sticky-note {
  position: absolute; right: -14%; bottom: -4%;
  margin: 0; padding: 0.55rem 0.8rem;
  background: var(--yellow-soft); border: 2px solid var(--ink);
  border-radius: 4px 14px 6px 12px; box-shadow: var(--shadow);
  font-weight: 800; font-size: 0.85rem; line-height: 1.3;
  transform: rotate(5deg);
}
.nod { font-weight: 800; color: var(--pink-deep); margin-bottom: 0.5rem; font-size: 0.98rem; }
.scribble {
  display: inline;
  background-image: linear-gradient(transparent 62%, rgba(255, 216, 77, 0.85) 62%, rgba(255, 216, 77, 0.85) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; margin: 1.6rem 0 1.4rem; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.socials a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 800; color: var(--ink); text-decoration: none; padding: 0.35rem 0; min-height: 44px; }
.socials a:hover { color: var(--pink-deep); }
.socials .handle { color: var(--blue-deep); font-weight: 700; }
.soon {
  display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--blue-soft); color: var(--ink); border: 1.5px dashed var(--ink-soft); border-radius: 999px; padding: 0 0.5em;
}

@media (min-width: 860px) {
  .hero { padding: 2.5rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.35fr 0.85fr; align-items: center; gap: 3rem; }
  .hero-art { order: 0; width: 100%; max-width: 400px; }
  .sticky-note { right: -4%; font-size: 1rem; }
}

/* ---------- sections ---------- */
.section { padding: 3.2rem 0; }
.section-tint { background: rgba(255, 243, 196, 0.35); border-block: 3px dashed rgba(43, 45, 66, 0.12); }
.section-intro { max-width: 40em; color: var(--ink-soft); font-size: 1.08rem; }
.marker {
  background-image: linear-gradient(100deg, transparent 1%, rgba(255, 216, 77, 0.8) 3%, rgba(255, 216, 77, 0.7) 96%, transparent 99%);
  background-size: 100% 42%; background-repeat: no-repeat; background-position: 0 88%;
  padding: 0 0.15em;
}
.marker-pink { background-image: linear-gradient(100deg, transparent 1%, rgba(247, 168, 196, 0.85) 3%, rgba(247, 168, 196, 0.75) 96%, transparent 99%); }
.marker-blue { background-image: linear-gradient(100deg, transparent 1%, rgba(168, 216, 240, 0.95) 3%, rgba(168, 216, 240, 0.85) 96%, transparent 99%); }

/* steps */
.steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.step { position: relative; padding: 1.6rem 1.4rem 1.2rem 1.4rem; }
.step:nth-child(2) { border-radius: var(--radius-sketch-2); }
.step p { margin: 0; color: var(--ink-soft); }
.step-num {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 0.7rem;
  font-size: 1.6rem; font-weight: 900; border: 3px solid var(--ink);
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
}
.step-pink .step-num { background: var(--pink); }
.step-yellow .step-num { background: var(--yellow); }
.step-blue .step-num { background: var(--blue); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* submit box */
.submit-box {
  margin-top: 2.2rem; padding: 1.6rem 1.4rem;
  background: var(--pink-soft);
  display: grid; gap: 1.2rem; scroll-margin-top: 1rem;
}
.submit-box h3 { font-size: 1.5rem; }
.submit-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
.cta-note { margin: 0; }
@media (min-width: 760px) {
  .submit-box { grid-template-columns: 1.6fr 1fr; align-items: center; padding: 2rem 2.2rem; }
  .submit-cta { align-items: center; text-align: center; }
}

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.55rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.25rem; height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 12.5c2 1.2 3.6 3 4.8 5.3C11 11.6 15 7 20.5 4' fill='none' stroke='%232c7a50' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 1.6rem; margin-top: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.friend { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; }
.friend:nth-child(even) { border-radius: var(--radius-sketch-2); }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.4rem; }
.pic { margin: 0; }
.pic-frame {
  display: block; background: #fff; padding: 6px 6px 8px; border: 2px solid rgba(43, 45, 66, 0.18);
  border-radius: 6px; box-shadow: 2px 3px 0 rgba(43, 45, 66, 0.1);
}
.pic:first-child .pic-frame { transform: rotate(-2deg); }
.pic:last-child .pic-frame { transform: rotate(2deg); }
.pic-frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; }
.pic figcaption { margin-top: 0.7rem; font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); text-align: center; line-height: 1.35; }
.pic figcaption .pill { margin-right: 0.15rem; }
.pair-arrow { font-size: 1.6rem; font-weight: 900; color: var(--pink-deep); padding-bottom: 2rem; }
.friend-caption { margin: 1rem 0 0; font-size: 1.12rem; text-align: center; }
.friend-caption strong { font-size: 1.3rem; }
.friend-credits {
  list-style: none; margin: 0.7rem auto 0; padding: 0.6rem 0.9rem; font-size: 0.95rem; color: var(--ink-soft);
  border-top: 2px dashed rgba(43, 45, 66, 0.15); display: grid; gap: 0.35rem; justify-items: center; text-align: center;
}
.friend-credits strong { color: var(--ink); white-space: nowrap; }
.friend-credits .pill { margin-right: 0.2rem; }
.friend-link { display: block; text-align: center; font-weight: 800; margin-top: 0.4rem; }
.friend-next {
  background: var(--blue-soft); border-style: dashed; box-shadow: none;
  align-items: center; justify-content: center; text-align: center; min-height: 240px; padding: 2rem 1.4rem;
}
.next-big { font-size: 1.45rem; font-weight: 900; margin-bottom: 0.3rem; }

.pill {
  display: inline-block; vertical-align: middle;
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; padding: 0.15em 0.65em; border-radius: 999px; line-height: 1.5;
}
.pill-human { background: var(--green); }
.pill-ai { background: var(--ai); }

/* ---------- honest label ---------- */
.label-grid { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 900px) { .label-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; } }
.made-by { display: grid; gap: 1rem; margin: 1.4rem 0; }
@media (min-width: 520px) { .made-by { grid-template-columns: 1fr 1fr; } }
.made { padding: 1.1rem 1.2rem 0.6rem; }
.made h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.made ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.made-human { background: #eaf6ee; }
.made-ai { background: #eceffc; border-radius: var(--radius-sketch-2); }

.label-card { margin: 0; justify-self: center; width: min(100%, 380px); }
.tag {
  position: relative; background: #fff; border: 2px solid #d9d6e6; border-radius: 26px;
  padding: 2.2rem 1.4rem 1.4rem; box-shadow: 0 10px 28px rgba(43, 45, 66, 0.14);
  background-image: linear-gradient(180deg, #fff8ec, #fff 30%);
  transform: rotate(1.5deg);
}
.tag-hole { position: absolute; top: 0.8rem; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: 2px solid #c9c5d6; background: var(--paper); }
.tag-brand { text-align: center; color: #7a4fc9; font-weight: 800; margin: 0; font-size: 1.05rem; }
.tag-title { text-align: center; font-weight: 900; font-size: 1.7rem; margin: 0; line-height: 1.2; }
.tag-sub { text-align: center; color: var(--ink-soft); margin: 0.2rem 0 1rem; font-size: 0.95rem; }
.tag-rows { list-style: none; margin: 0; padding: 0; }
.tag-rows li { display: flex; gap: 0.9rem; align-items: center; padding: 0.85rem 0; border-top: 2px dashed #e3e0ec; }
.tag-rows li > span:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.tag-ico { flex: none; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; }
.tag-ico svg { width: 1.6rem; height: 1.6rem; }
.ico-yellow { background: var(--yellow); }
.ico-blue { background: #7fb6f0; }
.ico-pink { background: var(--pink); }
.tag-k { font-size: 0.85rem; color: var(--ink-soft); }
.tag-v { font-weight: 900; font-size: 1.1rem; line-height: 1.25; margin-bottom: 0.25rem; }
.tag-foot { text-align: center; font-size: 0.9rem; color: var(--ink-soft); margin: 0.6rem 0 0; padding-top: 0.9rem; border-top: 2px dashed #e3e0ec; }
.label-card figcaption { text-align: center; margin-top: 1.1rem; }

/* ---------- parents ---------- */
.parents-grid { display: grid; gap: 1.6rem; margin-top: 1.6rem; }
@media (min-width: 900px) { .parents-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.card { padding: 1.5rem 1.4rem 0.8rem; }
.parents-grid .card:nth-child(2) { border-radius: var(--radius-sketch-2); }
.consent-list { margin: 0 0 1rem; padding-left: 1.4rem; }
.consent-list li { margin-bottom: 0.55rem; padding-left: 0.2rem; }
.consent-list li::marker { font-weight: 900; color: var(--pink-deep); }

/* ---------- privacy ---------- */
.doc { padding: 1.8rem 1.4rem 1rem; background: #fffefb; }
.doc h2 { font-size: clamp(1.5rem, 4.4vw, 2rem); margin-bottom: 0.2em; }
.terms { margin: 1.4rem 0 0; display: grid; gap: 1.2rem 2.4rem; }
.terms div { border-top: 2px dashed rgba(43, 45, 66, 0.15); padding-top: 0.9rem; }
.terms dt { font-weight: 900; font-size: 1.08rem; margin-bottom: 0.25rem; }
.terms dd { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.terms ul { margin: 0.4rem 0 0.5rem; padding-left: 1.3rem; }
@media (min-width: 860px) {
  .doc { padding: 2.4rem 2.6rem 1.6rem; }
  .terms { grid-template-columns: 1fr 1fr; }
  .terms .wide { grid-column: 1 / -1; }
  .terms ul.cols { columns: 2; column-gap: 2.4rem; }
  .terms ul.cols li { break-inside: avoid; }
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 2rem; padding: 3rem 0 2.2rem; background: var(--blue-soft);
  border-top: 3px solid var(--ink);
  border-radius: 60% 40% 0 0 / 28px 22px 0 0;
}
.footer-inner { display: grid; gap: 1.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand img { border-radius: 50%; }
.footer-name { font-weight: 900; font-size: 1.25rem; margin: 0; }
.footer-brand .small { margin: 0; }
.footer-socials { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font-weight: 800; }
.footer-text p:last-child { margin-bottom: 0; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 0.9fr 1.6fr; align-items: center; } }

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.notfound img { width: min(60vw, 240px); margin: 0 auto 1.4rem; border-radius: 50%; transform: rotate(-4deg); }
.notfound p { color: var(--ink-soft); font-size: 1.15rem; max-width: 28em; margin-inline: auto; }

/* ---------- small-phone tweaks ---------- */
@media (max-width: 480px) {
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .friend { padding: 0.8rem 0.6rem 1rem; }
  .pair { gap: 0.15rem; }
  .pair-arrow { font-size: 1.2rem; }
  .pic-frame { padding: 4px 4px 6px; }
  .pic figcaption { font-size: 0.8rem; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
  .pic figcaption .pill { margin-right: 0; }
  .step, .card { padding-inline: 1.2rem; }
  .doc { padding-inline: 1.2rem; }
}
