.cfh {
    --cfh-size: 70px;
    --cfh-ink: #111;
    --cfh-muted: #666;
    --cfh-line: #e7e7e7;
    width: 100%;
    color: var(--cfh-ink);
    background: #fff;
    font: 400 15px/1.65 -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    text-align: left;
    isolation: isolate;
}
.cfh *, .cfh *::before, .cfh *::after { box-sizing: border-box; }
.cfh h1, .cfh h2, .cfh h3, .cfh p { margin: 0; padding: 0; color: inherit; font-family: inherit; }
.cfh a { color: inherit; text-decoration: none; }
.cfh button, .cfh input, .cfh select { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; margin: 0; }
.cfh button { min-height: 44px; cursor: pointer; line-height: 1.4; }
.cfh button:disabled { cursor: default; opacity: .55; }
.cfh button:focus-visible, .cfh a:focus-visible, .cfh input:focus-visible, .cfh select:focus-visible { outline: 2px solid #777; outline-offset: 4px; }
.cfh [hidden] { display: none !important; }
.cfh .cfh-hero { background: #101010; color: #fff; }
.cfh .cfh-hero-inner { max-width: 1200px; margin: auto; padding: 48px 48px 28px; }
.cfh .cfh-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .28em; line-height: 1.6; }
.cfh .cfh-hero .cfh-eyebrow { color: #c6c6c6; }
.cfh .cfh-hero h1 { font-weight: 400; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.35; letter-spacing: -.055em; margin-top: 18px; }
.cfh .cfh-intro { color: #ddd; font-size: 14px; line-height: 1.8; margin: 20px 0 26px; }
.cfh .cfh-controls { display: flex; align-items: center; gap: 14px; background: #fff; border: 0; border-radius: 0; box-shadow: none; outline: none; padding: 5px 14px 5px 22px; color: #111; }
.cfh .cfh-input-wrap { display: flex; align-items: center; flex: 1; min-width: 0; }
/* Override the live theme's important input rules only for preview text fields. */
.cfh input.cfh-input[type="text"], .cfh input.cfh-input[type="text"]:focus { width: 100%; height: 44px; min-width: 0; padding: 8px 0; border: 0 !important; border-bottom: 2px solid #111111 !important; border-radius: 0 !important; box-shadow: none !important; outline: none !important; background: #fff !important; color: #111; font-size: 13px; }
.cfh .cfh-input-wrap { border: 0; border-radius: 0; box-shadow: none; outline: none; }
.cfh .cfh-controls::before, .cfh .cfh-controls::after, .cfh .cfh-input-wrap::before, .cfh .cfh-input-wrap::after { content: none; display: none; }
.cfh input.cfh-input[type="text"]:focus-visible { outline: none !important; background: #f4f4f4 !important; }
.cfh .cfh-input::placeholder { color: #737373; opacity: 1; }
.cfh .cfh-reset { display: grid; place-items: center; padding: 0; width: 44px; min-width: 44px; border: 0; background: transparent; color: #111; font-size: 22px; }
.cfh .cfh-size { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 11px; }
.cfh .cfh-size label { margin: 0; color: #555; font-size: 11px; font-weight: 400; }
.cfh .cfh-size input { width: 80px; height: 44px; padding: 0; accent-color: #111; border: 0; background: transparent; }
.cfh .cfh-size output { min-width: 32px; font-variant-numeric: tabular-nums; }
.cfh .cfh-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cfh .cfh-examples > span { color: #c0c0c0; font-size: 10px; margin-right: 5px; }
.cfh .cfh-examples button { border: 1px solid #666; border-radius: 24px; padding: 8px 13px; background: transparent; color: #ddd; font-size: 11px; font-weight: 400; }
.cfh .cfh-examples button:hover, .cfh .cfh-examples button[aria-pressed=true] { background: #fff; color: #111; border-color: #fff; }
.cfh .cfh-content { max-width: 1200px; margin: auto; padding: 0 48px 48px; }
.cfh .cfh-section { padding-top: 38px; }
.cfh .cfh-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.cfh .cfh-section .cfh-eyebrow { color: #666; margin-bottom: 5px; }
.cfh .cfh-section h2 { font-size: clamp(21px, 2.4vw, 28px); font-weight: 650; line-height: 1.4; letter-spacing: -.045em; }
.cfh .cfh-description { color: var(--cfh-muted); font-size: 12px; margin-top: 6px; }
.cfh .cfh-text-link { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; white-space: nowrap; min-height: 44px; }
.cfh .cfh-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.cfh .cfh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cfh .cfh-card { min-width: 0; border: 1px solid var(--cfh-line); border-radius: 6px; background: #fff; overflow: hidden; }
.cfh .cfh-card:hover { border-color: #999; }
.cfh .cfh-card-link { display: block; position: relative; height: 100%; padding: 20px 14px 12px; }
.cfh .cfh-preview { min-height: 140px; display: grid; place-items: center; text-align: center; padding: 14px 0 10px; }
.cfh [data-cfh-text] { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; font-size: var(--cfh-size); line-height: 1.45; font-weight: 400; font-synthesis: none; }
.cfh .cfh-font-state { font-size: 12px; color: #777; line-height: 1.7; }
.cfh .cfh-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding-top: 4px; }
.cfh .cfh-card h3 { font-size: 12px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.cfh .cfh-heart { position: absolute; right: 12px; top: 9px; font-family: sans-serif; font-size: 21px; line-height: 1; color: #888; }
.cfh .cfh-tag { display: inline-block; flex-shrink: 0; color: #666; background: #f3f3f3; padding: 2px 5px; border-radius: 4px; font-size: 10px; }
.cfh .cfh-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 210px; text-align: center; padding: 32px 20px; background: #fafafa; border: 1px solid var(--cfh-line); border-radius: 6px; }
.cfh .cfh-empty > span { font: 36px Georgia, serif; color: #aaa; margin-bottom: 14px; }
.cfh .cfh-empty p { font-size: 14px; }
.cfh .cfh-bottom { text-align: center; padding-top: 34px; }
.cfh .cfh-pill { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; padding: 12px 28px; border: 1px solid #111; background: #111; border-radius: 28px; color: #fff; font-size: 13px; font-weight: 500; }
.cfh .cfh-bottom p { color: #777; font-size: 11px; margin-top: 10px; }
.cfh .cfh-catalog { padding-top: 42px; }
.cfh .cfh-catalog-header { margin-bottom: 24px; }
.cfh .cfh-catalog-header .cfh-eyebrow { color: #777; margin-bottom: 10px; }
.cfh .cfh-catalog-header h1 { font-size: 34px; line-height: 1.4; font-weight: 650; letter-spacing: -.05em; }
/* The live theme sets form margin-bottom: 0 !important. */
.cfh .cfh-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; margin-bottom: 28px !important; padding: 0; }
.cfh .cfh-filter { min-height: 44px; padding: 9px 18px; border: 1px solid var(--cfh-line); border-radius: 24px; background: #fff; color: #555; font-size: 12px; font-weight: 400; }
.cfh .cfh-filter-active { color: #fff; background: #111; border-color: #111; }
.cfh .cfh-filter span { white-space: nowrap; }
.cfh .cfh-toolbar { position: relative; display: flex; justify-content: flex-end; align-items: center; min-height: 48px; max-width: 1200px; margin: auto; padding: 0 40px; z-index: 3; }
.cfh .cfh-search-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; color: #111; }
.cfh .cfh-product-search { position: absolute; right: 48px; top: 100%; width: min(440px, calc(100vw - 40px)); padding: 18px; background: #fff; border: 1px solid var(--cfh-line); border-radius: 6px; box-shadow: 0 8px 24px #00000012; }
.cfh .cfh-product-search .product-search { margin: 0; }
.cfh .cfh-product-search input.product-search-field { width: 100%; height: 46px; border: 1px solid #ddd; border-radius: 4px; background: #fff; color: #111; font-size: 16px; padding: 10px 36px 10px 12px; }
.cfh .cfh-product-search .product-search-results { position: relative; width: 100%; left: auto; right: auto; }
.cfh .cfh-product-search .product-search-results-content { max-height: min(420px, 60vh); overflow: auto; background: #fff; color: #111; border-color: var(--cfh-line); }
.cfh .cfh-product-search .entry { border-bottom: 1px solid var(--cfh-line); background: #fff; color: #111; }
.cfh .cfh-product-search .entry.active { background: #f4f4f4; }
.cfh .cfh-product-search .entry a { color: #111; }
.cfh.cfh-header-search-host { min-width: 280px; }
.cfh.cfh-header-search-host .cfh-product-search { position: static; width: 100%; max-width: none; padding: 8px; border: 0; box-shadow: none; }
.cfh .cfh-results-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 12px; }
.cfh .cfh-results-heading > span { color: #777; font-size: 11px; }
.cfh .cfh-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.cfh .cfh-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 7px 12px; border: 1px solid var(--cfh-line); border-radius: 4px; font-size: 12px; }
.cfh .cfh-pagination .current { background: #111; border-color: #111; color: #fff; }
.cfh .cfh-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cfh .cfh-studio { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.25fr); gap: 32px; align-items: center; margin-top: 28px; padding: 34px; border-radius: 16px; background: #f6f5f3; }
.cfh .cfh-studio-copy { min-width: 0; }
.cfh .cfh-studio .cfh-eyebrow { color: #666; margin-bottom: 12px; }
.cfh .cfh-studio h2 { font-size: clamp(24px,2.5vw,32px); font-weight: 550; line-height: 1.45; letter-spacing: -.055em; white-space: pre-line; overflow-wrap: anywhere; }
.cfh .cfh-studio-description { margin-top: 14px; font-size: 13px; line-height: 1.8; color: #666; white-space: pre-line; overflow-wrap: anywhere; }
.cfh .cfh-studio-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; max-width: 100%; padding: 11px 20px; margin-top: 22px; border-radius: 9px; background: #111; color: #fff; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.cfh .cfh-studio-button:hover { background: #333; }
.cfh .cfh-studio-button span { flex-shrink: 0; }
.cfh .cfh-studio-preview { min-width: 0; margin: 0; padding: 7px; border: 1px solid #e9e8e6; border-radius: 12px; background: #fff; box-shadow: 0 8px 30px #11111108; }
.cfh .cfh-studio-image { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 820; object-fit: contain; border-radius: 6px; background: #fff; }
@media (max-width: 900px) {
    .cfh .cfh-studio { gap: 20px; padding: 26px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width: 700px) {
    .cfh .cfh-studio { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 24px 20px; margin-top: 22px; }
    .cfh .cfh-studio h2 { font-size: 27px; }
    .cfh .cfh-studio-description { font-size: 13px; }
    .cfh .cfh-studio-button { margin-top: 18px; }
}
@media (max-width: 900px) {
    .cfh .cfh-hero-inner { padding: 36px 28px 24px; }
    .cfh .cfh-content { padding-left: 28px; padding-right: 28px; }
    .cfh .cfh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .cfh .cfh-size label { display: none; }
}
@media (max-width: 560px) {
    .cfh .cfh-hero { width: var(--cfh-viewport, 100vw); max-width: none; margin-left: var(--cfh-bleed-offset, calc(50% - 50vw)); }
    .cfh .cfh-hero-inner { padding: 30px 16px 22px; }
    .cfh .cfh-hero h1 { font-size: 34px; }
    .cfh .cfh-intro { font-size: 13px; }
    .cfh .cfh-controls { display: block; padding: 8px 14px; border-radius: 0; }
    .cfh input.cfh-input[type="text"], .cfh input.cfh-input[type="text"]:focus { font-size: 16px; }
    .cfh .cfh-size { justify-content: flex-end; gap: 12px; border-top: 0; }
    .cfh .cfh-size label { display: inline; margin-right: auto; }
    .cfh .cfh-size input { width: 110px; }
    .cfh .cfh-examples { gap: 5px; }
    .cfh .cfh-examples > span { flex-basis: 100%; margin-bottom: 2px; }
    .cfh .cfh-examples button { padding: 8px 10px; font-size: 10px; }
    .cfh .cfh-content { padding-left: 16px; padding-right: 16px; padding-bottom: 32px; }
    .cfh > .cfh-content { width: var(--cfh-viewport, 100vw); max-width: none; margin-left: var(--cfh-bleed-offset, calc(50% - 50vw)); padding-left: 16px; padding-right: 16px; }
    .cfh .cfh-section { padding-top: 30px; }
    .cfh .cfh-section-heading { align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
    .cfh .cfh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cfh .cfh-card-link { padding: 22px 10px 10px; }
    .cfh .cfh-preview { min-height: 112px; padding: 8px 0; }
    .cfh .cfh-card h3 { font-size: 11px; }
    .cfh .cfh-catalog { padding-top: 28px; }
    .cfh .cfh-catalog-header h1 { font-size: 28px; }
    .cfh .cfh-filters { gap: 6px; margin-bottom: 24px !important; }
    .cfh .cfh-filter { padding: 8px 12px; font-size: 11px; }
    .cfh .cfh-toolbar { width: var(--cfh-viewport, 100vw); margin-left: var(--cfh-bleed-offset, calc(50% - 50vw)); padding: 0 16px; }
    .cfh .cfh-product-search { right: 16px; width: calc(100vw - 32px); max-width: calc(100vw - 32px); padding: 14px; }
    .cfh .cfh-results-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* Home/archive desktop alignment. The unchanged home hero is the reference;
   the lower content uses its parent width, without viewport width or scaling. */
.cfh .cfh-utility { display: none; }
@media (min-width: 901px) {
    .cfh[data-cfh-view="home"] > .cfh-content,
    .cfh[data-cfh-view="fonts"] > .cfh-content,
    .cfh[data-cfh-view="home"] > .cfh-utility {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .cfh[data-cfh-view="home"] > .cfh-utility { display: flex; justify-content: flex-end; padding-top: 8px; padding-bottom: 12px; }
    .cfh .cfh-utility-menu { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
    .cfh .cfh-utility-menu > li { list-style: none; margin: 0; padding: 0; border: 0; }
    .cfh .cfh-utility-menu > li > a { display: inline-flex; align-items: center; min-height: 32px; white-space: nowrap; font-size: 12px; line-height: 1.5; }
    .cfh-home-page #header .cfh-desktop-menu-source { display: none !important; }
}

/* Stable preview frames across all three modes; card links and metadata stay put. */
.cfh .cfh-preview { height: 140px; min-height: 140px; overflow: hidden; }
.cfh .cfh-preview > * { grid-area: 1 / 1; min-width: 0; max-width: 100%; max-height: 100%; }
.cfh .cfh-preview [data-cfh-text] { display: block; overflow: auto; }
/* Catalog text metrics are measured after each real font loads. Keep Home's
   line boxes and the balanced engine's canvas completely independent. */
.cfh[data-cfh-view="fonts"] { --cfh-size: 34px; }
.cfh[data-cfh-view="fonts"] .cfh-card-link { height: auto; }
.cfh[data-cfh-view="fonts"] .cfh-preview:is([data-cfh-preview-mode="normal"], [data-cfh-preview-mode="name"]) { height: auto; }
.cfh[data-cfh-view="fonts"] .cfh-preview:is([data-cfh-preview-mode="normal"], [data-cfh-preview-mode="name"]) [data-cfh-text] { max-height: none; overflow: visible; }
.cfh[data-cfh-view="fonts"] [data-cfh-preview-mode="name"] [data-cfh-text] { white-space: pre; overflow-wrap: normal; }
.cfh .cfh-preview canvas { display: block; object-fit: contain; }
.cfh .cfh-preview-modes { display: flex; flex-wrap: wrap; gap: 6px; margin: -12px 0 20px; }
.cfh .cfh-preview-modes button { min-height: 44px; border: 1px solid var(--cfh-line); border-radius: 6px; background: #fff; padding: 8px 12px; font-size: 12px; font-weight: 400; }
.cfh .cfh-preview-modes button[aria-pressed="true"] { background: #111; border-color: #111; color: #fff; }
@media (max-width: 560px) {
    .cfh .cfh-preview { height: 112px; min-height: 112px; }
    .cfh .cfh-preview-modes { margin-top: -8px; gap: 5px; }
    .cfh .cfh-preview-modes button { padding: 8px; font-size: 11px; }
}
/* Only the inspected shortcode pages receive this class, after the original
   search toolbar is mounted. No logo copy, theme template, or desktop override. */
@media (max-width: 849px) {
    .cfh-mobile-header #header { padding-top: env(safe-area-inset-top, 0px); }
    .cfh-mobile-header #top-bar { display: none; }
    .cfh-mobile-header #masthead { height: 64px; }
    .cfh-mobile-header #masthead .header-inner { height: 64px; justify-content: space-between; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
    .cfh-mobile-header #logo { flex: none; margin: 0; }
    .cfh-mobile-header #content.page-wrapper { padding-top: 0; }
    .cfh.cfh-mobile-search-host { width: 44px; flex: none; order: 4; margin-left: auto; position: relative; z-index: 3; }
    .cfh.cfh-mobile-search-host .cfh-toolbar { width: 44px; min-height: 64px; margin: 0; padding: 0; }
    .cfh.cfh-mobile-search-host .cfh-product-search { top: 100%; right: 0; width: calc(100vw - 32px); max-width: 440px; }
}

/* Postcard section is scoped to Home. The existing hero and studio stay independent. */
.cfh .cfh-postcard { position:relative; isolation:isolate; display:grid; grid-template-columns:1fr 1fr; align-items:center; overflow:hidden; min-height:470px; margin:24px 0 16px; border-radius:20px; background:radial-gradient(ellipse at 20% 0%,#fffdf6b3,transparent 65%),linear-gradient(125deg,#e9e0d2,#f0eadd 55%,#e9e0d2); color:#28251f; }
.cfh .cfh-postcard-stage { position:absolute; z-index:-2; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity .6s ease; }
.cfh .cfh-postcard-stage.is-loaded { opacity:1; }
.cfh .cfh-postcard::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(120deg,transparent 15%,#fffdf759 28%,transparent 46%,#fffdf759 49%,transparent 80%); }
.cfh .cfh-postcard-copy { padding:48px 12px 40px 56px; }
.cfh .cfh-postcard .cfh-eyebrow { color:#8c867c; letter-spacing:.28em; margin-bottom:18px; }
.cfh .cfh-postcard h2 { font-family:serif; font-size:clamp(28px,3.2vw,46px); font-weight:400; line-height:1.4; letter-spacing:-.055em; color:inherit; margin:0 0 16px; }
.cfh .cfh-postcard-copy>p:not(.cfh-eyebrow) { font-size:17px; line-height:1.7; color:#666054; }
.cfh a.cfh-postcard-create { display:inline-flex; align-items:center; justify-content:center; gap:38px; border-radius:99px; padding:16px 34px; min-height:52px; margin-top:8px; background:#695d39; color:white; text-decoration:none; font-size:17px; }
.cfh a.cfh-postcard-create[aria-disabled="true"] { opacity:.6; cursor:wait; }
.cfh .cfh-postcard-copy .cfh-postcard-status { font:12px/1.5 sans-serif; min-height:36px; max-width:320px; margin:12px 0 0; }
.cfh .cfh-postcard-art { padding:36px 48px 32px 12px; display:flex; justify-content:center; }
.cfh .cfh-postcard-paper { width:min(100%,290px); aspect-ratio:2/3; transform:rotate(3deg); box-shadow:12px 20px 30px #3d2d1a33,1px 2px 4px #3d2d1a22; background:#faf3e6; }
.cfh .cfh-postcard-paper canvas { width:100%; height:100%; display:block; }
.cfh .cfh-postcard-font { display:block; width:calc(100% - 28px); min-height:44px; margin:0 14px 12px; padding:8px; border:1px solid #e6e0d5; border-radius:6px; background:#fff; color:#64583c; font-size:12px; }
.cfh .cfh-postcard-font[aria-pressed="true"] { background:#f2eadc; border-color:#a49575; }
.cfh[data-cfh-view="fonts"] .cfh-postcard-font { display:none; }
.cfh .cfh-postcard-font:focus-visible,.cfh .cfh-postcard-create:focus-visible { outline:2px solid #695d39; outline-offset:4px; }
@media(max-width:700px) {
 .cfh .cfh-postcard { grid-template-columns:1fr; min-height:0; border-radius:16px; }
 .cfh .cfh-postcard-copy { padding:32px 26px 0; }
 .cfh .cfh-postcard h2 { font-size:32px; }
 .cfh .cfh-postcard-art { padding:10px 40px 40px; }
 .cfh .cfh-postcard-paper { width:min(75%,250px); }
 .cfh .cfh-postcard-copy>p:not(.cfh-eyebrow) { font-size:15px; }
}
@media(prefers-reduced-motion:reduce) { .cfh .cfh-postcard-stage { transition:none; } }
.cfh[data-cfh-view="home"] .cfh-card { display:flex; flex-direction:column; }
.cfh[data-cfh-view="home"] .cfh-card-link { height:auto; flex:1; }

@font-face { font-family: CallifontSamulnori; src: url("https://callifont.com/wp-content/uploads/2026/07/CallifontSamulnori-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }

.cfh [data-cfh-family="CallifontSamulnori"] [data-cfh-text] { font-weight: 500; }
