/**
 * The Legends — book waitlist page (/the-legends/).
 * Prefix: igbk-  ·  Uses --ig-* design system tokens (depends on ingoal-design-system).
 * Display + UI faces are the self-hosted Barlow Condensed / Schibsted Grotesk the
 * book cover uses (files shared with the symposium pages).
 */

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
	src: url('../fonts/symposium/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url('../fonts/symposium/schibsted-grotesk-var.woff2') format('woff2'); }

.ingoal-book-legends .igbk {
	background: var(--ig-bg, #fff);
	color: var(--ig-text-primary, #0A0A0A);
	font-family: var(--ig-font-body, Merriweather, Georgia, serif);
}

.igbk-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.igbk-wrap--narrow { max-width: 760px; }
@media (min-width: 768px) {
	.igbk-wrap { padding: 0 60px; }
}

.igbk-eyebrow {
	display: block;
	font-family: 'Schibsted Grotesk', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ig-gold, #C9A961);
	margin: 0 0 10px;
}

/* ---------- Hero ---------- */
.igbk-hero {
	background: var(--ig-navy, #0A1628);
	color: #fff;
	padding: 48px 0 56px;
}
.igbk-hero__grid {
	display: grid;
	gap: 36px;
	align-items: center;
}
@media (min-width: 900px) {
	.igbk-hero { padding: 72px 0 80px; }
	.igbk-hero__grid { grid-template-columns: 360px 1fr; gap: 64px; }
}
.igbk-hero__cover {
	max-width: 190px;
	margin: 0 auto;
}
@media (min-width: 900px) {
	.igbk-hero__cover { max-width: none; }
}
.igbk-hero__cover img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.igbk-title {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: clamp(56px, 11vw, 96px);
	line-height: 0.95;
	text-transform: uppercase;
	color: #fff;
	margin: 0;
}
.igbk-series {
	font-family: 'Schibsted Grotesk', sans-serif;
	font-weight: 600;
	font-size: 17px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #F4EFE6;
	margin: 12px 0 0;
}
.igbk-lede {
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	margin: 20px 0 0;
	max-width: 560px;
}

/* ---------- Form ---------- */
.igbk-form { margin-top: 32px; max-width: 560px; }
.igbk-form__label {
	display: block;
	font-family: 'Schibsted Grotesk', sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #fff;
	margin-bottom: 12px;
}
.igbk-form__row { display: grid; gap: 10px; }
@media (min-width: 600px) {
	.igbk-form__row { grid-template-columns: 2fr 3fr; }
}
.igbk-form__input {
	width: 100%;
	min-height: 48px;
	padding: 14px 16px;
	font-family: 'Schibsted Grotesk', sans-serif;
	font-size: 16px;
	color: var(--ig-navy, #0A1628);
	background: #fff;
	border: 1px solid transparent;
	border-radius: var(--ig-radius-md, 8px);
	box-sizing: border-box;
}
.igbk-form__input:focus {
	outline: 3px solid var(--ig-gold, #C9A961);
	outline-offset: 1px;
}
.igbk-form__button {
	margin-top: 14px;
	min-height: 48px;
	padding: 14px 28px;
	font-family: 'Schibsted Grotesk', sans-serif;
	font-weight: 700;
	font-size: 17px;
	color: var(--ig-navy, #0A1628);
	background: #F3C32D;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}
.igbk-form__button:hover { background: #F7D35A; }
.igbk-form__button:disabled { opacity: 0.6; cursor: default; }
.igbk-form.is-done .igbk-form__row,
.igbk-form.is-done .igbk-form__button,
.igbk-form.is-done .cf-turnstile { display: none; }
.igbk-form__msg {
	min-height: 0;
	margin: 12px 0 0;
	font-family: 'Schibsted Grotesk', sans-serif;
	font-size: 17px;
	line-height: 1.4;
}
.igbk-form__msg:empty { display: none; }
.igbk-form__msg.is-done { color: #fff; font-weight: 700; }
.igbk-form__msg.is-error { color: #FFB4A8; }
.igbk-form__fine {
	margin: 14px 0 0;
	font-family: 'Schibsted Grotesk', sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
}

/* ---------- Inside ---------- */
.igbk-inside { padding: 56px 0 72px; }
.igbk-h2 {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 34px;
	text-transform: uppercase;
	color: var(--ig-navy, #0A1628);
	margin: 0 0 20px;
}
.igbk-guests {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: igbk;
	display: grid;
	gap: 0 32px;
}
@media (min-width: 600px) {
	.igbk-guests { grid-template-columns: 1fr 1fr; }
}
.igbk-guests li {
	counter-increment: igbk;
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ig-border-color, #E2E6EC);
	font-family: 'Schibsted Grotesk', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.3;
	color: var(--ig-navy, #0A1628);
}
.igbk-guests li::before {
	content: counter(igbk, decimal-leading-zero);
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #9A7B2E;
	min-width: 24px;
}
.igbk-note {
	margin: 24px 0 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ig-text-secondary, #3B4250);
}
.igbk-preview {
	margin: 32px 0 0;
	padding: 20px 22px;
	background: #F4F6F9;
	border-left: 4px solid #F3C32D;
	border-radius: var(--ig-radius-md, 8px);
}
.igbk-preview .igbk-eyebrow { color: #7A5F1C; margin-bottom: 6px; }
.igbk-preview a {
	font-family: 'Schibsted Grotesk', sans-serif;
	font-weight: 700;
	font-size: 19px;
	line-height: 1.35;
	color: var(--ig-navy, #0A1628);
}

/* ---------- On sale: buy buttons, chapter hooks, sections ---------- */
.igbk-buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.igbk-buy__btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 14px 28px;
	font-family: 'Schibsted Grotesk', sans-serif;
	font-weight: 700;
	font-size: 17px;
	color: var(--ig-navy, #0A1628);
	background: #F3C32D;
	border: 2px solid #F3C32D;
	border-radius: 999px;
	text-decoration: none;
}
.igbk-buy__btn:hover { background: #F7D35A; border-color: #F7D35A; color: var(--ig-navy, #0A1628); }
.igbk-buy__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.igbk-buy__btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.igbk-buy__btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
.igbk-hero .igbk-form__fine { margin-top: 12px; }

.igbk-guests--hooks { grid-template-columns: 1fr; }
.igbk-guests--hooks li { flex-wrap: wrap; align-items: baseline; padding: 14px 0; }
.igbk-guests__name { flex: 1 1 auto; }
.igbk-guests__hook {
	flex: 0 0 100%;
	padding-left: 38px;
	margin-top: 4px;
	font-family: var(--ig-font-body, Merriweather, Georgia, serif);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ig-text-secondary, #3B4250);
}
.igbk-h2--space { margin-top: 48px; }
.igbk-body { margin: 0 0 16px; font-size: 17px; line-height: 1.7; color: var(--ig-text-primary, #0A0A0A); }
.igbk-gift {
	margin: 36px 0 8px;
	padding: 24px 26px;
	background: var(--ig-navy, #0A1628);
	border-radius: var(--ig-radius-md, 8px);
	color: #fff;
}
.igbk-gift p { margin: 0 0 18px; font-size: 18px; line-height: 1.6; }

/* Phones: no stranded words (Hutch's rule). "Volume One" takes its own line,
   the eyebrow balances, and the chapter hooks stay inside the screen. */
.igbk-eyebrow, .igbk-series { text-wrap: balance; }
@media (max-width: 599px) {
	.igbk-series__dot { display: none; }
	.igbk-series__vol { display: block; }
}
.igbk-guests__hook { box-sizing: border-box; min-width: 0; }
.igbk-guests__hook { text-wrap: pretty; }
.igbk-note a { color: var(--ig-navy, #0A1628); font-weight: 600; text-decoration: underline; }
.igbk-gift .igbk-buy { margin-top: 0; }
.igbk-gift .igbk-buy__btn--ghost { color: #fff; }
/* Phones (sales version): a smaller cover so both buy buttons are on the first screen. */
@media (max-width: 599px) {
	.igbk--sale .igbk-hero { padding-top: 28px; }
	.igbk--sale .igbk-hero__grid { gap: 22px; }
	.igbk--sale .igbk-hero__cover { max-width: 118px; }
	.igbk--sale .igbk-title { font-size: 52px; }
	.igbk--sale .igbk-lede { font-size: 17px; margin-top: 14px; }
	.igbk--sale .igbk-buy { margin-top: 20px; }
	/* Buttons straight under the title; the description follows. */
	.igbk--sale .igbk-hero__copy { display: flex; flex-direction: column; }
	.igbk--sale .igbk-hero__copy .igbk-buy { order: 1; }
	.igbk--sale .igbk-hero__copy .igbk-form__fine { order: 2; }
	.igbk--sale .igbk-hero__copy .igbk-lede { order: 3; margin-top: 22px; }
}
