/* shop.ancrenoire.com, while the shop is being made: the red stamp in the
   middle of the window, "Coming soon" under it, a small footer.
   Colours and type are ancrenoire.com's. */
:root {
  --bg: #ecebe6;
  --fg: #1a1a1a;
  --soft: rgba(26, 26, 26, 0.5);
  --red: #c8183a;
  --sans: 'Archivo', system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0c0e; --fg: #f4f2ec; --soft: rgba(244, 242, 236, 0.5); }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-stretch: 125%;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 36px);
  padding: 24px;
}

.stamp { display: block; width: clamp(120px, 22vmin, 180px); }
.stamp img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply; /* printed into the paper */
  animation: press 0.9s cubic-bezier(0.3, 1.5, 0.4, 1) both;
  transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.4, 1);
}
.stamp:hover img { transform: rotate(-8deg) scale(1.04); }
@media (prefers-color-scheme: dark) {
  .stamp img { mix-blend-mode: normal; } /* multiplied on black, it would vanish */
}

.soon {
  margin: 0;
  font-size: clamp(13px, 1.6vmin, 16px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: rise 0.8s 0.35s ease-out both;
}

.mail {
  margin-top: calc(clamp(20px, 4vh, 36px) * -0.5); /* close to "Coming soon" */
  font-size: clamp(13px, 1.5vmin, 15px);
  color: var(--soft);
  transition: color 0.2s;
  animation: rise 0.8s 0.5s ease-out both;
}
.mail:hover, .mail:focus-visible { color: var(--red); }

footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 20px 24px max(20px, env(safe-area-inset-bottom));
  font-size: 12px;
  color: var(--soft);
}
footer a { transition: color 0.2s; }
footer a:hover, footer a:focus-visible { color: var(--red); }

@keyframes press {
  from { opacity: 0; transform: scale(1.25) rotate(6deg); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stamp img, .soon, .mail { animation: none; }
  .stamp img { transition: none; }
  .stamp:hover img { transform: none; }
}
