/* Shared look for the guide and info pages. Same picnic-tablecloth system as the game: red gingham behind cream pixel boxes. */
:root {
  --cloth: #fbf3e4;
  --check: rgba(214, 59, 47, .26);
  --ink: #1a1033;
  --cream: #f4e4c1;
  --cream-2: #e6d0a4;
  --gold: #f7c548;
  --tomato: #e8503a;
  --mint: #5fd3a3;
  --ink-2: #4a3226;
  --muted: #6b5a3e;
  --link: #b8322a;
  --f-pixel: "Press Start 2P", "Courier New", monospace;
  --f-body: "VT323", "Courier New", monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--cloth);
  background-image: repeating-linear-gradient(0deg, var(--check) 0 24px, transparent 24px 48px), repeating-linear-gradient(90deg, var(--check) 0 24px, transparent 24px 48px);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 22px;
  line-height: 1.25;
  -webkit-font-smoothing: none;
}
img { max-width: 100%; }
.wrap { max-width: 680px; margin: 0 auto; padding-block: 20px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 22px; }
.box { background: var(--cream); color: var(--ink); border: 4px solid var(--ink); box-shadow: 0 0 0 4px var(--cream), 0 0 0 8px var(--ink), 8px 8px 0 8px rgba(0,0,0,.35); margin: 8px; padding: 16px 18px; }

/* masthead */
.mast { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.logo { font-family: var(--f-pixel); font-size: 12px; line-height: 1.5; letter-spacing: .06em; color: var(--gold); text-decoration: none; text-shadow: -1px 0 0 #a8322a, 1px 0 0 #a8322a, 0 -1px 0 #a8322a, 0 1px 0 #a8322a, 2px 2px 0 #a8322a, 3px 3px 0 var(--ink); }
.logo span { display: block; font-size: 7px; letter-spacing: .14em; }

/* buttons (links styled like the game's buttons) */
.pbtn { display: inline-block; font-family: var(--f-pixel); font-size: 11px; line-height: 1.4; padding: 12px 12px; color: var(--ink); background: var(--mint); border: 4px solid var(--ink); box-shadow: inset -4px -4px 0 #2f9c72, 4px 4px 0 var(--ink); text-decoration: none; text-align: center; }
.pbtn:active { transform: translate(4px, 4px); box-shadow: inset -4px -4px 0 #2f9c72; }
.pbtn.small { font-size: 9px; padding: 8px 10px; border-width: 3px; box-shadow: inset -3px -3px 0 #2f9c72, 3px 3px 0 var(--ink); }
a:focus-visible, .pbtn:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }

/* article */
article h1 { font-family: var(--f-pixel); font-size: clamp(15px, 4.4vw, 21px); line-height: 1.55; margin: 0 0 12px; }
article h2 { font-family: var(--f-pixel); font-size: 12px; line-height: 1.7; margin: 28px 0 10px; color: var(--ink); }
article h2::before { content: "\25B6\00A0"; color: var(--tomato); }
article p, article li { font-size: 22px; }
article p { margin: 0 0 12px; }
article ul, article ol { margin: 0 0 12px; padding-left: 26px; }
article li { margin-bottom: 6px; }
article a { color: var(--link); text-underline-offset: 3px; }
article strong { font-weight: normal; background: linear-gradient(transparent 55%, rgba(247, 197, 72, .75) 55%); }
.lede { font-size: 24px; }
.meta { color: var(--muted); font-size: 18px; margin: 0 0 14px; }

/* dialogue-box tip */
.tip { position: relative; background: #fff7e3; border: 3px solid var(--ink); padding: 10px 12px; margin: 16px 0; }
.tip .who { display: block; font-family: var(--f-pixel); font-size: 9px; color: var(--tomato); margin-bottom: 6px; }
.tip p { margin: 0; }

/* food idea grid with sprites from the game */
.ideas { list-style: none; padding: 0 !important; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.ideas li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: center; background: #fff7e3; border: 3px solid var(--ink); padding: 4px 8px 4px 4px; margin: 0; font-size: 19px; line-height: 1.05; }
.ideas img { width: 48px; height: 48px; image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.ideas b { display: block; font-family: var(--f-pixel); font-weight: normal; font-size: 9px; line-height: 1.5; margin-bottom: 2px; }

/* call to action */
.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cta p { margin: 0; font-size: 22px; }
.cta .label { font-family: var(--f-pixel); font-size: 10px; color: var(--tomato); }

/* footer nav (also used on the home page) */
.sitenav { display: flex; flex-direction: column; gap: 10px; font-size: 20px; text-align: center; }
.sitenav .label { font-family: var(--f-pixel); font-size: 9px; color: var(--muted); }
.sitenav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.sitenav a { color: var(--link); text-underline-offset: 3px; }
.sitenav small { color: var(--muted); font-size: 17px; }
