/* WM apps (webmastery.it/apps, portal/wmapps.go, 10 Nov 2026): small free tools, so the page is a workbench in daylight,
   not the games' night. Cards and pictures have thickness (a slab under them), pictures sit inside their frame, never
   flush; the repeated ones are never tilted the same. No script: the CSP has none. */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/lato-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/martian-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #f4f1ea;
  --paper-hi: #fffdf8;
  --ink: #1d1b2e;
  --ink-2: #4a4760;
  --ink-3: #7a7790;
  --line: #ddd7ca;
  --slab: #cfc7b6;
  --sun: #ffb02e;
  --gutter: clamp(16px, 4vw, 56px);
  --a: #4a3f9c;   /* an app's own colours: .wa-app-<key> */
  --b: #1a1f3d;
}
.wa-app-wmeteo { --a: #4a3f9c; --b: #1a1f3d; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color-scheme: light; -webkit-text-size-adjust: 100%; }
body.wa {
  min-height: 100svh; display: flex; flex-direction: column; overflow-x: hidden;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

/* ---------- top and foot ---------- */
.wa-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px var(--gutter);
}
.wa-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: 0.02em; }
.wa-brand img { width: 36px; height: 36px; }
.wa-chip {
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper-hi); padding: 8px 18px; min-height: 44px;
  font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 3px 0 var(--ink);
}
.wa-chip:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.wa-foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px var(--gutter) 30px;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px;
}

/* ---------- page ---------- */
.wa-main { flex: 1 0 auto; width: 100%; max-width: 1180px; margin: 0 auto; padding: 12px var(--gutter) 64px; }
.wa-notice {
  margin: 0 0 22px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--ink);
  background: #fff3d6; font-weight: 700;
}
.wa-kicker {
  font-family: "Martian Mono", ui-monospace, monospace; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}
.wa-kicker a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1 { font-weight: 900; font-size: clamp(40px, 7vw, 76px); line-height: 1; letter-spacing: -0.01em; margin: 10px 0 14px; }
.wa-lead { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; color: var(--ink-2); max-width: 36em; }

/* ---------- the list: a shelf of cards ---------- */
.wa-intro { padding: 28px 0 34px; }
.wa-shelf { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 26px; }
.wa-card {
  display: flex; align-items: center; gap: 18px; height: 100%; padding: 20px 22px; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 22px; color: #fff;
  background: linear-gradient(160deg, var(--a), var(--b));
  box-shadow: 0 7px 0 var(--ink), 0 18px 34px rgba(29, 27, 46, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-card:hover { transform: translateY(3px); box-shadow: 0 4px 0 var(--ink), 0 12px 26px rgba(29, 27, 46, 0.18); }
.wa-shelf li:nth-child(2n) .wa-card { transform: rotate(0.6deg); }
.wa-shelf li:nth-child(3n) .wa-card { transform: rotate(-0.8deg); }
.wa-shelf li:nth-child(2n) .wa-card:hover, .wa-shelf li:nth-child(3n) .wa-card:hover { transform: translateY(3px); }
.wa-card img { flex: none; width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85); }
.wa-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wa-card-text b { font-weight: 900; font-size: 24px; letter-spacing: 0.02em; }
.wa-card-text span { font-size: 16px; line-height: 1.35; opacity: 0.92; }
.wa-card-text small { font-family: "Martian Mono", ui-monospace, monospace; font-size: 11.5px; letter-spacing: 0.05em; opacity: 0.75; margin-top: 4px; }
.wa-empty { color: var(--ink-3); }

/* ---------- an app ---------- */
.wa-head { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); padding: 24px 0 30px; }
.wa-icon {
  flex: none; width: clamp(92px, 12vw, 132px); height: auto; border-radius: 28%;
  box-shadow: 0 0 0 2px var(--ink), 0 8px 0 var(--ink);
}
.wa-head h1 { margin-top: 6px; }
.wa-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.wa-text p { font-size: 19px; max-width: 34em; }
.wa-points { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.wa-points li { position: relative; padding-left: 30px; }
.wa-points li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 14px; border-radius: 5px;
  background: var(--a); box-shadow: 0 2px 0 var(--ink);
}
.wa-points li:nth-child(2n)::before { transform: rotate(8deg); border-radius: 50%; }
.wa-points li:nth-child(3n)::before { transform: rotate(-11deg); }
.wa-points li:nth-child(5n)::before { background: var(--sun); }

.wa-get {
  display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px;
  background: var(--paper-hi); border: 1.5px solid var(--ink); box-shadow: 0 7px 0 var(--ink);
}
.wa-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 6px; }
.wa-facts div { border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.wa-facts dt { font-family: "Martian Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.wa-facts dd { font-weight: 700; font-size: 17px; }
.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 14px 22px;
  border: 1.5px solid var(--ink); border-radius: 16px; text-decoration: none; text-align: center;
  font-weight: 900; font-size: 18px; color: #fff; background: linear-gradient(160deg, var(--a), var(--b));
  box-shadow: 0 5px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.wa-btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.wa-btn-2 { color: var(--ink); background: var(--paper); font-weight: 700; font-size: 16px; }
.wa-google { color: #1f1f1f; background: #fff; font-weight: 700; }
.wa-note { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.wa-note a { text-underline-offset: 2px; }

.wa-shots { display: flex; flex-wrap: wrap; gap: 34px; justify-content: center; margin-top: 56px; }
.wa-shots figure {
  width: min(100%, 300px); padding: 12px 12px 10px; border-radius: 26px; background: var(--paper-hi);
  border: 1.5px solid var(--ink); box-shadow: 0 7px 0 var(--ink), 0 22px 40px rgba(29, 27, 46, 0.16);
  transform: rotate(-1.4deg);
}
.wa-shots figure:nth-child(2n) { transform: rotate(1.1deg) translateY(14px); }
.wa-shots figure:nth-child(3n) { transform: rotate(-0.5deg) translateY(-6px); }
.wa-shots img { border-radius: 16px; border: 1px solid var(--line); }
.wa-shots figcaption { margin-top: 9px; text-align: center; font-size: 14px; color: var(--ink-2); }

@media (max-width: 860px) {
  .wa-body { grid-template-columns: minmax(0, 1fr); }
  .wa-head { align-items: flex-start; }
}
@media (max-width: 520px) {
  body.wa { font-size: 16px; }
  .wa-head { flex-direction: column; gap: 14px; padding-top: 8px; }
  .wa-text p { font-size: 17px; }
  .wa-card { padding: 16px; gap: 14px; }
  .wa-card img { width: 68px; height: 68px; }
  .wa-shots figure, .wa-shots figure:nth-child(2n), .wa-shots figure:nth-child(3n) { transform: none; width: 100%; max-width: 320px; }
  .wa-shots figure:nth-child(2n) { transform: rotate(0.7deg); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-card, .wa-btn, .wa-chip { transition: none; }
}
