/*
Theme Name: Blocktalker
Description: Blocktalker 전용 테마. 소개(About) 페이지의 에디토리얼 룩앤필을 사이트 전체에 적용한다.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: blocktalker
*/

/*
 * Class names are prefixed bt- and avoid Astra/WordPress names (.entry-content, .site-footer, ...)
 * because the mu-plugin bt-brand.php injects !important rules on those.
 * The About page ships its own .bt-about/.bt-hero/.bt-quote styles; do not reuse those names here.
 */

:root {
	--bt-ink: #111827;
	--bt-ink-soft: rgba(17, 24, 39, 0.88);
	--bt-muted: #53617A;
	--bt-paper: #F4F7FC;
	--bt-paper-warm: #DCE6F2;
	--bt-paper-deep: #0F172A;
	--bt-paper-deep-ink: #DCE6F2;
	--bt-accent: #2563EB;
	--bt-border: rgba(17, 24, 39, 0.10);
	--bt-gutter: 6vw;
	--bt-font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body.bt {
	margin: 0;
	background: var(--bt-paper);
	color: var(--bt-ink);
	font-family: var(--bt-font);
	font-feature-settings: "ss01";
	-webkit-font-smoothing: antialiased;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
.bt a { color: inherit; text-decoration: none; }
.bt a:hover { color: var(--bt-accent); }
.bt img { max-width: 100%; height: auto; }
.bt-accent { color: var(--bt-accent); }
/* The About page breaks out with 100vw, which overflows by the scrollbar width. */
.bt-main { overflow-x: clip; }
.bt-skip { position: absolute; left: -9999px; }
.bt-skip:focus { left: 16px; top: 16px; z-index: 100; padding: 12px 16px; background: var(--bt-ink); color: var(--bt-paper); }
.bt :focus-visible { outline: 2px solid var(--bt-accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.bt-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px 40px; padding: 22px var(--bt-gutter); border-bottom: 1px solid var(--bt-border);
}
.bt .bt-logo { font-size: 26px; font-weight: 900; letter-spacing: -0.05em; color: var(--bt-ink); }
.bt-menu { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; }
.bt-menu .current-menu-item > a,
.bt-menu .current-menu-ancestor > a,
.bt-menu .current-post-ancestor > a,
.bt-menu .current-category-ancestor > a { color: var(--bt-accent); }
.bt-mobile-nav { display: none; }
.bt-mobile-nav > summary {
	list-style: none; cursor: pointer; width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center; color: var(--bt-ink);
}
.bt-mobile-nav > summary::-webkit-details-marker { display: none; }

/* ---------- Shared bits ---------- */
.bt-eyebrow {
	display: flex; align-items: center; gap: 14px;
	font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bt-muted);
}
.bt-eyebrow__rule { display: inline-block; width: 60px; height: 1px; background: var(--bt-ink); }
.bt-eyebrow--accent a { color: var(--bt-accent); }
.bt-label {
	font-size: 12px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--bt-muted);
}
.bt-label::before { content: ""; display: block; width: 36px; height: 1px; background: var(--bt-ink); margin-bottom: 20px; }
.bt-label--dark { color: rgba(220, 230, 242, 0.7); }
.bt-label--dark::before { background: var(--bt-accent); }
.bt-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bt-accent); }
.bt-meta { font-size: 13px; font-weight: 500; color: var(--bt-muted); }
.bt .bt-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
	background: var(--bt-accent); color: #fff; font-size: 16px; font-weight: 700;
}
.bt .bt-button:hover { background: #1D4ED8; color: #fff; }

/* Two-column section: label left, content right */
.bt-split { padding: 4vh var(--bt-gutter); display: flex; flex-wrap: wrap; gap: 24px 4vw; align-items: flex-start; }
.bt-split > .bt-label { flex: 0 1 200px; }
.bt-split__main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }

