/*
 * The InkArtists blog: /blog and each post.
 * Served as-is (no build step); every rule is scoped under .bl.
 * One shop with the guest home, /clients, /pricing and the guides: the ink
 * front window with the two-tone headline, paper rooms after it. The blog's
 * own object is the print taped up in the shop: every photo hangs by a strip
 * of masking tape, the way flash goes up on the wall.
 * Brand: ink #1C1712, paper #F7F3EC, ember #D65A31.
 */

.bl {
    --ink: #1C1712;
    --ink-2: #231C16;
    --paper: #F7F3EC;
    --paper-2: #EFE6D8;
    --card: #FFFDF8;
    --line: #E6DFD3;
    --soft: #6B5F53;
    --body: #2B231D;
    --ember: #D65A31;
    --ember-ui: #C24E26;
    --ember-deep: #A83E1E;
    --ember-glow: #FF9B72;
    --on-ink-soft: #CDBFAE;
    --tape: rgba(242, 233, 218, .82);
    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: Satoshi, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --pad: clamp(56px, 7vw, 100px);
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    overflow-x: clip;
}

@layer bl-reset {
    :where(.bl) *, :where(.bl) *::before, :where(.bl) *::after { box-sizing: border-box; }
    :where(.bl) :where(img) { display: block; max-width: 100%; height: auto; }
    :where(.bl) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
    :where(.bl) :where(h1, h2, h3, h4, p, figure, blockquote) { margin: 0; }
    :where(.bl) :where(a) { color: inherit; text-decoration: none; }
}
.bl :focus-visible { outline: 3px solid var(--ember-glow); outline-offset: 3px; }

.bl-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
@media (min-width: 640px) { .bl-wrap { width: min(1180px, 100% - 64px); } }

.bl-kicker { font: 800 12px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ember-glow); }
.bl-window h1, .bl-h2, .bl-lead__title, .bl-card__title {
    font-family: var(--display); font-weight: 640; letter-spacing: -0.01em;
    font-variation-settings: "opsz" 144, "SOFT" 100; text-wrap: balance; overflow-wrap: break-word;
}

/* ═══════════════════════ THE FRONT WINDOW ═══════════════════════ */
.bl-window {
    color: var(--paper); padding: clamp(32px, 4.5vw, 64px) 0 clamp(52px, 6vw, 86px);
    background: radial-gradient(900px 520px at 85% 0%, rgba(214, 90, 49, .16), transparent 62%), var(--ink);
}
.bl-window__copy { display: grid; gap: 20px; max-width: 820px; }
.bl-window h1 { font-size: clamp(2.4rem, 1.35rem + 4vw, 4.4rem); line-height: 1.04; color: var(--paper); }
.bl-window h1 span { color: var(--ember-glow); font-style: italic; }
.bl-lede { max-width: 620px; font-size: clamp(16px, .95rem + .3vw, 18.5px); line-height: 1.6; color: rgba(247, 243, 236, .84); }
.bl-admin {
    justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
    border: 1.5px solid rgba(247, 243, 236, .3); border-radius: 999px; font: 800 14px/1 var(--sans); color: var(--paper);
}
.bl-admin:hover { border-color: var(--paper); }

/* A post's window: the way back, what it is, its title, the line under it,
   and beside it on a wide screen the post's photo as a taped-up print. */
