/* =========================================================================
   Handknitted — About pages (About Us / Story / Icelandic Lopapeysa)
   -------------------------------------------------------------------------
   Design frames "About US", "Story", "Icelandic lopapeysa" (2026-07-13
   exports). Content is Gutenberg blocks; these classes style the sections.
   The content band matches the shop pages: 1310px, centered.
   ========================================================================= */

.page-template-about .site-content { padding-block: 0; }

.hk-about .entry-content > * {
	max-width: calc(1310px + 2 * var(--hk-gutter));
	margin-inline: auto;
	padding-inline: var(--hk-gutter);
	margin-block: clamp(2.5rem, 5vw, 4.5rem);
}
.hk-about .entry-content > *:first-child { margin-block-start: 0; }

/* ---- Hero (label + display heading left, image right — overview style) --- */
.hk-ab-hero.wp-block-columns {
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: stretch;
	margin-block: 0 clamp(2.5rem, 5vw, 4.5rem);
}
.hk-ab-hero .wp-block-column:first-child {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.hk-ab-hero__label {
	font-family: "Nexa", var(--hk-font);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--hk-brand);
	margin: 0 0 0.5rem;
}
.hk-ab-hero__heading {
	font-family: "Nexa", var(--hk-font);
	font-weight: 700;
	font-size: clamp(2rem, 3.35vw, 3rem);          /* 48px (was 64px; client 2026-09-28) */
	line-height: 1.1;
	color: var(--hk-ink);
	margin: 0;
}
.hk-ab-hero .wp-block-image { margin: 0; }
.hk-ab-hero .wp-block-image img {
	display: block;
	width: 100%;
	height: clamp(320px, 40vw, 575px);
	object-fit: contain;
	object-position: right center;
}

/* ---- Text/image sections -------------------------------------------------- */
.hk-ab-section.wp-block-columns {
	gap: clamp(1.5rem, 4vw, 7rem);
	align-items: center;
}
.hk-ab-section .wp-block-image { margin: 0; }
.hk-ab-section .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}
/* text column gets an inset like the design (text starts ~113px in) */
.hk-ab-section__text { padding-inline: clamp(0.5rem, 3vw, 3rem); }

/* Section headings and body copy match the front page "Icelandic
   Lopapeysa" feature (front-page.css .hk-feature__title / __text): 30px
   Nexa Bold headings, 16px body on a 1.6 line height (client request
   2026-09-28; was 38px / 20px from the "About US" frame). Body copy still
   wraps at ~430px, hence the max-width on paragraphs. */
.hk-ab-heading {
	font-family: "Nexa", var(--hk-font);
	font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 1.875rem);      /* 30px */
	color: var(--hk-ink);
	line-height: 1.1;
	margin: 0 0 1rem;
}
.hk-ab-heading--cyan { color: var(--hk-brand); }

.hk-ab-section__text p {
	font-size: 1rem;                               /* 16px */
	line-height: 1.6;
	color: var(--hk-ink);
	max-width: 27rem;
	margin: 0 0 1.2em;
}

/* CTA buttons (core button blocks, class hk-btn-rect like the front page):
   the frame's button is 146x50 with an ~18px Nexa Bold label, 2px corners,
   about 30px below the copy. */
.hk-ab-section__text .wp-block-buttons,
.hk-ab-band__text .wp-block-buttons { margin-top: 1.875rem; }
.hk-about .wp-block-button__link {
	border-radius: 2px;
	padding: 0.875rem 1.25rem;
	font-family: "Nexa", var(--hk-font);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.2;
}

/* cyan-bulleted conditions list (PGI section) */
.hk-ab-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}
.hk-ab-list {
	max-width: 27rem;
}
.hk-ab-list li {
	position: relative;
	padding-left: 1.1rem;
	margin-bottom: 0.6rem;
	font-size: 1rem;                           /* same as the body copy */
	line-height: 1.5;
	color: var(--hk-ink);
}
.hk-ab-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--hk-brand);
}

/* ---- "Icelandic Lopapeysa" band ------------------------------------------- */
/* Used to be one image with the text baked in, unreadable on phones. Now a
   columns block (2026-09-21): the cut-out sweater photo on the left, real
   text on the right, on a gradient that continues the photo's studio
   backdrop. Inset by the gutter like the other sections. */
