/* =========================================================
   UBUNTU LTD — Blog (journal, category and story pages)
   Loaded after style.css
========================================================= */

.u-blog-page, .u-post-page { background: #fff; }

.u-blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(22, 32, 26, .6);
}
.u-blog-meta span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: middle;
}
.u-blog-meta span:first-child { color: var(--leaf); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* =========================================================
   JOURNAL / CATEGORY
========================================================= */
.u-blog-hero {
  position: relative;
  min-height: clamp(440px, 46vw, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bark);
  color: #fff;
}
.u-blog-hero-media, .u-blog-hero-overlay { position: absolute; inset: 0; }
.u-blog-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: saturate(1.1) contrast(1.04) brightness(1.04); }
.u-blog-hero-overlay {
  background:
    linear-gradient(90deg, rgba(19, 35, 26, .66) 0%, rgba(19, 35, 26, .42) 45%, rgba(19, 35, 26, .08) 80%, transparent 100%),
    linear-gradient(to top, rgba(19, 35, 26, .4), transparent 45%);
}
.u-blog-hero-inner { position: relative; z-index: 2; width: 100%; padding-block: 110px 90px; text-shadow: 0 2px 18px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .35); }
.u-blog-eyebrow { margin-bottom: 14px; color: var(--amber-soft); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.u-blog-hero h1 {
  max-width: 11ch;
  margin: 0 0 26px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.035em;
}
.u-blog-hero-copy { max-width: 560px; margin: 0; color: rgba(255, 255, 255, .9); font-size: 1.05rem; line-height: 1.7; }

.u-blog-categories { background: #fff; border-bottom: 1px solid var(--line); }
.u-blog-category-row { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px; }
.u-blog-category {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.u-blog-category:hover { border-color: var(--bark); }
.u-blog-category.active { background: var(--bark); border-color: var(--bark); color: var(--husk); }

/* Featured */
.u-featured-story { padding: clamp(70px, 8vw, 120px) 0; }
.u-featured-story .kicker { margin-bottom: 22px; }
.u-featured-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--husk);
}
.u-featured-image { display: block; min-height: 100%; overflow: hidden; }
.u-featured-image img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; transition: transform 1s var(--ease); }
.u-featured-card:hover .u-featured-image img { transform: scale(1.04); }
.u-featured-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 72px); }
.u-featured-content h2 { margin: 26px 0 18px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 500; line-height: 1.5; }
.u-featured-content h2 a, .u-blog-card h3 a, .u-related-story h3 a { text-decoration: none; transition: color .25s; }
.u-featured-content h2 a:hover, .u-blog-card h3 a:hover, .u-related-story h3 a:hover { color: var(--clay); }
.u-featured-content > p { margin: 0 0 22px; color: var(--ink-60); font-size: .95rem; line-height: 1.75; }
.u-read-link { align-self: flex-start; color: var(--clay); font-weight: 700; text-decoration: none; }
.u-read-link span { display: inline-block; margin-left: 6px; transition: transform .3s var(--ease); }
.u-read-link:hover span { transform: translate(3px, -3px); }

/* Journal grid */
.u-journal { padding: clamp(80px, 9vw, 130px) 0 clamp(90px, 10vw, 140px); background: var(--husk-2); }
.u-journal-head { margin-bottom: 44px; }
.u-journal-head h2 { margin-top: .5rem; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.02em; }
.u-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 38px); }
.u-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r);
  background: #fff;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.u-blog-card:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -34px rgba(19, 35, 26, .5); }
.u-blog-card-image { display: block; aspect-ratio: 1.16; overflow: hidden; }
.u-blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.u-blog-card:hover .u-blog-card-image img { transform: scale(1.05); }
.u-blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.u-blog-card h3 { margin: 16px 0 12px; font-size: 1.45rem; font-weight: 600; line-height: 1.12; }
.u-blog-card-body > p { flex: 1; margin: 0 0 28px; color: var(--ink-60); font-size: .86rem; line-height: 1.7; }
.u-blog-card-bottom { display: flex; justify-content: space-between; align-items: center; color: rgba(22, 32, 26, .6); font-size: .74rem; font-weight: 500; }
.u-blog-card-bottom a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: .85rem;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.u-blog-card-bottom a:hover { background: var(--bark); border-color: var(--bark); color: var(--husk); }