.bl-window--post { padding-bottom: clamp(52px, 6vw, 84px); }
.bl-window__grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .bl-window__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.bl-window--post h1 { font-size: clamp(2.2rem, 1.3rem + 3.3vw, 3.9rem); line-height: 1.06; max-width: 22ch; }
.bl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--on-ink-soft); }
.bl-crumbs a { color: var(--paper); font-weight: 700; border-bottom: 1px solid rgba(247, 243, 236, .35); }
.bl-crumbs a:hover { border-color: var(--paper); }
.bl-dek { max-width: 640px; font-size: clamp(17px, 1rem + .35vw, 20px); line-height: 1.55; color: rgba(247, 243, 236, .86); }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; font-weight: 600; color: var(--on-ink-soft); }
.bl-meta span + span::before { content: "·"; margin-right: 10px; color: rgba(205, 191, 174, .6); }
.bl-preview {
    display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 22px; padding: 12px 16px;
    border: 1px dashed rgba(255, 155, 114, .55); border-radius: 12px; font-size: 14px; color: var(--paper);
}
.bl-preview a { font-weight: 800; color: var(--ember-glow); text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════════════ THE PRINT (tape strip) ═══════════════════════ */
.bl-print { position: relative; }
.bl-print::before {
    content: ""; position: absolute; z-index: 2; top: -11px; left: 50%; width: 108px; height: 26px; margin-left: -54px;
    background: var(--tape); border: 1px solid rgba(28, 23, 18, .06);
    box-shadow: 0 2px 6px -3px rgba(28, 23, 18, .35); transform: rotate(-2.5deg);
    clip-path: polygon(2% 8%, 98% 0, 100% 92%, 0 100%);
}

/* The post's photo: a print with a white border, taped up at a slight tilt. */
.bl-cover { justify-self: center; width: min(420px, 100%); }
.bl-cover--wide { width: min(560px, 100%); }
.bl-cover__frame { padding: 10px 10px 16px; background: var(--card); border-radius: 4px; transform: rotate(1.6deg); box-shadow: 0 34px 64px -30px rgba(0, 0, 0, .9); }
.bl-cover__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--paper-2); }
.bl-cover--wide .bl-cover__frame img { aspect-ratio: auto; object-fit: contain; }
@media (max-width: 640px) { .bl-cover { width: min(420px, 92%); } .bl-cover__frame { transform: rotate(1deg); } }
.bl-cover figcaption { margin-top: 20px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--on-ink-soft); }
.bl-cover figcaption a { font-weight: 700; color: var(--paper); border-bottom: 1px solid rgba(247, 243, 236, .4); }
.bl-cover figcaption a:hover { border-color: var(--paper); }
.bl-figure figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.bl-figure figcaption a { font-weight: 700; color: var(--ember-deep); border-bottom: 1px solid rgba(168, 62, 30, .35); }
.bl-figure figcaption a:hover { border-color: var(--ember-deep); }