/* ---------- Home ---------- */
.bt-home-hero { padding: 6vh var(--bt-gutter) 3vh; }
.bt-home-hero__kicker { margin: 5vh 0 20px; font-size: clamp(1rem, 1.4vw, 1.25rem); font-weight: 300; color: var(--bt-muted); }
.bt-home-hero__title {
	margin: 0; max-width: 14ch; font-weight: 900; font-size: clamp(3rem, 8vw, 7.2rem);
	line-height: 0.94; letter-spacing: -0.055em;
}
.bt-home-hero__bar {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	margin-top: 5vh; padding-top: 20px; border-top: 1px solid var(--bt-border);
	font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bt-muted);
}
.bt-featured { padding: 4vh var(--bt-gutter); display: flex; flex-wrap: wrap; gap: 32px 4vw; align-items: center; }
.bt-featured__media { flex: 1 1 520px; min-width: 0; display: block; }
.bt-featured__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.bt-featured__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.bt-featured__title { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.05em; }
.bt-featured__excerpt { margin: 0; max-width: 46ch; font-size: 1.08rem; line-height: 1.8; color: var(--bt-ink-soft); }

.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 32px; }
.bt-card { display: flex; flex-direction: column; gap: 14px; }
.bt-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.bt-card__cat {
	padding-top: 16px; border-top: 1px solid var(--bt-ink);
	font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bt-muted);
}
.bt-card__title { margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.4; letter-spacing: -0.035em; }
.bt-card__date { font-size: 13px; color: var(--bt-muted); }

.bt-home-quote { margin-top: 3vh; padding: 6vh var(--bt-gutter); background: var(--bt-paper-warm); text-align: center; }
.bt-home-quote__mark { font-size: 6rem; font-weight: 300; line-height: 0.3; color: var(--bt-accent); margin-bottom: 28px; }
.bt-home-quote__cite { margin: 20px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bt-muted); }
.bt-home-quote__cite::before { content: "— "; }
.bt-home-quote__text { margin: 0 auto; max-width: 24ch; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 500; line-height: 1.45; letter-spacing: -0.035em; }

.bt .bt-topic {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px;
	padding: 20px 0; border-bottom: 1px solid var(--bt-border); color: var(--bt-ink);
}
.bt-topic__num { flex: 0 0 64px; font-size: 1.9rem; font-weight: 300; letter-spacing: -0.04em; color: var(--bt-muted); }
.bt-topic__body { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.bt-topic__name { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.035em; }
.bt-topic__desc { font-size: 1rem; line-height: 1.6; color: var(--bt-muted); }
.bt-topic__count { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--bt-muted); }

/* ---------- Subscribe band ---------- */
.bt-cta {
	padding: 7vh var(--bt-gutter); background: var(--bt-paper-deep); color: var(--bt-paper-deep-ink);
	display: flex; flex-wrap: wrap; gap: 24px 4vw; align-items: flex-end; justify-content: space-between;
}
.bt-cta__text { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.bt-cta__title { margin: 0; font-size: clamp(2rem, 4.4vw, 3.8rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.055em; color: var(--bt-paper-deep-ink); }

/* ---------- Archive ---------- */
.bt-archive-head {
	padding: 6vh var(--bt-gutter) 4vh; border-bottom: 1px solid var(--bt-ink);
	display: flex; flex-wrap: wrap; gap: 24px 4vw; align-items: flex-end; justify-content: space-between;
}
.bt-archive-head--solo { border-bottom: 0; padding-bottom: 10vh; }
.bt-archive-head__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bt-archive-head__title { margin: 0; font-weight: 900; font-size: clamp(2.6rem, 7vw, 6.2rem); line-height: 0.98; letter-spacing: -0.055em; }
.bt-archive-head__desc { margin: 0; font-size: 1.2rem; font-weight: 300; color: var(--bt-muted); }
.bt-archive-head__desc a { color: var(--bt-accent); }
.bt-archive-head__count { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bt-muted); }

.bt-rows { padding: 0 var(--bt-gutter) 3vh; display: flex; flex-direction: column; }
.bt-row {
	display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center;
	padding: 28px 0; border-bottom: 1px solid var(--bt-border);
}
.bt-row__num { flex: 0 0 64px; font-size: 2rem; font-weight: 200; letter-spacing: -0.05em; color: var(--bt-accent); }
.bt-row__body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bt-row__title { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.04em; }
.bt-row__excerpt { margin: 0; max-width: 60ch; font-size: 1rem; line-height: 1.75; color: var(--bt-muted); }
.bt-row__date { font-size: 13px; font-weight: 500; color: var(--bt-muted); }
.bt-row__media { flex: 0 1 300px; display: block; }
.bt-row__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }

