/*
Theme Name: Hanji
Theme URI: https://guvlog.com/
Author: guvlog
Author URI: https://guvlog.com/
Description: A fast, English-first editorial theme built for two-track publishing — Korean culture and personal growth. Zero external font requests, no sidebar clutter, built-in table of contents, reading progress, related posts, AdSense slots and email capture. Designed for overseas organic and Pinterest traffic.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hanji
Tags: blog, two-columns, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  /* Dancheong-derived palette — subtly Korean, not costume-y */
  --hj-accent:        #1b3a6b;   /* 쪽빛 indigo  */
  --hj-accent-soft:   #eaeff8;
  --hj-highlight:     #e2571e;   /* 감빛 persimmon */
  --hj-jade:          #1f6f63;
  --hj-ochre:         #b8791f;   /* 황토 ochre */

  --hj-ink:           #14161a;
  --hj-ink-2:         #444a54;
  --hj-ink-3:         #6b7280;
  --hj-line:          #e5e7eb;
  --hj-paper:         #ffffff;
  --hj-paper-2:       #f7f7f5;

  /* English-native editorial stack. No web font request = 0ms blocking. */
  --hj-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
             "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  --hj-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
              "Times New Roman", "Apple SD Gothic Neo", serif;

  --hj-wrap: 1200px;
  --hj-read: 720px;

  --hj-r: 10px;
  --hj-shadow: 0 1px 2px rgba(20,22,26,.04), 0 8px 24px rgba(20,22,26,.06);
  --hj-shadow-lg: 0 2px 4px rgba(20,22,26,.05), 0 18px 48px rgba(20,22,26,.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --hj-accent:      #7ea2e0;
    --hj-accent-soft: #172033;
    --hj-highlight:   #ff7a45;
    --hj-jade:        #4bb3a3;
    --hj-ochre:       #e0a93b;

    --hj-ink:         #e9ebee;
    --hj-ink-2:       #b3b9c2;
    --hj-ink-3:       #8b929c;
    --hj-line:        #262b32;
    --hj-paper:       #0f1113;
    --hj-paper-2:     #16191d;

    --hj-shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --hj-shadow-lg: 0 2px 4px rgba(0,0,0,.45), 0 18px 48px rgba(0,0,0,.5);
  }
  img:not([src*=".svg"]) { filter: brightness(.92) contrast(1.02); }
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--hj-paper);
  color: var(--hj-ink);
  font-family: var(--hj-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a { color: var(--hj-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hj-sans);
  font-weight: 780;
  letter-spacing: -0.021em;
  line-height: 1.18;
  color: var(--hj-ink);
  margin: 0 0 .5em;
}

:focus-visible {
  outline: 2px solid var(--hj-highlight);
  outline-offset: 3px;
  border-radius: 3px;
}

.hj-wrap { width: 100%; max-width: var(--hj-wrap); margin-inline: auto; padding-inline: 20px; }
.hj-read { width: 100%; max-width: var(--hj-read); margin-inline: auto; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--hj-accent); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. Reading progress
   ========================================================================== */

.hj-progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--hj-accent), var(--hj-highlight));
  z-index: 120; transition: width .08s linear; pointer-events: none;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.hj-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--hj-paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hj-line);
}
.hj-header__inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 64px;
}

.hj-brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.hj-brand:hover { text-decoration: none; }
.hj-brand__name {
  font-size: 1.28rem; font-weight: 820; letter-spacing: -.03em; color: var(--hj-ink);
}
.hj-brand__mark { color: var(--hj-highlight); }
.hj-brand__tag {
  font-size: .78rem; color: var(--hj-ink-3); font-weight: 500; letter-spacing: 0;
}
.hj-brand img { max-height: 38px; width: auto; }