/* ═══════════════════════ THE ARTICLE ═══════════════════════ */
.bl-post { padding: clamp(40px, 5vw, 64px) 0 var(--pad); }
.bl-prose { width: min(680px, 100% - 32px); margin-inline: auto; color: var(--body); font-size: 17px; line-height: 1.75; }
@media (min-width: 640px) { .bl-prose { font-size: 18.5px; } }
.bl-prose > * + * { margin-top: 1.1em; }
.bl-prose h2 {
    margin-top: 2.1em; font: 640 clamp(1.55rem, 1.2rem + 1.2vw, 2rem)/1.2 var(--display); letter-spacing: -0.01em;
    font-variation-settings: "opsz" 144, "SOFT" 100; color: var(--ink); text-wrap: balance;
}
.bl-prose h3 { margin-top: 1.7em; font: 800 1.12em/1.35 var(--sans); color: var(--ink); }
.bl-prose h4 { margin-top: 1.4em; font-weight: 800; color: var(--ink); }
.bl-prose :is(h2, h3, h4) + * { margin-top: .6em; }
.bl-prose ul > li, .bl-prose ol > li { position: relative; padding-left: 1.5em; }
.bl-prose li + li { margin-top: .5em; }
.bl-prose ul > li::before {
    content: ""; position: absolute; left: .3em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--ember);
}
.bl-prose ol { counter-reset: bl-step; }
.bl-prose ol > li { counter-increment: bl-step; padding-left: 2em; }
.bl-prose ol > li::before {
    content: counter(bl-step) "."; position: absolute; left: 0; top: 0; min-width: 1.6em;
    font: 650 1.05em/1.75 var(--display); color: var(--ember-deep); font-variant-numeric: lining-nums;
}
.bl-prose a { color: var(--ember-deep); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.bl-prose a:hover { color: var(--ember); }
.bl-prose strong { color: var(--ink); font-weight: 750; }
.bl-prose blockquote { padding-left: 1.1em; border-left: 3px solid var(--ember); font: italic 500 1.2em/1.55 var(--display); color: var(--ink); }

/* Pictures in the text: real work at its own shape, as a print; app screens as a phone. */
.bl-figure { margin-top: 2.4em; margin-bottom: 2.4em; }
.bl-figure--work { display: grid; justify-items: center; }
.bl-figure--work .bl-figure__frame { padding: 9px 9px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; transform: rotate(-1deg); box-shadow: 0 26px 52px -30px rgba(28, 23, 18, .55); }
.bl-figure--work img { width: auto; max-width: 100%; max-height: min(78vh, 680px); border-radius: 2px; }
.bl-figure--work figcaption { text-align: center; }
.bl-figure--screen { width: min(300px, 78%); margin-inline: auto; text-align: center; }
.bl-figure--screen .bl-figure__frame { overflow: hidden; border-radius: 30px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 30px 60px -32px rgba(28, 23, 18, .55); }
.bl-figure--screen figcaption { text-align: center; }

/* The end of the post: who wrote it, then share and like. */
.bl-end {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    width: min(680px, 100% - 32px); margin: clamp(40px, 5vw, 56px) auto 0; padding-top: 22px; border-top: 1.5px dashed rgba(28, 23, 18, .18);
}
.bl-byline { display: flex; align-items: center; gap: 12px; }
.bl-byline img { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); object-fit: cover; }
.bl-byline__who { display: grid; gap: 2px; font-size: 14.5px; font-weight: 750; color: var(--ink); }
.bl-byline__who small { font-size: 13px; font-weight: 600; color: var(--soft); }
.bl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bl-pill {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid var(--line); background: var(--card); font: 800 14px/1 var(--sans); color: var(--ink);
    transition: border-color .15s, color .15s;
}
.bl-pill:hover { border-color: var(--ember); }
.bl-pill i { font-size: 13px; }
.bl-pill[aria-pressed="true"] { border-color: var(--ember); color: var(--ember-deep); }
.bl-pill__count { font-weight: 700; color: var(--soft); }
.bl-feedback { font-size: 13px; font-weight: 700; color: var(--soft); }

/* ═══════════════════════ THE LIST ═══════════════════════ */
.bl-room { padding: clamp(44px, 5vw, 72px) 0 var(--pad); }
.bl-h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); line-height: 1.1; }

/* The newest post, hung large. */
.bl-lead {
    display: grid; gap: 0; overflow: visible; margin-top: 12px; background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; box-shadow: 0 30px 60px -44px rgba(28, 23, 18, .6); transition: transform .2s, box-shadow .2s;
}
.bl-lead:hover { transform: translateY(-3px); box-shadow: 0 36px 66px -40px rgba(28, 23, 18, .65); }
@media (min-width: 900px) { .bl-lead { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; } }
.bl-lead__photo { padding: 14px 14px 0; }
@media (min-width: 900px) { .bl-lead__photo { padding: 14px 0 14px 14px; } }
.bl-lead__photo .bl-print { height: 100%; }
.bl-lead__photo img, .bl-lead__photo .bl-blank { width: 100%; height: 100%; min-height: 260px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.bl-lead__body { display: grid; align-content: center; gap: 14px; padding: clamp(22px, 3vw, 40px); }
.bl-lead__title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; color: var(--ink); }
.bl-lead__text { font-size: 16.5px; line-height: 1.6; color: var(--soft); }
.bl-tag { font: 800 11.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ember-deep); }
.bl-date { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13.5px; font-weight: 600; color: var(--soft); }
.bl-date span + span::before { content: "·"; margin-right: 10px; color: rgba(107, 95, 83, .5); }
.bl-more-link { justify-self: start; font: 800 15px/1.2 var(--sans); color: var(--ember-ui); border-bottom: 1.5px solid rgba(194, 78, 38, .35); }
.bl-lead:hover .bl-more-link { border-color: var(--ember-ui); }

