/* ============================================================================
 * NoblePaws Journal — shared editorial stylesheet
 * Loaded by journal/index.html and each post at journal/posts/*.html.
 * Keeps typography tight, reading width generous, ornament minimal.
 * ==========================================================================*/

:root {
  --forest: #2c4a3e;
  --forest-deep: #223a31;
  --linen:  #f0ece5;
  --cream:  #faf8f4;
  --terra:  #dd7a02;
  --terra-deep: #b06000;
  --ink:    #1a1a1a;
  --ink-soft: #4a4a4a;
  --line:   rgba(44, 74, 62, 0.14);
  --line-soft: rgba(44, 74, 62, 0.08);

  --display: 'Playfair Display', 'Times New Roman', serif;
  --body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --max-w: 1440px;
  --pad-x: clamp(20px, 4vw, 56px);
  --header-h: 72px;
}

* , *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img, svg { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--terra); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* -----------------------------------------
 * Skip link
 * --------------------------------------- */
.skip-link {
  position: absolute; top: -999px; left: 8px;
  background: var(--forest); color: var(--cream);
  padding: 12px 20px; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
  border-radius: 2px; z-index: 500; text-decoration: none;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

/* -----------------------------------------
 * Minimal header (shared with home's look)
 * --------------------------------------- */
.journal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.journal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.journal-brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.01em;
  color: var(--forest);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.journal-brand em { font-style: italic; font-weight: 400; color: var(--terra); }
.journal-brand:hover { color: var(--forest); opacity: 0.85; }
.journal-brand-paw {
  width: clamp(16px, 1.6vw, 20px);
  color: var(--forest);
  opacity: 0.85;
  transform: translateY(-2px);
}
.journal-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.journal-nav a { position: relative; }
.journal-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 1px;
  background: var(--terra);
  transition: right 0.4s var(--ease);
}
.journal-nav a:hover::after { right: 0; }
.journal-nav a.is-current::after { right: 0; }
@media (max-width: 640px) {
  .journal-nav { gap: 16px; font-size: 11px; }
  .journal-nav a.is-hide-sm { display: none; }
}

/* -----------------------------------------
 * Journal index — listing page
 * --------------------------------------- */
.journal-hero {
  padding: clamp(60px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
  background: var(--linen);
  border-bottom: 1px solid var(--line-soft);
}
.journal-hero .eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-block;
}
.journal-hero .eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--forest);
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-2px);
}
.journal-hero h1 {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1;
  color: var(--forest);
  margin: 18px 0 20px;
  max-width: 14ch;
}
.journal-hero p {
  max-width: 56ch;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

.journal-list {
  padding: clamp(56px, 8vw, 100px) 0;
}
.journal-category-head {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.journal-category-head:not(:first-of-type) { margin-top: clamp(56px, 7vw, 96px); }

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px);
}
@media (max-width: 1000px) { .journal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .journal-grid { grid-template-columns: 1fr; } }

.journal-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line-soft);
  transition: transform 0.3s var(--ease);
}
.journal-card:hover { transform: translateY(-2px); }
.journal-card-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.journal-card-meta .journal-card-pillar { color: var(--forest); font-weight: 500; }
.journal-card h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  color: var(--forest);
  font-weight: 500;
}
.journal-card:hover h3 { color: var(--terra); }
.journal-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.journal-card-link {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--forest);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.journal-card-link svg { width: 10px; height: 10px; }
.journal-card:hover .journal-card-link { color: var(--terra); }

.journal-card.is-stub {
  position: relative;
  opacity: 0.92;
}
.journal-card.is-stub::after {
  content: 'Coming soon';
  position: absolute;
  top: 24px;
  right: 0;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
}
.journal-card.is-stub .journal-card-link { color: var(--ink-soft); }
.journal-card.is-stub:hover { transform: none; }
.journal-card.is-stub:hover h3 { color: var(--forest); }

/* -----------------------------------------
 * Post template
 * --------------------------------------- */
