/* ============================================================
   SAEHAE STUDIO — Journal (blog) styles
   Loaded AFTER legal.css, which supplies the design tokens,
   base type, nav and footer. This file adds only blog-specific
   layout: index cards, article typography, breadcrumb, CTA.
   ============================================================ */

/* ---------- shared ---------- */
.blog-hero{padding-top:64px;padding-bottom:18px}
.blog-hero h1{font-size:clamp(2.2rem,5vw,3.4rem);margin:14px 0 14px}
.blog-hero .lede{font-size:1.05rem;color:var(--ink-soft);max-width:62ch}

/* The breadcrumb is a <nav>, so it inherits legal.css's global nav{} rule
   (sticky, flex, space-between, border-bottom). Unset all of that. */
.breadcrumb{position:static;display:block;justify-content:normal;align-items:normal;
  background:none;backdrop-filter:none;border-bottom:0;z-index:auto;
  padding:22px 0 0;font-size:.78rem;letter-spacing:.06em;color:var(--ink-soft)}
.breadcrumb a{color:var(--ink-soft);transition:color .2s}
.breadcrumb a:hover{color:var(--sage)}
.breadcrumb .sep{margin:0 8px;opacity:.5}
.breadcrumb [aria-current]{color:var(--ink)}

/* ---------- index: post cards ---------- */
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:40px 36px;padding:34px 0 96px}
.post-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;transition:transform .35s cubic-bezier(.2,.7,.3,1),box-shadow .35s}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
/* Taller box than a 3:2 card: these are portrait paintings, and a wide crop of a tall
   image throws away the heads. 4:3 keeps far more of the figure in frame. */
.post-card .thumb{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--ivory-deep)}
/* Default crop is top-biased, never centred: on a tall image a centred cover-crop
   can cut heads off. Per-image nudges below. THIS IS A PORTRAIT STUDIO: never crop a face. */
.post-card .thumb img{width:100%;height:100%;object-fit:cover;object-position:50% 40%;
  transition:transform .6s cubic-bezier(.2,.7,.3,1)}
/* Card thumbnails are ATMOSPHERIC stock, deliberately not the paintings: the real
   commissions carry the homepage portfolio and the in-article showcase figures, and
   reusing them here made a small catalogue of work look smaller still. */
.post-card .thumb img.crop-table{object-position:50% 42%}   /* wedding-table, 1600x2000 tall */
.post-card .thumb img.crop-album{object-position:50% 46%}   /* couple-choosing-photos, 1600x1067 */
.post-card .thumb img.crop-texture{object-position:50% 50%} /* paint-texture, 1600x1107 */
/* Honesty note, consistent with the article captions: a card must never imply the
   thumbnail is a Saehae commission. */
.post-card .thumb .thumb-note{position:absolute;left:8px;bottom:8px;z-index:2;
  font-size:.58rem;letter-spacing:.05em;line-height:1.3;color:rgba(255,247,242,.92);
  background:rgba(27,24,19,.55);backdrop-filter:blur(2px);padding:3px 8px;border-radius:4px}
.post-card:hover .thumb img{transform:scale(1.04)}
.post-card .body{display:flex;flex-direction:column;flex:1;padding:26px 26px 28px}
.post-card .kicker{font-size:.68rem;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:var(--sage);margin-bottom:11px}
.post-card h2{font-size:1.34rem;line-height:1.25;margin-bottom:11px}
.post-card h2 a{transition:color .2s}
.post-card:hover h2 a{color:var(--sage)}
.post-card p{font-size:.95rem;color:var(--ink-soft);margin-bottom:20px}
.post-card .meta{margin-top:auto;font-size:.78rem;color:var(--ink-soft);letter-spacing:.02em;display:flex;gap:10px;align-items:center}
.post-card .meta .dot{opacity:.4}
.post-card .more{display:inline-block;margin-top:14px;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;font-weight:600;color:var(--sage);border-bottom:1px solid transparent;transition:border-color .25s;align-self:flex-start}
.post-card:hover .more{border-color:var(--sage)}

