/* BlocMod's site. The colours are the Overworld palette of the cube mark, on its dark earth ground. */
@font-face { font-family: "Silkscreen"; src: url(assets/fonts/silkscreen/Silkscreen-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url(assets/fonts/silkscreen/Silkscreen-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Monocraft"; src: url(assets/fonts/monocraft/Monocraft.ttf) format("truetype"); font-weight: 400; font-display: swap; }
:root {
  --plain: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* Headings, buttons and the top bar are in Silkscreen (capitals only); the reading text is in Monocraft.
     Both are pixel fonts, sharp only at whole multiples of their grid: Silkscreen's is 8 pixels to the em
     (16, 24, 32, 40, 48), Monocraft's 9 (18; at 13.5 each of its pixels is one and a half of the screen's).
     Silkscreen is wide, so at phone width its sizes each step down. */
  --font-head: "Silkscreen", var(--plain);
  --font-body: "Monocraft", var(--plain);
  --h1: 48px; --h1-mid: 40px; --h1-small: 32px;
  --h2: 40px; --h2-small: 24px;
  --h3: 24px; --h3-small: 16px;
  --ui: 16px;
  --body: 13.5px; --lead: 18px;
  --ground: #241f1b;
  --ground-2: #2c2622;
  --ground-3: #362f29;
  --line: #463d35;
  --text: #f0e9dd;
  --muted: #b9ad9c;
  --grass: #7daf3e;
  --leaf: #b5ce67;
  --dirt: #8a593d;
  --plank: #b88857;
  --moss: #6b8951;
  --sand: #c8b88c;
  --ink: #171a0e;
  --wide: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: var(--body)/1.6 var(--font-body);
  font-variant-ligatures: none; font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: #d2e68d; }
code { font: inherit; color: var(--sand); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3, .btn, .nav, .menu-btn { font-family: var(--font-head); font-weight: 400; }
ul, ol { padding: 0; list-style: none; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

/* The top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(36, 31, 27, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark-cube { width: 34px; height: auto; }
/* The wordmark is 38 tiles wide: shown at a whole number of pixels a tile (4, or 3 where it is small). */
.mark-word { width: 152px; height: auto; }
.nav, .nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; font-size: var(--ui); }
.nav-links a:not(.btn):hover { color: var(--leaf); }
/* The menu button, at phone width only: three bars of tiles and the word. There the bar has room for
   the mark and this button and no more, so Download goes into the list it opens. */
.menu-btn {
  display: none;
  align-items: center; gap: 9px;
  height: 36px; padding: 0 12px 0 11px;
  font-size: var(--ui); color: var(--text);
  background: var(--ground-3); border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
}
.menu-btn .bars { display: flex; flex-direction: column; justify-content: space-between; width: 18px; height: 15px; }
.menu-btn i { display: block; height: 3px; background: currentColor; }
.menu-btn:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }
.nav.open .menu-btn { background: var(--grass); border-color: var(--grass); color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  background: var(--grass);
  color: var(--ink);
  font-size: var(--ui);
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 3px 0 #557a27;
  transition: transform .08s, box-shadow .08s, background .12s;
}
.btn:hover { background: #8cc048; color: var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #557a27; }
.btn-small { padding: 7px 16px; box-shadow: 0 2px 0 #557a27; }
.btn-plain { background: var(--ground-3); color: var(--text); box-shadow: 0 3px 0 #1a1613; outline: 1px solid var(--line); outline-offset: -1px; }
.btn-plain:hover { background: #423930; color: var(--text); }
.btn-plain:active { box-shadow: 0 1px 0 #1a1613; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

/* The top of the page */
.hero {
  background: url(assets/scatter.svg) center top / max(1920px, 100%) auto no-repeat;
  padding: 84px 0 72px;
}
.hero-words { text-align: center; max-width: 820px; }
h1 { font-size: var(--h1); line-height: 1.12; font-weight: 700; text-wrap: balance; }
.lead { margin: 22px auto 0; max-width: 640px; font-size: var(--lead); color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.actions-left { justify-content: flex-start; margin-top: 24px; }
.small { color: var(--muted); }
.hero .small { margin-top: 18px; }
.disclaimer {
  display: inline-block;
  margin-top: 26px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sand);
  background: var(--ground-2);
  color: var(--text);
  text-align: left;
}

/* A picture of the app, framed */
.shot {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .025);
}
.shot-small { margin-top: 0; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }

/* The sections */
.band { padding: 88px 0; border-top: 1px solid var(--line); }
.band-alt { background: var(--ground-2); }
h2 { font-size: var(--h2); line-height: 1.2; }
h3 { font-size: var(--h3); line-height: 1.3; }
.intro { margin-top: 16px; max-width: 720px; font-size: var(--lead); color: var(--muted); text-wrap: pretty; }

/* What it does: six cards, a tile of the palette each */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.cards li { padding: 24px 24px 26px; background: var(--ground-2); border: 1px solid var(--line); border-radius: 6px; }
.cards p { margin-top: 10px; color: var(--muted); }
.tile { display: inline-block; width: 14px; height: 14px; margin-right: 11px; vertical-align: 0; }
.t1 { background: var(--grass); } .t2 { background: var(--leaf); } .t3 { background: var(--dirt); }
.t4 { background: var(--plank); } .t5 { background: var(--moss); } .t6 { background: var(--sand); }

/* Words beside pictures */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.split h2 + p { margin-top: 16px; color: var(--muted); font-size: var(--lead); }
.split .small { margin-top: 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair img { border-radius: 6px; border: 1px solid var(--line); }

/* Getting started: four numbered steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 4px solid var(--line); }
.steps li:nth-child(1) { border-color: var(--grass); }
.steps li:nth-child(2) { border-color: var(--leaf); }
.steps li:nth-child(3) { border-color: var(--plank); }
.steps li:nth-child(4) { border-color: var(--sand); }
.steps h3::before { content: counter(step) ". "; color: var(--muted); font-weight: 400; }
.steps p { margin-top: 8px; color: var(--muted); }
.split-shot { grid-template-columns: 6fr 5fr; margin-top: 64px; }
.guide-title { font-size: var(--h3); }
.guide-sub { margin-top: 6px; color: var(--muted); font-size: var(--lead); }
.guides { margin-top: 20px; }
.guides li { display: flex; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.guides li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Free for now: two panels */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; max-width: 820px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; background: var(--ground); border: 1px solid var(--line); border-radius: 6px; }
.plan-main { border-color: var(--grass); }
.plan h3 + p { margin: 12px 0 24px; flex: 1; color: var(--muted); }
.plan .small { margin-top: 16px; }
/* The price: a full-width panel above the two, its points marked with small green blocks */
.plan-wide { grid-column: 1 / -1; }
.plan-list { display: grid; gap: 10px; margin-top: 16px; color: var(--muted); }
.plan-list li { position: relative; padding-left: 20px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; background: var(--grass); }

/* A page of text: the privacy note */
.legal .wrap { max-width: 768px; }
.legal h1 { font-size: var(--h2); }
.legal h2 { margin-top: 40px; font-size: var(--h3); }
.legal p { margin-top: 14px; }
.legal .small { margin-top: 10px; }

/* The foot of the page */
.foot { padding: 48px 0 40px; border-top: 1px solid var(--line); color: var(--muted); }
.foot .disclaimer { margin-top: 0; }
.foot-row { display: flex; justify-content: space-between; gap: 32px; margin-top: 32px; }
.foot-row p { margin-top: 12px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.foot .mark-word { width: 114px; }

/* Not settled yet: shown so in the mock, and to come out before it goes anywhere */
.tbd { text-decoration: underline dashed var(--plank); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .split, .split-shot { grid-template-columns: 1fr; gap: 32px; }
  .band { padding: 64px 0; }
  h1 { font-size: var(--h1-mid); }
}
@media (max-width: 620px) {
  h1 { font-size: var(--h1-small); }
  h2 { font-size: var(--h2-small); }
  h3, .guide-title { font-size: var(--h3-small); }
  .wrap { padding: 0 16px; }
  .nav { gap: 12px; }
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .45);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 15px 16px; font-size: var(--h3-small); border-top: 1px solid var(--line); }
  .nav-links .btn { margin: 4px 16px 18px; padding: 12px 16px; text-align: center; }
  .mark-word { width: 114px; }
  .hero { padding: 52px 0 48px; }
  .actions .btn { width: 100%; text-align: center; }
  .shot { margin-top: 40px; border-radius: 5px; }
  .cards, .steps, .plans, .pair { grid-template-columns: 1fr; }
  .foot-row { flex-direction: column; }
  .foot nav { text-align: left; }
  .legal h1 { font-size: var(--h2-small); }
  .legal h2 { font-size: var(--h3-small); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
