/*
Theme Name: Harbourink
Theme URI: https://babybamboo.com.hk
Author: babybamboo editorial
Author URI: https://babybamboo.com.hk
Description: Lifestyle journal theme for babybamboo.com.hk. Skin: Bento Produtividade Flexivel (designmd #229).
Template: astra
Version: 1.1.4
License: GNU General Public License v2 or later
Text Domain: harbourink
*/

:root {
	--hk-accent: #add8e6;      /* azul claro - fills, focus ring */
	--hk-link: #3d7a99;        /* muted steel blue - text links (WCAG on white) */
	--hk-mint: #98fb98;        /* verde menta */
	--hk-paper: #f0f2f5;       /* cinza suave - page background */
	--hk-card: #ffffff;        /* card surface */
	--hk-ink: #333333;         /* off-black text */
	--hk-ink-soft: #6b7280;    /* muted text */
	--hk-line: #e3e7ec;        /* borders */
	--hk-pastel-yellow: #fffacd;
	--hk-pastel-peach: #ffdab9;
	--hk-pastel-lavender: #e6e6fa;
	--hk-charcoal: #333333;
	--hk-radius: 12px;
	--hk-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	--hk-shadow-lift: 0 6px 20px rgba(0, 0, 0, 0.10);
}

html {
	font-size: 16px;
}

body,
button,
input,
select,
textarea {
	font-family: "Inter", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
	color: var(--hk-ink);
	background: var(--hk-paper);
}

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .widget-title {
	font-family: "Inter", "Noto Sans TC", "PingFang HK", sans-serif;
	font-weight: 700;
	color: var(--hk-ink);
	letter-spacing: -0.01em;
}

a {
	color: var(--hk-link);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

a:hover,
a:focus {
	color: var(--hk-ink);
	border-bottom-color: var(--hk-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--hk-accent);
	outline-offset: 2px;
}

.hk-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---- Top split strip (H3) ---- */
.hk-strip {
	background: var(--hk-charcoal);
	border-bottom: 1px solid var(--hk-line);
}

.hk-split {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 46px;
}

.hk-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 0;
}

.hk-nav-r {
	justify-content: flex-end;
}

.hk-nav a {
	display: inline-block;
	color: #dfe4ea;
	font-size: 0.84rem;
	font-weight: 500;
	border-bottom: none;
	padding: 4px 10px;
	border-radius: 999px;
	transition: background 0.2s ease-out, color 0.2s ease-out;
}

.hk-nav a:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.hk-strip-tag {
	flex: 0 0 auto;
	color: var(--hk-accent);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	max-width: 230px;
	text-align: center;
	line-height: 1.35;
}

/* ---- Header ---- */
.site-header {
	background: #ffffff;
	border-bottom: 1px solid var(--hk-line);
}

.site-title,
.site-title a {
	font-family: "Inter", "Noto Sans TC", sans-serif !important;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--hk-ink) !important;
	border-bottom: none !important;
}

.site-title a:hover {
	color: var(--hk-link) !important;
}

.site-description {
	color: var(--hk-ink-soft);
	font-size: 0.85rem;
	font-weight: 500;
}

/* ---- Blog cards (Astra native grid, bento skin) ---- */
.blog .ast-article-post .ast-article-inner,
.archive .ast-article-post .ast-article-inner {
	background: var(--hk-card);
	border: 1px solid var(--hk-line);
	border-radius: var(--hk-radius);
	box-shadow: var(--hk-shadow);
	padding: 22px 22px 18px;
	transition: box-shadow 0.2s ease-out, transform 0.2s ease-out, border-color 0.2s ease-out;
}

.blog .ast-article-post:hover .ast-article-inner,
.archive .ast-article-post:hover .ast-article-inner {
	box-shadow: var(--hk-shadow-lift);
	transform: translateY(-3px);
	border-color: var(--hk-accent);
}

/* bento variance: first card gets a soft pastel tint */
.blog .ast-article-post:first-child .ast-article-inner {
	background: linear-gradient(160deg, #ffffff 55%, var(--hk-pastel-lavender) 160%);
}

.blog .ast-article-post,
.archive .ast-article-post {
	background: transparent;
	border: none;
	padding: 0;
}

.blog .entry-title,
.archive .ast-article-post .entry-title {
	font-size: 1.12rem;
	line-height: 1.45;
	margin-bottom: 8px;
}

.blog .entry-title a,
.archive .entry-title a {
	border-bottom: none;
}

.entry-meta,
.entry-meta a {
	color: var(--hk-ink-soft);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	border-bottom: none;
}

.blog .entry-content p,
.archive .ast-article-post .entry-content p {
	font-size: 0.92rem;
	line-height: 1.7;
	color: var(--hk-ink-soft);
}

/* ---- Content + LEFT sidebar ---- */
.site-content .ast-container {
	display: flex;
	flex-direction: row;
	gap: 32px;
	align-items: flex-start;
}

.site-content .ast-container #secondary {
	order: -1;
	flex: 0 0 320px;
	min-width: 320px;
}

