/* ==========================================================================
   Footer: Skye's dark veld-earth band, serif headings with a gold rule and
   her sand text, re-organised around the brief: newsletter band, author
   line + LinkedIn, the site's sections, contact/support, legal bar.
   Sized for every reader: 16–18px text, 48px targets.
   ========================================================================== */

.site-footer {
	background-color: var(--ek-earth-dark);
	color: var(--ek-sand);
	margin-top: 100px;
	font-family: var(--ek-font-sans);
	font-size: 17px;
	line-height: 1.7;
}
/* Her pages end on a full section with its own padding: no strip of body
   colour between the last section and the footer. */
.ek-skye-body .site-footer { margin-top: 0; }
.site-footer a { color: var(--ek-sand); }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--ek-gold-pale-focus); }

/* --- Newsletter band ---------------------------------------------------- */
/* Her linen paper (as "Continue reading"), not a second dark band: the
   footer stays the one dark block at the end of the page, and Home's dark
   Order band no longer has a dark twin two sections later. */
.footer-newsletter {
	background-color: var(--ek-linen-deep);
	color: var(--ek-ink);
	border-top: 1px solid var(--ek-line);
	padding: 60px var(--ek-edge);
}
.footer-newsletter__inner {
	max-width: var(--ek-grid); /* the shared edge (tokens.css) */
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 50px;
	align-items: center;
}
.footer-newsletter__title {
	font-family: var(--ek-font-serif);
	font-size: 34px;
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 10px;
	color: var(--ek-ink);
}
.footer-newsletter__intro p { margin: 0; color: var(--ek-muted-strong); font-size: 18px; }

.footer-form__fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.footer-form__field label { display: block; font-size: 15px; font-weight: 500; color: var(--ek-muted-strong); margin-bottom: 6px; }
.footer-form__field input {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	font: inherit;
	font-size: 17px;
	color: var(--ek-earth-dark);
	background: var(--ek-white);
	border: 1px solid var(--ek-field-border); /* 3.5:1 on the linen, 4.1:1 on white */
	border-radius: 0;
	box-sizing: border-box;
}
.footer-form__field input:focus-visible { outline: 3px solid var(--ek-veld-gold); outline-offset: 2px; }
.footer-form__submit {
	min-height: 52px;
	padding: 0 30px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ek-sand);
	background: var(--ek-earth-dark); /* her dark button, as "Order hardcover directly" */
	border: 0;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.footer-form__submit:hover { background: var(--ek-earth-hover-warm); }
.footer-form__submit:focus-visible { outline: 3px solid var(--ek-veld-gold); outline-offset: 2px; }
.footer-form__consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 16px; color: var(--ek-muted-strong); line-height: 1.5; }
.footer-form__consent input { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--ek-earth-dark); }
.footer-newsletter .form-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-left: 3px solid var(--ek-veld-gold);
	background: var(--ek-white);
	font-size: 16px;
}
.footer-newsletter .ek-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sign-up confirmed (JD, 24 Nov 2026; assets/js/signup.js): a drawn check mark and the thank-you
   line, then the section folds away; hidden for the rest of this tab's session. The motion runs in
   signup.js (Web Animations) and is the same with or without reduced motion (JD, 24 Nov: one designed
   animation for this confirmation); these rules are its resting state. */
