/* gretagrosz.com/kit: sign-up for the free Blank crochet kits. Same look as the printed Mini-Axolotl booklet:
   coral cutting mat, torn paper labels, polaroid with tape, typewriter cards, handwritten notes. */
@font-face { font-family: 'Rubik'; font-weight: 900; font-display: swap; src: url(/fonts/rubik-900-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: 'Rubik'; font-weight: 900; font-display: swap; src: url(/fonts/rubik-900-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family: 'Courier Prime'; font-weight: 400; font-display: swap; src: url(/fonts/courierprime-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: 'Courier Prime'; font-weight: 400; font-display: swap; src: url(/fonts/courierprime-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family: 'Courier Prime'; font-weight: 700; font-display: swap; src: url(/fonts/courierprime-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: 'Courier Prime'; font-weight: 700; font-display: swap; src: url(/fonts/courierprime-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }
/* Gaegu has no ő/ű, so Caveat (already on the site) fills in for Hungarian */
@font-face { font-family: 'Gaegu'; font-weight: 700; font-display: swap; src: url(/fonts/gaegu-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC }
@font-face { font-family: 'Caveat'; font-display: swap; src: url(/fonts/caveat-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF }

:root {
  --mat: #E8907A; --grid: rgba(255, 255, 255, .2); --ink: #2A1009; --coral: #B85A43; --dark: #9C4A36; --paper: #FFFDF7;
  --photo: #FBF4EC; --tape: rgba(255, 236, 170, .8); --shadow: 4px 5px 0 rgba(120, 40, 25, .18);
  --hand: 'Gaegu', 'Caveat', cursive; --type: 'Courier Prime', ui-monospace, monospace; --head: 'Rubik', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box }
html, body { margin: 0 }
body {
  min-height: 100vh; color: #fff; font-family: var(--type); -webkit-text-size-adjust: 100%;
  background-color: var(--mat);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}
.mat {
  max-width: 460px; margin: 0 auto; position: relative;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}
.langs { display: flex; justify-content: flex-end; gap: 6px }
.langs button {
  font: 700 13px var(--type); color: var(--dark); background: none; border: 0; padding: 6px 8px; border-radius: 6px; cursor: pointer;
}
.langs button[aria-pressed=true] { background: var(--paper); color: var(--ink); box-shadow: 2px 2px 0 rgba(120, 40, 25, .18) }

.torn {
  display: inline-block; background: var(--coral); color: #fff; font: 700 14px/1.2 var(--type); letter-spacing: .04em; padding: 7px 13px;
  clip-path: polygon(0 8%, 4% 0, 12% 6%, 20% 1%, 30% 7%, 41% 0, 52% 5%, 63% 0, 74% 6%, 85% 1%, 94% 7%, 100% 2%, 99% 92%, 90% 100%, 79% 94%, 68% 100%, 57% 95%, 46% 100%, 35% 94%, 24% 100%, 13% 95%, 4% 100%, 0 93%);
}
.kick { transform: rotate(-3deg); margin-top: 6px }
h1, h2 {
  font-family: var(--head); font-weight: 900; color: #fff; line-height: 1; letter-spacing: -.01em; margin: 14px 0 0;
  text-shadow: 0 3px 0 rgba(120, 40, 25, .25); transform: rotate(-1.5deg); text-wrap: balance;
}
h1 { font-size: clamp(36px, 11vw, 48px) }
.meta { margin: 12px 0 0; font: 700 14px var(--type); color: var(--dark) }

.photo-row { position: relative; margin-top: 28px }
.sticker { position: relative; width: 58%; margin: 0 0 0 4%; transform: rotate(-4deg) }
.sticker img { display: block; width: 100%; height: auto; filter: drop-shadow(4px 6px 0 rgba(120, 40, 25, .22)) }
.sticker figcaption { text-align: center; margin-top: 6px; font: 700 22px/1 var(--hand); color: var(--dark); transform: rotate(2deg) }
.tape { position: absolute; width: 74px; height: 22px; background: var(--tape); z-index: 1 }
.note { font: 700 24px/1 var(--hand); color: var(--dark); margin: 0 }
.note-photo { position: absolute; right: 0; width: 34%; top: 20%; transform: rotate(6deg); text-align: center }
.arrow { position: absolute; right: 9%; top: 52%; width: 54px; height: 36px; fill: none; stroke: var(--dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round }

.card {
  position: relative; background: var(--paper); color: var(--ink); padding: 20px 18px; margin-top: 30px;
  font: 15px/1.45 var(--type); box-shadow: var(--shadow);
}
.card p { margin: 0 }
.card b { font-weight: 700 }
.card a { color: var(--coral) }
.dash { border-top: 1.5px dashed rgba(184, 90, 67, .3); margin-top: 11px !important; padding-top: 11px }
.info { transform: rotate(.8deg) }
.form { transform: rotate(-.6deg); padding-top: 28px }
.tag { position: absolute; left: 14px; top: -16px; transform: rotate(-2deg); font-size: 13px }

.field { display: block; border: 0; padding: 0; margin: 0 0 16px; min-width: 0 }
.field > span:first-child, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0 }
input, textarea {
  width: 100%; font: 16px var(--type); color: var(--ink); background: #fff; border: 2px solid #E9D3C9; border-radius: 8px; padding: 10px 11px; outline: none;
}
textarea { resize: vertical; min-height: 76px }
input:focus, textarea:focus { border-color: var(--coral) }
.at { display: flex; align-items: center; background: #fff; border: 2px solid #E9D3C9; border-radius: 8px }
.at:focus-within { border-color: var(--coral) }
.at b { padding-left: 11px; color: var(--coral) }
.at input { border: 0; padding-left: 4px }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chips label { position: relative }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px }
.chips span {
  display: inline-block; font: 700 15px var(--type); padding: 8px 12px; border: 2px solid #E9D3C9; border-radius: 999px; background: #fff; cursor: pointer;
}
.place { display: block; margin-top: 12px }
.place[hidden] { display: none }
.place > span { display: block; font-weight: 700; margin-bottom: 6px }
.chips input:checked + span { background: var(--coral); border-color: var(--coral); color: #fff }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px }
.ok { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; margin: 4px 0 14px; cursor: pointer }
.ok input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--coral) }
.ok a { color: var(--coral) }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.bad { border-color: #C8506A !important }
.err { min-height: 0; color: #B3263F; font-weight: 700; font-size: 14px }
.err:not(:empty) { margin-bottom: 10px }
.go {
  width: 100%; font: 900 20px var(--head); color: #fff; background: var(--coral); border: 0; border-radius: 10px; padding: 15px; cursor: pointer;
  box-shadow: 0 4px 0 #8A3E2C; transition: transform .08s;
}
.go:active { transform: translateY(3px); box-shadow: 0 1px 0 #8A3E2C }
.go:disabled { opacity: .7; cursor: default }
.small { font-size: 13px; color: #6B5048; margin-top: 12px !important }

.done { text-align: center; padding-top: 10px }
.done h2 { color: var(--coral); text-shadow: none; font-size: 34px; margin: 0 0 10px }
.mascot { width: 150px; height: 150px; margin: 0 auto -4px; display: block }

.foot { display: flex; justify-content: space-between; margin-top: 34px; font-size: 13px; color: rgba(255, 255, 255, .85) }
.foot a { color: inherit }

@media (prefers-reduced-motion: no-preference) {
  .sticker { animation: drop .5s cubic-bezier(.2, .9, .3, 1.3) both }
  .done:not([hidden]) .mascot { animation: hop .7s ease-out }
}
@keyframes drop { from { opacity: 0; transform: translateY(-14px) rotate(-10deg) scale(.9) } }
@keyframes hop { 40% { transform: translateY(-14px) } }