/* ---------- article ---------- */
.article-wrap{max-width:768px;margin:0 auto;padding:0 32px;position:relative;z-index:2}
.article-head{padding:26px 0 8px}
.article-head .kicker{font-size:.7rem;font-weight:600;letter-spacing:.26em;text-transform:uppercase;color:var(--sage)}
.article-head h1{font-size:clamp(2rem,4.4vw,3rem);margin:16px 0 18px;letter-spacing:-.015em}
.article-head .standfirst{font-size:1.12rem;line-height:1.66;color:var(--ink-soft);margin-bottom:22px}
.article-head .byline{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:.82rem;color:var(--ink-soft);padding-bottom:26px;border-bottom:1px solid var(--line)}
.article-head .byline .dot{opacity:.4}

.article-body{padding:34px 0 20px}
.article-body p{color:var(--ink-soft);margin-bottom:20px;font-size:1.03rem}
.article-body h2{font-size:1.62rem;margin:46px 0 16px;letter-spacing:-.01em}
.article-body h3{font-size:1.16rem;margin:32px 0 10px}
.article-body ul,.article-body ol{margin:0 0 22px 1.25rem;color:var(--ink-soft)}
.article-body li{margin-bottom:10px;padding-left:6px}
.article-body strong{color:var(--ink);font-weight:600}
.article-body em{font-style:italic}
.article-body a{color:var(--sage);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
.article-body a:hover{color:var(--ink)}
.article-body blockquote{margin:34px 0;padding:6px 0 6px 26px;border-left:2px solid var(--gold);font-family:var(--serif);font-size:1.28rem;line-height:1.5;color:var(--ink)}

/* pull-out: the one line that matters */
.keyline{background:var(--ivory-deep);border:1px solid var(--line);border-left:3px solid var(--sage);border-radius:8px;padding:20px 24px;margin:30px 0}
.keyline p{margin:0;color:var(--ink)}

/* figures */
figure{margin:36px 0}
figure img{width:100%;height:auto;border-radius:8px;border:1px solid var(--line)}
figcaption{font-size:.84rem;color:var(--ink-soft);margin-top:12px;line-height:1.6;font-style:italic}

/* Supporting (atmospheric) images. NEVER the studio's own work: this note is mandatory
   on every stock image so it can't be read as a Saehae commission. */
.stock{display:block;margin-top:5px;font-style:normal;font-size:.76rem;letter-spacing:.04em;color:var(--ink-soft);opacity:.75}

/* Supporting figures are capped in height so a tall stock photo cannot dominate the
   article the way a real painting is allowed to. Crop is top-biased, never centred,
   so a face is never cut. The studio's own paintings (plain <figure>) are NEVER cropped. */
.fig-sup img{width:100%;height:auto;max-height:620px;object-fit:cover;object-position:50% 40%}
.fig-sup.sup-face img{object-position:50% 22%}   /* window-light: keep the face in frame */
.fig-sup.sup-top img{object-position:50% 30%}

/* PLACEHOLDER for an image still to be sourced. Must not survive to production:
   the deploy step fails if any .img-todo remains in the built pages. */
.img-todo{margin:36px 0}
.img-todo .ph{border:2px dashed var(--gold);border-radius:8px;background:rgba(166,128,62,.06);padding:20px 22px}
.img-todo .ph-tag{display:inline-block;font-family:var(--sans);font-size:.6rem;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:#8a6a2f;background:rgba(166,128,62,.18);border-radius:4px;padding:4px 9px;margin-bottom:6px}
.img-todo dl{margin:0;font-size:.86rem;color:var(--ink-soft);line-height:1.6}
.img-todo dt{font-family:var(--sans);font-size:.66rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--sage);margin-top:11px}
.img-todo dd{margin:1px 0 0}
.img-todo code{background:rgba(27,24,19,.07);padding:1px 6px;border-radius:4px;font-size:.86em;word-break:break-all}
.img-todo a{color:var(--sage);text-decoration:underline;text-underline-offset:2px}

/* comparison table */
.cmp{width:100%;border-collapse:collapse;margin:26px 0 30px;font-size:.95rem}
.cmp th,.cmp td{text-align:left;vertical-align:top;padding:13px 16px;border:1px solid var(--line);color:var(--ink-soft)}
.cmp thead th{font-family:var(--sans);font-weight:600;color:var(--ink);background:var(--ivory-deep);font-size:.82rem;letter-spacing:.06em;text-transform:uppercase}
.cmp tbody th{font-weight:600;color:var(--ink);width:26%}

/* sources */
.sources{margin:44px 0 0;padding:22px 0 0;border-top:1px solid var(--line)}
.sources h2{font-family:var(--sans);font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--sage);margin:0 0 12px}
.sources ol{margin:0 0 0 1.1rem;font-size:.86rem;color:var(--ink-soft)}
.sources li{margin-bottom:7px}
.sources a{color:var(--ink-soft);text-decoration:underline;text-underline-offset:2px}
.sources a:hover{color:var(--sage)}

