/*
Theme Name: Hey Chenan
Theme URI: https://heychenan.com/
Author: Chenan
Author URI: https://heychenan.com/
Description: 極簡日系個人網站佈景主題：白紙、墨字、一點朱紅。
Version: 1.2.3
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: heychenan
*/

:root {
	--hc-paper: #FFFFFF;
	--hc-mist: #ECEEED;
	--hc-line: #DFE2E1;
	--hc-ink3: #646968;
	--hc-ink2: #4F5453;
	--hc-ink: #1C1F1E;
	--hc-seal: #B5442E;
	--hc-serif: "Noto Serif TC", "Songti TC", serif;
	--hc-ease: 200ms ease-out;
}

body { -webkit-font-smoothing: antialiased; }
body.wp-theme-heychenan { background-color: var(--hc-paper) !important; color: var(--hc-ink); }
img { max-width: 100%; height: auto; }
a { transition: color var(--hc-ease); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--hc-seal); outline-offset: 4px; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

/* ---------- layout ---------- */
.hc-wrap { max-width: 1080px; margin-inline: auto !important; padding-inline: 24px; box-sizing: border-box; width: 100%; }
.hc-narrow { max-width: 680px; margin-inline: auto !important; }
.hc-section { padding-bottom: 128px; }
.hc-eyebrow { margin: 0; font-size: 12px; letter-spacing: 0.32em; color: var(--hc-ink3); }
.hc-eyebrow.is-seal { color: var(--hc-seal); }
.hc-muted { color: var(--hc-ink2); }
.hc-small { font-size: 14px; color: var(--hc-ink3); }

/* ---------- header ---------- */
.hc-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 40px 0 32px; border-bottom: 1px solid var(--hc-line); }
.hc-logo { margin: 0; }
.hc-logo a { display: inline-flex; align-items: center; gap: 14px; font-family: var(--hc-serif); font-size: 18px; letter-spacing: 0.12em; color: var(--hc-ink); }
.hc-seal { width: 36px; height: 36px; background: var(--hc-seal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--hc-serif); font-size: 18px; letter-spacing: 0; border-radius: 3px; }
.hc-nav { font-size: 14px; letter-spacing: 0.16em; }
.hc-nav .wp-block-navigation__container { gap: 32px; }
.hc-nav .current-menu-item > a, .hc-nav a[aria-current="page"] { color: var(--hc-seal); }
.hc-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.hc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; }
.hc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--hc-line); padding: 18px 0; font-family: var(--hc-serif); font-size: 24px; }
.hc-nav .wp-block-navigation__responsive-container-open, .hc-nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* ---------- footer ---------- */
.hc-footer { border-top: 1px solid var(--hc-ink); padding: 72px 0 48px; margin-top: 0; }
.hc-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.hc-footer-title { margin: 0 0 12px; font-family: var(--hc-serif); font-size: 26px; letter-spacing: 0.1em; }
.hc-footer-mail { display: inline-block; margin-top: 12px; font-size: 18px; letter-spacing: 0.08em; border-bottom: 1px solid var(--hc-ink); padding-bottom: 2px; }
.hc-social { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 13px; letter-spacing: 0.16em; }
.hc-social a { display: inline-flex; min-height: 44px; align-items: center; }
.hc-copy { margin: 0; font-size: 12px; letter-spacing: 0.24em; color: var(--hc-ink3); }

/* ---------- buttons ---------- */
.hc-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.hc-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; background: var(--hc-ink); color: #fff !important; font-size: 14px; letter-spacing: 0.16em; transition: background var(--hc-ease); }
.hc-btn:hover { background: var(--hc-seal); }
.hc-btn.is-ghost { background: transparent; color: var(--hc-ink) !important; border: 1px solid var(--hc-ink); }
.hc-btn.is-ghost:hover { color: var(--hc-seal) !important; border-color: var(--hc-seal); }
.hc-link { font-size: 13px; letter-spacing: 0.12em; color: var(--hc-seal) !important; }
.hc-more { font-size: 13px; letter-spacing: 0.16em; color: var(--hc-ink2) !important; }
.hc-more:hover, .hc-link:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- hero ---------- */
.hc-hero { display: flex; flex-wrap: wrap; gap: 48px; padding: 112px 0 120px; }
.hc-hero-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hc-hero-title { margin: 0 !important; font-size: clamp(32px, 4.4vw, 52px) !important; line-height: 1.5 !important; }
.hc-lead { margin: 0; max-width: 540px; font-size: 17px; color: var(--hc-ink2); }
.hc-hero-side { flex: 1 1 200px; display: flex; justify-content: flex-end; align-items: flex-start; gap: 28px; }
.hc-vertical { margin: 0; writing-mode: vertical-rl; font-family: var(--hc-serif); font-size: 22px; letter-spacing: 0.5em; }
.hc-vertical.is-small { font-family: inherit; font-size: 12px; letter-spacing: 0.4em; color: var(--hc-ink3); padding-top: 64px; }