.hk-ab-band.wp-block-columns {
	margin-inline: var(--hk-gutter);
	padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 4vw, 4rem);
	gap: clamp(1rem, 3vw, 3rem);
	align-items: center;
	/* vertical run sampled from the photo's own backdrop (top / middle /
	   bottom edge pixels), so the cut-out blends into the band */
	background: linear-gradient(180deg, #a9b2c1 0%, #b6c0cc 50%, #949ca9 100%);
	color: #fff;
}
.hk-ab-band .hk-ab-band__image { margin: 0; }
.hk-ab-band .hk-ab-band__image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: contain;
}
.hk-ab-band .hk-ab-heading { color: #fff; }
.hk-ab-band .hk-ab-band__text p {
	color: #fff;
	font-size: 1rem;                               /* 16px, like the body copy */
	line-height: 1.6;
	max-width: 28rem;
	margin: 0 0 1.2em;
}
.hk-ab-band .hk-ab-band__text p:last-child { margin-bottom: 0; }

/* ---- Guidance + Stores pages (Figma "Guidance" 1395:2122, "Stores" 1394:1891) */
/* Hero: cyan 30px label over an 83px heading, 581px wide; photo ~760x600
   flush under the header. */
.hk-ab-hero--guidance .hk-ab-hero__label,
.hk-ab-hero--stores .hk-ab-hero__label { font-size: clamp(1.25rem, 2.1vw, 1.875rem); }
.hk-ab-hero--guidance .hk-ab-hero__heading,
.hk-ab-hero--stores .hk-ab-hero__heading {
	/* same 48px as the other About pages (the frames' 83px was too big) */
	max-width: none;
}
.hk-ab-hero--guidance .wp-block-image img,
.hk-ab-hero--stores .wp-block-image img {
	height: clamp(320px, 41.7vw, 600px);
	object-fit: cover;
	object-position: center;
}
/* Video rows: text 465px left, 760x454 video right, 51px between rows.
   Headings and body use the shared .hk-ab-heading / body sizes above. */
.hk-about .entry-content > .hk-ab-video-row { margin-block: clamp(1.5rem, 3.5vw, 3.2rem); }
/* same split and gap as the hero, so each video lines up with the photo */
.hk-ab-video-row.wp-block-columns { gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.hk-ab-video-row .hk-ab-section__text { padding-inline: 0.5rem 0; }
.hk-ab-video-row .hk-ab-heading,
.hk-ab-store-row .hk-ab-heading { max-width: 21.5rem; }
.hk-ab-video-row .hk-ab-section__text p,
.hk-ab-store-row .hk-ab-section__text p { max-width: 29rem; }
.hk-ab-video-row .wp-block-embed { margin: 0; }
.hk-ab-video-row .wp-block-embed__wrapper { width: 100%; }
.hk-ab-video-row .wp-block-embed iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* Store rows: 650x600 photo and 540px text column, 52px apart; cyan
   176x50 "Get directions" button with a 20px Nexa Bold label. */
.hk-ab-store-row.wp-block-columns { gap: clamp(1.5rem, 3.6vw, 3.25rem); }
.hk-ab-store-row .hk-ab-section__text p { max-width: 33.75rem; }
.hk-ab-store-row .wp-block-button__link {
	min-width: 11rem;
	padding: 0.8125rem 1.25rem;
	font-size: 1.25rem;
	border-radius: 0;
	text-align: center;
}
/* grey stand-in until a YouTube link replaces it (design: "YT Linkur") */
.hk-ab-video-placeholder {
	aspect-ratio: 760 / 454;
	background: #d9d9d9;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hk-ab-video-placeholder p {
	font-family: "Nexa", var(--hk-font);
	font-weight: 700;
	font-size: 1.25rem;
	color: #555;
	margin: 0;
}

/* ---- Mens / Womens tiles (like the front page) ----------------------------- */
.hk-ab-tiles.wp-block-columns { gap: clamp(0.75rem, 1.4vw, 1.25rem); }
.hk-ab-tile.wp-block-cover {
	min-height: clamp(300px, 34vw, 575px);
	align-items: center; /* title vertically centered, like the front page Shop tiles */
	justify-content: flex-start;
	overflow: hidden;
}
.hk-ab-tile .wp-block-cover__inner-container {
	padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 1.7vw, 1.5rem);
	width: 100%;
}
.hk-ab-tile__title,
.hk-ab-tile__title a {
	font-family: "Nexa", var(--hk-font);
	font-weight: 700;
	color: #fff;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	line-height: 1.05;
	margin: 0;
	text-decoration: none;
}
.hk-ab-tile__title a:hover { text-decoration: none; opacity: 0.92; }
/* stretched link: the whole tile is clickable (inner container must be
   static so the ::after anchors to the tile; the image drops to z -1 inside
   the tile's isolated stacking so the static text stays visible) */
.hk-ab-tile.wp-block-cover { position: relative; isolation: isolate; }
.hk-ab-tile .wp-block-cover__inner-container { position: static; }
.hk-ab-tile .wp-block-cover__image-background { z-index: -1 !important; }
.hk-ab-tile__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 820px) {
	.hk-ab-hero.wp-block-columns,
	.hk-ab-section.wp-block-columns,
	.hk-ab-band.wp-block-columns,
	.hk-ab-tiles.wp-block-columns { flex-direction: column; }
	.hk-ab-hero .wp-block-image img { height: auto; object-position: center; }
	.hk-ab-section__text { padding-inline: 0; }
	.hk-ab-section__text p,
	.hk-ab-list,
	.hk-ab-band .hk-ab-band__text p { max-width: none; }
	/* Stacked, the first section starts with its text, which otherwise sat
	   right on the header hairline (the desktop layout leads with an image
	   flush to the header, hence the zero top margin above). */
	.hk-about .entry-content > *:first-child { margin-block-start: clamp(1.5rem, 5vw, 2.5rem); }
	.hk-ab-band .hk-ab-band__image img { max-height: 320px; }
	/* stacked store rows always lead with the photo, whichever side it is on */
	.hk-ab-store-row > .hk-ab-section__text:first-child { order: 2; }
}