/* enquiry CTA */
.cta-block{background:var(--ink);color:var(--ivory);border-radius:12px;padding:44px 40px;margin:52px 0 10px;text-align:center}
.cta-block h2{font-size:1.7rem;margin:0 0 12px;color:var(--ivory)}
.cta-block p{color:rgba(255,247,242,.72);max-width:48ch;margin:0 auto 26px;font-size:1rem}
.cta-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* ---------------------------------------------------------------------------
   CTA buttons reuse the SITE'S button system (same tokens as index.html's .btn)
   instead of a parallel blog-only one, so they cannot drift from the main site.

   They MUST be scoped under `.article-body` and carry text-decoration:none.
   The buttons sit inside <main class="article-body">, where `.article-body a`
   (specificity 0,1,1) out-ranks a bare `.cta-ghost` (0,1,0) and was recolouring
   and underlining them. Worse, `.article-body a:hover` forced color:var(--ink)
   -- the exact background of this dark panel -- so the label vanished at the
   moment of click. Every rule below is specificity 0,3,0 and wins cleanly.
   --------------------------------------------------------------------------- */
.article-body .cta-block .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:16px 30px;border-radius:44px;font-size:.86rem;letter-spacing:.06em;font-weight:600;
  border:1px solid transparent;cursor:pointer;transition:all .3s;text-decoration:none}

/* Primary: the site's solid rose-gold pill (same tokens as "Start a partnership"). */
.article-body .cta-block .btn-primary{background:var(--sage-light);border-color:var(--sage-light);color:var(--espresso)}
.article-body .cta-block .btn-primary:hover,
.article-body .cta-block .btn-primary:focus-visible,
.article-body .cta-block .btn-primary:active{background:var(--sage);border-color:var(--sage);color:var(--ivory);transform:translateY(-2px)}

/* Secondary on a dark panel: the site's dark-card ghost (same tokens as the tier buttons). */
.article-body .cta-block .btn-ghost{background:transparent;border-color:var(--ivory);color:var(--ivory)}
.article-body .cta-block .btn-ghost:hover,
.article-body .cta-block .btn-ghost:focus-visible,
.article-body .cta-block .btn-ghost:active{background:var(--sage-light);border-color:var(--sage-light);color:var(--espresso);transform:translateY(-2px)}

/* Visible keyboard focus ring on the dark panel. */
.article-body .cta-block .btn:focus-visible{outline:2px solid var(--ivory);outline-offset:3px}

/* keep reading */
.read-next{margin:56px 0 90px;padding:26px 0 0;border-top:1px solid var(--line)}
.read-next h2{font-family:var(--sans);font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--sage);margin:0 0 18px}
.read-next .links{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.read-next a{display:block;border:1px solid var(--line);border-radius:8px;padding:18px 20px;transition:all .25s}
.read-next a:hover{border-color:var(--ink);transform:translateY(-2px)}
.read-next .rn-k{display:block;font-size:.66rem;letter-spacing:.2em;text-transform:uppercase;color:var(--sage);margin-bottom:7px;font-weight:600}
.read-next .rn-t{font-family:var(--serif);font-size:1.04rem;line-height:1.35;color:var(--ink)}

@media(max-width:640px){
  .article-wrap{padding:0 22px}
  .blog-hero{padding-top:44px;padding-bottom:12px}
  .post-grid{grid-template-columns:1fr;gap:30px;padding:26px 0 70px}
  .cta-block{padding:34px 24px}
  .read-next .links{grid-template-columns:1fr}
  .article-body blockquote{font-size:1.14rem;padding-left:18px}
  .cmp thead{display:none}
  .cmp tbody th,.cmp td{display:block;width:100%;border-bottom:0}
  .cmp tbody tr{display:block;border-bottom:1px solid var(--line);margin-bottom:14px}
  .cmp td::before{content:attr(data-label);display:block;font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--sage);font-weight:600;margin-bottom:5px}
}