/* ---------- section heads ---------- */
.hc-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.hc-h2 { margin: 0 !important; display: flex; align-items: baseline; gap: 20px; font-size: 28px !important; letter-spacing: 0.12em !important; }
.hc-num { font-family: var(--hc-serif); font-size: 13px; color: var(--hc-seal); letter-spacing: 0.2em; }

/* ---------- work cards ---------- */
.hc-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.hc-card { display: flex; flex-direction: column; gap: 20px; color: var(--hc-ink) !important; }
.hc-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hc-mist); }
.hc-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--hc-ease); }
.hc-card:hover .hc-card-media img { transform: scale(1.03); }
.hc-card:hover .hc-card-title { color: var(--hc-seal); }
.hc-card-mark { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--hc-serif); font-size: 32px; letter-spacing: 0.4em; color: var(--hc-ink); }
.hc-card-body { display: flex; flex-direction: column; gap: 8px; }
.hc-card-meta { font-size: 12px; letter-spacing: 0.2em; color: var(--hc-ink3); }
.hc-card-title { font-family: var(--hc-serif); font-size: 22px; transition: color var(--hc-ease); }
.hc-card-desc { font-size: 15px; color: var(--hc-ink2); }

/* ---------- featured / upcoming ---------- */
.hc-feature { border-top: 1px solid var(--hc-ink); padding-top: 40px; }
.hc-feature .wp-block-post { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hc-feature .wp-block-post-featured-image { flex: 1 1 320px; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hc-mist); }
.hc-feature .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.hc-feature-body { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.hc-feature-body > * { margin: 0 !important; }
.hc-feature .wp-block-post-title { font-size: 26px !important; line-height: 1.6; letter-spacing: 0.04em !important; }
.hc-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; letter-spacing: 0.16em; color: var(--hc-ink3); }
.hc-meta > * { margin: 0 !important; }
.hc-meta .wp-block-post-terms a { color: var(--hc-seal); }
.hc-upcoming { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 28px 0; border-top: 1px solid var(--hc-line); border-bottom: 1px solid var(--hc-line); margin-top: 40px; }
.hc-upcoming img { width: 180px; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.hc-upcoming-title { display: block; font-family: var(--hc-serif); font-size: 20px; }
.hc-upcoming-label { display: block; font-size: 12px; letter-spacing: 0.16em; color: var(--hc-seal); }

/* ---------- tags / pills ---------- */
.hc-tag, .hc-tag a { font-size: 12px; letter-spacing: 0.16em; color: var(--hc-ink2); }
.hc-tag a, span.hc-tag { border: 1px solid var(--hc-line); padding: 2px 10px; display: inline-block; }
.hc-cats-wrap { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 48px; align-items: center; }
.hc-cats-wrap > * { margin: 0 !important; }
.hc-cats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hc-pill, .hc-cats a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--hc-line); font-size: 14px; letter-spacing: 0.12em; color: var(--hc-ink) !important; transition: border-color var(--hc-ease); }
.hc-pill:hover, .hc-cats a:hover { border-color: var(--hc-ink); }
.hc-pill.is-active, .hc-cats .current-cat > a { background: var(--hc-ink); color: #fff !important; border-color: var(--hc-ink); }

/* ---------- post list ---------- */
.hc-list { border-top: 1px solid var(--hc-ink); }
.hc-list .wp-block-post-template { margin: 0; padding: 0; }
.hc-list .wp-block-post { margin: 0 !important; }
.hc-row { display: grid !important; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--hc-line); }
.hc-row > * { margin: 0 !important; }
.hc-row-date { font-size: 13px; color: var(--hc-ink3); letter-spacing: 0.1em; }
.hc-row-main > * { margin: 0 !important; }
.hc-row-main .wp-block-post-title { font-size: 20px !important; line-height: 1.6; letter-spacing: 0.04em !important; }
.hc-row-main .wp-block-post-excerpt { margin-top: 6px !important; font-size: 14px; color: var(--hc-ink3); }
.hc-row-main .wp-block-post-excerpt__excerpt { margin: 0; }
.hc-empty { text-align: center; padding: 80px 0 96px; font-family: var(--hc-serif); font-size: 22px; letter-spacing: 0.1em; }
.hc-pagination { padding: 40px 0 0; font-size: 14px; letter-spacing: 0.12em; }

