/* Merge Crate website. Colours and type are the app's own (theme/index.ts): light = Glass glow,
   dark = Night market, Manrope for text and Paytone One for titles. Pictures: tools/build-website.py. */
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(/fonts/Manrope_500Medium.ttf) format('truetype'); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/fonts/Manrope_600SemiBold.ttf) format('truetype'); }
@font-face { font-family: 'Paytone One'; font-weight: 400; font-display: swap; src: url(/fonts/PaytoneOne_400Regular.ttf) format('truetype'); }

:root {
  color-scheme: light dark;
  --base: #FFF5E2; --ink: #2B2014; --dim: #5E4B32; --accent: #DB2777; --line: rgba(94, 75, 50, 0.16);
  --chip: #FDE9B8; --shade: rgba(43, 32, 20, 0.16);
  --sticker: #FFF8EC; --sticker-edge: #4A2C14;
  --sky: url(/img/sky.jpg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --base: #17122B; --ink: #FFF4DC; --dim: #C4BBDD; --accent: #FFB52E; --line: rgba(255, 244, 220, 0.13);
    --chip: rgba(255, 181, 46, 0.18); --shade: rgba(10, 7, 22, 0.5);
    --sky: url(/img/sky-night.jpg);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 500 16px/24px Manrope, system-ui, sans-serif; background: var(--base); color: var(--dim); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
strong { font-weight: 600; color: var(--ink); }
a { color: var(--ink); border-radius: 4px; text-decoration: underline 2px var(--accent); text-underline-offset: 3px; transition: background-color 0.15s ease; }
a:hover { background: var(--chip); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 24px; }

/* the strip of the Home painting behind every title, fading into the plain ground */
.top { position: relative; background: var(--base) var(--sky) center 22% / cover no-repeat; }
.top::after { content: ''; position: absolute; inset: auto 0 0; height: 60%; background: linear-gradient(to bottom, transparent, var(--base)); }
.top .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 224px; padding-top: 24px; padding-bottom: 8px; }
.brand { align-self: flex-start; text-decoration: none; }
.brand:hover { background: none; }
.brand img { width: 136px; }
.sticker { font: 400 40px/48px 'Paytone One', Manrope, sans-serif; color: var(--sticker); text-wrap: balance;
  text-shadow: 2px 0 var(--sticker-edge), -2px 0 var(--sticker-edge), 0 2px var(--sticker-edge), 0 -2px var(--sticker-edge),
    1.5px 1.5px var(--sticker-edge), -1.5px 1.5px var(--sticker-edge), 1.5px -1.5px var(--sticker-edge), -1.5px -1.5px var(--sticker-edge); }

/* a document: privacy, terms */
.doc { padding-bottom: 64px; }
.meta { font-size: 14px; line-height: 20px; margin-top: 8px; }
.doc p { margin-top: 16px; }
.doc h2 { font: 600 20px/28px Manrope, sans-serif; color: var(--ink); margin-top: 40px; text-wrap: balance; }
.doc h2 + p { margin-top: 8px; }
.doc ul { margin-top: 8px; padding-left: 24px; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--accent); }
/* facts as rows on a hairline, like the app's lists */
.rows { margin-top: 24px; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 600; color: var(--ink); }

/* home */
.hero .wrap { min-height: 400px; align-items: center; justify-content: center; padding-bottom: 48px; }
.hero .logo { width: min(76vw, 420px); }
.home { text-align: center; padding-bottom: 64px; }
.home h1 { font: 400 40px/48px 'Paytone One', Manrope, sans-serif; color: var(--ink); text-wrap: balance; }
.home .lede { max-width: 34rem; margin: 16px auto 0; }
.home .soon { margin-top: 16px; color: var(--ink); }
.shots { display: flex; justify-content: center; gap: 24px; margin-top: 48px; }
.shots img { width: min(42vw, 270px); border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 16px 48px var(--shade); }
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; margin-top: 64px; text-align: left; list-style: none; }
.places li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.places b { display: block; font-weight: 600; color: var(--ink); }
.places span { display: block; font-size: 14px; line-height: 20px; text-wrap: balance; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; line-height: 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer p { margin-top: 16px; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top .wrap { min-height: 184px; padding-top: 16px; }
  .brand img { width: 112px; }
  .sticker, .home h1 { font-size: 28px; line-height: 32px; }
  .rows > div { grid-template-columns: 1fr; gap: 4px; }
  .hero .wrap { min-height: 320px; }
  .shots { gap: 16px; }
  .shots img { border-radius: 16px; }
  .places { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { a { transition: none; } }