/* .page-numbers carries !important rules from bt-brand.php; these selectors are more specific. */
.bt-pagination { padding: 0 var(--bt-gutter) 5vh; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; }
.bt .bt-pagination .page-numbers {
	min-width: 44px; min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
	border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--bt-ink) !important;
}
.bt .bt-pagination .page-numbers.current { color: var(--bt-accent) !important; border-bottom: 2px solid var(--bt-accent) !important; }
.bt .bt-pagination .page-numbers.dots { color: var(--bt-muted) !important; }
.bt-empty { padding: 6vh var(--bt-gutter); color: var(--bt-muted); }

/* ---------- Single / page ---------- */
.bt-article { padding: 6vh var(--bt-gutter) 0; }
.bt-article__head { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.bt-article__title { margin: 0; font-weight: 900; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.08; letter-spacing: -0.055em; }
.bt-article__bar {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding-top: 20px; border-top: 1px solid var(--bt-border);
	font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bt-muted);
}
.bt-article__feature { margin: 4vh auto 0; max-width: 1200px; }
.bt-article__feature img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; }

.bt-prose { max-width: 720px; margin: 0 auto; padding: 5vh 0 0; font-size: 1.12rem; line-height: 1.9; color: var(--bt-ink-soft); }
.bt-prose > :first-child { margin-top: 0; }
.bt-prose p { margin: 0 0 1.4em; }
.bt-prose a { color: var(--bt-accent); text-decoration: underline; text-underline-offset: 3px; }
.bt-prose strong { color: var(--bt-ink); font-weight: 700; }
.bt-prose h2 {
	margin: 2.6em 0 1em; padding-top: 1.2em; border-top: 1px solid var(--bt-ink);
	font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.045em; color: var(--bt-ink);
}
.bt-prose h3 {
	margin: 1.8em 0 0.8em; padding-left: 16px; border-left: 3px solid var(--bt-accent);
	font-size: 1.3rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.03em; color: var(--bt-ink);
}
.bt-prose h4 { margin: 1.6em 0 0.6em; font-size: 1.1rem; font-weight: 700; color: var(--bt-ink); }
.bt-prose ul, .bt-prose ol { margin: 0 0 1.6em; padding-left: 1.4em; }
.bt-prose li { margin-bottom: 0.5em; }
.bt-prose li::marker { color: var(--bt-accent); }
.bt-prose blockquote {
	margin: 2em 0; padding: 1.6em 0; border-top: 1px solid var(--bt-border); border-bottom: 1px solid var(--bt-border);
	text-align: center; font-size: 1.4rem; font-weight: 500; line-height: 1.5; letter-spacing: -0.035em; color: var(--bt-ink);
}
.bt-prose blockquote p { margin: 0; }
.bt-prose img { display: block; margin: 2em auto; }
.bt-prose figure { margin: 2em 0; }
.bt-prose figcaption { font-size: 13px; color: var(--bt-muted); text-align: center; margin-top: 8px; }
.bt-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 1.6em; }
.bt-prose th, .bt-prose td { padding: 10px 12px; border-bottom: 1px solid var(--bt-border); text-align: left; white-space: nowrap; }
.bt-prose th { background: var(--bt-paper-warm); color: var(--bt-ink); font-weight: 700; }
.bt-prose code { padding: 0.1em 0.35em; background: var(--bt-paper-warm); font-size: 0.9em; }
.bt-prose pre { padding: 1.2em; overflow-x: auto; background: var(--bt-paper-deep); color: var(--bt-paper-deep-ink); font-size: 0.9rem; line-height: 1.6; }
.bt-prose pre code { background: none; padding: 0; }