/* ---------- page head ---------- */
.hc-pagehead { padding: 96px 0 56px; display: flex; flex-direction: column; gap: 20px; }
.hc-pagehead > * { margin: 0 !important; }
.hc-pagehead h1 { font-size: 48px !important; letter-spacing: 0.1em !important; }

/* ---------- single post ---------- */
.hc-article { padding: 96px 0 120px; }
.hc-article-head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.hc-article-head > * { margin: 0 !important; }
.hc-article-head .wp-block-post-title { font-size: clamp(26px, 3.4vw, 38px) !important; line-height: 1.6; letter-spacing: 0.06em !important; }
.hc-article .wp-block-post-featured-image { margin: 0 0 48px; }
.hc-article .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hc-article .wp-block-post-content h2 { display: flex; align-items: center; gap: 16px; font-size: 24px; margin-top: 56px; }
.hc-article .wp-block-post-content h2::before { content: ""; width: 24px; height: 1px; background: var(--hc-seal); flex: 0 0 24px; }
.hc-article .wp-block-post-content blockquote { padding-left: 32px; margin-left: 0; }
.hc-article .wp-block-post-content a { border-bottom: 1px solid currentColor; }
.hc-article .wp-block-post-content img { height: auto; }
.hc-article-foot { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--hc-line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; letter-spacing: 0.12em; }
.hc-article-foot > * { margin: 0 !important; }


/* article photos */
.hc-article .wp-block-post-content .wp-block-image, .hc-article .wp-block-post-content .wp-block-gallery { margin: 40px 0; }
.hc-article .wp-block-post-content figcaption, .hc-article .wp-block-post-content .wp-element-caption { margin-top: 10px; font-size: 13px; line-height: 1.6; letter-spacing: 0.08em; color: var(--hc-ink3); text-align: center; }
.hc-article .wp-block-gallery.has-nested-images { gap: 12px; }
.hc-article .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: static; background: none; color: var(--hc-ink3); padding: 0; font-size: 12px; text-shadow: none; max-height: none; overflow: visible; }
.hc-article .wp-block-gallery.has-nested-images figure.wp-block-image { flex-direction: column; }
.hc-article .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image img { flex: none !important; width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; }
.hc-article .wp-block-post-content > .wp-block-image img { max-height: 760px; width: auto; margin-inline: auto; display: block; }
.hc-article .wp-block-post-content .hc-btn { border-bottom: 0; }

.hc-article .wp-block-post-content .wp-block-video { margin: 40px 0; }
.hc-article .wp-block-post-content .wp-block-video video { max-height: 720px; width: auto; max-width: 100%; margin: 0 auto; display: block; background: #000; }

.hc-aff { border: 1px solid var(--hc-line); padding: 20px 24px; margin: 40px 0; font-size: 15px; line-height: 1.8; }
.hc-aff .hc-aff-t { margin: 0 0 8px; font-family: var(--hc-serif); font-size: 16px; }
.hc-aff ul { margin: 0; padding-left: 1.2em; }
.hc-aff li + li { margin-top: 6px; }
.hc-aff a { color: var(--hc-seal) !important; border-bottom: 1px solid currentColor; }
.hc-aff .hc-aff-note { margin: 12px 0 0; font-size: 12px; color: var(--hc-ink3); }

.hc-toc { border: 1px solid var(--hc-line); padding: 20px 24px; margin: 40px 0; font-size: 15px; }
.hc-toc .hc-toc-t { margin: 0 0 8px; font-family: var(--hc-serif); font-size: 16px; letter-spacing: 0.12em; }
.hc-toc ol { margin: 0; padding-left: 1.4em; line-height: 2; }
.hc-toc a { color: var(--hc-ink2) !important; border-bottom: 0 !important; }
.hc-toc a:hover { color: var(--hc-seal) !important; }
.hc-article .wp-block-post-content h2[id] { scroll-margin-top: 24px; }
.hc-related { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--hc-ink); }
.hc-related-t { margin: 0 0 24px; font-family: var(--hc-serif); font-size: 20px; letter-spacing: 0.12em; }
.hc-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.hc-related-card { display: flex; flex-direction: column; gap: 8px; color: var(--hc-ink) !important; border-bottom: 0 !important; }
.hc-related-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hc-mist); }
.hc-related-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--hc-ease); }
.hc-related-card:hover img { transform: scale(1.03); }
.hc-related-card:hover .hc-related-title { color: var(--hc-seal); }
.hc-related-date { font-size: 12px; letter-spacing: 0.12em; color: var(--hc-ink3); }
.hc-related-title { font-family: var(--hc-serif); font-size: 16px; line-height: 1.6; transition: color var(--hc-ease); }