.ek-signup-done .footer-newsletter { display: none; }
.footer-newsletter .footer-form[aria-busy="true"] .footer-form__submit { opacity: 0.7; cursor: progress; }
.footer-newsletter__done { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.footer-newsletter__done p { margin: 0; font-size: 18px; color: var(--ek-ink); }
.ek-check { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--ek-earth-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ek-check circle { stroke: var(--ek-veld-gold); stroke-dasharray: 114; }
.ek-check path { stroke-dasharray: 24; }

/* --- Columns -------------------------------------------------------------- */
.footer-inner {
	max-width: calc(var(--ek-grid) + 2 * var(--ek-edge));
	margin: 0 auto;
	padding: 70px var(--ek-edge) 50px;
	display: grid;
	grid-template-columns: minmax(300px, 1.3fr) 1fr 1.25fr 0.8fr 1fr; /* brand + Books, Author & Community (widest heading), News, Shop & Support (JD, 29 Oct) */
	gap: 32px;
}
/* Four link columns need 1240px for the wordmark and "Author & Community" to
   keep one line each; narrower desktops put the brand on its own row above them. */
@media (min-width: 1025px) and (max-width: 1290px) {
	.footer-inner { grid-template-columns: repeat(4, 1fr); }
	.footer-brand { grid-column: 1 / -1; }
}
.footer-brand .footer-title {
	font-family: var(--ek-font-serif);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	line-height: 1.1;
	color: var(--ek-sand);
	margin: 0 0 16px;
}
.footer-about { margin: 0 0 22px; color: var(--ek-on-dark-soft); max-width: 340px; }
.footer-social-list { list-style: none; margin: 0; padding: 0; }
.footer-social {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--ek-veld-gold);
}
.footer-social::after { content: '\2192'; color: var(--ek-veld-gold); }

.footer-heading {
	font-family: var(--ek-font-serif);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.5px;
	line-height: 1.3;
	color: var(--ek-sand);
	margin: 0 0 18px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--ek-veld-gold);
	display: inline-block;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
	font-size: 17px;
	color: var(--ek-on-dark-link);
}
/* Hover: the text lights up, no gold. Focus keeps an underline so it is not shown by colour alone. */
.footer-links a:hover { color: var(--ek-white); }
.footer-links a:focus-visible { color: var(--ek-white); text-decoration: underline; text-underline-offset: 5px; }

/* --- Support line + legal bar -------------------------------------------- */
.footer-support {
	max-width: calc(var(--ek-grid) + 2 * var(--ek-edge));
	margin: 0 auto;
	padding: 26px var(--ek-edge);
	border-top: 1px solid var(--ek-border-a15);
	color: var(--ek-on-dark-soft);
}
.footer-support p { margin: 0; }
.footer-support a { font-weight: 600; text-decoration: none; color: var(--ek-sand); }
.footer-support a:hover { color: var(--ek-white); }
.footer-support a:focus-visible { color: var(--ek-white); text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
	max-width: calc(var(--ek-grid) + 2 * var(--ek-edge));
	margin: 0 auto;
	padding: 22px var(--ek-edge) 34px;
	border-top: 1px solid var(--ek-border-a15);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 30px;
	font-size: 15px;
	color: var(--ek-on-dark-legal); /* 6.6:1 on the footer */
}
.footer-copyright { margin: 0; }
/* Freya Studios credit (batch 4): one small line under the copyright, quieter than the
   legal links, so it stays secondary to Louis's name. on-dark-legal on earth-dark = 6.6:1. */
.footer-bottom__left { display: grid; gap: 2px; }
.footer-credit { margin: 0; font-size: 13px; letter-spacing: 0.02em; }
.footer-credit a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ek-on-dark-legal); text-decoration: none; }
.footer-credit a:hover,
.footer-credit a:focus-visible { color: var(--ek-white); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ek-on-dark-soft); text-decoration: none; }
.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--ek-white); text-decoration: underline; text-underline-offset: 4px; }

/* --- Tablet / phone ------------------------------------------------------- */
@media (max-width: 1024px) {
	.footer-newsletter__inner { grid-template-columns: 1fr; gap: 26px; }
	.footer-inner { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.site-footer { margin-top: 70px; font-size: 17px; }
	.ek-skye-body .site-footer { margin-top: 0; }
	.footer-newsletter { padding: 46px var(--ek-edge); }
	.footer-newsletter__title { font-size: 30px; }
	.footer-form__fields { grid-template-columns: 1fr; }
	.footer-form__submit { width: 100%; }
	.footer-inner { grid-template-columns: 1fr; padding: 50px var(--ek-edge) 36px; gap: 34px; }
	.footer-support { padding: 24px var(--ek-edge); }
	.footer-bottom { padding: 20px var(--ek-edge) 30px; flex-direction: column; align-items: flex-start; }
}
