/* mjcrossnether.com: the Pixel & Brick look. Pixel blocks (hard edges, 16px tiles) meet glossy studded bricks. No web fonts, no trackers. */
:root {
  --sky1: #5fb6f5; --sky2: #bfe6ff; --night: #120a28; --ink: #140e0a;
  --grass: #6fbf3f; --grass-dark: #4f9a2a; --dirt: #8b5a2b; --dirt-dark: #6e4420;
  --gold: #ffc83d; --cream: #fff4d6; --red: #ff5252; --blue: #4fc3f7; --green: #7bd44a;
  --plank: #b8834a; --plank-dark: #8f6034; --paper: #fbf3dc;
  --px: 4px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #2a1a10; font: 18px/1.6 Georgia, "Times New Roman", serif; background: var(--sky2); }
img { max-width: 100%; display: block; }
a { color: #1d5fa8; }
.wrap { width: min(1080px, 92vw); margin: 0 auto; }
.blockhead { height: clamp(34px, 6vw, 58px); width: auto; margin: 0 auto 18px; }
.blockhead.left { margin-left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* sky with pixel clouds */
.sky { position: relative; background: linear-gradient(var(--sky1), var(--sky2)); overflow: hidden; }
.cloud { position: absolute; background: #fff; opacity: .9; box-shadow: 32px 0 #fff, 64px 0 #fff, 32px -16px #fff, 16px 16px #fff, 48px 16px #fff; width: 32px; height: 16px; }
.cloud.c1 { top: 40px; left: 6%; transform: scale(2); }
.cloud.c2 { top: 110px; right: 12%; transform: scale(1.5); }
.cloud.c3 { top: 30px; right: 38%; transform: scale(1.2); opacity: .7; }

/* the ground: a row of grass blocks, a pixel edge between sections */
.ground { height: 48px; background:
  linear-gradient(var(--grass) 0 14px, transparent 14px),
  repeating-linear-gradient(90deg, var(--grass-dark) 0 8px, transparent 8px 24px) 0 14px / 100% 6px no-repeat,
  repeating-conic-gradient(var(--dirt) 0 25%, var(--dirt-dark) 0 50%) 0 0 / 16px 16px;
  border-top: var(--px) solid var(--ink); border-bottom: var(--px) solid var(--ink); }

/* header */
header.sky { padding: 34px 0 0; text-align: center; }
.name { height: clamp(36px, 7vw, 70px); margin: 8px auto 6px; }
.tag { margin: 0 auto 22px; max-width: 640px; font-size: clamp(17px, 2.2vw, 21px); color: var(--night); }
.hero { position: relative; border: var(--px) solid var(--ink); border-bottom: 0; box-shadow: 0 0 0 var(--px) var(--cream) inset; }
.hero img { width: 100%; }
.hero .bubble { position: absolute; left: 3%; bottom: 8%; max-width: 46%; background: var(--cream); border: var(--px) solid var(--ink);
  padding: 10px 14px; font-size: clamp(13px, 1.6vw, 17px); box-shadow: 6px 6px 0 rgba(20,14,10,.5); }

/* buttons: pixel (hard) and brick (glossy, with studs) */
.btn { display: inline-block; text-decoration: none; font-weight: bold; letter-spacing: .02em; color: var(--ink);
  padding: 12px 20px; margin: 6px 8px 6px 0; border: var(--px) solid var(--ink); }
.btn.pixel { background: var(--green); box-shadow: inset -6px -6px 0 rgba(0,0,0,.2), inset 6px 6px 0 rgba(255,255,255,.35), 6px 6px 0 var(--ink); }
.btn.pixel:hover { transform: translate(2px,2px); box-shadow: inset -6px -6px 0 rgba(0,0,0,.2), inset 6px 6px 0 rgba(255,255,255,.35), 4px 4px 0 var(--ink); }
.btn.brick { position: relative; background: linear-gradient(#ff7a7a, var(--red) 55%, #d93a3a); border-radius: 10px; margin-top: 18px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.55), 0 6px 0 #9e2424, 0 6px 0 2px var(--ink); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.btn.brick::before { content: ""; position: absolute; top: -14px; left: 16px; width: 22px; height: 12px; border: var(--px) solid var(--ink); border-bottom: 0;
  border-radius: 8px 8px 0 0; background: linear-gradient(#ff8a8a, var(--red)); box-shadow: 34px 0 0 -4px var(--red), 34px 0 0 0 var(--ink); }
.btn.brick.blue { background: linear-gradient(#8ad8ff, var(--blue) 55%, #2a9fd6); box-shadow: inset 0 3px 0 rgba(255,255,255,.55), 0 6px 0 #1f78a3, 0 6px 0 2px var(--ink); }
.btn.brick.blue::before { background: linear-gradient(#9fe0ff, var(--blue)); box-shadow: 34px 0 0 -4px var(--blue), 34px 0 0 0 var(--ink); }
.btn:focus-visible { outline: 4px dashed var(--gold); outline-offset: 4px; }

/* sections */
section { padding: 56px 0; }
.dark { background: var(--night); color: var(--cream); }
.dark a { color: var(--gold); }
.dirt { background: repeating-conic-gradient(#7a4e25 0 25%, #6a4220 0 50%) 0 0 / 32px 32px; color: var(--cream); }
.lead { max-width: 720px; margin: 0 auto 30px; text-align: center; }

/* the shelf: books on wooden planks */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 26px 26px 0; border: var(--px) solid var(--ink);
  background: repeating-linear-gradient(var(--plank) 0 30px, var(--plank-dark) 30px 34px); }
.book { display: flex; flex-direction: column; background: var(--cream); border: var(--px) solid var(--ink); box-shadow: 8px 8px 0 rgba(20,14,10,.45); margin-bottom: 26px; }
.book img { width: 100%; height: auto; border-bottom: var(--px) solid var(--ink); }
.book .meta { padding: 14px 16px 18px; color: #2a1a10; font-size: 16px; }
.book .no { display: inline-block; background: var(--ink); color: var(--gold); font: bold 13px/1 monospace; padding: 5px 7px; letter-spacing: .08em; }
.book h3 { margin: 10px 0 6px; font-size: 21px; line-height: 1.2; }
.book .btn { margin-top: 8px; font-size: 15px; padding: 9px 14px; }

/* channel */
.channel { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.phone img { width: 100%; height: auto; }
.phone { border: 10px solid #1d1d1f; border-radius: 30px; overflow: hidden; box-shadow: 10px 10px 0 rgba(0,0,0,.4); background: #000; }
.channel .logo { width: 96px; height: 96px; border-radius: 50%; border: var(--px) solid var(--ink); float: left; margin: 0 18px 8px 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0; }
.ticks li { padding-left: 34px; position: relative; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; background: var(--green); border: 3px solid var(--ink); box-shadow: inset -3px -3px 0 rgba(0,0,0,.25); }

/* Grandpa's Journal: the note for grown-ups */
.journal { position: relative; max-width: 820px; margin: 0 auto; background:
  repeating-linear-gradient(var(--paper) 0 31px, #e5d6b0 31px 32px); padding: 44px 48px 36px 72px; border: var(--px) solid var(--ink);
  box-shadow: 10px 10px 0 rgba(20,14,10,.35); color: #3a2414; line-height: 32px; }
.journal::before { content: ""; position: absolute; left: 44px; top: 0; bottom: 0; width: 3px; background: #e08a7a; }
.journal .label { position: absolute; top: -18px; left: 40px; background: #8a4b2a; color: var(--cream); font: bold 14px/1 monospace; padding: 8px 12px; border: 3px solid var(--ink); letter-spacing: .1em; }
.journal p { margin: 0 0 32px; }
.sign { font-style: italic; text-align: right; margin: 0; }

footer { background: var(--ink); color: #cdb98f; font-size: 14px; padding: 28px 0 40px; text-align: center; }
footer a { color: var(--gold); }

@media (max-width: 820px) {
  .shelf { grid-template-columns: 1fr 1fr; }
  .channel { grid-template-columns: 1fr; }
  .phone { max-width: 260px; margin: 0 auto; }
  .hero .bubble { position: static; max-width: none; border-left: 0; border-right: 0; box-shadow: none; }
}
@media (max-width: 540px) {
  .shelf { grid-template-columns: 1fr; padding: 16px 16px 0; }
  .journal { padding: 36px 22px 24px 48px; }
  .journal::before { left: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
.sky .wrap { position: relative; z-index: 1; }
@media (max-width: 540px) { .cloud.c1 { transform: scale(1); top: 14px; left: 2%; } .cloud.c2 { transform: scale(.8); top: 160px; } .cloud.c3 { display: none; } }