.post {
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
}
.post-body {
  max-width: 680px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.post-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.post-breadcrumb a { color: var(--ink-soft); }
.post-breadcrumb a:hover { color: var(--terra); }
.post-breadcrumb .sep {
  display: inline-block;
  margin: 0 10px;
  color: var(--line);
}
.post-pillar {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 18px;
}
.post-pillar::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--forest);
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-2px);
}
.post-title {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.05;
  color: var(--forest);
  font-weight: 500;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.post-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.post-meta .dot { opacity: 0.35; }

.post-hero-img {
  aspect-ratio: 3 / 2;
  background: var(--linen);
  overflow: hidden;
  margin: 0 0 40px;
  border-radius: 2px;
}
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-figure figcaption {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.5;
}

/* Prose — long-form reading */
.post-prose {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
@media (max-width: 560px) {
  .post-prose { font-size: 17px; }
}
.post-prose p { margin: 0 0 22px; }
.post-prose > p:first-child::first-letter {
  font-family: var(--display);
  font-size: 3.4em;
  font-weight: 500;
  color: var(--forest);
  float: left;
  line-height: 0.9;
  margin: 8px 12px 0 0;
}
.post-prose h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.2;
  color: var(--forest);
  margin: 56px 0 18px;
  font-weight: 500;
}
.post-prose h3 {
  font-size: clamp(19px, 2.1vw, 22px);
  line-height: 1.3;
  color: var(--ink);
  margin: 36px 0 12px;
  font-weight: 500;
}
.post-prose ul, .post-prose ol {
  padding-left: 22px;
  margin: 0 0 22px;
}
.post-prose li { margin-bottom: 10px; line-height: 1.7; }
.post-prose strong { color: var(--ink); font-weight: 500; }
.post-prose a {
  color: var(--terra);
  border-bottom: 1px solid currentColor;
}
.post-prose a:hover { color: var(--terra-deep); }
.post-prose blockquote {
  margin: 36px 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--terra);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  color: var(--forest);
  max-width: 32ch;
}
.post-prose hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 44px 0;
}

/* Pull-box — asides/insights */
.post-aside {
  margin: 36px 0;
  padding: 22px 26px;
  background: var(--linen);
  border-left: 2px solid var(--forest);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
}
.post-aside .post-aside-label {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 8px;
  display: block;
}
.post-aside p:last-child { margin-bottom: 0; }

/* Inline illustration for guides — neutral editorial, not stock */
.post-inline-img {
  margin: 32px 0;
  aspect-ratio: 3 / 2;
  background: var(--linen);
  overflow: hidden;
  border-radius: 2px;
}
.post-inline-img img { width: 100%; height: 100%; object-fit: cover; }

/* Related products block */
.post-related {
  max-width: 920px;
  margin: clamp(56px, 8vw, 100px) auto 0;
  padding: clamp(44px, 6vw, 72px) var(--pad-x) 0;
  border-top: 1px solid var(--line-soft);
}
.post-related-head {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 22px;
}
.post-related-head strong {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--forest);
  display: block;
  margin-top: 8px;
}
.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 800px) { .post-related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .post-related-grid { grid-template-columns: 1fr; } }
.post-related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  transition: opacity 0.25s var(--ease);
}
.post-related-card:hover { opacity: 0.8; }
.post-related-card-cat {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.post-related-card-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.3;
}
.post-related-card-cta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terra);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: 6px;
}

/* Post footer — back + next */
.post-footer {
  max-width: 680px;
  margin: clamp(56px, 8vw, 90px) auto 0;
  padding: clamp(36px, 5vw, 56px) var(--pad-x) 0;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.post-footer-back {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--forest);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.post-footer-back:hover { color: var(--terra); }

/* -----------------------------------------
 * Site footer (minimal — full footer lives in home)
 * --------------------------------------- */
.journal-footer {
  background: var(--forest-deep);
  color: rgba(250, 248, 244, 0.85);
  padding: 48px 0 36px;
  margin-top: clamp(56px, 8vw, 100px);
}
.journal-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.journal-footer a { color: rgba(250, 248, 244, 0.85); }
.journal-footer a:hover { color: var(--terra); }
.journal-footer-brand {
  font-family: var(--display);
  font-size: 20px;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--cream);
  font-weight: 500;
}
.journal-footer-brand em { font-style: italic; font-weight: 400; color: var(--terra); }
.journal-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
