/* Bobba Harbour website, in the style of the 2007-2010 community site:
   fixed-width page on a patterned background, rounded tabs, titled boxes.
   Pages are generated by tools/build-web-site.py. The pixel face
   (fonts/pixel.woff2, from tools/pixelfont.py) is crisp at 10px and 20px. Body text is Allo
   (fonts/allo/, SIL Open Font License, https://github.com/joshpuckett/allo). */

@font-face {
	font-family: "Allo";
	src: url(/site/fonts/allo/Allo-Regular.woff2) format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Allo";
	src: url(/site/fonts/allo/Allo-Bold.woff2) format("woff2");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Bobba Marquee";
	src: url(/fonts/marquee.woff2) format("woff2");
	font-display: swap;
}
@font-face {
	font-family: "Bobba Pixel";
	src: url(/fonts/pixel.woff2) format("woff2");
	font-display: swap;
}

:root {
	--orange: #E59E0F;
	--orange-dark: #B06F00;
	--blue: #2E6A8E;
	--blue-dark: #1E4A66;
	--blue-pale: #EAF3F8;
	--green: #4E9A16;
	--green-dark: #2F6A06;
	--grey: #7D8790;
	--grey-dark: #59626A;
	--ink: #222;
	--pixel: "Bobba Pixel", ui-monospace, monospace;
	--body: Allo, Verdana, Tahoma, Geneva, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	color: var(--ink);
	font: 11px/1.45 var(--body);
	background-color: #3F8FB8;
	background-image:
		repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 2px, transparent 2px 12px),
		repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 12px),
		linear-gradient(#2C6F95, #4FA2C9 600px);
	background-repeat: repeat, repeat, no-repeat;
	min-height: 100vh;
}
img { image-rendering: pixelated; }
button, input, select, textarea { font-family: inherit; }
a { color: #1D5A88; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 8px; }
.small { font-size: 10px; color: #555; }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 4px; background: #fff; padding: 4px 8px; z-index: 5; }
.skip:focus { left: 4px; }

.page { width: 920px; max-width: 100%; margin: 0 auto; padding: 10px 10px 20px; }

/* Header */
.header-top { display: flex; align-items: center; gap: 14px; padding: 4px 4px 10px; }
.logo img { display: block; }
.online-pill {
	margin: 0 0 0 auto; padding: 4px 10px;
	background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.35); border-radius: 12px;
	color: #fff; font-weight: bold;
}
.online-pill b { color: #FFD24A; }

.tabs ul { display: flex; gap: 3px; list-style: none; margin: 0; padding: 0 6px; }
.tabs li a {
	display: block; padding: 6px 16px 5px;
	border: 1px solid var(--blue-dark); border-bottom: 0; border-radius: 7px 7px 0 0;
	background: linear-gradient(#FFFFFF, #CFE3EF); color: var(--blue-dark);
	font-weight: bold; font-size: 12px; text-decoration: none;
}
.tabs li a:hover { background: linear-gradient(#FFF8E0, #F6D890); }
.tabs li.on a { background: var(--orange); color: #fff; border-color: var(--orange-dark); text-shadow: 0 1px 0 var(--orange-dark); }
.subnav {
	background: var(--orange); border: 1px solid var(--orange-dark); border-radius: 6px;
	padding: 6px 12px; margin-bottom: 10px; min-height: 28px;
}
.subnav a { color: #fff; font-weight: bold; text-decoration: none; margin-right: 6px; }
.subnav a + a::before { content: "|"; color: rgba(255,255,255,.6); margin-right: 8px; font-weight: normal; }
.subnav a:hover { text-decoration: underline; color: #fff; }

/* Buttons */
.btn {
	display: inline-block; padding: 4px 12px;
	border: 1px solid var(--grey-dark); border-radius: 4px;
	background: linear-gradient(#FDFDFD, #D6D9DC); color: #333 !important;
	font: bold 11px var(--body); text-decoration: none;
	box-shadow: inset 0 1px 0 #fff;
}
.btn-green {
	border-color: var(--green-dark);
	background: linear-gradient(#8DD44A, #4E9A16 55%, #3F8410);
	color: #fff !important; text-shadow: 0 1px 0 var(--green-dark);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-green:hover { background: linear-gradient(#9FE05C, #5BAE1E 55%, #4A961A); }
.btn-big { padding: 9px 18px; font-size: 14px; }

/* Columns and boxes */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 10px; align-items: start; }
.hero { grid-column: 1 / -1; }
.col { display: grid; gap: 10px; }

.box { background: #fff; border: 1px solid var(--blue-dark); border-radius: 7px; overflow: hidden; }
.box-title {
	padding: 5px 10px 4px;
	font: 10px/1.2 var(--pixel); text-transform: uppercase; letter-spacing: 1px;
	color: #fff; background: linear-gradient(#4C8DB4, var(--blue));
	border-bottom: 1px solid var(--blue-dark);
}
.box-body { padding: 10px; }
.box-orange { border-color: var(--orange-dark); }
.box-orange .box-title { background: linear-gradient(#F6B73A, var(--orange)); border-color: var(--orange-dark); }
.box-orange .box-body { background: #FFF9EA; }
.box-grey { border-color: var(--grey-dark); }
.box-grey .box-title { background: linear-gradient(#9AA3AB, var(--grey)); border-color: var(--grey-dark); }
.box-grey .box-body { background: #F4F5F6; }
.box-green { border-color: var(--green-dark); }
.box-green .box-title { background: linear-gradient(#78BE36, var(--green)); border-color: var(--green-dark); }
.box-green .box-body { background: #F1F9E8; }
.box-blue .box-body { background: #fff; }
.box h3 { font-size: 12px; color: var(--blue-dark); margin-bottom: 3px; }

hr.dotted { border: 0; border-top: 1px dotted #9AB; margin: 9px 0; }

/* Hero */
.hero .box-title { font: 32px/1 "Bobba Marquee", var(--pixel); letter-spacing: 0; padding: 9px 12px 7px; }
.hero-body { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 14px; align-items: center; }
.hero-art {
	height: 300px; border: 1px solid var(--blue-dark); border-radius: 4px;
	background: url(/brand/cityview/base.png) -20px -110px no-repeat #2E8CC8;
}
.hero-side { font-size: 12px; }
.hero-side .btn-big { display: block; text-align: center; }

/* News */
.news-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.news-art {
	height: 72px; border: 1px solid #9AB; border-radius: 3px;
	background: url(/brand/cityview/base.png) no-repeat #2E8CC8;
}
.art-pier { background-position: -205px -276px; }
.art-tower { background-position: -135px -110px; }
.art-boats { background-position: -318px -150px; }
.date { color: #888; font-size: 10px; margin-bottom: 3px; }

ul.dots { margin: 0 0 8px; padding: 0; list-style: none; }
ul.dots li { padding: 4px 0 4px 14px; border-bottom: 1px dotted #C8CED3; position: relative; }
ul.dots li:last-child { border-bottom: 0; }
ul.dots li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; background: var(--orange); }

.tags { line-height: 1.9; margin: 0; }
.tags a { margin-right: 6px; text-decoration: none; }
.tags a:hover { text-decoration: underline; }
.tags .t1 { font-size: 11px; }
.tags .t2 { font-size: 14px; font-weight: bold; }
.tags .t3 { font-size: 17px; font-weight: bold; color: var(--orange-dark); }

.counter { margin: 0 0 6px; }
.faces { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 8px; padding: 0; list-style: none; }
.faces:empty { display: none; }
.faces a { display: block; width: 40px; height: 44px; background: #fff; border: 1px solid #9c9; border-radius: 4px; overflow: hidden; }
.faces a:hover { border-color: #4a9a1c; }
.faces canvas { display: block; image-rendering: pixelated; }
.count { display: block; font: 20px/1 var(--pixel); color: var(--green-dark); }

/* Footer */
.site-footer { margin-top: 14px; text-align: center; color: #fff; font-size: 10px; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.site-footer a { color: #fff; }
.site-footer p { margin: 4px 0; }

/* Narrow screens: stack columns */
@media (max-width: 900px) {
	.hero-body { grid-template-columns: 1fr; }
	.hero-art { height: 240px; background-position: 30% 60%; background-size: 900px auto; }
}
@media (max-width: 700px) {
	.page { padding: 6px; }
	.cols { grid-template-columns: minmax(0, 1fr); }
	.header-top { flex-wrap: wrap; gap: 8px; }
	.header-top .btn { margin-left: auto; }
	.online-pill { order: 3; margin: 0; width: 100%; text-align: center; }
	.tabs ul { padding: 0 2px; }
	.tabs li { flex: 1; }
	.tabs li a { padding: 6px 4px 5px; text-align: center; font-size: 11px; }
	.hero .box-title { font-size: 16px; }
	.hero-art { height: 180px; background-size: 700px auto; }
	body { font-size: 12px; }
}