.hj-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.hj-nav a {
  color: var(--hj-ink-2); font-size: .93rem; font-weight: 600; letter-spacing: -.01em;
  padding: 6px 0; position: relative; text-decoration: none;
}
.hj-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--hj-highlight); transition: width .18s ease;
}
.hj-nav a:hover { color: var(--hj-ink); text-decoration: none; }
.hj-nav a:hover::after,
.hj-nav .current-menu-item > a::after,
.hj-nav .current-menu-parent > a::after { width: 100%; }
.hj-nav .current-menu-item > a { color: var(--hj-ink); }
.hj-nav .sub-menu { display: none; }

.hj-header__actions { display: flex; align-items: center; gap: 10px; }

.hj-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid transparent;
  background: transparent; color: var(--hj-ink-2); cursor: pointer; padding: 0;
}
.hj-iconbtn:hover { background: var(--hj-paper-2); color: var(--hj-ink); }
.hj-iconbtn svg { width: 19px; height: 19px; }

.hj-burger { display: none; }

.hj-search {
  display: none; border-top: 1px solid var(--hj-line); padding: 18px 0;
  background: var(--hj-paper);
}
.hj-search.is-open { display: block; }
.hj-search form { display: flex; gap: 10px; }
.hj-search input[type="search"] {
  flex: 1; font: inherit; font-size: 1rem; padding: 12px 16px;
  border: 1px solid var(--hj-line); border-radius: var(--hj-r);
  background: var(--hj-paper-2); color: var(--hj-ink);
}

/* Mobile nav */
@media (max-width: 880px) {
  .hj-burger { display: inline-flex; }
  .hj-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--hj-paper); border-bottom: 1px solid var(--hj-line);
    box-shadow: var(--hj-shadow); padding: 8px 0 18px;
  }
  .hj-nav.is-open { display: block; }
  .hj-nav ul { flex-direction: column; gap: 0; max-width: var(--hj-wrap); margin-inline: auto; padding-inline: 20px; }
  .hj-nav li { border-bottom: 1px solid var(--hj-line); }
  .hj-nav li:last-child { border-bottom: 0; }
  .hj-nav a { display: block; padding: 14px 0; font-size: 1.02rem; }
  .hj-nav a::after { display: none; }
}

/* ==========================================================================
   5. Hero (front page)
   ========================================================================== */

.hj-hero { padding: 76px 0 56px; border-bottom: 1px solid var(--hj-line); }
.hj-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hj-highlight); margin-bottom: 20px;
}
.hj-hero__eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--hj-highlight); display: block;
}
.hj-hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 4.1rem);
  max-width: 15ch; margin-bottom: 22px; letter-spacing: -.035em; line-height: 1.05;
}
.hj-hero__desc {
  font-family: var(--hj-serif); font-size: clamp(1.08rem, 2.3vw, 1.32rem);
  line-height: 1.6; color: var(--hj-ink-2); max-width: 56ch; margin: 0 0 30px;
}
.hj-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hj-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hj-ink); color: var(--hj-paper);
  padding: 13px 24px; border-radius: 999px; border: 1px solid var(--hj-ink);
  font-size: .94rem; font-weight: 700; letter-spacing: -.01em; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.hj-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--hj-shadow); color: var(--hj-paper); }
