@charset "utf-8";
/* ------------------------------------------------------------------
   PEGS1979 — home page.
   Loads the shared system, then adds the hero band, the season log
   and the card row that only appear here.
   ------------------------------------------------------------------ */

@import url("template.css");

/* ==================================================================
   1. Hero — the course at Basildon, with the society mark on it
   ================================================================== */

#main_image {
	background-image:
		linear-gradient(180deg, rgba(10, 18, 64, 0.82) 0%, rgba(10, 18, 64, 0.62) 55%, rgba(10, 18, 64, 0.9) 100%),
		url(images/hero-course.jpg);
	background-size: cover;
	background-position: center 38%;
	height: auto;
	width: auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
	border-bottom: 3px solid var(--blue);
}

.hero {
	max-width: var(--page);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.hero__mark {
	flex: none;
	background: #fff;
	border-radius: 4px;
	padding: 0.9rem 1.1rem;
	line-height: 0;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero__mark img {
	display: block;
	width: clamp(150px, 22vw, 230px);
	height: auto;
}

.hero__text { flex: 1 1 20rem; }

.hero__title {
	font-family: var(--sans);
	font-weight: 700;
	font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem);
	line-height: 1.02;
	letter-spacing: -0.025em;
	color: #fff;
	margin: 0;
	text-wrap: balance;
}

.hero__since {
	display: block;
	font-size: 0.42em;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: #93a8ef;
	margin-bottom: 0.5rem;
	font-variant-numeric: lining-nums;
}

.hero__blurb {
	font-family: var(--serif);
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
	line-height: 1.55;
	color: #ccd5f2;
	max-width: 46ch;
	margin: 1rem 0 0;
}

/* ==================================================================
   2. Home body — season log beside the quick links
   ================================================================== */

#main_text {
	margin: -2.5rem auto 0;
	position: relative;
	z-index: 2;
	border-top: 3px solid var(--blue);
}

.home-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 19rem;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}

.home-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--blue);
	font-family: var(--sans);
}

.home-head h2 {
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--blue-deep);
	margin: 0;
}

.home-head p {
	font-family: var(--sans);
	font-size: 0.85rem;
	color: var(--muted);
	margin: 0;
}

/* --- the season log: dates in the margin, like a fixture card ----- */

.season {
	list-style: none;
	margin: 0;
	padding: 0;
}

.season > li {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	gap: 0 1.25rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--rule-soft);
}

.season > li:last-child { border-bottom: none; }

.season time {
	font-family: var(--sans);
	font-variant-numeric: lining-nums tabular-nums;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--blue);
	padding-top: 0.15rem;
	white-space: nowrap;
}

.season h3 {
	font-family: var(--sans);
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--blue-deep);
	margin: 0 0 0.15rem;
	line-height: 1.3;
}

.season p {
	margin: 0;
	font-size: 0.97rem;
	color: var(--muted);
	max-width: 56ch;
}

.season p a { color: var(--blue); }

/* --- quick links panel -------------------------------------------- */

.aside {
	border: 1px solid var(--rule);
	border-top: 3px solid var(--fairway);
	border-radius: 2px;
	padding: 1.25rem;
	background: #fbfcfe;
}

.aside h2 {
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 700;
	color: var(--blue-deep);
	margin: 0 0 0.75rem;
}

.aside ul {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.aside li { border-bottom: 1px solid var(--rule-soft); }
.aside li:last-child { border-bottom: none; }

.aside ul a {
	display: block;
	padding: 0.55rem 0;
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--blue);
	text-decoration: none;
}

/* needs to out-rank the shared #main_text link inversion */
#main_text .aside ul a:hover,
#main_text .aside ul a:focus-visible {
	color: var(--blue-deep);
	background: var(--blue-tint);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

.aside__contact {
	font-family: var(--sans);
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--muted);
	margin: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--rule);
}

.aside__contact a { font-weight: 600; }

/* ==================================================================
   3. Card row
   ================================================================== */

.shelf {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--rule);
}

.shelf ul {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1.25rem;
}

.shelf li { margin: 0; }

.shelf a {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	background: var(--plate);
	border: 1px solid var(--rule);
	border-radius: 2px;
	overflow: hidden;
}

.shelf img {
	display: block;
	width: 100%;
	height: 96px;
	object-fit: cover;
}

.shelf__body {
	display: block;
	padding: 0.8rem 0.9rem 1rem;
	border-top: 1px solid var(--rule-soft);
}

.shelf__title {
	display: block;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
	color: var(--blue);
	margin-bottom: 0.25rem;
}

/* the one card that opens a document rather than a page */
.shelf__kind {
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--muted);
	border: 1px solid var(--rule);
	border-radius: 2px;
	padding: 0.05rem 0.3rem;
	vertical-align: 0.1em;
}

.shelf__note {
	display: block;
	font-family: var(--serif);
	font-size: 0.93rem;
	line-height: 1.45;
	color: var(--muted);
}

/* the shared rule inverts inline links to white-on-blue, which left the
   card's own heading and note colours unreadable on the dark ground */
#main_text .shelf a:hover,
#main_text .shelf a:focus-visible {
	background: var(--blue-tint);
	color: inherit;
	border-color: var(--blue);
}

#main_text .shelf a:hover .shelf__title,
#main_text .shelf a:focus-visible .shelf__title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

#main_text .shelf a:hover .shelf__note,
#main_text .shelf a:focus-visible .shelf__note { color: var(--ink); }

/* ==================================================================
   4. Narrow screens
   ================================================================== */

@media (max-width: 860px) {
	.home-grid { grid-template-columns: minmax(0, 1fr); }
	#main_text { margin-top: -1.5rem; }
}

@media (max-width: 560px) {
	.season > li {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.15rem;
	}
	.hero__mark { padding: 0.6rem 0.75rem; }
}
