/* KeepMeFed — the front door.
 *
 * Dark only. Both apps behind this page are dark with a warm accent, so the
 * parent brand bridges them rather than inventing a third look. Every colour
 * is a token; nothing below this block writes a literal.
 *
 * Fonts are self-hosted woff2 so the CSP can stay font-src 'self' with no
 * round-trip to Google. Both files are VARIABLE — one per family covers the
 * whole weight range, which is why there is no separate 500/700 file.
 */

@font-face {
	font-family: 'Space Grotesk';
	src: url('assets/fonts/space-grotesk-var.woff2') format('woff2-variations');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('assets/fonts/inter-var.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #0e0c10;          /* between PubCrawl #0f1115 and Tequila #07050a */
	--panel: #17141b;
	--panel-2: #1e1a24;
	--line: rgba(240, 235, 224, .10);
	--accent: #e8833a;      /* PubCrawl's orange, verbatim */
	--accent-2: #e07b39;    /* Tequila's amber, for its card */
	--blue: #3aa0e8;        /* PubCrawl's map blue, used sparingly */
	--cream: #f0ebe0;       /* Tequila's text colour */
	--muted: rgba(240, 235, 224, .66);
	--faint: rgba(240, 235, 224, .40);
	--radius: 12px;
	--display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--cream);
	font: 400 17px/1.65 var(--body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;           /* the hero glow is wider than the viewport by design */
}

img { max-width: 100%; display: block; }

/* A class that sets `display` outbids the UA stylesheet's [hidden] rule, which
 * is how a JS-hidden screenshot figure stayed visible. Anything given the
 * hidden attribute is hidden, whatever else it is. */
[hidden] { display: none !important; }

a { color: var(--accent); }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
}

.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--accent);
	color: #17120c;
	padding: 10px 16px;
	z-index: 100;
	font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.site-head {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(14, 12, 16, .82);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.site-head .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
}

.wordmark {
	font: 700 21px/1 var(--display);
	letter-spacing: -.02em;
	color: var(--cream);
	text-decoration: none;
	white-space: nowrap;
}
.wordmark b { color: var(--accent); font-weight: 700; }

.nav {
	display: flex;
	align-items: center;
	gap: 22px;
	font-size: 15px;
}
.nav a {
	color: var(--muted);
	text-decoration: none;
	white-space: nowrap;
}
.nav a:hover { color: var(--cream); }

/* The organizer sign-in menu: a <details> styled as a nav link with a panel
   under it. Native open/close, so it needs no script; app.js only closes it
   on an outside click or Escape. */
.nav-menu { position: relative; }
.nav-menu > summary {
	list-style: none;
	cursor: pointer;
	color: var(--muted);
	white-space: nowrap;
	user-select: none;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover, .nav-menu[open] > summary { color: var(--cream); }
.nav-menu .caret { font-size: 11px; margin-left: 2px; }
.nav-menu-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	min-width: 180px;
	padding: 6px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
	display: flex;
	flex-direction: column;
}
.nav-menu-panel a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--cream);
	font-size: 15px;
	white-space: nowrap;
}
.nav-menu-panel a:hover { background: var(--panel-2); color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 22px;
	border-radius: var(--radius);
	border: 1px solid transparent;
	font: 600 16px/1 var(--body);
	text-decoration: none;
	cursor: pointer;
	transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
	background: var(--accent);
	color: #17120c;
}
.btn-primary:hover { background: #f0923f; }

.btn-tequila {
	background: var(--accent-2);
	color: #17120c;
}
.btn-tequila:hover { background: #ee8a45; }

.btn-ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--cream);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */

.hero {
	position: relative;
	padding: 92px 0 76px;
	text-align: center;
	isolation: isolate;
}

/* Warm radial glow, borrowed from the Tequila background treatment. */
.hero::before {
	content: '';
	position: absolute;
	z-index: -1;
	top: -220px;
	left: 50%;
	transform: translateX(-50%);
	width: 1200px;
	height: 760px;
	max-width: 180vw;
	background: radial-gradient(ellipse at center,
		rgba(232, 131, 58, .20) 0%,
		rgba(232, 131, 58, .08) 38%,
		rgba(232, 131, 58, 0) 70%);
	pointer-events: none;
}

.eyebrow {
	font: 600 13px/1 var(--body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 20px;
}

.hero h1 {
	font: 700 clamp(34px, 6.2vw, 60px)/1.08 var(--display);
	letter-spacing: -.025em;
	margin: 0 auto 22px;
	max-width: 15ch;
}

.lede {
	font-size: clamp(17px, 2.2vw, 19px);
	color: var(--muted);
	max-width: 58ch;
	margin: 0 auto 34px;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	justify-content: center;
	align-items: flex-start;
}

/* One group per app: a small header, two doors under it. */
.cta-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.cta-title {
	font: 600 13px/1 var(--body);
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0;
}
.cta-group-tequila .cta-title { color: var(--accent-2); }

.cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 60ch; }

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 600 12px/1 var(--body);
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--faint);
	margin: 0 0 16px;
}