.hj-btn--ghost { background: transparent; color: var(--hj-ink); border-color: var(--hj-line); }
.hj-btn--ghost:hover { color: var(--hj-ink); border-color: var(--hj-ink); }
.hj-btn--accent { background: var(--hj-highlight); border-color: var(--hj-highlight); color: #fff; }
.hj-btn--accent:hover { color: #fff; }

/* ==========================================================================
   6. Section headings
   ========================================================================== */

.hj-section { padding: 62px 0; }
.hj-section + .hj-section { padding-top: 0; }
.hj-section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 30px; padding-bottom: 14px;
  border-bottom: 2px solid var(--hj-ink);
}
.hj-section__title { font-size: 1.34rem; margin: 0; letter-spacing: -.025em; }
.hj-section__more { font-size: .88rem; font-weight: 650; color: var(--hj-ink-3); white-space: nowrap; }
.hj-section__more:hover { color: var(--hj-highlight); }

/* ==========================================================================
   7. Track cards (Korea / Growth)
   ========================================================================== */

.hj-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.hj-track {
  position: relative; overflow: hidden;
  border: 1px solid var(--hj-line); border-radius: 16px;
  padding: 34px 30px; background: var(--hj-paper-2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hj-track:hover { transform: translateY(-3px); box-shadow: var(--hj-shadow-lg); }
.hj-track::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--hj-accent);
}
.hj-track--growth::after { background: var(--hj-jade); }
.hj-track--cube::after   { background: var(--hj-ochre); }
.hj-track__label {
  font-size: .72rem; font-weight: 780; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hj-accent); margin-bottom: 12px;
}
.hj-track--growth .hj-track__label { color: var(--hj-jade); }
.hj-track--cube   .hj-track__label { color: var(--hj-ochre); }
.hj-track h3 { font-size: 1.5rem; margin-bottom: 10px; letter-spacing: -.028em; }
.hj-track p { color: var(--hj-ink-2); font-size: .97rem; margin: 0 0 18px; }
.hj-track__link { font-weight: 700; font-size: .92rem; color: var(--hj-ink); }
.hj-track__link::after { content: " →"; color: var(--hj-highlight); }
.hj-track__badge {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-size: .62rem; font-weight: 800; letter-spacing: .1em;
  color: var(--hj-ochre); border: 1px solid currentColor;
  border-radius: 999px; padding: 2px 8px;
}

@media (max-width: 560px) { .hj-tracks { grid-template-columns: 1fr; } }

/* ==========================================================================
   8. Post cards
   ========================================================================== */

.hj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
@media (max-width: 980px) { .hj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .hj-grid { grid-template-columns: 1fr; gap: 32px; } }

.hj-card { display: flex; flex-direction: column; }
.hj-card__media {
  position: relative; display: block; overflow: hidden;
  border-radius: 12px; aspect-ratio: 16 / 10; background: var(--hj-paper-2);
  margin-bottom: 15px;
}
.hj-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.6,.2,1);
}
.hj-card:hover .hj-card__media img { transform: scale(1.045); }
.hj-card__media--empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--hj-ink-3); font-size: 2rem; font-weight: 800; letter-spacing: -.04em;
}

.hj-card__meta {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--hj-ink-3); margin-bottom: 9px;
}
.hj-card__cat { color: var(--hj-highlight); }
.hj-card__cat:hover { color: var(--hj-highlight); }
.hj-card__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--hj-line); }

.hj-card__title { font-size: 1.13rem; line-height: 1.32; margin: 0 0 9px; letter-spacing: -.022em; }
.hj-card__title a { color: var(--hj-ink); }
.hj-card__title a:hover { color: var(--hj-accent); text-decoration: none; }
.hj-card__excerpt {
  font-family: var(--hj-serif); font-size: .96rem; line-height: 1.6;
  color: var(--hj-ink-2); margin: 0;
}

/* Featured (first post on front page) */
.hj-feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  padding: 54px 0; border-bottom: 1px solid var(--hj-line);
}
.hj-feature .hj-card__media { aspect-ratio: 3 / 2; margin-bottom: 0; border-radius: 16px; }
.hj-feature .hj-card__title { font-size: clamp(1.6rem, 3.3vw, 2.3rem); line-height: 1.14; }
.hj-feature .hj-card__excerpt { font-size: 1.05rem; }
@media (max-width: 860px) { .hj-feature { grid-template-columns: 1fr; gap: 22px; padding: 34px 0; } }

/* ==========================================================================
   9. Newsletter / lead magnet
   ========================================================================== */