.site-content .ast-container #primary {
	flex: 1 1 auto;
}

@media (max-width: 921px) {
	.site-content .ast-container {
		flex-direction: column;
	}
	.site-content .ast-container #secondary {
		order: 0;
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
	}
}

#secondary .widget {
	background: var(--hk-card);
	border: 1px solid var(--hk-line);
	border-radius: var(--hk-radius);
	box-shadow: var(--hk-shadow);
	padding: 18px 20px;
	margin-bottom: 20px;
}

#secondary .widget-title {
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--hk-accent);
}

#secondary ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#secondary li {
	padding: 6px 0;
	border-bottom: 1px solid var(--hk-paper);
	font-size: 0.9rem;
}

#secondary li:last-child {
	border-bottom: none;
}

/* ---- Single post ---- */
.single .site-content .ast-container #primary {
	max-width: 920px;
}

.single .entry-title {
	font-size: 1.75rem;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.single .entry-content {
	font-size: 1.02rem;
	line-height: 1.85;
}

.single .entry-content h2 {
	font-size: 1.28rem;
	margin-top: 2em;
	padding: 6px 14px;
	background: var(--hk-pastel-lavender);
	border-radius: 8px;
}

.single .entry-content h3 {
	font-size: 1.08rem;
}

blockquote {
	border-left: 4px solid var(--hk-accent);
	background: var(--hk-pastel-yellow);
	border-radius: 0 var(--hk-radius) var(--hk-radius) 0;
	margin: 1.5em 0;
	padding: 14px 18px;
	color: var(--hk-ink);
}

/* ---- Pagination ---- */
.ast-pagination .page-numbers,
.pagination .page-numbers {
	border: 1px solid var(--hk-line);
	border-radius: var(--hk-radius);
	padding: 6px 14px;
	color: var(--hk-link);
	background: var(--hk-card);
	transition: background 0.2s ease-out, color 0.2s ease-out;
}

.ast-pagination .page-numbers.current,
.pagination .page-numbers.current {
	background: var(--hk-charcoal);
	color: #ffffff;
	border-color: var(--hk-charcoal);
}

/* ---- F3 footer row ---- */
.hk-footrow {
	background: var(--hk-charcoal);
	margin-top: 56px;
	padding: 40px 0 32px;
}

.hk-footgrid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 36px;
}

@media (max-width: 921px) {
	.hk-footgrid {
		grid-template-columns: 1fr;
	}
}

.hk-footcol h3 {
	color: var(--hk-accent);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
}

.hk-foot-about p {
	color: #c7cdd4;
	font-size: 0.88rem;
	line-height: 1.75;
}

.hk-foot-cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 16px;
}

.hk-foot-cats a {
	color: #c7cdd4;
	font-size: 0.86rem;
	border-bottom: none;
	transition: color 0.2s ease-out;
}

.hk-foot-cats a:hover {
	color: var(--hk-mint);
}

.hk-foot-sub p {
	color: #c7cdd4;
	font-size: 0.86rem;
	margin-bottom: 14px;
}

.hk-sub-btn {
	display: inline-block;
	background: var(--hk-accent);
	color: var(--hk-charcoal) !important;
	font-weight: 600;
	font-size: 0.88rem;
	padding: 10px 20px;
	border-radius: var(--hk-radius);
	border-bottom: none !important;
	box-shadow: var(--hk-shadow);
	transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.hk-sub-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--hk-shadow-lift);
}

/* ---- Footer copyright bar ---- */
.site-footer {
	background: #2a2a2a;
	color: #9aa3ad;
	font-size: 0.8rem;
}

.site-footer a {
	color: #c7cdd4;
}

/* ---- Search form ---- */
.search-form .search-field,
.widget_search .search-field {
	border: 1px solid var(--hk-line);
	border-radius: var(--hk-radius);
	background: #ffffff;
	padding: 9px 12px;
}

.search-form .search-field:focus,
.widget_search .search-field:focus {
	outline: 2px solid var(--hk-accent);
	outline-offset: 2px;
}

.search-form .search-submit,
.widget_search .search-submit {
	background: #ffffff;
	color: var(--hk-link);
	font-weight: 600;
	border: 1px solid var(--hk-line);
	border-radius: 999px;
	padding: 9px 18px;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.2s ease-out, background 0.2s ease-out;
}

.search-form .search-submit:hover,
.widget_search .search-submit:hover {
	background: var(--hk-paper);
	border-color: var(--hk-accent);
}

/* ---- Screen-reader safety ---- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}


/* ---- Magazine home (MAGAZINE-SPEC v0.1) ---- */
.hk-mag {
	padding: 32px 0 48px;
}

