/*
 * seekr - styles
 */

/* ************************
   Note to reviewer/instructor
   the color values are acutally taken from tailwind css but I did not use the framework
   https://tailwindcss.com/docs/colors
   ************************
 */

/* This is for all elemetns */

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Arial, sans-serif;
	color: #202124;
}

/* *** Page container *** */

/* Centered column; the big top margin is what centers it vertically at first. */

main {
	max-width: 680px;
	margin: 26vh auto 70px;
	padding: 0 20px;
	transition: margin .3s;
}

/* *** Logo heading ("seekr.") *** */

h1 {
	font-size: 64px;
	letter-spacing: -4px;
	text-align: center;
	margin: 0 0 24px;
}

h1 span {
	color: #2563eb;
}

/* the blue full-stop */

/* *** Search box (rounded pill: input + button) *** */

form {
	display: flex;
	padding: 6px;
	border: 1px solid #d9dee7;
	border-radius: 40px;
	box-shadow: 0 3px 14px #0000000d;
}

form:focus-within {
	border-color: #96adfb;
}

/* highlight the whole pill when typing */

input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	padding: 12px 16px;
	font: inherit;
	background: transparent;
}

button {
	border: 0;
	border-radius: 30px;
	padding: 0 22px;
	color: white;
	background: #2563eb;
	cursor: pointer;
}

button:hover {
	background: #1d4ed8;
}

/* *** Results list *** */

#results {
	margin-top: 40px;
}

article {
	margin-bottom: 32px;
}

/* result block -- only for one result */

article small {
	display: block;
	color: #64748b;
	margin-bottom: 6px;
}

/* site name */

article a {
	color: #1a0dab;
	text-decoration: none;
	font-size: 20px;
}

/* title link */

article a:hover {
	text-decoration: underline;
}

article p {
	color: #475569;
	font-size: 14px;
	line-height: 1.6;
	margin: 7px 0;
}

/* snippet */

/* *** Status line under the results ("Loading...", "End of results") *** */

/* min-height keeps it a stable scroll target for the infinite-scroll observer. */

#status {
	text-align: center;
	color: #64748b;
	font-size: 14px;
	min-height: 44px;
}

/* *** "Search in progress" layout*** */

/* Added to <body> by JS after the first search: pull everything up, shrink logo. */

.searched main {
	margin-top: 35px;
}

.searched h1 {
	font-size: 38px;
	letter-spacing: -2px;
	text-align: left;
	margin-bottom: 18px;
}