.hj-optin {
  background: var(--hj-accent-soft);
  border: 1px solid color-mix(in srgb, var(--hj-accent) 18%, transparent);
  border-radius: 18px; padding: 42px 38px; text-align: center;
}
.hj-optin h2 { font-size: clamp(1.4rem, 3vw, 1.95rem); margin-bottom: 10px; letter-spacing: -.03em; }
.hj-optin p { color: var(--hj-ink-2); max-width: 52ch; margin: 0 auto 24px; font-size: 1rem; }
.hj-optin form {
  display: flex; gap: 10px; max-width: 480px; margin-inline: auto; flex-wrap: wrap;
}
.hj-optin input[type="email"] {
  flex: 1 1 240px; font: inherit; padding: 13px 18px;
  border: 1px solid var(--hj-line); border-radius: 999px;
  background: var(--hj-paper); color: var(--hj-ink);
}
.hj-optin__note { font-size: .8rem; color: var(--hj-ink-3); margin: 14px 0 0; }
@media (max-width: 560px) { .hj-optin { padding: 32px 22px; } }

/* ==========================================================================
   10. Single post
   ========================================================================== */

.hj-single { padding: 46px 0 0; }

.hj-crumbs { font-size: .8rem; color: var(--hj-ink-3); margin-bottom: 18px; }
.hj-crumbs a { color: var(--hj-ink-3); }
.hj-crumbs a:hover { color: var(--hj-highlight); }
.hj-crumbs span { margin: 0 7px; }

.hj-entry__header { margin-bottom: 30px; }
.hj-entry__cat {
  display: inline-block; font-size: .74rem; font-weight: 780;
  letter-spacing: .12em; text-transform: uppercase; color: var(--hj-highlight); margin-bottom: 14px;
}
.hj-entry__title {
  font-size: clamp(2rem, 4.6vw, 3.05rem); line-height: 1.1;
  letter-spacing: -.035em; margin-bottom: 18px;
}
.hj-entry__standfirst {
  font-family: var(--hj-serif); font-size: 1.19rem; line-height: 1.6;
  color: var(--hj-ink-2); margin: 0 0 24px;
}
.hj-entry__byline {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .87rem; color: var(--hj-ink-3);
  padding: 16px 0; border-top: 1px solid var(--hj-line); border-bottom: 1px solid var(--hj-line);
}
.hj-entry__avatar { border-radius: 50%; width: 34px; height: 34px; }
.hj-entry__author { font-weight: 700; color: var(--hj-ink-2); }

.hj-entry__hero { margin: 30px 0 8px; }
.hj-entry__hero img { width: 100%; border-radius: 14px; }
.hj-entry__caption { font-size: .8rem; color: var(--hj-ink-3); margin-top: 9px; text-align: center; }

/* Body copy — serif long-form, tuned for English reading */
.hj-content {
  font-family: var(--hj-serif);
  font-size: 1.16rem;
  line-height: 1.78;
  color: var(--hj-ink);
  margin-top: 30px;
}
.hj-content > * { margin-top: 0; margin-bottom: 1.5rem; }
.hj-content > *:last-child { margin-bottom: 0; }

.hj-content h2 {
  font-family: var(--hj-sans); font-size: 1.72rem; letter-spacing: -.03em;
  margin-top: 2.9rem; margin-bottom: .85rem; scroll-margin-top: 92px;
}
.hj-content h3 {
  font-family: var(--hj-sans); font-size: 1.3rem; letter-spacing: -.025em;
  margin-top: 2.1rem; margin-bottom: .6rem; scroll-margin-top: 92px;
}
.hj-content h4 { font-family: var(--hj-sans); font-size: 1.08rem; margin-top: 1.7rem; }

.hj-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hj-content strong { font-weight: 700; }
.hj-content ul, .hj-content ol { padding-left: 1.35em; }
.hj-content li { margin-bottom: .5rem; }
.hj-content li::marker { color: var(--hj-highlight); }

.hj-content img, .hj-content figure img { border-radius: 12px; }
.hj-content figcaption { font-family: var(--hj-sans); font-size: .82rem; color: var(--hj-ink-3); text-align: center; margin-top: 9px; }

.hj-content blockquote {
  margin-inline: 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--hj-highlight);
  font-size: 1.2rem; font-style: italic; color: var(--hj-ink-2);
}
.hj-content blockquote p:last-child { margin-bottom: 0; }

