/* littlewat.com — colours from game/ui/palette.gd, fonts from game/ui/theme (the game's "paper" look). */
@font-face { font-family: "Trirong"; src: url("/fonts/Trirong-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans Thai"; src: url("/fonts/NotoSansThai.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
	--paper: #F4EAD5;
	--paper-light: #FBF4E4;
	--paper-deep: #EAD7B3;
	--edge: #B89A6E;
	--edge-soft: #CDB48B;
	--ink: #3B2A1E;
	--muted: #7D6650;
	--head: #8A4B1F;
	--accent: #C8742E;
	--accent-dark: #A85E22;
	--good: #4E7D3A;
	--sub: #6B4A2E;
	--radius: 10px;
	color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Noto Sans Thai", system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.65;
}
h1, h2 { font-family: "Trirong", serif; font-weight: 700; line-height: 1.2; color: var(--head); }
h2 { font-size: 28px; margin: 0 0 16px; }
a { color: var(--head); }
img.px { image-rendering: pixelated; }
[hidden] { display: none !important; }

/* Top bar */
.bar {
	position: sticky; top: 0; z-index: 10;
	display: flex; align-items: center; justify-content: space-between;
	padding: 8px 16px;
	background: var(--paper-light);
	border-bottom: 2px solid var(--edge-soft);
}
.bar-logo img { display: block; width: 200px; height: 40px; }
.bar-lang {
	font-weight: 600; text-decoration: none; padding: 4px 14px;
	border: 2px solid var(--edge); border-radius: 999px; background: var(--paper);
}
.bar-lang:hover { background: var(--paper-deep); }

/* Hero: the title art drawn at whole pixels by site.js; before it runs, a crisp x3 centre crop. */
.hero { position: relative; }
.hero-art { position: relative; overflow: hidden; height: 540px; max-height: 70vh; background: #E9D9B4; }
.hero-art img { position: absolute; left: 50%; bottom: 0; width: 960px; height: 540px; margin-left: -480px; }
.hero-art.fitted { max-height: none; }
.hero-art.fitted img { bottom: auto; margin-left: 0; }
.hero-text { position: absolute; left: 0; right: 0; top: 4%; text-align: center; padding: 0 16px; }
.hero h1 {
	margin: 0; color: var(--ink); font-size: clamp(44px, 9vw, 96px); letter-spacing: 1px;
	text-shadow: 0 0 6px var(--paper-light), 0 0 14px var(--paper-light), 3px 3px 0 var(--paper-deep);
}
.hero-sub {
	margin: 4px 0 0; font-weight: 700; color: var(--sub); font-size: clamp(17px, 2.6vw, 26px);
	text-shadow: 0 0 6px var(--paper-light), 0 0 10px var(--paper-light);
}

/* Sections */
main { display: block; }
.intro, .panel { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.intro { text-align: center; padding-top: 28px; padding-bottom: 12px; }
.lead { font-size: 20px; margin: 0 auto 8px; max-width: 680px; }
.release { color: var(--muted); margin: 0 0 20px; }
.release strong { color: var(--head); }
section[id] { scroll-margin-top: 72px; }
.panel {
	margin-top: 28px; margin-bottom: 28px;
	padding: 28px clamp(16px, 4vw, 40px);
	background: var(--paper-light);
	border: 2px solid var(--edge-soft);
	border-radius: var(--radius);
	width: calc(100% - 32px);
}
.panel-quiet { background: transparent; border-style: dashed; }
.panel-quiet p { color: var(--muted); margin: 0 0 10px; }

/* Buttons (the game's paper buttons; kasaya orange for what to press) */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 48px; padding: 10px 24px;
	font-family: "Noto Sans Thai", sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3;
	text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
}
.btn small { font-weight: 500; font-size: 13px; opacity: .9; }
.btn-main { background: var(--accent); color: var(--paper-light); border-color: var(--accent-dark); box-shadow: 0 3px 0 var(--accent-dark); }
.btn-main:hover { background: var(--accent-dark); }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--edge); }
.btn-line:hover { background: var(--paper-deep); }
.btn-off { background: var(--paper-deep); color: var(--muted); border-color: var(--edge-soft); }
#follow .buttons { justify-content: flex-start; }

/* About */
.about { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px 32px; }
.about li { display: flex; flex-direction: column; }
.about strong { font-family: "Trirong", serif; color: var(--head); font-size: 19px; }
.tagline { text-align: center; font-family: "Trirong", serif; font-size: 20px; color: var(--sub); margin: 24px 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.shots a { display: block; border: 2px solid var(--edge-soft); border-radius: 6px; overflow: hidden; background: var(--paper-deep); }
.shots img { display: block; width: 100%; height: auto; }

/* Development: one row per era, a line down the left like the calendar's path */
h3 { font-family: "Trirong", serif; font-weight: 700; color: var(--head); font-size: 21px; line-height: 1.25; margin: 0; }
.eras { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.era {
	display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 18px; align-items: start;
	padding: 14px; background: var(--paper); border: 2px solid var(--edge-soft); border-radius: var(--radius);
}
.era img, .era-blank { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 2px solid var(--edge-soft); }
.era-blank { background: repeating-linear-gradient(45deg, var(--paper-deep) 0 12px, var(--paper) 12px 24px); }
.era-body p { margin: 0 0 6px; }
.era-status {
	display: inline-block; margin: 6px 0 8px !important; padding: 1px 12px; border-radius: 999px;
	font-size: 14px; font-weight: 700; color: var(--paper-light);
}
.era-done .era-status { background: var(--good); }
.era-beta .era-status { background: var(--accent); }
.era-todo .era-status { background: var(--muted); }
.era-todo { border-style: dashed; background: transparent; }

/* Where to play */
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.store {
	display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
	padding: 18px; background: var(--paper); border: 2px solid var(--edge-soft); border-radius: var(--radius);
}
.store p { margin: 6px 0 4px; color: var(--muted); }
.store .btn { margin-bottom: 6px; }
.store .mirror { font-size: 14px; margin-top: 4px; }

/* Footer */
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 16px 16px 40px; }
.foot p { margin: 2px 0; }

.lost { text-align: center; }

@media (max-width: 520px) {
	body { font-size: 16px; }
	.btn { width: 100%; }
	.hero-text { top: 3%; }
}

@media (max-width: 640px) {
	.era { grid-template-columns: 1fr; }
}

/* Notify form */
.notify { display: grid; gap: 14px; max-width: 560px; }
.notify-email { display: grid; gap: 4px; font-weight: 700; }
.notify-email input {
	font: inherit; font-weight: 400; padding: 10px 12px; min-height: 48px;
	border: 2px solid var(--edge); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.notify-email input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.notify-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.notify-consent input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.notify .btn { justify-self: start; }
.notify-msg { margin: 0; font-weight: 700; min-height: 1.6em; }
.msg-good { color: var(--good); }
.msg-bad { color: #B5482F; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.unsub { display: grid; justify-items: center; gap: 12px; }

/* Text pages (privacy) */
.doc h3 { margin: 20px 0 4px; font-size: 19px; }
.doc p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.doc-title { font-size: 32px; margin: 0 0 8px; color: var(--head); }
.doc-jump { margin: 0; }
.doc-list { margin: 8px 0 0; padding-left: 1.4em; }
.doc-list li { margin: 0 0 10px; }
