/*
 * Crafty Corner 0.4.40 — long-form reading layout for singular posts.
 * Enqueued on single posts only. Scoped to body.single-post .cc-native so
 * shop, pages, and the journal index keep their current styles.
 *
 * The article sits on the existing dark canvas (light Source Sans 3 text).
 * Lora is already loaded with the theme chrome and is used for the title,
 * deck, and headings. Burgundy #8b0815 is the accent; cream #eedab5 is the
 * existing brand highlight used where burgundy text would disappear.
 */

body.single-post .cc-native {
  max-width: 40rem;
  margin: 0 auto 4rem;
  padding: 0.25rem 0 3.5rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: hsl(200 18% 97%);
  overflow-wrap: break-word;
}

body.single-post .cc-native .cc-reading-kicker {
  margin: 0 0 0.85rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.single-post .cc-native .cc-reading-kicker a {
  color: #eedab5;
  text-decoration: none;
}

body.single-post .cc-native .cc-reading-kicker a:hover,
body.single-post .cc-native .cc-reading-kicker a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.single-post .cc-native .cc-reading-title {
  margin: 0 0 0.75rem;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: hsl(200 18% 97%);
}

body.single-post .cc-native .cc-reading-meta {
  margin: 0 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(238, 218, 181, 0.28);
  color: hsl(195 17% 78%);
  font-size: 0.95rem;
  line-height: 1.4;
}

body.single-post .cc-native::after,
body.single-post .cc-reading-body::after {
  content: "";
  display: block;
  clear: both;
}

body.single-post .cc-native p {
  margin: 0 0 1.15em;
}

body.single-post .cc-native a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

body.single-post .cc-native h2,
body.single-post .cc-native h3,
body.single-post .cc-native h4 {
  clear: both;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  color: #eedab5;
}

body.single-post .cc-native h2 {
  margin: 2.4rem 0 0.8rem;
  padding-top: 1.15rem;
  border-top: 3px solid #8b0815;
  font-size: 1.7rem;
}

body.single-post .cc-native h3 {
  margin: 1.85rem 0 0.65rem;
  font-size: 1.28rem;
  color: #f3e6d4;
}

body.single-post .cc-native h4 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

/* Deck: the opening italic paragraph, or an explicit .cc-deck. */
body.single-post .cc-native > p.cc-deck,
body.single-post .cc-reading-body > p.cc-deck,
body.single-post .cc-native > p.wp-block-paragraph:first-child:has(> em:only-child),
body.single-post .cc-reading-body > p.wp-block-paragraph:first-child:has(> em:only-child) {
  margin: 0 0 1.5rem;
  font-family: "Lora", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
  color: hsl(195 20% 88%);
}

body.single-post .cc-native > p.wp-block-paragraph:first-child:has(> em:only-child) em,
body.single-post .cc-reading-body > p.wp-block-paragraph:first-child:has(> em:only-child) em,
body.single-post .cc-native > p.cc-deck em,
body.single-post .cc-reading-body > p.cc-deck em {
  font-style: inherit;
}

body.single-post .cc-native ul,
body.single-post .cc-native ol {
  margin: 0 0 1.15em;
  padding-left: 1.35rem;
}

body.single-post .cc-native ul {
  list-style: disc;
}

body.single-post .cc-native ol {
  list-style: decimal;
}

body.single-post .cc-native li {
  margin: 0.35em 0;
}

body.single-post .cc-native li::marker {
  color: #eedab5;
}

/* Portrait / medium floats. The block wrapper is what floats, so the
   caption stays with the image and the following paragraphs wrap it. */
body.single-post .cc-native .wp-block-image:has(> .alignright),
body.single-post .cc-native .wp-block-image:has(> .alignleft),
body.single-post .cc-native figure.alignright,
body.single-post .cc-native figure.alignleft,
body.single-post .cc-native .wp-block-image.alignright,
body.single-post .cc-native .wp-block-image.alignleft {
  display: block;
  width: min(17.5rem, 46%);
  max-width: 17.5rem;
  margin-top: 0.3rem;
  margin-bottom: 0.85rem;
}

body.single-post .cc-native .wp-block-image:has(> .alignright),
body.single-post .cc-native figure.alignright,
body.single-post .cc-native .wp-block-image.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-right: 0;
}

body.single-post .cc-native .wp-block-image:has(> .alignleft),
body.single-post .cc-native figure.alignleft,
body.single-post .cc-native .wp-block-image.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-left: 0;
}