.hj-content pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88rem; line-height: 1.6; background: var(--hj-paper-2);
  border: 1px solid var(--hj-line); border-radius: 10px; padding: 18px; overflow-x: auto;
}
.hj-content code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em; background: var(--hj-paper-2); border: 1px solid var(--hj-line);
  padding: .12em .38em; border-radius: 5px;
}
.hj-content pre code { background: none; border: 0; padding: 0; }

.hj-content table { width: 100%; border-collapse: collapse; font-family: var(--hj-sans); font-size: .95rem; }
.hj-content th, .hj-content td { border: 1px solid var(--hj-line); padding: 10px 13px; text-align: left; }
.hj-content th { background: var(--hj-paper-2); font-weight: 700; }

.hj-content hr { border: 0; border-top: 1px solid var(--hj-line); margin: 2.6rem 0; }

/* ==========================================================================
   11. Table of contents
   ========================================================================== */

.hj-toc {
  font-family: var(--hj-sans);
  background: var(--hj-paper-2);
  border: 1px solid var(--hj-line);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 30px 0;
}
.hj-toc__head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: .76rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--hj-ink-2);
}
.hj-toc__head svg { width: 15px; height: 15px; transition: transform .2s ease; }
.hj-toc[data-open="false"] .hj-toc__head svg { transform: rotate(-90deg); }
.hj-toc[data-open="false"] .hj-toc__body { display: none; }
.hj-toc__body { margin-top: 15px; }
.hj-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: hjtoc; }
.hj-toc li { margin: 0 0 9px; }
.hj-toc li:last-child { margin-bottom: 0; }
.hj-toc a {
  display: block; font-size: .93rem; line-height: 1.45; color: var(--hj-ink-2);
  border-left: 2px solid transparent; padding-left: 12px; text-decoration: none;
}
.hj-toc a:hover, .hj-toc a.is-active {
  color: var(--hj-accent); border-left-color: var(--hj-highlight); text-decoration: none;
}
.hj-toc .is-sub a { padding-left: 26px; font-size: .87rem; color: var(--hj-ink-3); }

/* ==========================================================================
   12. Ad slots
   ========================================================================== */

.hj-ad { margin: 34px auto; text-align: center; min-height: 1px; }
.hj-ad::before {
  content: "ADVERTISEMENT";
  display: block; font-family: var(--hj-sans); font-size: .62rem; font-weight: 700;
  letter-spacing: .18em; color: var(--hj-ink-3); opacity: .65; margin-bottom: 8px;
}
.hj-ad--inline { margin: 40px auto; }

/* ==========================================================================
   13. Post footer: tags, share, author, related
   ========================================================================== */

.hj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 38px 0 0; }
.hj-tags a {
  font-family: var(--hj-sans); font-size: .8rem; font-weight: 600;
  color: var(--hj-ink-2); background: var(--hj-paper-2);
  border: 1px solid var(--hj-line); border-radius: 999px; padding: 6px 14px;
}
.hj-tags a:hover { border-color: var(--hj-ink-2); color: var(--hj-ink); text-decoration: none; }

.hj-share { display: flex; align-items: center; gap: 10px; margin: 30px 0 0; flex-wrap: wrap; }
.hj-share__label { font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--hj-ink-3); }
.hj-share a, .hj-share button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--hj-line); color: var(--hj-ink-2);
  background: var(--hj-paper); cursor: pointer; padding: 0;
}
.hj-share a:hover, .hj-share button:hover { border-color: var(--hj-ink-2); color: var(--hj-ink); text-decoration: none; }
.hj-share svg { width: 17px; height: 17px; }

.hj-authorbox {
  display: flex; gap: 18px; align-items: flex-start;
  margin: 44px 0 0; padding: 26px; border: 1px solid var(--hj-line);
  border-radius: 16px; background: var(--hj-paper-2);
}
.hj-authorbox img { border-radius: 50%; flex-shrink: 0; }
.hj-authorbox h3 { font-size: 1.02rem; margin-bottom: 5px; }
.hj-authorbox p { font-size: .93rem; color: var(--hj-ink-2); margin: 0; }

