/*
Theme Name: Inkwell Child
Template: inkwell
Version: 1.0
Text Domain: inkwell-child
*/

/* logo: never wrap (a wrapped brand grows the fixed header and pushes content under it) */
.site-header .logo-text { white-space: nowrap; }
@media (max-width: 480px) { .site-header .logo-text { font-size: 1.05rem; } }

/* the static header is position:fixed — every page-top block must clear it */
.breadcrumb__area { padding-top: 130px; }

/* home masthead (replaces the breadcrumb block that printed a random post title) */
.site-masthead { padding: 150px 0 8px; text-align: center; }
.site-masthead .masthead-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 14px; }
.site-masthead .masthead-tagline { margin: 0 auto; max-width: 640px; color: var(--ink-muted, #6b6560); font-size: 1.05rem; }

/* card: no empty cream box when a post has no featured image */
.blog-mini-card.no-thumb .blog-mini-img { display: none; }

.blg-read-more, .read-more-link { white-space: nowrap; }

/* static pages (the parent's spacing utilities are not in this theme's CSS) */
.egx-blog-7-area { padding: 24px 0 72px; }
.page-article { max-width: 760px; margin: 0 auto; }
.page-article-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 22px; }
.page-article .entry-content p { margin-bottom: 1.05rem; line-height: 1.75; }

/* footer: a real footer instead of the demo one-liner */
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: center; padding: 8px 0 18px; }
.site-footer-inner a { color: inherit; opacity: .85; }
.site-footer-inner a:hover { opacity: 1; }

/* pages print the title twice (breadcrumb h2 + article h1) — keep the h1 */
body.page .breadcrumb__area .title { display: none; }

/* =========================================================
   Custom identity — palette, hero slider, ribbon, footer
   ========================================================= */

:root {
  --rust:        #1f6a3d;   /* accent: pitch green, fleet variant for footballjerseysoutlet */
  --rust-light:  #358553;
  --gold:        #b0872f;
  --dusty-blue:  #2e5470;
  --ink-hero-bg: linear-gradient(160deg, #f7f2e9 0%, #f2ece0 55%, #eee6d6 100%);
  /* sidebar promo widgets read these (affscale-sidebar-promo.php) */
  --afx-ink:    var(--ink, #1a1612);
  --afx-accent: var(--rust);
  --afx-cream:  var(--cream-dark, #f2efe9);
}

/* header: shrinks and gains a hairline once scrolled */
.site-header { transition: padding .28s ease, background .28s ease, box-shadow .28s ease; }
.site-header.is-stuck {
  background: rgba(250,247,242,.92);
  backdrop-filter: saturate(150%) blur(10px);
  box-shadow: 0 1px 0 rgba(26,22,18,.08), 0 10px 30px rgba(26,22,18,.06);
}
.site-header.is-stuck .header-inner { padding-top: 8px; padding-bottom: 8px; }

/* masthead sits tighter now that the hero carries the page */
.site-masthead { padding: 132px 0 4px; }
.site-masthead .masthead-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -.01em; }
.site-masthead .masthead-tagline { font-size: .98rem; }

/* ---------- hero slider ---------- */
.ink-hero { margin: 26px 0 8px; }
.ink-hero-stage {
  position: relative;
  background: var(--ink-hero-bg);
  border: 1px solid rgba(26,22,18,.06);
  border-radius: var(--radius-lg, 24px);
  padding: 46px 54px 78px;
  overflow: hidden;
  min-height: 470px;
}
.ink-hero-stage::before {                 /* faint brass arc, purely decorative */
  content: ""; position: absolute; right: -140px; top: -160px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(176,135,47,.20), rgba(176,135,47,0) 68%);
  pointer-events: none;
}
.ink-slide {
  position: absolute; inset: 46px 54px 78px;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 54px; align-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,1,.36,1);
}
.ink-slide.is-active { opacity: 1; visibility: visible; transform: none; position: relative; inset: auto; }
.ink-slide-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rust);
}
.ink-slide-kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.ink-slide-title {
  font-family: var(--font-serif); font-size: clamp(1.9rem, 3.1vw, 2.9rem);
  line-height: 1.12; letter-spacing: -.015em; margin: 16px 0 14px;
}
.ink-slide-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s ease; }
.ink-slide-title a:hover { background-size: 100% 2px; }
.ink-slide-excerpt { color: var(--ink-muted); font-size: 1.02rem; line-height: 1.7; max-width: 46ch; }
.ink-slide-foot { display: flex; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.ink-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--warm-white); text-decoration: none;
  padding: 13px 24px; border-radius: 999px; font-family: var(--font-sans);
  font-size: .9rem; font-weight: 500; transition: background .3s ease, transform .3s ease;
}
.ink-btn:hover { background: var(--rust); color: #fff; transform: translateY(-2px); }
.ink-btn svg { transition: transform .3s ease; }
.ink-btn:hover svg { transform: translateX(4px); }
.ink-slide-meta { font-family: var(--font-sans); font-size: .84rem; color: var(--ink-faint); }

.ink-slide-media { position: relative; }
.ink-slide-frame {
  position: relative; aspect-ratio: 4 / 4.3; max-height: 400px; margin-left: auto;
  width: min(100%, 400px); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-card, 0 8px 40px rgba(26,22,18,.10));
}
.ink-slide-frame::after {                /* offset block behind the photo */
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.ink-slide-media::before {
  content: ""; position: absolute; right: -14px; top: 22px; bottom: 22px; width: min(100%, 400px);
  border-radius: 20px; border: 1px solid var(--gold); opacity: .5; transform: translateX(16px);
}
.ink-slide-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.001); }