body.single-post .cc-native .wp-block-image:has(> .alignright) > .alignright,
body.single-post .cc-native .wp-block-image:has(> .alignleft) > .alignleft {
  float: none;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

body.single-post .cc-native .alignleft img,
body.single-post .cc-native .alignright img,
body.single-post .cc-native .wp-block-image.alignleft img,
body.single-post .cc-native .wp-block-image.alignright img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

body.single-post .cc-native .wp-block-image:has(> .aligncenter),
body.single-post .cc-native .wp-block-image.aligncenter,
body.single-post .cc-native figure.aligncenter {
  clear: both;
  float: none;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.75rem auto;
}

body.single-post .cc-native .aligncenter img,
body.single-post .cc-native .wp-block-image.aligncenter img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

body.single-post .cc-native .wp-element-caption,
body.single-post .cc-native figcaption {
  display: block;
  margin: 0.45rem 0 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  color: hsl(195 17% 78%);
}

body.single-post .cc-native .wp-block-pullquote {
  clear: both;
  float: none;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin: 2.25rem 0;
  padding: 0.15rem 0 0.15rem 1.15rem;
  border: 0;
  border-left: 4px solid #8b0815;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  line-height: 1.5;
  color: inherit;
}

body.single-post .cc-native .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}

body.single-post .cc-native .wp-block-pullquote p {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: hsl(200 18% 97%);
}

body.single-post .cc-native .wp-block-pullquote cite,
body.single-post .cc-native .wp-block-pullquote footer {
  display: block;
  margin-top: 0.75rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: #eedab5;
}

body.single-post .cc-native .wp-block-quote,
body.single-post .cc-native > blockquote,
body.single-post .cc-reading-body > blockquote {
  clear: both;
  margin: 1.5rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid #8b0815;
  color: inherit;
}

@media (max-width: 767px) {
  body.single-post .cc-native {
    font-size: 1.0625rem;
  }

  body.single-post .cc-native .wp-block-image:has(> .alignright),
  body.single-post .cc-native .wp-block-image:has(> .alignleft),
  body.single-post .cc-native figure.alignright,
  body.single-post .cc-native figure.alignleft,
  body.single-post .cc-native .wp-block-image.alignright,
  body.single-post .cc-native .wp-block-image.alignleft {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem;
  }
}

/* 0.4.44 — Explore More + More from the Journal (native reading footer) */

body.single-post .cc-native .cc-reading-explore {
  clear: both;
  margin: 2.5rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(238, 218, 181, 0.28);
}

body.single-post .cc-native .cc-reading-explore-title,
body.single-post .cc-native .cc-reading-more-title {
  margin: 0 0 1rem;
  font-family: "Lora", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: #eedab5;
  border: 0;
  padding: 0;
}

body.single-post .cc-native .cc-reading-explore-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.single-post .cc-native .cc-reading-explore-card {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(238, 218, 181, 0.22);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
}

body.single-post .cc-native .cc-reading-explore-label {
  display: inline-block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #eedab5;
  text-decoration: none;
}

body.single-post .cc-native .cc-reading-explore-label:hover,
body.single-post .cc-native .cc-reading-explore-label:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.single-post .cc-native .cc-reading-explore-desc {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: hsl(195 17% 78%);
}

body.single-post .cc-native .cc-reading-explore-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.single-post .cc-native .cc-reading-explore-cta {
  display: inline-flex;
  align-items: center;
  background: #8b0815;
  color: #eedab5 !important;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  padding: 0.7rem 1.35rem;
  border-radius: 2px;
}

body.single-post .cc-native .cc-reading-explore-cta:hover,
body.single-post .cc-native .cc-reading-explore-cta:focus-visible {
  background: #a30a19;
  color: #fff !important;
}

body.single-post .cc-native .cc-reading-more {
  clear: both;
  margin: 2.75rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(238, 218, 181, 0.28);
}

body.single-post .cc-native .cc-reading-more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  body.single-post .cc-native .cc-reading-more-grid {
    grid-template-columns: 1fr 1fr;
  }
}

body.single-post .cc-native .cc-reading-more-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(238, 218, 181, 0.22);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
}

body.single-post .cc-native .cc-reading-more-thumb {
  width: 5.5rem;
  height: 4.25rem;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.25);
}

body.single-post .cc-native .cc-reading-more-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

body.single-post .cc-native .cc-reading-more-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #eedab5;
}

body.single-post .cc-native .cc-reading-more-heading {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  border: 0;
  padding: 0;
  color: hsl(200 18% 97%);
}

body.single-post .cc-native .cc-reading-more-heading a {
  color: inherit;
  text-decoration: none;
}

body.single-post .cc-native .cc-reading-more-heading a:hover,
body.single-post .cc-native .cc-reading-more-heading a:focus-visible {
  color: #eedab5;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

body.single-post .cc-native .cc-reading-more-read {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: #eedab5;
  text-decoration: none;
}

body.single-post .cc-native .cc-reading-more-read:hover,
body.single-post .cc-native .cc-reading-more-read:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

body.single-post .cc-native .cc-reading-more-all {
  margin: 1.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}

body.single-post .cc-native .cc-reading-more-all a {
  color: #eedab5;
  text-decoration: none;
}

body.single-post .cc-native .cc-reading-more-all a:hover,
body.single-post .cc-native .cc-reading-more-all a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