.hj-related { padding: 66px 0; margin-top: 56px; border-top: 1px solid var(--hj-line); background: var(--hj-paper-2); }

.hj-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 44px 0 0; }
.hj-prevnext a {
  border: 1px solid var(--hj-line); border-radius: 12px; padding: 18px 20px;
  display: block; background: var(--hj-paper);
}
.hj-prevnext a:hover { border-color: var(--hj-ink-2); text-decoration: none; }
.hj-prevnext span {
  display: block; font-size: .7rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--hj-ink-3); margin-bottom: 7px;
}
.hj-prevnext strong { font-size: .98rem; font-weight: 700; color: var(--hj-ink); line-height: 1.35; }
.hj-prevnext .is-next { text-align: right; }
@media (max-width: 620px) { .hj-prevnext { grid-template-columns: 1fr; } }

/* ==========================================================================
   14. Archive / search headers, pagination
   ========================================================================== */

.hj-pagehead { padding: 56px 0 34px; border-bottom: 2px solid var(--hj-ink); margin-bottom: 40px; }
.hj-pagehead__eyebrow {
  font-size: .74rem; font-weight: 780; letter-spacing: .14em;
  text-transform: uppercase; color: var(--hj-highlight); margin-bottom: 12px;
}
.hj-pagehead h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -.035em; margin-bottom: 12px; }
.hj-pagehead p { font-family: var(--hj-serif); font-size: 1.08rem; color: var(--hj-ink-2); max-width: 62ch; margin: 0; }

.hj-pagination { margin: 56px 0; display: flex; justify-content: center; }
.hj-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.hj-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--hj-line); border-radius: 10px;
  font-size: .93rem; font-weight: 650; color: var(--hj-ink-2);
}
.hj-pagination .page-numbers:hover { border-color: var(--hj-ink-2); color: var(--hj-ink); text-decoration: none; }
.hj-pagination .page-numbers.current {
  background: var(--hj-ink); border-color: var(--hj-ink); color: var(--hj-paper);
}

.hj-empty { padding: 70px 0; text-align: center; }
.hj-empty h2 { font-size: 1.5rem; }
.hj-empty p { color: var(--hj-ink-2); }

/* First run — shown while the blog has no published posts */
.hj-firstrun {
  border: 1px dashed var(--hj-line); border-radius: 16px;
  padding: 44px 38px; background: var(--hj-paper-2);
}
.hj-firstrun__eyebrow {
  font-size: .74rem; font-weight: 780; letter-spacing: .14em;
  text-transform: uppercase; color: var(--hj-highlight); margin: 0 0 12px;
}
.hj-firstrun h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.03em; margin-bottom: 10px; }
.hj-firstrun > p { font-family: var(--hj-serif); color: var(--hj-ink-2); max-width: 58ch; margin: 0; }

.hj-firstrun__admin {
  margin-top: 30px; padding: 22px 24px;
  background: var(--hj-paper); border: 1px solid var(--hj-line); border-radius: 12px;
}
.hj-firstrun__admin-title {
  font-size: .72rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--hj-ink-3); margin: 0 0 14px;
}
.hj-firstrun__admin ol { margin: 0; padding-left: 1.2em; }
.hj-firstrun__admin li { font-size: .94rem; color: var(--hj-ink-2); margin-bottom: 9px; }
.hj-firstrun__admin li:last-child { margin-bottom: 0; }
.hj-firstrun__admin li::marker { color: var(--hj-highlight); font-weight: 700; }
.hj-firstrun__admin a { font-weight: 650; }
@media (max-width: 560px) { .hj-firstrun { padding: 30px 22px; } }

/* ==========================================================================
   15. Comments
   ========================================================================== */