/* ---------- split rows (case study / about) ---------- */
.hc-split { display: flex; flex-wrap: wrap; gap: 32px 80px; padding-bottom: 112px; }
.hc-split-head { flex: 1 1 220px; margin: 0 !important; display: flex; flex-direction: column; gap: 8px; font-size: 28px !important; letter-spacing: 0.12em !important; }
.hc-split-body { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hc-split-body > * { margin: 0 !important; }
.hc-ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hc-line); }
.hc-ruled li { display: flex; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--hc-line); }
.hc-ruled .hc-k { font-family: var(--hc-serif); color: var(--hc-seal); flex: 0 0 auto; }
.hc-twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 32px; }
.hc-dl { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.hc-dl div { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.hc-dl dt { flex: 0 0 96px; color: var(--hc-ink3); letter-spacing: 0.16em; }
.hc-dl dd { margin: 0; }

.hc-metagrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 0 0 64px; border-top: 1px solid var(--hc-ink); border-bottom: 1px solid var(--hc-line); padding: 28px 0; }
.hc-metagrid div { display: flex; flex-direction: column; gap: 4px; }
.hc-metagrid dt { font-size: 12px; letter-spacing: 0.24em; color: var(--hc-ink3); }
.hc-metagrid dd { margin: 0; }
.hc-hero-img { margin: 0 0 120px; }
.hc-hero-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--hc-mist); }

