/* The pages outside the town (/contact, the 404): the keyhole's night sky behind (World/keyhole/Universe.js, crisp
   stars, no glow), and on it a page of Ken's sticker book as the menu draws it (sources/style/menu.styl, mainichi.styl):
   warm paper with the stickers' white die-cut rim, ink line and hard shadow, the type in the ink, orange for what
   matters, the buttons stickers to press. The contact form is the post box's postcard (World/PostBox.js) on that page */
@font-face { font-family: 'Ginto'; src: url('/fonts/mainichi/GintoNord-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'gg sans'; src: url('/fonts/mainichi/ggsans-Normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'gg sans'; src: url('/fonts/mainichi/ggsans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/fonts/postcard/caveat-latin-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; 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: 'Caveat'; src: url('/fonts/postcard/caveat-latin-ext-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

:root {
  --sky-top: #0e0a2b;
  --sky-bottom: #2b2272;
  --lavender: #e4def8;
  --page: #f8f3ea;
  --card: #fffdf8;
  --paper: #ffffff;
  --ink: #141414;
  --not-black: #1e1e1e;
  --not-white: #ebe7de;
  --orange: #ff4500;
  --shadow: rgba(10, 6, 30, 0.42);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --settle: cubic-bezier(0.2, 0.9, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--sky-top); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  color: var(--ink);
  font: 400 1rem/1.6 'gg sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  body { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}

/* The sky: the keyhole's indigo, two layers of stars tiled at sizes that don't line up (fixed, so it never scrolls
   with the page or repeats in an obvious grid) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='310' height='290'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='22' cy='31' r='1.1'/%3E%3Ccircle cx='96' cy='12' r='0.7'/%3E%3Ccircle cx='151' cy='64' r='1.3' opacity='.9'/%3E%3Ccircle cx='233' cy='27' r='0.8'/%3E%3Ccircle cx='288' cy='101' r='1'/%3E%3Ccircle cx='57' cy='137' r='0.7' opacity='.7'/%3E%3Ccircle cx='190' cy='156' r='0.9'/%3E%3Ccircle cx='121' cy='214' r='1.2' opacity='.85'/%3E%3Ccircle cx='262' cy='232' r='0.7'/%3E%3Ccircle cx='17' cy='259' r='0.9' opacity='.8'/%3E%3Ccircle cx='205' cy='280' r='0.6'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1130' height='910'%3E%3Cg fill='%23fff'%3E%3Cpath d='M88 70l1.3 4.7 4.7 1.3-4.7 1.3L88 82l-1.3-4.7L82 76l4.7-1.3z'/%3E%3Cpath d='M842 318l1 3.6 3.6 1-3.6 1-1 3.6-1-3.6-3.6-1 3.6-1z' opacity='.85'/%3E%3Cpath d='M380 702l1.1 4 4 1.1-4 1.1-1.1 4-1.1-4-4-1.1 4-1.1z' opacity='.9'/%3E%3Cpath d='M1040 610l.8 2.9 2.9.8-2.9.8-.8 2.9-.8-2.9-2.9-.8 2.9-.8z' opacity='.7'/%3E%3Ccircle cx='610' cy='60' r='1.5'/%3E%3Ccircle cx='970' cy='170' r='0.8' opacity='.6'/%3E%3Ccircle cx='35' cy='530' r='1.4' opacity='.8'/%3E%3Ccircle cx='530' cy='410' r='1' opacity='.7'/%3E%3Ccircle cx='260' cy='850' r='0.6' opacity='.6'/%3E%3Ccircle cx='760' cy='880' r='1.2' opacity='.75'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--sky-top) 0%, #191348 45%, var(--sky-bottom) 100%);
}

::selection { color: #fff; background: var(--orange); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---- The bar: the brand's lockup on a sticker (home), the way into the town ---- */
.bar {
  width: min(100%, 960px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lockup {
  display: block;
  padding: 9px 13px;
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 6.5px var(--paper), 3px 5px 0 6.5px var(--shadow);
  rotate: -2deg;
  transition: transform 0.25s var(--spring);
}
.lockup img { width: 118px; height: auto; aspect-ratio: 77 / 15; }
.lockup:hover { transform: translateY(-2px) rotate(1deg); }
@media (max-width: 400px) {
  .lockup { padding: 7px 10px; }
  .lockup img { width: 96px; }
}

/* A sticker to press (mainichi.styl stickerButton): white paper in an ink border, the die-cut rim and the hard
   shadow, a little crooked, the words in Ginto capitals. Orange for the one that matters */
.sticker-button {
  --tilt: -1.5deg;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 19px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--orange);
  box-shadow: 0 0 0 5px var(--paper), 4px 6px 0 5px var(--shadow);
  color: var(--paper);
  font: 900 0.875rem/1 'Ginto', 'gg sans', system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  rotate: var(--tilt);
  cursor: pointer;
  transition: transform 0.2s var(--spring), box-shadow 0.12s;
}
.sticker-button:hover { transform: translateY(-2px) rotate(1deg); }
.sticker-button:active { transform: translateY(2px) scale(0.96); box-shadow: 0 0 0 5px var(--paper), 1.5px 2.5px 0 5px var(--shadow); transition-duration: 0.06s; }
.sticker-button.is-quiet { --tilt: 1.5deg; background: var(--paper); color: var(--orange); }
.sticker-button svg { flex: none; }
@media (max-width: 400px) {
  .bar .sticker-button { height: 40px; padding: 0 13px; font-size: 0.75rem; gap: 7px; }
}

/* ---- The page: the menu's card, springing up as it lands ---- */
main {
  width: min(100%, 960px);
  margin: 34px auto 0;
  flex: 1 0 auto;
}
.card {
  position: relative;
  border-radius: 20px;
  background: var(--page);
  color: var(--ink);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--ink), 8px 11px 0 6px var(--shadow);
  padding: 40px 48px 44px;
  container-type: inline-size;
  container-name: page;
  color-scheme: light;
  animation: card-in 0.5s var(--spring) backwards;
}
@media (max-width: 720px) {
  main { margin-top: 26px; }
  .card { padding: 26px 20px 30px; border-radius: 16px; }
}
@media (max-width: 380px) {
  .card { padding: 22px 16px 26px; }
}

/* the tab's label: a pill sticker like the town's markers (mainichi.styl .menu .contents .eyebrow) */
.pill {
  display: table;
  margin: 0 0 0.9em 3px;
  padding: 0.55em 0.95em 0.47em;
  border-radius: 999px;
  background: var(--paper);
  color: var(--orange);
  font: 900 0.66rem/1 'Ginto', 'gg sans', system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 0 2px var(--ink), 2px 3px 0 2px rgba(28, 28, 28, 0.28);
  rotate: -2deg;
}
.title {
  margin: 0 0 0.35em;
  font: 900 clamp(2rem, 7.5cqi, 3.1rem)/0.95 'Ginto', 'gg sans', system-ui, sans-serif;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.lede { margin: 0 0 0.9em; font-size: 1.125rem; line-height: 1.5; max-width: 32em; }
.lede strong { color: var(--orange); font-weight: 700; }

/* the address, big, its arrow stepping on when you point at it (mainichi.styl .contact-content .mail) */
.mail {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  max-width: 100%;
  font: 900 clamp(1rem, 4.6cqi, 1.55rem)/1.1 'Ginto', 'gg sans', system-ui, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.15s;
}
.mail .arrow { color: var(--orange); transition: transform 0.3s; }
.mail:hover { color: var(--orange); }
.mail:hover .arrow { transform: translateX(6px); }

/* the head of the page, clear of the snapshot stuck on its corner */
.head { padding-right: 250px; min-height: 204px; }
@container page (max-width: 640px) {
  .head { padding-right: 0; min-height: 0; }
  .lede { font-size: 1rem; }
}

/* The snapshot of the post box, stuck on crooked over the page's corner with Ken's sticker on it (menu.styl
   .previews): a way to post from the town instead */
.snapshot {
  position: absolute;
  top: -26px;
  right: 34px;
  width: 214px;
  margin: 0;
  rotate: 3deg;
  text-decoration: none;
  animation: snap-in 0.5s var(--spring) 0.12s backwards;
}
.snapshot .photo {
  display: block;
  position: relative;
  border-radius: 14px;
  padding: 7px;
  background: var(--paper);
  box-shadow: 0 0 0 2px var(--ink), 5px 7px 0 2px rgba(28, 28, 28, 0.28);
  transition: transform 0.25s var(--spring);
}
.snapshot .shot { border-radius: 9px; aspect-ratio: 1; width: 100%; object-fit: cover; }
.snapshot .ken {
  position: absolute;
  left: -20%;
  bottom: -16%;
  width: 56%;
  rotate: -8deg;
  filter: drop-shadow(3px 4px 0 rgba(28, 28, 28, 0.28));
  animation: ken-in 0.45s var(--spring) 0.32s backwards;
}
.snapshot .tag {
  display: table;
  margin: 18px 0 0 auto;
  padding: 0.55em 0.85em 0.5em;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 700 0.8rem/1.15 'gg sans', system-ui, sans-serif;
  box-shadow: 0 0 0 2px var(--ink), 2px 3px 0 2px rgba(28, 28, 28, 0.28);
  rotate: -3deg;
  transition: color 0.15s;
}
.snapshot .tag .arrow { color: var(--orange); }
.snapshot:hover .photo { transform: translateY(-3px) rotate(-1deg); }
.snapshot:hover .tag { color: var(--orange); }
/* a narrow page: at its foot instead, after the socials, the last thing to try */
@container page (max-width: 640px) {
  .snapshot { position: relative; top: auto; right: auto; display: block; width: min(68%, 250px); margin: 44px auto 4px; }
  .snapshot .ken { left: -20%; width: 50%; }
  .snapshot .tag { margin: 20px auto 0; font-size: 0.85rem; }
}

/* ---- The postcard: the post box's writing side (World/PostBox.js drawBase), a card stuck on the page ---- */
.postcard {
  position: relative;
  margin: 34px 0 0;
  padding: 26px 30px 30px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px var(--paper), 5px 8px 0 6px rgba(28, 28, 28, 0.22);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2px minmax(0, 0.64fr);
  grid-template-areas:
    'head    head  head'
    'message rule  stamp'
    'message rule  to'
    'from    rule  to'
    'email   rule  post';
  column-gap: 30px;
  row-gap: 14px;
}
.pc-head { grid-area: head; text-align: center; margin-bottom: 6px; }
.pc-head span {
  display: inline-block;
  font: 900 0.95rem/1 'Ginto', 'gg sans', system-ui, sans-serif;
  letter-spacing: 0.5em;
  margin-right: -0.5em;
  text-transform: uppercase;
  color: var(--not-black);
}
.pc-head span::after { content: ''; display: block; width: 46px; height: 4px; margin: 9px auto 0; background: var(--orange); }
.pc-rule { grid-area: rule; background: rgba(30, 30, 30, 0.5); }

/* the message on ruled lines, in the card's hand (Caveat); the lines scroll with the writing */
.pc-message { grid-area: message; position: relative; }
.pc-message textarea {
  --rule: 36px;
  --rule-color: rgba(30, 30, 30, 0.26);
  display: block;
  width: 100%;
  min-height: calc(var(--rule) * 6 + 8px);
  margin: 0;
  padding: 8px 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent repeating-linear-gradient(180deg, transparent 0 calc(var(--rule) - 2px), var(--rule-color) calc(var(--rule) - 2px) var(--rule)) 0 0 / 100% var(--rule) local;
  color: var(--not-black);
  font: 700 1.6rem/var(--rule) 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  resize: vertical;
  outline: none;
}
.pc-message textarea::placeholder, .pc-line input::placeholder { color: rgba(30, 30, 30, 0.34); }

/* FROM and EMAIL, each on its line */
.pc-line { position: relative; display: grid; grid-template-columns: 4.3em minmax(0, 1fr); align-items: end; margin-top: 16px; }
.pc-line[data-field='name'] { grid-area: from; }
.pc-line[data-field='email'] { grid-area: email; }
.pc-line label, .pc-label {
  font: 700 0.72rem/1 'gg sans', system-ui, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(30, 30, 30, 0.7);
  padding-bottom: 10px;
}
.pc-line input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 2px 2px;
  border: 0;
  border-bottom: 2px solid rgba(30, 30, 30, 0.4);
  border-radius: 0;
  background: transparent;
  color: var(--not-black);
  font: 700 1.6rem/1.3 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  outline: none;
}
.pc-message textarea:focus { --rule-color: rgba(30, 30, 30, 0.5); }
.pc-line input:focus { border-bottom-color: var(--ink); }

/* what needs another look: an Orange Red squiggle under the line and a note in the margin (PostBox.js squiggle, note) */
.note {
  position: absolute;
  right: 0;
  top: -1.45em;
  color: var(--orange);
  font: 700 1.35rem/1 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  rotate: -2.5deg;
  pointer-events: none;
  white-space: nowrap;
}
.note:empty { display: none; }
.pc-message .note { top: -0.9em; }
.is-wrong .note { animation: note-in 0.3s var(--spring); }
.pc-message.is-wrong textarea { --rule-color: rgba(255, 69, 0, 0.55); }
.pc-line.is-wrong input {
  border-bottom-color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='7'%3E%3Cpath d='M0 4.5c3.5 0 3.5-3 7-3s3.5 3 7 3' fill='none' stroke='%23ff4500' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 100% / 14px 7px;
}
.postcard.is-shaking { animation: no 0.36s; }

/* the stamp: Ken's HI sticker framed as a postage stamp, its edges perforated (the white paper has a hole every 10 px,
   the picture covers all but the ones round its edge) */
.pc-stamp {
  grid-area: stamp;
  justify-self: end;
  align-self: start;
  width: 100px;
  padding: 7px;
  background: radial-gradient(circle at 5px 5px, transparent 2.6px, var(--paper) 3px) -5px -5px / 10px 10px;
  filter: drop-shadow(0 0 0.7px rgba(30, 30, 30, 0.7)) drop-shadow(2px 3px 0 rgba(30, 30, 30, 0.12));
  rotate: 4deg;
}
.pc-stamp div { padding: 3px; background: #ffe9dc; box-shadow: inset 0 0 0 1px rgba(255, 69, 0, 0.35); }
.pc-stamp img { width: 100%; aspect-ratio: 1; }

/* the address, already written */
.pc-to { grid-area: to; align-self: center; display: flex; flex-direction: column; position: relative; }
.pc-label { padding-bottom: 6px; }
.pc-addr {
  padding: 8px 2px 5px;
  border-bottom: 2px solid rgba(30, 30, 30, 0.35);
  font: 900 1.05rem/1.1 'Ginto', 'gg sans', system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pc-or { margin-top: 9px; font: 700 0.66rem/1.3 'gg sans', system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(30, 30, 30, 0.55); }
.pc-or a { text-decoration: none; }
.pc-or a:hover { color: var(--orange); }

/* POST IT: the rubber stamp drawn on the card, inked in when you point at it (PostBox.js drawPostButton) */
.pc-post {
  grid-area: post;
  justify-self: end;
  align-self: end;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px 13px 24px;
  border: 3.5px solid var(--orange);
  border-radius: 14px;
  background: rgba(255, 69, 0, 0.07);
  color: var(--orange);
  font: 900 1.3rem/1 'Ginto', 'gg sans', system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  rotate: -3deg;
  cursor: pointer;
  transition: transform 0.2s var(--spring), background-color 0.12s, color 0.12s;
}
.pc-post::before { content: ''; position: absolute; inset: 5px; border: 1.5px solid currentColor; border-radius: 9px; pointer-events: none; }
.pc-post:hover, .pc-post:focus-visible { background: var(--orange); color: var(--not-white); transform: scale(1.04); }
.pc-post:active { transform: scale(0.94); transition-duration: 0.06s; }
.pc-post[disabled] { cursor: default; }
.pc-post .label-busy, .postcard.is-sending .pc-post .label { display: none; }
.postcard.is-sending .pc-post .label-busy { display: inline; }
.postcard.is-sending .pc-post { animation: wobble 0.9s ease-in-out infinite; }

/* posted: the postmark slams on over the stamp, the card is kept as it was sent */
.pc-postmark {
  position: absolute;
  top: 34px;
  right: 76px;
  width: 168px;
  color: var(--orange);
  opacity: 0;
  pointer-events: none;
  rotate: -12deg;
}
.postcard.is-posted .pc-postmark { opacity: 0.92; animation: slam 0.32s cubic-bezier(0.2, 0.8, 0.3, 1.2); }
.postcard.is-posted textarea, .postcard.is-posted input { cursor: default; }
.postcard.is-posted .pc-post { display: none; }

/* returned: RETURN TO SENDER, hand-stamped across the address, the reason under it */
.pc-returned {
  position: absolute;
  inset: auto 0 34% auto;
  padding: 7px 12px 6px;
  border: 3px solid var(--orange);
  border-radius: 6px;
  color: var(--orange);
  background: rgba(255, 253, 248, 0.85);
  font: 900 0.95rem/1.05 'Ginto', 'gg sans', system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  rotate: -9deg;
  pointer-events: none;
  animation: slam 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
.pc-returned small { display: block; margin-top: 4px; font-size: 0.6rem; letter-spacing: 0.14em; }
.pc-returned[hidden] { display: none; }

/* the bot trap: off the card, never in the tab order (the box's own, PostBox.js) */
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* A narrow page: one column, the stamp up in the corner by POSTCARD, the address and POST IT under the sender */
@container page (max-width: 660px) {
  .postcard {
    padding: 18px 16px 22px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'head    stamp'
      'message message'
      'from    from'
      'email   email'
      'to      to'
      'post    post';
    column-gap: 14px;
    row-gap: 12px;
  }
  .pc-head { align-self: center; text-align: left; margin: 0; }
  .pc-head span { letter-spacing: 0.32em; font-size: 0.85rem; }
  .pc-head span::after { margin-left: 0; }
  .pc-rule { display: none; }
  .pc-stamp { width: 70px; }
  .pc-message { margin-top: 10px; }
  .pc-message textarea { --rule: 32px; font-size: 1.4rem; min-height: calc(var(--rule) * 5 + 8px); }
  .pc-line input { font-size: 1.4rem; }
  .pc-to { margin-top: 8px; padding-top: 16px; border-top: 2px dashed rgba(30, 30, 30, 0.3); }
  .pc-addr { padding: 6px 2px 4px; font-size: 0.9rem; }
  .pc-post { justify-self: center; margin-top: 10px; font-size: 1.15rem; }
  .pc-postmark { top: 12px; right: 56px; width: 120px; }
  .pc-returned { inset: auto 6px 22% auto; }
}

/* the posting, said out loud and shown under the card */
.status {
  min-height: 1.6em;
  margin: 20px 0 0;
  font-size: 0.95rem;
}
.status:empty { margin: 0; min-height: 0; }
.status a { color: var(--orange); }

/* posted: Ken says thanks under the card, the way back */
.posted {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  animation: rise-in 0.4s var(--settle) 0.25s backwards;
}
.posted[hidden] { display: none; }
.posted img { flex: none; width: 104px; rotate: -6deg; filter: drop-shadow(3px 4px 0 rgba(28, 28, 28, 0.28)); animation: ken-in 0.45s var(--spring) 0.3s backwards; }
.posted p { margin: 0 0 12px; }
.posted .actions { display: flex; flex-wrap: wrap; gap: 18px; padding: 6px; }
.posted .sticker-button { height: 40px; padding: 0 15px; font-size: 0.75rem; }

/* ---- Find us: the socials as the menu's tiles ---- */
.socials-block { margin-top: 36px; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 4px; list-style: none; }
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--paper), 3px 5px 0 4px rgba(28, 28, 28, 0.28);
  color: var(--ink);
  transition: transform 0.25s var(--spring), color 0.15s;
}
.social:hover { transform: translateY(-2px); color: var(--orange); }
.social:active { transform: scale(0.94); transition-duration: 0.08s; }

/* ---- The foot: the small print, on the sky ---- */
.foot {
  width: min(100%, 960px);
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  color: rgba(228, 222, 248, 0.72);
  font-size: 0.85rem;
}
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.22em; }

/* ---- The 404: Ken lost outside the town ---- */
.lost main { display: flex; align-items: center; justify-content: center; }
.lost .card { width: min(100%, 600px); margin: 70px 0 20px; padding: 44px 44px 46px; text-align: left; }
.lost .ken-lost {
  position: absolute;
  top: -82px;
  right: -26px;
  width: 190px;
  rotate: 8deg;
  filter: drop-shadow(5px 6px 0 var(--shadow));
  animation: ken-in 0.5s var(--spring) 0.2s backwards, bob 4s ease-in-out 0.8s infinite;
}
.lost .title { padding-right: 120px; }
.lost .lede { padding-right: 60px; }
.lost code {
  font: 700 0.95em/1 'gg sans', system-ui, sans-serif;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 0 0 1.5px var(--ink);
  word-break: break-all;
}
.lost .actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; padding: 6px; }
.lost .small { margin: 26px 0 0; font-size: 0.9rem; color: rgba(20, 20, 20, 0.7); }
.lost .small a { color: var(--orange); }
@media (max-width: 600px) {
  .lost .card { margin-top: 90px; padding: 30px 20px 30px; }
  .lost .ken-lost { top: -78px; right: -6px; width: 136px; }
  .lost .title { padding-right: 70px; }
  .lost .lede { padding-right: 0; }
}

/* ---- Motion ---- */
@keyframes card-in { from { transform: translateY(18px) scale(0.97); } }
@keyframes snap-in { 0% { opacity: 0; scale: 1.14; rotate: -6deg; } 45% { opacity: 1; } }
@keyframes ken-in { 0% { scale: 0; rotate: -30deg; } }
@keyframes rise-in { from { opacity: 0; translate: 0 10px; } }
@keyframes note-in { from { opacity: 0; scale: 1.4; } }
@keyframes no { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
@keyframes slam { 0% { opacity: 0; scale: 1.7; } 60% { opacity: 1; } }
@keyframes wobble { 50% { rotate: -1deg; } }
@keyframes bob { 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