.hj-comments { margin: 56px 0 0; }
.hj-comments h2 { font-size: 1.25rem; margin-bottom: 22px; }
.hj-comments ol { list-style: none; margin: 0; padding: 0; }
.hj-comments .comment-body { padding: 20px 0; border-bottom: 1px solid var(--hj-line); }
.hj-comments .children { padding-left: 26px; }
.hj-comments input[type="text"], .hj-comments input[type="email"],
.hj-comments input[type="url"], .hj-comments textarea {
  width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--hj-line);
  border-radius: 9px; background: var(--hj-paper-2); color: var(--hj-ink);
}
.hj-comments .submit {
  background: var(--hj-ink); color: var(--hj-paper); border: 0;
  padding: 12px 26px; border-radius: 999px; font-weight: 700; cursor: pointer;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.hj-footer { border-top: 1px solid var(--hj-line); margin-top: 0; padding: 56px 0 34px; background: var(--hj-paper); }
.hj-footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-bottom: 40px; }
.hj-footer__about h3 { font-size: 1.2rem; letter-spacing: -.03em; margin-bottom: 10px; }
.hj-footer__about p { color: var(--hj-ink-2); font-size: .95rem; max-width: 46ch; margin: 0; }
.hj-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hj-footer__nav a { color: var(--hj-ink-2); font-size: .92rem; font-weight: 600; }
.hj-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--hj-line);
  font-size: .82rem; color: var(--hj-ink-3);
}
@media (max-width: 760px) { .hj-footer__top { grid-template-columns: 1fr; gap: 28px; } }

.hj-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--hj-ink); color: var(--hj-paper);
  border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--hj-shadow);
}
.hj-top.is-visible { opacity: 1; pointer-events: auto; }
.hj-top:hover { transform: translateY(-2px); }
.hj-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   17. Wide & app page templates
   ========================================================================== */

/* Wide: article typography, but the full 1200px container. */
.hj-content--wide { max-width: none; }
.hj-content--wide > * { max-width: var(--hj-read); margin-inline: auto; }
.hj-content--wide > .alignwide,
.hj-content--wide > .alignfull,
.hj-content--wide > figure,
.hj-content--wide > table,
.hj-content--wide > pre,
.hj-content--wide > .wp-block-table,
.hj-content--wide > .wp-block-image { max-width: none; }

/*
 * App: a hosted interactive tool owns its own layout.
 * Deliberately minimal — no serif override, no forced margins,
 * so an embedded simulator/timer renders exactly as authored.
 */
.hj-app { padding: 26px 0 10px; }
.hj-app__head { margin-bottom: 22px; }
.hj-app__eyebrow {
  font-size: .74rem; font-weight: 780; letter-spacing: .14em;
  text-transform: uppercase; color: var(--hj-ochre); margin: 0 0 10px;
}
.hj-app__title {
  font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.035em; margin: 0 0 10px;
}
.hj-app__standfirst {
  font-family: var(--hj-serif); font-size: 1.08rem; line-height: 1.6;
  color: var(--hj-ink-2); max-width: 68ch; margin: 0;
}
.hj-app__body { font-family: var(--hj-sans); }
.hj-app__body a { color: var(--hj-accent); }
.hj-app__body img { border-radius: 10px; }
.hj-app__body h2, .hj-app__body h3 { scroll-margin-top: 92px; }
.hj-app__body canvas { max-width: 100%; }

.hj-app__footer { margin-top: 44px; }

/* ==========================================================================
   18. WordPress core classes
   ========================================================================== */

.alignwide { max-width: 980px; margin-inline: auto; }
.alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.alignleft  { float: left;  margin: .4rem 1.6rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.6rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-family: var(--hj-sans); font-size: .82rem; color: var(--hj-ink-3); text-align: center; }
.sticky .hj-card__title::before { content: "★ "; color: var(--hj-highlight); }

/* ==========================================================================
   19. Print
   ========================================================================== */

@media print {
  .hj-header, .hj-footer, .hj-toc, .hj-ad, .hj-share, .hj-related,
  .hj-progress, .hj-top, .hj-optin, .hj-prevnext { display: none !important; }
  body { font-size: 12pt; }
  .hj-content { font-size: 12pt; }
}
