/*
Theme Name: Roam Brighter Child
Description: Editorial single-post layout for Hello Elementor.
Author: Roam Brighter
Version: 1.2.1
Template: hello-elementor
Text Domain: roam-brighter-child
*/

body.roam-brighter-single {
  --ej-paper: #f3eee5;
  --ej-ink: #18272b;
  --ej-rust: #ae4e29;
  --ej-sage: #dce0d4;
  --ej-rule: #66706d;
  margin: 0;
  color: var(--ej-ink);
  background: var(--ej-paper);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 15px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}
.roam-brighter-single *, .roam-brighter-single *::before, .roam-brighter-single *::after { box-sizing: border-box; }
.roam-brighter-single ::selection { color: #fff; background: var(--ej-rust); }
.roam-brighter-single a { color: inherit; }
.roam-brighter-single a:focus-visible { outline: 2px solid var(--ej-rust); outline-offset: 4px; }
.ej-wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
main.ej-wrap { padding-top: 48px; }

.ej-article-header { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 0 0 8px; border-bottom: 1px solid var(--ej-rule); }
.ej-title-block { max-width: 860px; }
.ej-kicker, .ej-byline, .ej-small-label, .ej-related-category, .ej-read-link { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.ej-kicker { margin: 3px 0 14px; color: var(--ej-rust); }
.ej-article-header h1 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: clamp(49px, 5.6vw, 79px); font-weight: 400; line-height: .99; letter-spacing: -.037em; text-wrap: balance; }
.ej-subtitle { max-width: 780px; margin: 7px 0 16px; font-family: 'Newsreader', Georgia, serif; font-size: clamp(21px, 2vw, 27px); line-height: 1.12; }
.ej-byline { margin: 0; font-size: 9px; }
.ej-byline span { display: inline-block; margin-inline: 8px; }
.ej-postmark { width: 205px; min-width: 205px; color: var(--ej-rust); margin-top: -9px; }
.ej-postmark img { width: 100%; height: auto; display: block; }

.ej-hero, .ej-secondary-photo { margin: 18px 0 0; }
.ej-hero-image { display: block; width: 100%; aspect-ratio: 2.13; object-fit: cover; object-position: center 47%; }
.ej-hero figcaption, .ej-secondary-photo figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 6px; font-family: 'Newsreader', Georgia, serif; font-size: 12px; font-style: italic; line-height: 1.25; }
.ej-hero figcaption span:last-child, .ej-secondary-photo figcaption span:last-child { flex: none; font-family: 'DM Mono', monospace; font-size: 8px; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }

.ej-body-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(270px, 1fr); gap: clamp(30px, 4vw, 65px); align-items: start; margin-top: 37px; }
.ej-story-body { min-width: 0; font-family: 'Newsreader', Georgia, serif; font-size: clamp(19px, 1.65vw, 22px); line-height: 1.19; }
.ej-story-body > :first-child { margin-top: 0; }
.ej-story-body p { margin: 0 0 .62em; }
.ej-story-body > p:first-of-type::first-letter { float: left; margin: .055em .09em -.13em 0; color: var(--ej-rust); font-size: 5.05em; line-height: .72; }
.ej-story-body h2, .ej-story-body h3 { margin: .78em 0 .15em; font-family: 'Newsreader', Georgia, serif; font-weight: 500; line-height: 1.05; letter-spacing: -.025em; }
.ej-story-body h2 { font-size: 1.55em; }
.ej-story-body h3 { font-size: 1.22em; }
.ej-story-body a { text-decoration-color: var(--ej-rust); text-underline-offset: .16em; }
.ej-story-body figure, .ej-story-body img { max-width: 100%; height: auto; }
.ej-story-body figure { margin: 1.3em 0; }
.ej-story-body blockquote { margin: 1.2em 0; padding-left: 18px; border-left: 2px solid var(--ej-rust); font-style: italic; }
.ej-story-body ul, .ej-story-body ol { padding-left: 1.4em; }