/* Every other post, a print on a card. */
.bl-grid { display: grid; gap: 24px; margin-top: clamp(28px, 3vw, 40px); }
@media (min-width: 680px) { .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bl-card {
    display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 24px 48px -40px rgba(28, 23, 18, .55); transition: transform .2s, box-shadow .2s;
}
.bl-card:hover { transform: translateY(-3px); box-shadow: 0 30px 56px -38px rgba(28, 23, 18, .6); }
.bl-card__photo { padding: 12px 12px 0; }
.bl-card__photo img, .bl-card__photo .bl-blank { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
/* An uploaded cover is a wide banner, often with words in it: shown whole, never cropped. */
.bl-card__photo img.is-upload, .bl-lead__photo img.is-upload { object-fit: contain; background: var(--paper-2); padding: 10px; }
.bl-card__body { display: grid; align-content: start; gap: 10px; padding: 18px 20px 22px; }
.bl-card__title { font-size: 1.32rem; line-height: 1.18; color: var(--ink); }
.bl-card__text { font-size: 15px; line-height: 1.55; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* No photo: the ink window in small, with the title's first letter. */
.bl-blank {
    display: grid; place-items: center; background: radial-gradient(300px 200px at 80% 0%, rgba(214, 90, 49, .28), transparent 70%), var(--ink);
    color: var(--ember-glow); font: italic 640 clamp(3rem, 2rem + 3vw, 4.4rem)/1 var(--display);
}

.bl-pages { margin-top: clamp(32px, 4vw, 48px); }
.bl-empty { padding: 48px 24px; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: 18px; }
.bl-empty h2 { font: 640 1.6rem/1.2 var(--display); }
.bl-empty p { margin-top: 8px; color: var(--soft); }

/* Keep reading, under a post. */
.bl-next { padding: var(--pad) 0; background: var(--paper-2); }

/* ═══════════════════════ LANGUAGES ═══════════════════════ */
.bl:lang(ja) :is(.bl-window h1, .bl-h2, .bl-lead__title, .bl-card__title, .bl-prose h2),
.bl:lang(ko) :is(.bl-window h1, .bl-h2, .bl-lead__title, .bl-card__title, .bl-prose h2) { font-weight: 700; letter-spacing: 0; }
.bl:lang(ja) :is(.bl-window h1, .bl-h2, .bl-lead__title, .bl-card__title, .bl-prose h2) {
    font-family: "Fraunces", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; word-break: auto-phrase;
}
.bl:lang(ko) :is(.bl-window h1, .bl-h2, .bl-lead__title, .bl-card__title, .bl-prose h2) {
    font-family: "Fraunces", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
.bl:lang(ko) { word-break: keep-all; }
.bl:lang(ja) .bl-window h1 span, .bl:lang(ko) .bl-window h1 span { font-style: normal; }
.bl:lang(ja) .bl-window h1, .bl:lang(ko) .bl-window h1 { line-height: 1.2; }
.bl:lang(ja) :is(.bl-kicker, .bl-tag), .bl:lang(ko) :is(.bl-kicker, .bl-tag), .bl:lang(ru) :is(.bl-kicker, .bl-tag), .bl:lang(uk) :is(.bl-kicker, .bl-tag) { letter-spacing: .08em; }

@media (prefers-reduced-motion: reduce) {
    .bl-lead, .bl-card { transition: none; }
    .bl-lead:hover, .bl-card:hover { transform: none; }
}