.section h2 {
	font: 700 clamp(27px, 4vw, 38px)/1.15 var(--display);
	letter-spacing: -.02em;
	margin: 0 0 16px;
}

.section p.blurb {
	color: var(--muted);
	margin: 0 0 28px;
	max-width: 58ch;
}

/* ---------- feature bullets ---------- */

.features {
	list-style: none;
	padding: 0;
	margin: 0 0 40px;
	display: grid;
	gap: 18px 28px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.features li {
	position: relative;
	padding-left: 26px;
	color: var(--muted);
	font-size: 16px;
}

.features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .62em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--accent);
}

.features b {
	display: block;
	color: var(--cream);
	font-weight: 600;
}

/* ---------- screenshots ---------- */

.shots {
	display: grid;
	gap: 22px;
	grid-template-columns: 1fr 1fr;
	margin: 0 0 38px;
	align-items: start;
}

/* The wide map shot spans the row above the pair. */
.shot-wide { grid-column: 1 / -1; }

.shot {
	margin: 0;
	background: none;
	border: 0;
	padding: 0;
	width: 100%;
	text-align: left;
	color: inherit;
	font: inherit;
	cursor: zoom-in;
	display: block;
}

.shot figcaption,
.shot .cap {
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--faint);
}

.frame-wide img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}

/* CSS device frame — the shots are captured clean, the bezel lives here. */
.frame-phone {
	position: relative;
	border-radius: 26px;
	border: 1px solid var(--line);
	background: var(--panel-2);
	padding: 9px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.frame-phone::before {
	content: '';
	position: absolute;
	top: 15px;
	left: 50%;
	transform: translateX(-50%);
	width: 52px;
	height: 5px;
	border-radius: 3px;
	background: rgba(240, 235, 224, .18);
	z-index: 2;
}

.frame-phone img {
	width: 100%;
	height: auto;
	border-radius: 18px;
	display: block;
}

.shot:hover .frame-wide img,
.shot:hover .frame-phone { border-color: var(--accent); }

/* Placeholder shown when a screenshot file is not present yet. */
.shot-missing {
	aspect-ratio: 9 / 19.5;
	display: grid;
	place-items: center;
	border-radius: 18px;
	background: var(--panel);
	color: var(--faint);
	font-size: 13px;
	text-align: center;
	padding: 16px;
}
.frame-wide .shot-missing { aspect-ratio: 16 / 10; border-radius: var(--radius); }

/* ---------- tasting card (was the tequila card; the class names and the amber stayed) ---------- */

.tequila-card {
	background:
		radial-gradient(ellipse at 18% 0%, rgba(224, 123, 57, .16) 0%, rgba(224, 123, 57, 0) 58%),
		#07050a;                        /* Tequila's own near-black */
	border: 1px solid rgba(224, 123, 57, .26);
	border-radius: 18px;
	padding: 40px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px;
	align-items: center;
}

.tequila-card .cactus {
	font-size: 40px;
	line-height: 1;
	margin: 0 0 18px;
}

.tequila-card h2 { margin-bottom: 14px; }
.tequila-card .blurb { margin-bottom: 0; }
.tequila-card .kicker { color: var(--accent-2); opacity: .8; }

/* ---------- footer ---------- */

.site-foot {
	border-top: 1px solid var(--line);
	padding: 40px 0 56px;
	color: var(--faint);
	font-size: 14.5px;
}

.site-foot .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	align-items: center;
	justify-content: space-between;
}

.foot-links {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

/* ---------- lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(7, 5, 10, .92);
	display: grid;
	place-items: center;
	padding: 32px;
}
.lightbox[hidden] { display: none; }

.lightbox img {
	max-width: min(1200px, 94vw);
	max-height: 88vh;
	width: auto;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	object-fit: contain;
}

.lightbox-close {
	position: absolute;
	top: 18px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--panel);
	color: var(--cream);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

.lightbox-cap {
	margin-top: 14px;
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}

/* ---------- 404 ---------- */

.oops {
	min-height: 66vh;
	display: grid;
	place-items: center;
	text-align: center;
}
.oops .code {
	font: 700 78px/1 var(--display);
	color: var(--accent);
	margin: 0 0 10px;
}

/* ---------- mobile ---------- */

@media (max-width: 720px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.hero { padding: 64px 0 56px; }
	.section { padding: 56px 0; }
	.nav { gap: 16px; font-size: 14px; }
	.hero-cta { gap: 28px; }
	.cta-group, .cta-buttons { width: 100%; }
	.cta-buttons { flex-direction: column; }
	.hero-cta .btn { width: 100%; justify-content: center; }
	.tequila-card {
		grid-template-columns: 1fr;
		padding: 28px 22px;
		gap: 24px;
	}
	.tequila-card .btn { width: 100%; justify-content: center; }
	.shots { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.nav .nav-hide { display: none; }   /* keep the header one line on a small phone */
}