.ej-field-notes { padding: 22px 25px 20px; background: var(--ej-sage); }
.ej-field-notes h2, .ej-before h2, .ej-related h2 { margin: 0; font-family: 'DM Mono', monospace; font-size: 16px; font-weight: 500; letter-spacing: .1em; }
.ej-field-notes h2 { display: flex; justify-content: space-between; align-items: center; padding-bottom: 11px; border-bottom: 1px solid var(--ej-rule); }
.ej-field-notes h2 span { font-family: Georgia, serif; font-size: 23px; line-height: 1; }
.ej-field-notes ol { margin: 0; padding: 0; list-style: none; }
.ej-field-notes li { display: grid; grid-template-columns: 27px 1fr; gap: 8px; padding: 18px 0; border-bottom: 1px solid #a8aea3; }
.ej-field-notes li:last-child { padding-bottom: 0; border-bottom: 0; }
.ej-field-notes li > span { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; }
.ej-field-notes h3, .ej-tip h3 { margin: 0 0 5px; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .1em; }
.ej-field-notes p, .ej-tip p { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: 15px; line-height: 1.13; }
.ej-sidebar blockquote { margin: 44px 5px 0; color: var(--ej-rust); font-family: 'Newsreader', Georgia, serif; font-size: clamp(34px, 3.4vw, 49px); font-style: italic; font-weight: 300; line-height: .98; }
.ej-sidebar blockquote::after { content: ''; display: block; width: 58px; margin: 18px 0 0 15px; border-bottom: 2px solid var(--ej-rust); }

.ej-secondary-photo { margin-top: 25px; }
.ej-secondary-photo img { display: block; width: 100%; aspect-ratio: 4.34; object-fit: cover; }
.ej-before { margin-top: 20px; padding: 19px 28px 24px; background: var(--ej-sage); }
.ej-before h2 { padding-bottom: 10px; border-bottom: 1px solid var(--ej-rule); }
.ej-before-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 17px; }
.ej-tip { display: grid; grid-template-columns: 52px 1fr; gap: 14px; min-width: 0; padding: 0 20px; border-right: 1px solid var(--ej-rule); }
.ej-tip:first-child { padding-left: 0; }.ej-tip:last-child { padding-right: 0; border-right: 0; }
.ej-tip-icon svg { display: block; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.ej-tip p { line-height: 1.16; }

.ej-author-share { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: center; margin: 16px 0 23px; padding: 12px 10px 17px; border-top: 1px solid var(--ej-rule); border-bottom: 1px solid var(--ej-rule); }
.ej-author { display: flex; gap: 24px; align-items: center; }
.ej-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.ej-small-label { display: block; font-size: 9px; }
.ej-author strong { display: block; margin: 1px 0 3px; font-family: 'Newsreader', Georgia, serif; font-size: 23px; font-weight: 500; line-height: 1; }
.ej-author p { max-width: 430px; margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: 15px; line-height: 1.12; }
.ej-share { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-left: 52px; border-left: 1px solid var(--ej-rule); }
.ej-share > div { display: flex; gap: 20px; align-items: center; margin-top: 13px; }
.ej-share a { min-width: 18px; font-family: Arial, sans-serif; font-size: 19px; font-weight: 700; line-height: 1; text-align: center; text-decoration: none; }
.ej-share a:hover { color: var(--ej-rust); }

.ej-related { padding-bottom: 30px; }
.ej-related h2 { margin-bottom: 13px; }
.ej-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.ej-related-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 20px; text-decoration: none; }
.ej-related-card img { width: 100%; height: 153px; object-fit: cover; }
.ej-related-category { color: var(--ej-rust); font-size: 9px; }
.ej-related-card h3 { margin: 6px 0 4px; font-family: 'Newsreader', Georgia, serif; font-size: 21px; font-weight: 500; line-height: 1.05; }
.ej-related-card p { margin: 0 0 15px; font-family: 'Newsreader', Georgia, serif; font-size: 15px; line-height: 1.14; }
.ej-read-link { font-size: 9px; }
.ej-related-card:hover h3 { text-decoration: underline; text-decoration-color: var(--ej-rust); text-underline-offset: .12em; }
.ej-related-empty { margin: 0; font-family: 'Newsreader', Georgia, serif; font-style: italic; }

@media (max-width: 900px) {
  .ej-wrap { width: min(100% - 44px, 760px); }
  .ej-postmark { width: 145px; min-width: 145px; }
  .ej-body-grid { grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr); gap: 26px; }
  .ej-field-notes { padding: 17px; }
}
@media (max-width: 680px) {
  .ej-wrap { width: calc(100% - 32px); }
  main.ej-wrap { padding-top: 28px; }
  .ej-article-header { padding-bottom: 14px; }.ej-postmark { display: none; }
  .ej-kicker { margin-bottom: 10px; }.ej-byline { line-height: 1.6; }
  .ej-hero-image { aspect-ratio: 1.35; }
  .ej-hero figcaption, .ej-secondary-photo figcaption { flex-direction: column; gap: 3px; }
  .ej-body-grid { display: block; margin-top: 26px; }
  .ej-sidebar { margin-top: 25px; }.ej-sidebar blockquote { margin: 24px 5px 26px; }
  .ej-secondary-photo img { aspect-ratio: 1.8; }
  .ej-before { padding: 17px; }.ej-before-grid { display: block; }
  .ej-tip { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--ej-rule); }.ej-tip:first-child { padding-top: 0; }.ej-tip:last-child { border-bottom: 0; padding-bottom: 0; }
  .ej-author-share { display: block; }.ej-author { gap: 14px; }.ej-avatar { width: 62px; height: 62px; }
  .ej-share { margin-top: 18px; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--ej-rule); }
  .ej-related-grid { grid-template-columns: 1fr; gap: 19px; }.ej-related-card { grid-template-columns: 36% 1fr; gap: 13px; }.ej-related-card img { height: 135px; }
}
