/*
 * Bakerry Journal. Served on its own at /journal (journal/server.ts) and inside
 * the app's chrome on client navigation, so everything below is scoped to .jr-
 * classes and uses the site's palette: warm paper, espresso ink, crust accent.
 */
/* Lato (SIL OFL 1.1, public/fonts/lato-OFL.txt), the site's interface face. */
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
.jr-page,
.jr-index,
.jr-article {
  --jr-paper: #fbf8f3;
  --jr-raised: #fffdfa;
  --jr-tint: #f2ece5;
  --jr-ink: #2a211c;
  --jr-text: #1f1a17;
  --jr-muted: #6e655d;
  --jr-line: #e8e0d6;
  --jr-crust: #cb6529;
  --jr-crust-deep: #a24d1c;
  --jr-sans: "Lato", system-ui, -apple-system, Arial, sans-serif;
  --jr-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color: var(--jr-text);
  font-family: var(--jr-sans);
}
.jr-page {
  margin: 0;
  background: var(--jr-paper);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.jr-page *,
.jr-index *,
.jr-article * {
  box-sizing: border-box;
}
.jr-page a,
.jr-index a,
.jr-article a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.jr-page :focus-visible {
  outline: 2px solid var(--jr-crust);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Shared pieces */
.jr-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jr-crust-deep);
}
.jr-tag {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--jr-tint);
  color: var(--jr-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.jr-tag.is-new {
  background: var(--jr-crust);
  color: #fff;
}
.jr-meta,
.jr-sources {
  font-size: 13px;
  color: var(--jr-muted);
}
.jr-dek {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--jr-muted);
  text-wrap: pretty;
}
.jr-arrow {
  display: inline-block;
  transition: transform 0.25s var(--jr-ease);
}
.jr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--jr-crust);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow:
    inset 0 1px 2px rgb(255 226 196 / 0.55),
    inset 0 -2px 4px rgb(116 44 8 / 0.42);
  transition: background 0.2s;
}
.jr-button:hover {
  background: #d6733a;
}
.jr-button:hover .jr-arrow {
  transform: translateX(3px);
}
.jr-button.is-small {
  padding: 9px 16px;
  font-size: 14px;
}
.jr-button.is-light {
  background: #fffdfa;
  color: var(--jr-ink) !important;
  box-shadow:
    inset 0 1px 2px #fff,
    inset 0 -2px 3px rgb(84 58 36 / 0.16);
}
.jr-button.is-light:hover {
  background: #fff7ef;
}

/* Covers: a soft tone with a photographed object, or a drawn case. */
.jr-cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--tone, var(--jr-tint));
}
.jr-cover img {
  width: 78%;
  height: 92%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.6s var(--jr-ease);
}
.jr-cover-phone {
  height: 72%;
  width: auto;
  transform: rotate(-8deg);
  filter: drop-shadow(0 16px 22px rgb(42 33 28 / 0.18));
  transition: transform 0.6s var(--jr-ease);
}

/* Site chrome, server-rendered pages only */
.jr-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
}
.jr-skip:focus {
  top: 10px;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}
.jr-site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(251 248 243 / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--jr-line);
}
.jr-site-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.jr-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.jr-brand img {
  display: block;
  width: 126px;
  height: auto;
}
.jr-site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}
.jr-site-header nav a:not(.jr-button) {
  text-decoration: none;
  color: var(--jr-muted);
}
.jr-site-header nav a:not(.jr-button):hover,
.jr-site-header nav a[aria-current="page"] {
  color: var(--jr-ink);
}
.jr-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 32px 24px;
}
.jr-footer {
  margin-top: 72px;
  border-top: 1px solid var(--jr-line);
}
.jr-footer-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 32px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--jr-muted);
}
.jr-footer-bar p {
  margin: 0;
  display: flex;
  gap: 10px;
}
.jr-footer-bar strong {
  color: var(--jr-ink);
  font-weight: 600;
}
.jr-footer-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.jr-footer-bar a {
  text-decoration: none;
}
.jr-footer-bar a:hover {
  color: var(--jr-ink);
}

/* Index */
.jr-index {
  max-width: 1240px;
  margin: 0 auto;
}
.jr-hero {
  max-width: 760px;
  margin: 8px 0 48px;
}
.jr-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--jr-ink);
}
.jr-hero h1 em {
  font-style: normal;
  color: var(--jr-crust);
}
.jr-hero-links {
  display: flex;
  gap: 22px;
  margin: 22px 0 0;
  font-size: 14px;
  font-weight: 500;
}
.jr-hero-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--jr-line);
  padding-bottom: 2px;
}
.jr-hero-links a:hover {
  border-color: var(--jr-ink);
}