.hc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.hc-steps li { border: 1px solid var(--hc-line); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.hc-steps li:last-child { border-color: var(--hc-seal); }
.hc-steps .hc-step-n { font-size: 12px; letter-spacing: 0.2em; color: var(--hc-ink3); }
.hc-steps li:last-child .hc-step-n { color: var(--hc-seal); }
.hc-steps .hc-step-t { font-family: var(--hc-serif); font-size: 17px; }
.hc-steps .hc-step-d { font-size: 13px; color: var(--hc-ink2); }

.hc-challenges { border-top: 1px solid var(--hc-ink); }
.hc-challenge { display: flex; flex-wrap: wrap; gap: 12px 48px; padding: 32px 0; border-bottom: 1px solid var(--hc-line); }
.hc-challenge h3 { margin: 0; flex: 1 1 280px; font-size: 20px; }
.hc-challenge p { margin: 0; flex: 2 1 420px; color: var(--hc-ink2); }

.hc-quote { padding: 72px 0 112px; border-top: 1px solid var(--hc-line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hc-quote > * { margin: 0 !important; }
.hc-quote blockquote { margin: 0; max-width: 720px; font-family: var(--hc-serif); font-size: 26px; line-height: 1.8; letter-spacing: 0.08em; }

.hc-next { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 0; border-top: 1px solid var(--hc-ink); border-bottom: 1px solid var(--hc-ink); margin-bottom: 72px; color: var(--hc-ink) !important; }
.hc-next small { display: block; font-size: 12px; letter-spacing: 0.24em; color: var(--hc-ink3); }
.hc-next strong { font-family: var(--hc-serif); font-weight: 400; font-size: 26px; }
.hc-next .hc-arrow { color: var(--hc-seal); font-size: 24px; }

/* ---------- about ---------- */
.hc-about-hero { display: flex; flex-wrap: wrap; gap: 64px; padding: 112px 0 120px; align-items: flex-start; }
.hc-about-photo { flex: 1 1 260px; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.hc-about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.hc-about-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hc-about-text > * { margin: 0 !important; }
.hc-about-text h1 { font-size: clamp(36px, 4.4vw, 52px) !important; letter-spacing: 0.1em !important; }
.hc-about-text p { max-width: 560px; color: var(--hc-ink2); }
.hc-about-text p.hc-lead { color: #383C3B; font-size: 18px; }
.hc-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--hc-ink); }
.hc-three > div { padding: 32px 32px 32px 0; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--hc-line); }
.hc-three h3 { margin: 0; font-size: 22px; letter-spacing: 0.1em; }
.hc-three p { margin: 0; font-size: 15px; color: var(--hc-ink2); }
.hc-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.hc-facts div { display: flex; flex-direction: column; gap: 8px; }
.hc-facts dt { font-size: 12px; letter-spacing: 0.24em; color: var(--hc-ink3); }
.hc-facts dd { margin: 0; font-family: var(--hc-serif); font-size: 19px; }

/* ---------- life save ---------- */
.hc-app-hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding: 96px 0 128px; }
.hc-app-hero .hc-hero-main { gap: 28px; }
.hc-phone { flex: 1 1 280px; display: flex; justify-content: center; }
.hc-phone-frame { width: 280px; aspect-ratio: 9 / 19.5; border: 1px solid var(--hc-ink); border-radius: 44px; padding: 12px; box-sizing: border-box; }
.hc-phone-screen { width: 100%; height: 100%; border-radius: 34px; background: var(--hc-mist); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.hc-phone-screen span { writing-mode: vertical-rl; font-family: var(--hc-serif); font-size: 22px; letter-spacing: 0.6em; }
.hc-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); border-top: 1px solid var(--hc-ink); }
.hc-features li { padding: 28px 32px 28px 0; border-bottom: 1px solid var(--hc-line); display: flex; flex-direction: column; gap: 6px; }
.hc-features strong { font-family: var(--hc-serif); font-weight: 400; font-size: 20px; }
.hc-features span { font-size: 15px; color: var(--hc-ink2); }
.hc-privacy { margin: 0; border-top: 1px solid var(--hc-line); }
.hc-privacy div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--hc-line); }
.hc-privacy dt { flex: 0 0 120px; font-family: var(--hc-serif); }
.hc-privacy dd { margin: 0; flex: 1 1 240px; color: var(--hc-ink2); font-size: 15px; }
.hc-faq { border-top: 1px solid var(--hc-ink); }
.hc-faq details { border-bottom: 1px solid var(--hc-line); padding: 22px 0; }
.hc-faq summary { cursor: pointer; font-family: var(--hc-serif); font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.hc-faq summary::-webkit-details-marker { display: none; }
.hc-faq summary::after { content: "+"; color: var(--hc-seal); }
.hc-faq details[open] summary::after { content: "−"; }
.hc-faq p { margin: 12px 0 0; color: var(--hc-ink2); font-size: 15px; }
.hc-cta { border-top: 1px solid var(--hc-ink); padding: 96px 0; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hc-cta > * { margin: 0 !important; }
.hc-cta-title { font-family: var(--hc-serif); font-size: 32px; letter-spacing: 0.12em; }

/* ---------- 404 ---------- */
.hc-404 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 64px; padding: 128px 0 160px; }
.hc-404-body { display: flex; flex-direction: column; gap: 24px; max-width: 460px; }
.hc-404-body > * { margin: 0 !important; }
.hc-404-body h1 { font-size: 40px !important; line-height: 1.6 !important; letter-spacing: 0.1em !important; }

/* ---------- mobile ---------- */
@media (max-width: 781px) {
	.hc-header { padding: 16px 0; }
	.hc-hero { padding: 56px 0 72px; gap: 0; }
	.hc-hero-side { display: none; }
	.hc-section { padding-bottom: 80px; }
	.hc-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.hc-row .hc-tag { justify-self: start; }
	.hc-upcoming { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.hc-upcoming img { width: 100%; }
	.hc-pagehead, .hc-article { padding-top: 48px; }
	.hc-pagehead h1 { font-size: 36px !important; }
	.hc-about-hero, .hc-app-hero { padding: 56px 0 80px; gap: 40px; }
	.hc-split { padding-bottom: 72px; }
	.hc-hero-img { margin-bottom: 72px; }
	.hc-btns .hc-btn { flex: 1 1 100%; justify-content: center; min-height: 48px; }
	.hc-404 { padding: 72px 0 96px; }
	.hc-404 .hc-vertical { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- v1.0.7 部落格式首頁 ---------- */
.hc-home .hc-hero { padding: 80px 0 56px; }
.hc-home .hc-hero-title { font-size: clamp(28px, 3.4vw, 40px) !important; }
.hc-home .hc-hero-main { gap: 20px; }
.hc-plist { margin-top: 56px; border-top: 1px solid var(--hc-line); }
.hc-plist .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.hc-plist .wp-block-post { margin: 0 !important; }
.hc-prow { display: grid !important; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--hc-line); }
.hc-prow > *, .hc-prow-main > * { margin: 0 !important; }
.hc-prow-img img { width: 100%; aspect-ratio: 4 / 3 !important; object-fit: cover; display: block; background: var(--hc-mist); }
.hc-prow-main { display: flex; flex-direction: column; gap: 8px; }
.hc-prow-main .wp-block-post-title { font-size: 20px !important; line-height: 1.6; letter-spacing: 0.04em !important; }
.hc-prow-main .wp-block-post-excerpt { font-size: 14px; color: var(--hc-ink3); }
.hc-prow-main .wp-block-post-excerpt__excerpt { margin: 0; }
@media (max-width: 640px) {
	.hc-home .hc-hero { padding: 48px 0 32px; }
	.hc-prow { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 24px 0; }
	.hc-prow-main .wp-block-post-title { font-size: 16px !important; }
	.hc-prow-main .wp-block-post-excerpt { display: none; }
}

/* hc-works-single：只有一個作品時橫向排 */
@media (min-width: 761px) {
	.hc-works > .hc-card:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
}

/* hc-logo-text：純文字 logo，維持和導覽列對齊 */
.hc-logo a { min-height: 36px; font-size: 20px; }
.hc-header > .hc-nav { margin-top: 0 !important; }

/* ---------- 履歷頁 hc-cv ---------- */
.hc-cv { padding-bottom: 96px; }
.hc-cv a { text-decoration: none; }
.hc-cv-lang { display: flex; justify-content: flex-end; gap: 8px; padding-top: 24px; font-size: 13px; letter-spacing: 0.12em; color: var(--hc-ink3); }
.hc-cv-lang a { color: var(--hc-ink3) !important; }
.hc-cv-lang .is-on { color: var(--hc-ink); }
.hc-cv-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: end; padding: 56px 0 80px; }
.hc-cv-hero-main { display: flex; flex-direction: column; gap: 20px; }
.hc-cv-hero-main > * { margin: 0 !important; }
.hc-cv-eyebrow { font-size: 13px; letter-spacing: 0.24em; color: var(--hc-ink3); }
.hc-cv-name { font-family: var(--hc-serif); font-weight: 400; font-size: 52px !important; line-height: 1.35 !important; letter-spacing: 0.08em; }
.hc-cv-tag { font-family: var(--hc-serif); font-size: 24px; line-height: 1.6; letter-spacing: 0.06em; }
.hc-cv-lead { max-width: 560px; color: var(--hc-ink2); }
.hc-cv-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px !important; }
.hc-cv-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--hc-ink); color: var(--hc-ink) !important; font-size: 14px; letter-spacing: 0.1em; transition: color var(--hc-ease), border-color var(--hc-ease), background var(--hc-ease); }
.hc-cv-btn:hover { color: var(--hc-seal) !important; border-color: var(--hc-seal); }
.hc-cv-btn.is-solid { background: var(--hc-ink); color: #fff !important; }
.hc-cv-btn.is-solid:hover { background: var(--hc-seal); border-color: var(--hc-seal); color: #fff !important; }
.hc-cv-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--hc-mist); }
.hc-cv-sec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding: 56px 0; border-top: 1px solid var(--hc-ink); }
.hc-cv-sec h2 { margin: 0; font-size: 22px !important; letter-spacing: 0.12em !important; }
.hc-cv-sec h2 span { font-size: 13px; color: var(--hc-seal); margin-right: 12px; letter-spacing: 0.1em; }
.hc-cv-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hc-cv-box { padding: 24px; background: #F5F6F6; }
.hc-cv-box > * { margin: 0; }
.hc-cv-k { font-size: 13px; letter-spacing: 0.16em; color: var(--hc-ink3); margin-bottom: 6px !important; }
.hc-cv-v { font-family: var(--hc-serif); font-size: 18px; }
.hc-cv-note { margin-top: 8px !important; font-size: 14px; color: var(--hc-ink2); }
.hc-cv-proj { display: flex; flex-direction: column; gap: 14px; }
.hc-cv-proj > * { margin: 0 !important; }
.hc-cv-proj img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; background: var(--hc-mist); }
.hc-cv-meta { font-size: 13px; letter-spacing: 0.1em; color: var(--hc-ink3); }
.hc-cv-proj h3 { font-size: 24px !important; letter-spacing: 0.06em !important; }
.hc-cv-proj p, .hc-cv-proj ul { color: var(--hc-ink2); }
.hc-cv-proj ul { padding-left: 20px; font-size: 15px; }
.hc-cv-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; letter-spacing: 0.12em; }
.hc-cv-links a { color: var(--hc-seal) !important; }
.hc-cv-list { border-top: 1px solid var(--hc-line); }
.hc-cv-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--hc-line); }
.hc-cv-item > * { margin: 0; }
.hc-cv-item p { margin: 0; }
.hc-cv-item .t { font-family: var(--hc-serif); font-size: 18px; }
.hc-cv-item .s { margin-top: 4px; font-size: 14px; color: var(--hc-ink2); }
.hc-cv-item .d { font-size: 14px; color: var(--hc-ink3); white-space: nowrap; }
.hc-cv-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.hc-cv-skills p { margin: 0; }
.hc-cv-posts-head { display: flex; flex-direction: column; gap: 12px; }
.hc-cv-posts-head a { font-size: 13px; letter-spacing: 0.12em; color: var(--hc-seal) !important; }
.hc-cv-postnote { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--hc-line); font-size: 15px; color: var(--hc-ink2); }
.hc-cv-post { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--hc-line); color: var(--hc-ink) !important; }
.hc-cv-post:hover { color: var(--hc-seal) !important; }
.hc-cv-post .d { font-size: 13px; color: var(--hc-ink3); }
@media (max-width: 760px) {
	.hc-cv-hero, .hc-cv-sec, .hc-cv-two, .hc-cv-skills { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.hc-cv-hero { padding: 32px 0 56px; }
	.hc-cv-photo { max-width: 220px; grid-row: 1; }
	.hc-cv-name { font-size: 40px !important; }
	.hc-cv-tag { font-size: 20px; }
	.hc-cv-sec { padding: 44px 0; }
	.hc-cv-item, .hc-cv-post { grid-template-columns: minmax(0, 1fr); }
	.hc-cv-btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- v1.2 首頁：點陣＋旅行清單 ---------- */
@keyframes hcIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hcBlink { 50% { opacity: 0; } }
.hc-home2 .hc-in { animation: hcIn .7s cubic-bezier(.2,.7,.2,1) both; }
.hc-home2 .hc-dots-title.hc-in { animation-delay: .1s; }
.hc-home2 .hc-guide.hc-in { animation-delay: .3s; }
.hc-dots { position: relative; height: 440px; margin-top: 40px; cursor: crosshair; touch-action: pan-y; }
.hc-dots-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hc-dots-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; pointer-events: none; }
.hc-dots-text > * { margin: 0 !important; }
.hc-dots-text span { background: var(--hc-paper); }
.hc-dots-eyebrow { font-size: 13px; letter-spacing: 0.24em; color: var(--hc-ink3); }
.hc-dots-eyebrow { align-self: flex-start; background: var(--hc-paper); padding-right: 8px; }
.hc-dots-title { font-size: 52px !important; line-height: 1.4 !important; letter-spacing: 0.08em !important; }
.hc-dots-title span, .hc-dots-tag > span { padding-right: 8px; }
.hc-dots-tag { font-family: var(--hc-serif); font-size: 26px; line-height: 1.6; min-height: 1.6em; }
.hc-caret { display: inline-block; width: 2px; height: 1em; background: var(--hc-seal) !important; margin-left: 4px; vertical-align: -0.12em; animation: hcBlink 1s steps(1) infinite; }
.hc-dots-hint { margin: 10px 0 0; font-size: 12px; letter-spacing: 0.12em; color: var(--hc-ink3); }
.hc-guide { margin-top: 72px; padding: 48px; background: #F5F6F6; }
.hc-guide-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hc-guide-head p, .hc-guide-head h2 { margin: 0; }
.hc-guide-k { margin-bottom: 8px !important; font-size: 13px; letter-spacing: 0.2em; color: var(--hc-seal); }
.hc-guide-head h2 { font-size: 30px !important; letter-spacing: 0.06em !important; }
.hc-guide-sub { margin-top: 8px !important; color: var(--hc-ink2); font-size: 15px; }
.hc-guide-prog { min-width: 220px; }
.hc-guide-prog p { margin-bottom: 8px !important; font-size: 13px; letter-spacing: 0.12em; color: var(--hc-ink2); }
.hc-bar { height: 6px; background: var(--hc-line); }
.hc-bar-fill { height: 6px; width: 0; background: var(--hc-seal); transition: width .3s ease; }
.hc-check-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--hc-ink); }
.hc-ci { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--hc-line); margin: 0 !important; }
.hc-ci label { cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.hc-ci .t { font-family: var(--hc-serif); font-size: 18px; transition: color .2s; }
.hc-ci .s { font-size: 14px; color: var(--hc-ink2); }
.hc-check:checked + label .t { color: var(--hc-ink3); text-decoration: line-through; text-decoration-color: var(--hc-seal); }
.hc-chk-tag { align-self: flex-start; font-size: 12px; letter-spacing: .08em; padding: 0 8px; border: 1px solid var(--hc-line); color: var(--hc-ink3); }
.hc-check { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 3px 0 0; border: 1.5px solid var(--hc-ink); border-radius: 4px; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.hc-check:checked { background: var(--hc-seal); border-color: var(--hc-seal); }
.hc-check:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.hc-go { font-size: 14px; letter-spacing: 0.1em; color: var(--hc-seal) !important; white-space: nowrap; }
.hc-go.is-soon { font-size: 13px; color: var(--hc-ink3) !important; }
.hc-guide-done { margin: 24px 0 0; font-family: var(--hc-serif); font-size: 20px; color: var(--hc-seal); }
.hc-entry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 72px; }
.hc-ecard { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--hc-line); min-height: 180px; color: var(--hc-ink) !important; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.hc-ecard:hover { transform: translateY(-6px); border-color: var(--hc-ink); box-shadow: 0 12px 32px rgba(28,31,30,.08); }
.hc-ecard .n { font-size: 13px; letter-spacing: 0.16em; color: var(--hc-ink3); }
.hc-ecard .t { font-family: var(--hc-serif); font-size: 24px; }
.hc-ecard .s { font-size: 14px; color: var(--hc-ink2); flex-grow: 1; }
.hc-ecard .a { color: var(--hc-seal); transition: transform .25s ease; }
.hc-ecard:hover .a { transform: translateX(8px); }
.hc-latest { margin: 88px 0 120px; }
.hc-latest-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--hc-ink); }
.hc-latest-head h2 { margin: 0; font-size: 22px !important; letter-spacing: 0.12em !important; }
.hc-latest-head a { font-size: 13px; letter-spacing: 0.12em; color: var(--hc-seal) !important; }
.hc-latest .hc-cv-post { transition: padding .25s ease, color .2s; }
.hc-latest .hc-cv-post:hover { padding-left: 12px; }
@media (max-width: 760px) {
	.hc-dots { height: 360px; margin-top: 16px; }
	.hc-dots-title { font-size: 38px !important; }
	.hc-dots-tag { font-size: 20px; }
	.hc-guide { margin-top: 48px; padding: 28px 20px; }
	.hc-guide-head h2 { font-size: 24px !important; }
	.hc-ci { grid-template-columns: 28px minmax(0, 1fr); }
	.hc-ci .hc-go { grid-column: 2; }
	.hc-entry { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
	.hc-ecard { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hc-home2 .hc-in, .hc-caret { animation: none; }
	.hc-ecard, .hc-ecard .a, .hc-latest .hc-cv-post { transition: none; }
}

.hc-hint-t { display: none; }
@media (hover: none) { .hc-hint-m { display: none; } .hc-hint-t { display: inline; } }

/* ---------- 清單完成：紙飛機 ---------- */
.hc-check-list { overflow: hidden; transition: max-height .6s cubic-bezier(.4,0,.2,1), opacity .4s ease, margin .6s ease; }
.hc-guide.is-closed .hc-check-list { opacity: 0; margin-top: 0; border-top-color: transparent; }
.hc-guide-done { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--hc-ink); animation: hcIn .6s cubic-bezier(.2,.7,.2,1) both; }
.hc-guide-done-t { margin: 0 !important; font-family: var(--hc-serif); font-size: 26px; color: var(--hc-ink); }
.hc-guide-done-a { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0 !important; }
.hc-guide-reset { background: transparent; cursor: pointer; font-family: inherit; }
.hc-plane { position: fixed; left: 0; top: 0; z-index: 50; color: var(--hc-seal); pointer-events: none; opacity: 0; }
.hc-plane.is-go { animation: hcFly 1.3s cubic-bezier(.45,.05,.3,1) forwards; }
@keyframes hcFly {
	0% { opacity: 0; transform: translate(var(--x0), var(--y0)) rotate(0deg) scale(.6); }
	12% { opacity: 1; transform: translate(var(--x0), calc(var(--y0) - 10px)) rotate(-8deg) scale(1); }
	55% { opacity: 1; transform: translate(var(--x1), var(--y1)) rotate(6deg) scale(1.1); }
	100% { opacity: 0; transform: translate(var(--x2), var(--y2)) rotate(-18deg) scale(.8); }
}
@media (prefers-reduced-motion: reduce) { .hc-plane { display: none; } .hc-check-list { transition: none; } }

/* 手機截圖：完整顯示不裁切 */
.wp-block-gallery .wp-block-image.hc-shot img, .wp-block-image.hc-shot img { aspect-ratio: auto !important; object-fit: contain !important; height: auto !important; }
.wp-block-gallery .wp-block-image.hc-shot { align-self: flex-start; }
