/* StardewPilot website: a notice board on a wooden wall. Type and frames follow the game's own menus (thin rounded
   body text with a soft shadow, heavy maroon titles, orange-brown frames on parchment). Fonts are subsets made by
   website/fonts.py; sizes are whole multiples of each font's pixel grid (Fusion Pixel 12px, Jersey 15px) to stay crisp. */
@font-face { font-family: "Fusion Pixel"; src: url(fonts/body-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Fusion Pixel ZH"; src: url(fonts/body-zh.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Jersey 15"; src: url(fonts/head-15.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Jersey 20"; src: url(fonts/head-20.woff2) format("woff2"); font-display: swap; }

:root {
	--ink: #221122; --shadow: #d79c55; --maroon: #5a1408; --maroon-sh: #d08a48;
	--f-out: #5b2b0a; --f-mid: #b14e05; --f-hi: #fa9305; --f-lo: #dc7a08;
	--paper: #ffd284; --paper-2: #f6c47b; --cream: #fff3d2; --wood-d: #3b1d08;
	--body: "Fusion Pixel", "Fusion Pixel ZH", monospace;
	--head: "Jersey 15", "Fusion Pixel", "Fusion Pixel ZH", monospace;
	--logo: "Jersey 20", "Fusion Pixel", "Fusion Pixel ZH", monospace;
}
/* Chinese and Russian titles use the body font (Jersey has no Cyrillic or Chinese), at multiples of 12px. */
.l-zh, .l-ru { --head: "Fusion Pixel", "Fusion Pixel ZH", monospace; }
.l-zh { --body: "Fusion Pixel ZH", "Fusion Pixel", monospace; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	font-family: var(--body); font-size: 24px; line-height: 1.5; color: var(--ink);
	-webkit-font-smoothing: none; font-smooth: never; font-synthesis: none; font-weight: 400;
	background: #8a5326;
	background-image:
		repeating-linear-gradient(90deg, #0000 0 236px, #5b2b0a 236px 240px),
		repeating-linear-gradient(#0000 0 76px, #6b3612 76px 80px),
		repeating-linear-gradient(#9c5f2c 0 4px, #8a5326 4px 24px, #94592a 24px 28px, #8a5326 28px 52px);
}
a { color: inherit; }
b, strong { font-weight: 400; }
svg.px { display: inline-block; vertical-align: middle; }
:focus-visible { outline: 4px solid #ffe27a; outline-offset: 2px; }

.frame {
	background: linear-gradient(var(--paper), var(--paper-2)); border: 4px solid var(--f-out); border-radius: 6px;
	box-shadow: inset 0 0 0 4px var(--f-hi), inset 0 0 0 8px var(--f-lo), inset 0 0 0 12px var(--f-mid), inset 0 0 0 14px #ffe1a6, 6px 6px 0 #0004;
	padding: 28px 32px;
}
.frame.thin { box-shadow: inset 0 0 0 3px var(--f-hi), inset 0 0 0 6px var(--f-mid), inset 0 0 0 8px #ffe1a6, 4px 4px 0 #0004; padding: 16px 20px; }
.btn {
	display: inline-block; font-family: var(--head); font-size: 30px; line-height: 1; color: var(--maroon); text-decoration: none;
	text-shadow: 2px 2px 0 var(--maroon-sh); background: linear-gradient(#ffe0a0, #f7b85e); border: 4px solid var(--f-out); border-radius: 6px;
	box-shadow: inset 0 0 0 3px var(--f-hi), inset 0 -6px 0 3px var(--f-lo), 0 5px 0 #0005; padding: 12px 22px 16px;
}
.l-zh .btn, .l-ru .btn { font-size: 24px; }
.btn:hover { filter: brightness(1.08); transform: translateY(2px); box-shadow: inset 0 0 0 3px var(--f-hi), inset 0 -6px 0 3px var(--f-lo), 0 3px 0 #0005; }
.btn.green { background: linear-gradient(#9be05a, #5fae2d); color: #fff8de; text-shadow: 2px 2px 0 #2f6a16; }

/* top bar: language tags and GitHub */
.top { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; flex-wrap: wrap; }
.tag {
	font-size: 24px; line-height: 1.3; text-decoration: none; color: #fff1c8; text-shadow: 2px 2px 0 var(--wood-d);
	background: #6b3612; border: 3px solid var(--wood-d); border-radius: 4px; padding: 2px 12px; box-shadow: inset 0 3px 0 #9c5f2c;
}
a.tag:hover { background: #8a4a1c; }
[lang="zh-Hans"] { font-family: "Fusion Pixel ZH", "Fusion Pixel", monospace; }

/* the language menu: one wooden tag that opens a parchment list (a <details>, so it works without JavaScript) */
.langs { position: relative; z-index: 5; }
.langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; user-select: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { background: #8a4a1c; }
.langs[open] summary { background: #ffd284; color: var(--maroon); text-shadow: none; box-shadow: inset 0 3px 0 #fff3d2; }
.caret { width: 12px; height: 8px; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 25%, 83% 25%, 83% 50%, 67% 50%, 67% 75%, 33% 75%, 33% 50%, 17% 50%, 17% 25%, 0 25%); filter: drop-shadow(2px 2px 0 var(--wood-d)); }
.langs[open] .caret { transform: scaleY(-1); filter: none; }
.menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; list-style: none; padding: 12px 10px; }
.menu li + li { border-top: 3px solid #e9c48a; }
.menu a, .menu .on { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 44px; text-decoration: none; color: var(--ink); position: relative; }
.menu a:hover, .menu a:focus-visible { background: #ffe7bd; }
.menu a:hover::before { content: ""; position: absolute; left: 12px; width: 14px; height: 14px; background: #c0221a; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.menu .on { color: var(--maroon); }
.menu .on { background: #ffe1a6; box-shadow: inset 0 0 0 3px #e9b65b; }
.menu .tick { position: absolute; left: 8px; top: 50%; margin-top: -11px; }

/* the sign */
.sign { position: relative; margin: 26px auto 0; width: fit-content; max-width: calc(100% - 32px); text-align: center; }
.sign .board {
	position: relative; background: linear-gradient(#c98a4a, #a8682f); border: 4px solid var(--wood-d); border-radius: 6px;
	box-shadow: inset 0 4px 0 #e0a860, inset 0 -6px 0 #7a4519, 8px 8px 0 #0005; padding: 18px 64px 26px;
}
.sign .board::before, .sign .board::after { content: ""; position: absolute; top: 22px; width: 12px; height: 12px; background: #d8d8e0; box-shadow: inset -3px -3px 0 #8a8a99, 0 0 0 3px var(--wood-d); }
.sign .board::before { left: 20px; } .sign .board::after { right: 20px; }
.sign h1 {
	font-family: "Jersey 20", monospace; font-weight: 400; font-size: 120px; line-height: 1; letter-spacing: 2px; color: #fff1c8;
	text-shadow: 4px 0 0 #5b2b0a, -4px 0 0 #5b2b0a, 0 -4px 0 #5b2b0a, 0 4px 0 #5b2b0a, 4px 4px 0 #5b2b0a, -4px 4px 0 #5b2b0a, 4px -4px 0 #5b2b0a, -4px -4px 0 #5b2b0a, 0 8px 0 #5b2b0a, 4px 8px 0 #5b2b0a, -4px 8px 0 #5b2b0a;
}
.sign p { font-size: 36px; color: #fff1c8; text-shadow: 2px 2px 0 #5b2b0a; margin-top: 4px; }
.posts { display: flex; justify-content: space-between; width: 66%; margin: 0 auto; }
.posts i { width: 20px; height: 34px; background: var(--wood-d); }

.jump { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 2px 16px 0; }
.jump a { font-size: 24px; text-decoration: none; padding: 4px 16px; }
.jump a:hover { filter: brightness(1.06); }
.lead { text-align: center; margin: 22px auto 0; max-width: 820px; padding: 0 16px; }
.lead p { text-shadow: 2px 2px 0 var(--shadow); }
.btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.btns .btn { text-shadow: 2px 2px 0 var(--maroon-sh); }
.btns .btn.green { text-shadow: 2px 2px 0 #2f6a16; }

/* a board with notes */
main { padding: 0 16px; }
.board2 {
	max-width: 1200px; margin: 76px auto 0; position: relative; padding: 52px 40px 44px;
	background: #5b3418; border: 8px solid var(--wood-d); box-shadow: inset 0 0 0 6px #7a4519, inset 0 0 40px #0008, 10px 10px 0 #0005;
}
.board2 > h2 {
	position: absolute; top: -30px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 28px 6px;
	font-family: var(--head); font-weight: 400; font-size: 45px; line-height: 1.1; color: var(--maroon); text-shadow: 3px 3px 0 var(--maroon-sh);
}
.l-zh .board2 > h2, .l-ru .board2 > h2 { font-size: 36px; padding-top: 4px; }
.board2 .sub { color: #fff1c8; text-align: center; text-shadow: 2px 2px 0 #2a1408; margin: -6px 0 26px; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; list-style: none; }
.notes.four { grid-template-columns: repeat(2, 1fr); gap: 34px 40px; max-width: 980px; margin: 0 auto; }
.note { position: relative; background: #fff7dc; padding: 28px 24px 22px; box-shadow: 6px 6px 0 #0006; font-size: 24px; line-height: 1.45; transform: rotate(-1.2deg); transition: transform .12s; }
.note:nth-child(3n+2) { transform: rotate(1deg); background: #fdf0c6; }
.note:nth-child(3n) { transform: rotate(-.4deg); background: #f3f7e0; }
.note:hover { transform: rotate(0) scale(1.02); z-index: 1; }
.note::before {
	content: ""; position: absolute; top: -8px; left: 50%; width: 20px; height: 20px; margin-left: -10px; background: #d9452b; border-radius: 50%;
	box-shadow: inset -4px -4px 0 #8a2a1a, inset 3px 3px 0 #ff8a6a, 2px 3px 0 #0006;
}
.note .kind { font-family: var(--head); font-size: 30px; line-height: 1; color: #c0221a; letter-spacing: 1px; margin-bottom: 8px; }
.l-zh .note .kind, .l-ru .note .kind { font-size: 24px; }
.note h3 { font-family: var(--head); font-weight: 400; font-size: 45px; line-height: 1; color: var(--maroon); margin: 10px 0 8px; }
.l-zh .note h3, .l-ru .note h3 { font-size: 36px; }
.note .say { margin-top: 12px; border-top: 3px dashed #c9a46a; padding-top: 8px; color: #6b4423; }
.note .say b { color: #2f7d32; }
.notes.four h3 span { display: inline-grid; place-items: center; width: 44px; height: 44px; background: #ffd23e; border: 3px solid var(--f-out); margin-right: 6px; font-size: 30px; }

/* screenshots, pinned like photos; shown at half size so each game pixel stays whole */
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 34px; align-items: start; }
.photo { background: #fff7dc; padding: 12px 12px 14px; box-shadow: 6px 6px 0 #0006; position: relative; transform: rotate(-.8deg); }
.photo:nth-child(3) { transform: rotate(.8deg); }
.photo.wide { grid-column: 1 / -1; justify-self: center; width: min(1044px, 100%); transform: rotate(-.3deg); }
.photo.wide img { max-width: 1020px; }
.photo::before { content: ""; position: absolute; top: -10px; left: 50%; width: 60px; height: 22px; margin-left: -30px; background: #f2e6b8cc; box-shadow: 1px 2px 0 #0003; }
.photo img { display: block; width: 100%; height: auto; max-width: 640px; margin: 0 auto; background: #2a1408; }
.photo figcaption { font-size: 24px; line-height: 1.4; padding: 10px 4px 0; color: #4a2e18; }

/* the calendar */
.cal { display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; align-items: start; }
.cal > * { min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; background: #c98a4a; padding: 4px; border: 4px solid var(--f-out); box-shadow: 6px 6px 0 #0006; }
.grid div { background: #ffd59a; height: 74px; position: relative; padding: 0 6px; font-size: 24px; color: #6b4423; }
.grid .h { height: auto; background: #a8682f; color: #fff1c8; text-align: center; padding: 2px; }
.grid div i { position: absolute; right: 3px; bottom: 3px; display: flex; gap: 2px; }
.grid .rain { background: #cfe6f2; }
.grid .today { box-shadow: inset 0 0 0 4px #c0221a; }
.legend { list-style: none; font-size: 24px; line-height: 1.35; }
.legend li { display: flex; gap: 12px; align-items: center; margin: 6px 0; }
.legend svg, .raindot { flex: none; }
.raindot { display: inline-block; width: 48px; height: 36px; background: #cfe6f2; border: 3px solid var(--f-out); }
.rules { margin-top: 22px; }
.rules h3 { font-family: var(--head); font-weight: 400; font-size: 45px; line-height: 1.1; color: var(--maroon); text-shadow: 3px 3px 0 var(--maroon-sh); margin-bottom: 4px; }
.l-zh .rules h3, .l-ru .rules h3 { font-size: 36px; }
.rules ul { list-style: none; }
.rules li { padding: 8px 0 8px 50px; border-bottom: 3px solid #e9c48a; position: relative; line-height: 1.35; }
.rules li:last-child { border: 0; }
.rules li::before {
	content: "!"; position: absolute; left: 0; top: 8px; font-family: "Jersey 15", monospace; font-size: 30px; line-height: 1;
	width: 36px; height: 36px; display: grid; place-items: center; background: #ffd23e; color: #5b2b0a; border: 3px solid #5b2b0a;
}

.more { text-align: center; margin-top: 34px; }
.more a { text-decoration: none; display: inline-block; }
.more a:hover { filter: brightness(1.06); }

footer { max-width: 980px; margin: 70px auto 0; padding: 0 20px 40px; text-align: center; color: #fff1c8; text-shadow: 2px 2px 0 var(--wood-d); }
footer p { margin-bottom: 12px; }
footer .small { font-size: 24px; color: #f2d8a8; }
footer .links a { text-decoration: none; border-bottom: 3px solid #fff1c866; }
footer .links a:hover { border-color: #ffe27a; color: #ffe27a; }

@media (max-width: 1000px) {
	.notes, .notes.four { grid-template-columns: 1fr 1fr; }
	.cal { grid-template-columns: 1fr; }
	.photos { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.notes, .notes.four { grid-template-columns: 1fr; }
	.sign .board { padding: 14px 28px 20px; }
	.sign h1 { font-size: 40px; letter-spacing: 1px; text-shadow: 2px 0 0 #5b2b0a, -2px 0 0 #5b2b0a, 0 -2px 0 #5b2b0a, 0 2px 0 #5b2b0a, 0 4px 0 #5b2b0a; }
	.sign .board::before, .sign .board::after { top: 10px; width: 8px; height: 8px; }
	.sign .board::before { left: 8px; } .sign .board::after { right: 8px; }
	.sign p { font-size: 24px; }
	.board2 { padding: 0 16px 28px; margin-top: 48px; }
	.board2 > h2 { position: static; transform: none; font-size: 30px; white-space: normal; width: fit-content; max-width: 100%; text-align: center; margin: -24px auto 34px; }
	.l-zh .board2 > h2, .l-ru .board2 > h2 { font-size: 24px; }
	.grid div { height: 52px; font-size: 24px; padding: 0 3px; }
	.grid div i { display: none; }
	.frame { padding: 22px 20px; }
	.note h3 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