.ink-hero-nav { position: absolute; left: 54px; bottom: 30px; display: flex; align-items: center; gap: 16px; }
.ink-hero-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(26,22,18,.16);
  background: rgba(255,255,255,.6); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .28s ease;
}
.ink-hero-arrow:hover { background: var(--ink); color: var(--warm-white); border-color: var(--ink); }
.ink-hero-dots { display: flex; gap: 8px; }
.ink-dot { width: 26px; height: 3px; border: 0; padding: 0; border-radius: 2px; cursor: pointer;
  background: rgba(26,22,18,.16); transition: background .3s ease, width .3s ease; }
.ink-dot.is-active { background: var(--rust); width: 42px; }

/* ---------- topic ribbon ---------- */
.ink-ribbon { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.ink-pill {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-sans); font-size: .86rem; color: var(--ink-light);
  background: var(--warm-white); border: 1px solid rgba(26,22,18,.08);
  padding: 9px 16px; border-radius: 999px; transition: all .28s ease;
}
.ink-pill span { font-size: .74rem; color: var(--ink-faint); }
.ink-pill:hover { background: var(--ink); color: var(--warm-white); border-color: var(--ink); transform: translateY(-2px); }
.ink-pill:hover span { color: rgba(255,255,255,.6); }

/* ---------- cards: a little more life ---------- */
.blog-mini-card { transition: transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s ease; }
.blog-mini-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover, 0 16px 56px rgba(26,22,18,.16)); }

/* ---------- footer ---------- */
.site-footer-inner { border-top: 1px solid rgba(26,22,18,.08); padding-top: 22px; }
.footer__copyright-text { font-size: .86rem; color: var(--ink-muted); padding-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .ink-hero-stage { padding: 34px 26px 74px; min-height: 0; }
  .ink-slide { position: static; inset: auto; grid-template-columns: 1fr; gap: 26px; }
  .ink-slide:not(.is-active) { display: none; }
  .ink-slide-media { order: -1; }
  .ink-slide-media::before { display: none; }
  .ink-slide-frame { margin: 0 auto; width: min(100%, 300px); aspect-ratio: 4/3.4; max-height: 260px; }
  .ink-hero-nav { left: 26px; bottom: 26px; }
  .site-masthead { padding-top: 112px; }
}

/* reading progress + back to top */
.ink-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--rust), var(--gold)); z-index: 100000; transition: width .1s linear; }
.ink-top { position: fixed; right: 26px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(26,22,18,.12); background: var(--warm-white); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s ease; z-index: 9999; }
.ink-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.ink-top:hover { background: var(--ink); color: var(--warm-white); }

/* single post: the breadcrumb repeats the H1, and portrait covers ran full height */
body.single .breadcrumb__area .title { display: none; }
body.single .breadcrumb__area-two { padding-top: 112px; padding-bottom: 0; }
.article-cover img { max-height: 520px; width: 100%; object-fit: cover; object-position: center 35%; border-radius: 20px; }

/* home H1 carries the tagline, so it reads as a line of type, not a second logo */
body.home .site-masthead .masthead-title,
body.blog .site-masthead .masthead-title {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--ink-light); letter-spacing: -.01em; max-width: 22ch; margin: 0 auto;
}

/* ---------- single-post depth: TOC, related, prev/next ---------- */
.ink-toc {
  margin: 0 0 30px; padding: 20px 24px; border-radius: 16px;
  background: var(--cream-dark); border: 1px solid rgba(26,22,18,.06);
}
.ink-toc-label { display: block; font-family: var(--font-sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rust); margin-bottom: 10px; }
.ink-toc ol { margin: 0; padding-left: 18px; }
.ink-toc li { margin: 5px 0; line-height: 1.45; }
.ink-toc li.ink-toc-l3 { margin-left: 16px; font-size: .94em; }
.ink-toc a { color: var(--ink-light); text-decoration: none; border-bottom: 1px solid transparent; }
.ink-toc a:hover { color: var(--rust); border-bottom-color: currentColor; }
html { scroll-padding-top: 110px; }          /* fixed header must not cover the anchor */

.ink-related { margin: 54px 0 8px; }
.ink-related-head { font-family: var(--font-serif); font-size: 1.5rem; margin: 0 0 20px; }
.ink-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ink-rel-card { display: block; text-decoration: none; background: var(--warm-white);
  border: 1px solid rgba(26,22,18,.07); border-radius: 14px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease; }
.ink-rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.ink-rel-img { display: block; aspect-ratio: 16/10; overflow: hidden; }
.ink-rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ink-rel-cat { display: block; padding: 12px 14px 0; font-family: var(--font-sans);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); }
.ink-rel-title { display: block; padding: 4px 14px 16px; font-family: var(--font-serif);
  font-size: 1rem; line-height: 1.35; color: var(--ink); }

.ink-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 10px; }
.ink-adj { display: block; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  border: 1px solid rgba(26,22,18,.08); color: var(--ink); font-family: var(--font-serif);
  line-height: 1.35; transition: border-color .3s ease, background .3s ease; }
.ink-adj:hover { border-color: var(--rust); background: var(--cream-dark); }
.ink-adj span { display: block; font-family: var(--font-sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.ink-adj-next { text-align: right; }

@media (max-width: 767px) {
  .ink-rel-grid { grid-template-columns: 1fr; }
  .ink-adjacent { grid-template-columns: 1fr; }
  .ink-adj-next { text-align: left; }
}