.jr-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--jr-line);
  border-radius: 22px;
  background: var(--jr-raised);
  transition:
    box-shadow 0.3s var(--jr-ease),
    transform 0.3s var(--jr-ease);
}
.jr-feature .jr-cover {
  aspect-ratio: auto;
  min-height: 400px;
  border-radius: 0;
}
.jr-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 44px 48px;
}
.jr-feature-body h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--jr-ink);
  text-wrap: balance;
}
.jr-feature-body > p:not(.jr-card-meta) {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--jr-muted);
}
.jr-feature-body .jr-button {
  align-self: flex-start;
  margin-top: 6px;
}

.jr-section {
  margin-top: 80px;
}
.jr-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--jr-line);
}
.jr-section-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--jr-ink);
}
.jr-section-head p {
  margin: 0;
  font-size: 14px;
  color: var(--jr-muted);
}
.jr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
}
.jr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.jr-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.jr-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--jr-muted);
}
.jr-card h3 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--jr-ink);
  text-wrap: balance;
}
.jr-card h3 a,
.jr-feature h2 a {
  text-decoration: none;
}
/* The headline link covers the whole card. */
.jr-card h3 a::after,
.jr-feature h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.jr-card-body > p:not(.jr-card-meta) {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--jr-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jr-card-more {
  margin-top: auto;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--jr-crust-deep);
}
.jr-card:hover h3,
.jr-feature:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.jr-card:hover .jr-cover img,
.jr-feature:hover .jr-cover img {
  transform: scale(1.04);
}
.jr-card:hover .jr-cover-phone,
.jr-feature:hover .jr-cover-phone {
  transform: rotate(-4deg) scale(1.03);
}
.jr-card:hover .jr-arrow,
.jr-feature:hover .jr-arrow {
  transform: translateX(3px);
}
.jr-feature:hover {
  box-shadow: 0 24px 50px -30px rgb(42 33 28 / 0.35);
}
.jr-card:has(a:focus-visible) .jr-cover,
.jr-feature:has(a:focus-visible) {
  outline: 2px solid var(--jr-crust);
  outline-offset: 3px;
}
.jr-empty {
  padding: 56px 24px;
  border: 1px dashed var(--jr-line);
  border-radius: 16px;
  text-align: center;
  color: var(--jr-muted);
}
.jr-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--jr-line);
  font-size: 15px;
  font-weight: 500;
}
.jr-pagination a {
  text-decoration: none;
}
.jr-pagination a:hover {
  color: var(--jr-crust-deep);
}

.jr-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 88px;
  padding: 44px 48px;
  border-radius: 22px;
  background: var(--jr-ink);
  color: #f6efe7;
}
.jr-cta-band .jr-kicker {
  color: #f2a46f;
}
.jr-cta-band h2 {
  margin: 10px 0 8px !important;
  font-size: clamp(26px, 3vw, 36px) !important;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
}
.jr-cta-band p:not(.jr-kicker) {
  margin: 0;
  max-width: 520px;
  color: #cfc3b7;
}

/* Articles */
.jr-article {
  max-width: 1180px;
  margin: 0 auto;
}
.jr-article.jr-narrow {
  max-width: 720px;
}
.jr-crumbs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--jr-muted);
}
.jr-crumbs a {
  text-decoration: none;
  color: var(--jr-ink);
  font-weight: 500;
}
.jr-crumbs a:hover {
  text-decoration: underline;
}
.jr-article h1 {
  margin: 16px 0 20px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--jr-ink);
  text-wrap: balance;
}
.jr-guide-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--jr-line);
}
.jr-guide-head .jr-cover {
  aspect-ratio: 1;
  border-radius: 22px;
}
.jr-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0 0;
}
.jr-avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--jr-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.jr-byline .jr-avatar + span {
  color: var(--jr-ink);
  font-weight: 500;
}
.jr-guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 700px);
  justify-content: center;
  gap: 72px;
  padding-top: 48px;
}
.jr-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 14px;
}
.jr-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  border-left: 1px solid var(--jr-line);
}
.jr-toc li {
  counter-increment: toc;
  margin: 0;
}
.jr-toc li a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.45;
  color: var(--jr-muted);
  text-decoration: none;
}
.jr-toc li a:hover {
  color: var(--jr-ink);
  border-left-color: var(--jr-crust);
}
.jr-toc .jr-button {
  justify-self: start;
  margin-top: 10px;
}