/* CTA */
.u-blog-cta { padding: clamp(90px, 10vw, 140px) 0; background: var(--leaf); color: #fff; }
.u-blog-cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.u-blog-cta .kicker { color: var(--amber-soft); }
.u-blog-cta h2 { max-width: 12ch; margin: .5rem 0 1.2rem; color: #fff; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; line-height: 1.02; }
.u-blog-cta-copy > p:not(.kicker) { max-width: 52ch; margin: 0 0 2rem; color: rgba(255, 255, 255, .8); line-height: 1.7; }
.u-blog-cta-mark {
  justify-self: end;
  display: grid;
  place-content: center;
  gap: 14px;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  text-align: center;
}
.u-blog-cta-mark span { color: var(--amber-soft); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.u-blog-cta-mark strong { font-family: var(--serif); font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 400; line-height: 1; }

/* =========================================================
   STORY PAGE
========================================================= */
.u-post-hero { background: var(--bark); color: var(--husk); }
.u-post-hero-inner { padding-block: calc(66px + clamp(30px, 3vw, 44px)) clamp(70px, 8vw, 110px); }
.u-post-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(60px, 7vw, 100px); font-size: .8rem; color: rgba(235, 237, 228, .65); }
.u-post-crumbs a { text-decoration: none; transition: color .25s; }
.u-post-crumbs a:hover { color: var(--amber); }
.u-post-category { margin-bottom: 18px; color: var(--amber); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.u-post-hero h1 { max-width: 18ch; margin: 0; color: #fff; font-size: clamp(2.8rem, 6.4vw, 5.6rem); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
.u-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px clamp(28px, 4vw, 52px);
  max-width: 1100px;
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 26px;
  border-top: 1px solid rgba(235, 237, 228, .16);
}
.u-post-author { display: flex; align-items: center; gap: 14px; }
.u-post-author img { width: 48px; height: 48px; padding: 6px; border-radius: 50%; background: var(--husk); object-fit: contain; }
.u-post-meta span { display: block; margin-bottom: 3px; color: rgba(235, 237, 228, .55); font-size: .72rem; }
.u-post-meta strong { color: #fff; font-size: .9rem; font-weight: 600; }

.u-post-featured { padding-top: clamp(30px, 3vw, 54px); }
.u-post-featured-media { margin: 0; overflow: hidden; border-radius: 4px; }
.u-post-featured-media img { width: 100%; max-height: 820px; object-fit: cover; }

.u-post-content-section { padding: clamp(60px, 7vw, 90px) 0 clamp(70px, 8vw, 100px); }
.u-post-content-grid { display: grid; grid-template-columns: 80px minmax(0, 750px) 180px; justify-content: space-between; gap: 40px; align-items: start; }
.u-post-share { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.u-post-share > span { writing-mode: vertical-rl; transform: rotate(180deg); color: rgba(22, 32, 26, .6); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.u-post-share div { display: grid; gap: 10px; }
.u-post-share a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.u-post-share a:hover { background: var(--bark); border-color: var(--bark); color: var(--husk); }
.u-post-body {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 30px 70px -40px rgba(19, 35, 26, .35);
  font-size: 1rem;
  line-height: 1.8;
}
.u-post-body p { margin: 0 0 1.3em; }
.u-post-body p:last-child { margin-bottom: 0; }
.u-post-body p:first-child { font-size: 1.15rem; line-height: 1.6; }
.u-post-side-note { position: sticky; top: 100px; padding-block: 20px 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.u-post-side-note p { margin-bottom: 10px; color: var(--clay); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.u-post-side-note span { display: block; color: var(--ink-60); font-family: var(--serif); font-size: 1rem; line-height: 1.5; }

.u-post-author-section { padding-bottom: clamp(70px, 8vw, 110px); }
.u-author-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 54px);
  background: var(--husk);
}
.u-author-card-avatar img { width: 96px; height: 96px; padding: 14px; border-radius: 50%; background: #fff; object-fit: contain; }
.u-author-label { margin-bottom: 6px; color: var(--leaf); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.u-author-card h3 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; }
.u-author-card p:last-child { margin: 0; color: var(--ink-60); line-height: 1.7; }

.u-post-comments { padding: clamp(70px, 8vw, 110px) 0; background: var(--husk-2); }
.u-post-comments-inner { max-width: 900px; }
.u-post-comments h3 { margin: .3rem 0 .4rem; font-size: 1.6rem; font-weight: 600; }
.u-comment-notes { margin-bottom: 26px; font-size: .9rem; }
.u-comment-notes span, .u-comment-form label span { color: var(--clay); }
.u-comment-form { display: grid; gap: 8px; }
.u-comment-form label { margin-top: 12px; font-size: .9rem; font-weight: 500; }
.u-comment-form textarea, .u-comment-form input[type="text"], .u-comment-form input[type="email"], .u-comment-form input[type="url"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color .25s;
}
.u-comment-form textarea { min-height: 200px; resize: vertical; }
.u-comment-form :is(textarea, input):focus { outline: none; border-color: var(--leaf); }
.u-comment-form .u-comment-consent { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 400; }
.u-comment-submit {
  justify-self: start;
  margin-top: 20px;
  padding: 14px 26px;
  border: 0;
  border-radius: 100px;
  background: var(--bark);
  color: var(--husk);
  font: 600 .95rem var(--sans);
  cursor: pointer;
  transition: background .3s, color .3s;
}
.u-comment-submit:hover { background: var(--amber); color: var(--bark); }
.u-comment-status { margin-top: 10px; padding: 14px 18px; border-left: 3px solid var(--leaf); background: #fff; font-size: .92rem; }

.u-post-navigation { background: var(--bark); color: var(--husk); }
.u-post-nav-grid { display: grid; grid-template-columns: 1fr 1fr; }
.u-post-nav-item { display: block; padding: clamp(40px, 5vw, 70px) clamp(24px, 10vw, 210px); text-decoration: none; transition: background .3s; }
.u-post-nav-item:hover { background: var(--bark-2); }
.u-post-nav-prev { grid-column: 1; }
.u-post-nav-next { grid-column: 2; text-align: right; border-left: 1px solid rgba(235, 237, 228, .14); }
.u-post-nav-item span { display: block; margin-bottom: 14px; color: var(--amber); font-size: .72rem; font-weight: 700; }
.u-post-nav-item strong { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 400; line-height: 1.12; }

.u-related-stories { padding: clamp(80px, 9vw, 130px) 0; }
.u-related-stories-head { margin-bottom: 44px; }
.u-related-stories-head h2 { margin-top: .5rem; font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -.02em; }
.u-related-stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 34px); }
.u-related-story { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: transform .5s var(--ease), box-shadow .5s; }
.u-related-story:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -34px rgba(19, 35, 26, .5); }
.u-related-story-image { display: block; aspect-ratio: 1.4; overflow: hidden; }
.u-related-story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.u-related-story:hover .u-related-story-image img { transform: scale(1.05); }
.u-related-story-body { padding: 22px 22px 26px; }
.u-related-story h3 { margin: 14px 0 10px; font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.u-related-story-body > p { margin: 0; color: var(--ink-60); font-size: .86rem; line-height: 1.7; }

.u-post-cta { padding: clamp(90px, 10vw, 140px) 0; background: var(--leaf); color: #fff; text-align: center; }
.u-post-cta-inner { max-width: 760px; }
.u-post-cta .kicker { color: var(--amber-soft); }
.u-post-cta h2 { margin: .5rem 0 1.1rem; color: #fff; font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 500; line-height: 1.04; }
.u-post-cta p:not(.kicker) { max-width: 46ch; margin: 0 auto 2rem; color: rgba(255, 255, 255, .82); line-height: 1.7; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
  .u-post-content-grid { grid-template-columns: 56px minmax(0, 1fr); }
  .u-post-side-note { display: none; }
}
@media (max-width: 960px) {
  .u-featured-card, .u-blog-cta-grid { grid-template-columns: 1fr; }
  .u-featured-image img { min-height: 0; aspect-ratio: 4 / 3; }
  .u-blog-grid, .u-related-stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-blog-cta-mark { justify-self: start; width: 240px; }
}
@media (max-width: 700px) {
  .u-post-content-grid { grid-template-columns: minmax(0, 1fr); }
  .u-post-share { position: static; flex-direction: row; order: 2; }
  .u-post-share > span { writing-mode: horizontal-tb; transform: none; }
  .u-post-share div { grid-auto-flow: column; }
  .u-post-nav-grid { grid-template-columns: 1fr; }
  .u-post-nav-next { grid-column: 1; border-left: 0; border-top: 1px solid rgba(235, 237, 228, .14); }
  .u-author-card { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .u-blog-grid, .u-related-stories-grid { grid-template-columns: 1fr; }
  .u-blog-hero-overlay { background: linear-gradient(to top, rgba(19, 35, 26, .82) 0%, rgba(19, 35, 26, .45) 60%, rgba(19, 35, 26, .12) 100%); }
  .u-blog-hero { align-items: flex-end; }
}

/* Orange instead of red, clearer dates and read times */
.u-featured-content h2 a:hover, .u-blog-card h3 a:hover, .u-related-story h3 a:hover,
.u-read-link, .u-post-side-note p, .u-comment-notes span, .u-comment-form label span { color: #D9711C; }
.u-blog-meta span:not(:first-child),
.u-blog-card-bottom > span { font-family: "Lato", "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-weight: 700; color: #222; }
.u-blog-page .kicker { color: #D9711C; }
.u-featured-story .kicker { font-family: "Lato", "Helvetica Neue", Arial, sans-serif; font-style: normal; font-size: 22px; font-weight: 700; letter-spacing: .02em; color: #D9711C; opacity: 1; transform: none; }

/* Article side note + share buttons: clearer */
.u-post-side-note span { font-family: "Lato", "Helvetica Neue", Arial, sans-serif; font-size: 17px; font-weight: 400; line-height: 1.6; color: #222; }
.u-post-share > span { color: #222; font-size: .8rem; }
.u-post-share a { width: 44px; height: 44px; color: #16201A; border-color: rgba(22, 32, 26, .35); background: #fff; }
.u-post-share a svg { width: 18px; height: 18px; }
.u-post-share a:hover { background: var(--bark); border-color: var(--bark); color: var(--husk); }
.u-post-side-note p,
.u-post-share > span { color: #D9711C; font-size: .8rem; font-weight: 700; }
main .u-post-side-note p,
main .u-post-side-note p.text-ink { color: #D9711C !important; font-family: var(--sans) !important; font-size: .8rem !important; font-weight: 700 !important; letter-spacing: .14em; text-transform: uppercase; }

/* Mobile: blog banner heading centred */
@media (max-width: 760px) {
  .u-blog-hero { align-items: center !important; }
  .u-blog-hero-inner { text-align: center; padding-block: 90px 60px !important; }
  .u-blog-hero-inner h1 { margin-inline: auto; }
}

/* Show a photo in full (no cropping) with a soft blurred fill behind it */
.img-full { position: relative; isolation: isolate; background: #2b2a20; }
.img-full::before { content: ""; position: absolute; inset: -20px; z-index: -1; background: var(--img-full) center / cover no-repeat; filter: blur(22px) brightness(.85) saturate(1.1); }
.img-full img { position: relative; object-fit: contain !important; }
.u-blog-card:hover .u-blog-card-image.img-full img { transform: scale(1.02); }
.u-post-featured-media.img-full img { display: block; height: min(820px, 80vh); max-height: none; }
@media (max-width: 600px) { .u-post-featured-media.img-full img { height: auto; max-height: 75vh; } }
/* No blurred fill — plain background around the full photo */
.img-full { background: transparent; }
.img-full::before { content: none; }
.u-blog-card-image.img-full { background: #fff; }
.u-post-featured-media.img-full { width: fit-content; max-width: 100%; margin-inline: auto; border-radius: 4px; }
.u-post-featured-media.img-full img { width: auto; max-width: 100%; }
.u-blog-card-image.img-full img { object-fit: cover !important; object-position: 50% 40%; }
.u-blog-card-image.img-full { aspect-ratio: 863 / 1080; } .u-blog-card-image.img-full img { object-fit: cover !important; object-position: 50% 0; }