.hk-mag-card {
	background: var(--hk-card);
	border: 1px solid var(--hk-line);
	border-radius: var(--hk-radius);
	box-shadow: var(--hk-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease-out, transform 0.2s ease-out, border-color 0.2s ease-out;
}

.hk-mag-card:hover {
	box-shadow: var(--hk-shadow-lift);
	transform: translateY(-3px);
	border-color: var(--hk-accent);
}

.hk-mag-thumb {
	display: block;
	border-bottom: none !important;
}

.hk-mag-thumb img {
	width: 100%;
	display: block;
	object-fit: cover;
}

.hk-mag-textthumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 120px;
}

.hk-mag-textthumb-tag {
	font-size: 1.1rem;
	font-weight: 700;
	color: rgba(51, 51, 51, 0.75);
	letter-spacing: 0.06em;
}

.hk-mag-body {
	padding: 16px 18px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
}

.hk-mag-tag {
	align-self: flex-start;
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--hk-link) !important;
	background: rgba(173, 216, 230, 0.28);
	border-radius: 999px;
	padding: 2px 10px;
	border-bottom: none !important;
}

.hk-mag-title {
	font-size: 1.02rem;
	line-height: 1.45;
	margin: 0;
	font-weight: 700;
}

.hk-mag-title a {
	color: var(--hk-ink);
	border-bottom: none;
}

.hk-mag-title a:hover {
	color: var(--hk-link);
}

.hk-mag-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.76rem;
	font-weight: 500;
	color: var(--hk-ink-soft);
	margin-top: auto;
}

.hk-mag-meta img {
	border-radius: 50%;
	width: 24px;
	height: 24px;
}

/* hero (Z3: lead + 2 sides) */
.hk-hero {
	display: grid;
	grid-template-columns: 1.8fr 1fr;
	gap: 20px;
	margin-bottom: 44px;
}

.hk-hero-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hk-hero-lead .hk-mag-thumb img {
	height: 380px;
}

.hk-hero-lead .hk-mag-title {
	font-size: 1.35rem;
}

.hk-hero-side .hk-mag-thumb img {
	height: 132px;
}

/* section blocks (Z4) */
.hk-sec {
	margin-bottom: 44px;
}

.hk-sec-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 18px;
	padding-left: 14px;
	border-left: 5px solid var(--hk-accent);
}

.hk-sec-head h2 {
	font-size: 1.3rem;
	margin: 0;
}

.hk-sec-more {
	font-size: 0.85rem;
	font-weight: 500;
	white-space: nowrap;
}

.hk-sec-grid {
	display: grid;
	grid-template-columns: 1.9fr 1fr;
	gap: 20px;
}

.hk-sec-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hk-mag-large .hk-mag-thumb img {
	height: 320px;
}

.hk-mag-small .hk-mag-thumb img,
.hk-sec-side .hk-mag-thumb img {
	height: 118px;
}

.hk-mag-small .hk-mag-textthumb,
.hk-sec-side .hk-mag-textthumb {
	min-height: 118px;
}

.hk-mag-large .hk-mag-title {
	font-size: 1.18rem;
}

/* latest feed (Z5) */
.hk-latest-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.hk-latest-grid .hk-mag-thumb img {
	height: 160px;
}

.hk-latest-grid .hk-mag-textthumb {
	min-height: 160px;
}

/* editorial picks (Z6) */
.hk-hot {
	background: var(--hk-card);
	border: 1px solid var(--hk-line);
	border-radius: var(--hk-radius);
	box-shadow: var(--hk-shadow);
	padding: 20px 24px;
}

.hk-hot-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px 20px;
	counter-reset: hkhot;
}

.hk-hot-item {
	display: flex;
	gap: 8px;
	font-size: 0.86rem;
	line-height: 1.5;
}

.hk-hot-num {
	flex: 0 0 auto;
	font-weight: 700;
	color: var(--hk-link);
}

.hk-hot-item a {
	color: var(--hk-ink);
	border-bottom: none;
}

.hk-hot-item a:hover {
	color: var(--hk-link);
}

@media (max-width: 921px) {
	.hk-hero,
	.hk-sec-grid {
		grid-template-columns: 1fr;
	}

	.hk-hero-lead .hk-mag-thumb img {
		height: 240px;
	}

	.hk-latest-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hk-hot-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 544px) {
	.hk-latest-grid {
		grid-template-columns: 1fr;
	}

	.hk-mag-large .hk-mag-thumb img {
		height: 200px;
	}
}


/* ---- Width system (portal scale, v1.1.2) ---- */
.ast-container {
	max-width: 1440px;
}

.hk-wrap {
	max-width: 1440px;
}

.hk-hero-lead .hk-mag-thumb img {
	height: 460px;
}

.hk-mag-large .hk-mag-thumb img {
	height: 380px;
}


/* ---- Narrow-container override (v1.1.3) ----
   Astra customizer sets ast-narrow-container on single posts,
   locking .ast-container to 750px (pilot incident #7 pattern).
   Match specificity and open it to portal width. */
.ast-narrow-container .site-content > .ast-container {
	max-width: 1440px;
}

.ast-narrow-container {
	--wp--custom--ast-content-width-size: 920px;
	--wp--custom--ast-wide-width-size: 920px;
}