.jr-prose {
  min-width: 0;
  font-size: 17px;
  line-height: 1.75;
}
.jr-prose p {
  margin: 0 0 18px;
}
.jr-prose section {
  scroll-margin-top: 96px;
}
.jr-prose h2,
.jr-related h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 56px 0 18px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--jr-ink);
}
.jr-num {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--jr-crust);
  font-variant-numeric: tabular-nums;
}
.jr-prose h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--jr-ink);
}
.jr-prose ul,
.jr-prose ol:not(.jr-steps) {
  padding-left: 22px;
}
.jr-prose li {
  margin: 8px 0;
  padding-left: 4px;
}
.jr-prose img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.jr-prose figure {
  margin: 30px 0;
}
.jr-prose figcaption {
  font-size: 13px;
  color: var(--jr-muted);
}
.jr-prose blockquote {
  margin: 24px 0;
  padding: 22px 26px;
  border-radius: 14px;
  background: var(--jr-tint);
  font-size: 18px;
  line-height: 1.65;
}
.jr-answer {
  padding: 26px 30px;
  border-radius: 18px;
  background: var(--jr-raised);
  border: 1px solid var(--jr-line);
  box-shadow: inset 4px 0 0 var(--jr-crust);
}
.jr-answer p:last-child {
  margin: 8px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--jr-ink);
}
.jr-steps {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.jr-steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 16px 20px 16px 62px;
  border-radius: 14px;
  background: var(--jr-raised);
  border: 1px solid var(--jr-line);
  font-size: 16px;
  line-height: 1.6;
}
.jr-steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--jr-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.jr-prose .jr-sources {
  margin-top: -4px;
}
.jr-prompt {
  margin: 0 0 22px !important;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--jr-ink);
  color: #f6efe7;
}
.jr-prompt .jr-kicker {
  color: #f2a46f;
}
.jr-prompt blockquote {
  margin: 10px 0 12px;
  padding: 0;
  background: none;
  font-size: 19px;
  line-height: 1.55;
  color: #fff;
}
.jr-prompt blockquote::before {
  content: "“";
}
.jr-prompt blockquote::after {
  content: "”";
}
.jr-prompt .jr-meta {
  margin: 0;
  color: #bfb2a5;
}
.jr-faq {
  border-top: 1px solid var(--jr-line);
}
.jr-faq > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--jr-line);
}
.jr-faq p {
  margin: 0;
  color: var(--jr-muted);
}
.jr-about {
  margin-top: 56px;
  padding: 26px 30px;
  border-radius: 18px;
  background: var(--jr-tint);
  font-size: 14px;
  line-height: 1.7;
  color: var(--jr-muted);
}
.jr-about h2 {
  margin: 0 0 10px;
  font-size: 16px;
}
.jr-about p {
  margin: 0 0 10px;
}
.jr-about ul {
  margin: 0 0 10px;
}
.jr-about li {
  margin: 2px 0;
}

.jr-related {
  margin-top: 72px;
  padding-top: 8px;
  border-top: 1px solid var(--jr-line);
}
.jr-related h2 {
  margin-top: 40px;
}
.jr-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.jr-related a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: end;
  height: 100%;
  padding: 22px 24px;
  border: 1px solid var(--jr-line);
  border-radius: 16px;
  background: var(--jr-raised);
  text-decoration: none;
  transition: border-color 0.2s;
}
.jr-related a .jr-kicker {
  grid-column: 1 / -1;
}
.jr-related-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--jr-ink);
}
.jr-related a:hover {
  border-color: var(--jr-ink);
}
.jr-related a:hover .jr-arrow {
  transform: translateX(3px);
}

@media (max-width: 1040px) {
  .jr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jr-guide-layout {
    grid-template-columns: minmax(0, 700px);
    gap: 0;
  }
  .jr-toc {
    position: static;
    margin-bottom: 36px;
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--jr-raised);
    border: 1px solid var(--jr-line);
  }
}
@media (max-width: 820px) {
  .jr-feature,
  .jr-guide-head {
    grid-template-columns: 1fr;
  }
  .jr-feature .jr-cover {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .jr-feature-body {
    padding: 28px 26px 32px;
  }
  .jr-guide-head {
    gap: 32px;
  }
  .jr-guide-head .jr-cover {
    aspect-ratio: 16 / 10;
    order: -1;
  }
}
@media (max-width: 640px) {
  .jr-site-bar {
    padding: 12px 16px;
  }
  .jr-brand img {
    width: 108px;
  }
  .jr-site-header nav {
    gap: 16px;
    font-size: 13px;
  }
  .jr-site-header nav a:not(.jr-button):not([aria-current]) {
    display: none;
  }
  .jr-main {
    padding: 36px 16px 16px;
  }
  .jr-footer-bar {
    padding: 24px 16px 32px;
  }
  .jr-grid {
    grid-template-columns: 1fr;
  }
  .jr-hero {
    margin-bottom: 32px;
  }
  .jr-dek {
    font-size: 17px;
  }
  .jr-section {
    margin-top: 56px;
  }
  .jr-cta-band {
    padding: 32px 24px;
    margin-top: 64px;
  }
  .jr-prose {
    font-size: 16px;
  }
  .jr-prose h2 {
    font-size: 24px;
  }
  .jr-answer,
  .jr-prompt,
  .jr-about {
    padding: 20px 20px;
  }
  .jr-answer p:last-child {
    font-size: 17px;
  }
  .jr-steps li {
    padding: 14px 16px 14px 54px;
  }
  .jr-steps li::before {
    left: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jr-page *,
  .jr-index *,
  .jr-article * {
    transition: none !important;
  }
}