/* Auto-generated posts carry inline styles; override what CSS can reach. */
.bt-prose .pillar-link-box {
	margin: 0 0 2em; padding: 0 0 0 20px !important; border: 0 !important; border-left: 2px solid var(--bt-accent) !important;
	border-radius: 0 !important; background: transparent !important; font-size: 15px; line-height: 1.7; color: var(--bt-muted);
}
.bt-prose .pillar-link-box p { margin: 0; }
.bt-prose div[style*="#e5faf7"] {
	margin: 0 0 2.4em !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
	background: transparent !important; box-shadow: none !important;
}
.bt-prose div[style*="#e5faf7"] p { font-weight: 500; line-height: 1.6 !important; letter-spacing: -0.02em; }
.bt-prose div[style*="#e5faf7"] p::first-letter {
	float: left; font-size: 4.4em; font-weight: 900; line-height: 0.86; margin: 0.06em 0.12em 0 -0.03em;
	color: var(--bt-accent); letter-spacing: -0.04em;
}
.bt-prose h2[style] {
	border: 0 !important; border-top: 1px solid var(--bt-ink) !important; border-radius: 0 !important;
	padding: 1.2em 0 0 !important; margin: 2.6em 0 1em !important; font-size: clamp(1.5rem, 2.6vw, 2.1rem) !important;
}
.bt-prose h3[style] {
	border: 0 !important; border-left: 3px solid var(--bt-accent) !important;
	padding: 0 0 0 16px !important; margin: 1.8em 0 0.8em !important; font-size: 1.3rem !important;
}
.bt-prose ul[style] { margin-left: 0 !important; padding-left: 1.4em; }
.bt-prose [style*="#00897b"] { color: var(--bt-accent) !important; }
.bt-prose [style*="#015249"] { color: var(--bt-ink) !important; }

.bt-related { margin-top: 3em; padding-top: 24px; border-top: 1px solid var(--bt-ink); }
.bt-related__label { font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bt-muted); margin-bottom: 8px; }
.bt-prose .bt-related__item {
	display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--bt-border);
	font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.5; color: var(--bt-ink); text-decoration: none;
}
.bt-prose .bt-related__item:hover { color: var(--bt-accent); }
.bt-single .bt-cta, .single .bt-cta { margin-top: 7vh; }

/* ---------- Comments ---------- */
.bt-comments { margin-top: 3em; padding-top: 24px; border-top: 1px solid var(--bt-ink); font-size: 1rem; }
.bt-comments__list { list-style: none; padding: 0; margin: 0 0 2em; }
.bt-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--bt-border); }
.bt-comments .comment-meta { font-size: 13px; color: var(--bt-muted); }
.bt-comments .comment-reply-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; }
.bt input[type="text"], .bt input[type="email"], .bt input[type="url"], .bt input[type="search"], .bt textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--bt-border); border-radius: 0; background: #fff;
	font: inherit; font-size: 16px; color: var(--bt-ink);
}
.bt input[type="submit"], .bt button[type="submit"], .bt .search-submit {
	min-height: 48px; padding: 0 24px; border: 0; border-radius: 0 !important; background: var(--bt-ink) !important;
	color: var(--bt-paper) !important; font: inherit; font-weight: 700; cursor: pointer;
}
.bt input[type="submit"]:hover, .bt .search-submit:hover { background: var(--bt-accent) !important; }
.bt .search-form { display: flex; gap: 8px; max-width: 520px; }
.bt .search-form label { flex: 1; }

/* ---------- Footer ---------- */
.bt-footer {
	padding: 4vh var(--bt-gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
	font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--bt-muted);
}
.bt-footer__menu { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.bt-footer__menu a { color: var(--bt-muted); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
	:root { --bt-gutter: 20px; }
	.bt-nav--desktop { display: none; }
	.bt-mobile-nav { display: block; }
	.bt-mobile-nav[open] { flex-basis: 100%; order: 3; }
	.bt-mobile-nav[open] > summary { position: absolute; right: 12px; top: 12px; }
	.bt-mobile-nav .bt-menu { flex-direction: column; gap: 0; padding: 8px 0; font-size: 17px; }
	.bt-mobile-nav .bt-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--bt-border); }
	.bt-header { position: relative; padding-top: 14px; padding-bottom: 14px; }
	.bt .bt-logo { font-size: 22px; }
	.bt-row__media { order: -1; flex-basis: 100%; }
	.bt-row__num { flex-basis: auto; font-size: 1.4rem; }
	.bt-article__feature { margin-left: calc(-1 * var(--bt-gutter)); margin-right: calc(-1 * var(--bt-gutter)); }
	.bt-article__feature img { aspect-ratio: 4 / 3; }
	.bt-prose { font-size: 1.05rem; line-height: 1.85; }
	.bt-split > .bt-label { flex-basis: 100%; }
}
