:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: light-dark(#f2f0e8, #20221f);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-height: 100vh;
  margin: 0;
}

button,
summary {
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

#bernard-concepts {
  --bp-reading-width: 760px;
  --bp-bg: light-dark(#f2f0e8, #20221f);
  --bp-ink: light-dark(#272f2a, #eaece3);
  --bp-muted: light-dark(#60695f, #b3baad);
  --bp-line: light-dark(#bfc5b8, #525d50);
  --bp-accent: light-dark(#bb451f, #ff9b73);
  --bp-green: light-dark(#d7dfc5, #374333);
  --bp-blue: light-dark(#d8e3e9, #30434d);
  --bp-paper: light-dark(#fcfbf5, #2b3029);
  --bp-lilac: light-dark(#deddeb, #403e50);
  --bp-yellow: light-dark(#e7ddb8, #4b442e);
  --bp-deep: light-dark(#2c342f, #111612);
  --bp-shadow: light-dark(rgba(39, 47, 42, 0.15), rgba(0, 0, 0, 0.34));
  min-height: 100vh;
  padding: 0 clamp(16px, 4vw, 40px) 22px;
  overflow: clip;
  color: var(--bp-ink);
  background: var(--bp-bg);
  font-size: 14px;
  line-height: 1.6;
  isolation: isolate;
}

.bp-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
}

#bernard-concepts a {
  color: inherit;
  text-decoration: none;
}

#bernard-concepts a:focus-visible,
#bernard-concepts button:focus-visible,
#bernard-concepts summary:focus-visible,
#bernard-concepts h1:focus-visible {
  outline: 2px solid var(--bp-accent);
  outline-offset: 4px;
}

.bp-nav {
  --bp-nav-bg: color-mix(in srgb, var(--bp-bg) 94%, transparent);
  --bp-nav-line: light-dark(#a8aaa6, #6a6d68);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 18px 0 19px;
  border-bottom: 1px solid var(--bp-nav-line);
  background: var(--bp-nav-bg);
  box-shadow: 0 0 0 100vmax var(--bp-nav-bg);
  clip-path: inset(0 -100vmax);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.bp-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.bp-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--bp-ink);
  transform: rotate(-12deg);
}

.bp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
}

.bp-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.bp-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 28px;
  padding: 46px 0 34px;
}

.bp-kicker {
  margin: 0;
  color: var(--bp-muted);
  font-size: 11px;
  letter-spacing: 0.17em;
}

#bernard-concepts h1 {
  margin: 15px 0 22px;
  font-family: "Songti SC", STSong, Georgia, serif;
  font-size: clamp(40px, 6.2vw, 66px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.05em;
}

#bernard-concepts h1 span {
  color: var(--bp-accent);
}

#bernard-concepts .bp-hero h1 {
  font-size: clamp(30px, calc(16px + 4vw), 66px);
  line-height: 1.25;
}

#bernard-concepts .bp-hero-line {
  display: block;
  color: inherit;
  text-wrap: balance;
}

.bp-hero-emphasis {
  display: inline-block;
}

.bp-intro {
  max-width: 345px;
  margin: 0;
  color: var(--bp-muted);
  line-height: 1.9;
}

.bp-creative-rule {
  width: 47px;
  height: 4px;
  margin-top: 25px;
  background: var(--bp-accent);
}

.bp-sculpture {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
}

.bp-sheet {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 150px;
  height: 175px;
  padding: 13px 14px;
  border: 1px solid var(--bp-ink);
  background: var(--bp-paper);
  box-shadow: 5px 6px 0 var(--bp-shadow);
  font-size: 12px;
  transition: transform 0.4s ease;
}

.bp-sheet:nth-child(1) {
  background: var(--bp-lilac);
  transform: translate(-65px, 6px) rotate(-18deg);
}

.bp-sheet:nth-child(2) {
  background: var(--bp-yellow);
  transform: translate(58px, -15px) rotate(17deg);
}

.bp-sheet:nth-child(3) {
  background: light-dark(#d8e3e9, #30434d);
  transform: translate(-20px, -32px) rotate(-7deg);
}

.bp-sheet:nth-child(4) {
  background: var(--bp-green);
  transform: translate(16px, 26px) rotate(5deg);
}

.bp-sheet strong {
  font-family: Georgia, serif;
  font-size: 52px;
  font-weight: 400;
}

.bp-sheet-mark {
  position: relative;
  align-self: center;
  width: 75px;
  height: 42px;
  border: 1px solid var(--bp-ink);
  transform: skewY(-20deg);
}

.bp-sheet-mark::before {
  position: absolute;
  inset: 10px -11px -10px 11px;
  border: 1px solid var(--bp-ink);
  content: "";
}

.bp-sculpture:hover .bp-sheet:nth-child(1) {
  transform: translate(-74px, 10px) rotate(-23deg);
}

.bp-sculpture:hover .bp-sheet:nth-child(2) {
  transform: translate(70px, -18px) rotate(22deg);
}

.bp-sculpture:hover .bp-sheet:nth-child(3) {
  transform: translate(-25px, -43px) rotate(-9deg);
}

.bp-sculpture:hover .bp-sheet:nth-child(4) {
  transform: translate(20px, 33px) rotate(7deg);
}

.bp-index-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--bp-ink);
  font-size: 12px;
}

.bp-index-head span:last-child {
  color: var(--bp-muted);
}

.bp-home-featured {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  margin: 26px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--bp-line);
  background: color-mix(in srgb, var(--bp-paper) 72%, transparent);
}

.bp-home-featured-head {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.bp-home-featured-head .bp-kicker {
  margin: 0;
}

.bp-home-featured-head > span {
  color: var(--bp-muted);
  font-size: 11px;
}

.bp-home-featured-links {
  display: grid;
}

.bp-home-featured-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bp-line);
  font-family: var(--bp-serif);
  font-size: clamp(17px, 1.7vw, 20px);
}

.bp-home-featured-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.bp-home-featured-badge {
  flex: 0 0 auto;
  padding: 0.18em 0.58em;
  border: 1px solid color-mix(in srgb, var(--bp-ink) 42%, transparent);
  border-radius: 0.45em;
  color: var(--bp-muted);
  font-family: var(--bp-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.bp-home-featured-links a:first-child {
  padding-top: 0;
}

.bp-home-featured-links a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.bp-home-featured-links a:only-child {
  align-items: center;
}

.bp-home-featured-links a > span:last-child {
  transition: transform 0.25s ease;
}

.bp-home-featured-links a:hover > span:last-child,
.bp-home-featured-links a:focus-visible > span:last-child {
  transform: translate(3px, -3px);
}

.bp-home-list-body {
  min-width: 0;
  align-self: center;
}
.bp-home-list-more { margin-top: 18px; }
.bp-home-list-more summary {
  width: fit-content;
  cursor: pointer;
  color: var(--bp-muted);
  font-size: 12px;
}
.bp-home-list-more summary:hover { color: var(--bp-ink); }
.bp-home-list-more summary:focus-visible { outline: 2px solid var(--bp-ink); outline-offset: 4px; }
.bp-home-list-more .bp-list-collapse,
.bp-home-list-more[open] .bp-list-expand { display: none; }
.bp-home-list-more[open] .bp-list-collapse { display: inline; }
.bp-home-list-more[open] > .bp-home-featured-links { margin-top: 18px; }
.bp-home-featured-links .bp-home-recent-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.bp-home-recent-link time { font-family: var(--bp-sans); font-size: 11px; color: var(--bp-muted); }
.bp-home-recent-copy { min-width: 0; }
.bp-home-recent-summary {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
  font-family: var(--bp-sans);
  font-size: 12px;
  color: var(--bp-muted);
}
@media (max-width: 600px) {
  .bp-home-featured-links .bp-home-recent-link { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .bp-home-recent-link time { grid-column: 1 / -1; }
}

.bp-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(430px, auto);
  gap: 18px;
}

.bp-project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
  min-width: 0;
  min-height: 430px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--bp-line);
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bp-project--practice {
  background: var(--bp-green);
}

.bp-project--product {
  background: var(--bp-yellow);
}

.bp-project--tech {
  background: var(--bp-blue);
}

.bp-project--kares {
  background: var(--bp-lilac);
}

.bp-project-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bp-pmeta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 38px;
  font-size: 11px;
}

#bernard-concepts h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.bp-project-copy > p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.9;
}

.bp-project-copy .bp-pmeta {
  flex-wrap: wrap;
  font-size: 12px;
  margin-bottom: 24px;
}

.bp-project-copy .bp-pmeta > span {
  white-space: nowrap;
}

.bp-project details,
.bp-enter {
  margin-top: auto;
}

.bp-project summary,
.bp-enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 11px 0 0;
  border: 0;
  border-top: 1px solid var(--bp-line);
  color: inherit;
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.bp-project summary {
  list-style: none;
}

.bp-project summary::-webkit-details-marker {
  display: none;
}

.bp-project summary::after {
  font-size: 20px;
  content: "↗";
}

.bp-project details[open] summary::after {
  content: "−";
}

.bp-project details p {
  margin: 12px 0 0;
  font-size: 12px;
}

.bp-creation-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--bp-line);
}

.bp-creation-stats > span {
  display: grid;
  flex: 1 0 max-content;
  gap: 2px;
}

.bp-creation-stats strong {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.bp-creation-stats small {
  color: var(--bp-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.bp-creation-notes {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.bp-project details .bp-creation-notes p {
  margin: 0;
  line-height: 1.75;
}

.bp-enter span {
  font-size: 20px;
}

.bp-window {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 250px;
  height: 300px;
  padding: 27px 23px 23px;
  overflow: hidden;
  border: 1px solid var(--bp-ink);
  background: var(--bp-paper);
  box-shadow: 9px 11px 0 var(--bp-shadow);
  transform: rotate(-1deg);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bp-window-title,
.bp-window-foot {
  position: relative;
  z-index: 4;
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.bp-window-title {
  color: var(--bp-ink);
}

.bp-window-foot {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--bp-muted);
  letter-spacing: 0.06em;
}

.bp-process {
  position: relative;
  display: grid;
  gap: 15px;
  margin: 37px 0 0;
  padding: 0;
  list-style: none;
}

.bp-process::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 9px;
  width: 1px;
  background: var(--bp-ink);
  content: "";
}

.bp-process li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  min-height: 25px;
}

.bp-process i {
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-left: 3px;
  border: 1px solid var(--bp-ink);
  background: var(--bp-paper);
  transform: rotate(45deg);
  transition: background 0.25s ease, transform 0.25s ease;
}

.bp-process strong {
  font-size: 14px;
  font-weight: 550;
}

.bp-process span {
  color: var(--bp-muted);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.bp-label-stack {
  position: relative;
  width: 176px;
  height: 158px;
  margin: 28px auto 0;
}

.bp-label-stack span {
  position: absolute;
  display: grid;
  width: 132px;
  height: 60px;
  place-items: center;
  border: 1px solid var(--bp-ink);
  background: var(--bp-paper);
  box-shadow: 5px 6px 0 var(--bp-shadow);
  font: 11px/1 Georgia, serif;
  letter-spacing: 0.14em;
  transition: transform 0.3s ease;
}

.bp-label-stack span:nth-child(1) {
  top: 0;
  left: 15px;
  transform: rotate(-8deg);
}

.bp-label-stack span:nth-child(2) {
  top: 47px;
  right: 0;
  background: var(--bp-lilac);
  transform: rotate(5deg);
}

.bp-label-stack span:nth-child(3) {
  top: 94px;
  left: 3px;
  background: var(--bp-green);
  transform: rotate(-2deg);
}

.bp-terminal {
  height: 190px;
  margin: 21px -5px 0;
  padding: 21px 16px;
  overflow: hidden;
  color: #f2f0e8;
  background: var(--bp-deep);
  font: 13px/1.85 "SFMono-Regular", Consolas, monospace;
  scroll-behavior: smooth;
  transition: transform 0.3s ease;
}

.bp-terminal code {
  display: block;
}

.bp-terminal-line {
  display: block;
  min-height: 1.85em;
  color: #c9cec7;
  white-space: nowrap;
}

.bp-terminal-line--command {
  color: #f2f0e8;
}

.bp-terminal-line--success {
  color: #b8d6a8;
}

.bp-terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-top: 2px;
  opacity: 0;
  background: var(--bp-accent);
  vertical-align: top;
}

.bp-terminal--running .bp-terminal-cursor {
  opacity: 1;
  animation: bp-terminal-blink 0.85s steps(1, end) infinite;
}

.bp-terminal--complete .bp-terminal-cursor {
  opacity: 1;
}

@keyframes bp-terminal-blink {
  50% {
    opacity: 0;
  }
}

.bp-folder-stack {
  position: relative;
  width: min(190px, 100%);
  height: 177px;
  margin: 25px auto 0;
}

.bp-folder-paper,
.bp-folder-cover {
  position: absolute;
}

.bp-folder-paper {
  bottom: 7px;
  left: 37px;
  z-index: 1;
  width: 108px;
  height: 153px;
  border: 1px solid var(--bp-ink);
  box-shadow: 4px 5px 0 var(--bp-shadow);
  transition: transform 0.34s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.bp-folder-paper--lower {
  z-index: 1;
  background: var(--bp-paper);
  transform: translate(28px, -20px) rotate(3deg);
}

.bp-folder-paper--upper {
  z-index: 2;
  background: var(--bp-paper);
  transform: translate(15px, -10px) rotate(1deg);
}

.bp-folder-paper i {
  position: absolute;
  right: 15px;
  left: 15px;
  height: 1px;
  background: var(--bp-line);
}

.bp-folder-paper i:nth-child(1) {
  top: 25px;
}

.bp-folder-paper i:nth-child(2) {
  top: 35px;
}

.bp-folder-paper i:nth-child(3) {
  top: 45px;
}

.bp-folder-cover {
  bottom: 0;
  left: 32px;
  z-index: 3;
  display: grid;
  width: 118px;
  height: 167px;
  place-items: center;
  border: 0;
  background: light-dark(#ddd2b6, #625a45);
  box-shadow: 0 6px 0 var(--bp-shadow);
}

.bp-folder-cover::before {
  position: absolute;
  inset: 7px;
  border-bottom: 1px solid var(--bp-line);
  border-left: 1px solid var(--bp-line);
  content: "";
}

.bp-folder-cover::after {
  position: absolute;
  right: 25px;
  bottom: 35px;
  left: 25px;
  height: 17px;
  background: repeating-linear-gradient(
    to bottom,
    var(--bp-line) 0 1px,
    transparent 1px 7px
  );
  content: "";
}

.bp-folder-cover strong {
  position: relative;
  margin-top: -9px;
  font: 42px/1 Georgia, serif;
}

.bp-folder-cover strong::before {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 35px;
  height: 5px;
  background: var(--bp-accent);
  content: "";
  transform: translateX(-50%);
}

.bp-project.bp-project--active {
  z-index: 2;
  box-shadow: 0 14px 28px var(--bp-shadow);
  transform: translateY(-4px);
}

.bp-project--active .bp-window {
  box-shadow: 12px 15px 0 var(--bp-shadow);
  transform: translateY(-3px) rotate(-2deg);
}

.bp-project--practice.bp-project--active .bp-process li:nth-child(2) i,
.bp-project--practice.bp-project--active .bp-process li:nth-child(4) i {
  background: var(--bp-green);
  transform: rotate(135deg) scale(1.08);
}

.bp-project--product.bp-project--active .bp-label-stack span:nth-child(1) {
  transform: translate(-7px, -5px) rotate(-11deg);
}

.bp-project--product.bp-project--active .bp-label-stack span:nth-child(2) {
  transform: translate(8px, 0) rotate(8deg);
}

.bp-project--product.bp-project--active .bp-label-stack span:nth-child(3) {
  transform: translate(-4px, 7px) rotate(-3deg);
}

.bp-project--kares.bp-project--active .bp-folder-paper--lower {
  transform: translate(49px, -40px) rotate(5deg);
}

.bp-project--kares.bp-project--active .bp-folder-paper--upper {
  transform: translate(26px, -24px) rotate(2deg);
}

.bp-subpage {
  padding: 28px 0 45px;
}

#bernard-concepts [hidden] {
  display: none !important;
}

.bp-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 24px;
  padding: 8px 0;
  border: 0;
  color: var(--bp-muted);
  background: transparent;
  cursor: pointer;
}

.bp-subintro {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--bp-muted);
  font-size: 16px;
  line-height: 1.9;
}

.bp-route-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: 36px;
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--bp-ink);
}

.bp-route-head h1,
.bp-detail-head h1 {
  margin-bottom: 0;
}

.bp-section-list {
  display: grid;
  gap: 18px;
  padding: 0 0 24px;
}

.bp-sort-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  font-size: 12px;
}

.bp-sort-switch > span {
  color: var(--bp-muted);
}

.bp-sort-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 72px;
  padding: 5px 11px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bp-paper) 78%, transparent);
  color: var(--bp-ink);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bp-sort-switch a:hover,
.bp-sort-switch a:focus-visible {
  border-color: var(--bp-ink);
  background: var(--bp-paper);
}

.bp-sort-switch--section {
  display: flex;
  margin: 34px 0 0 auto;
}

.bp-section-page {
  width: min(100%, var(--bp-reading-width));
  margin-inline: auto;
  padding-top: clamp(12px, 2.8vw, 28px);
  overflow-wrap: anywhere;
}

.bp-section-page > .bp-back {
  margin-bottom: 8px;
}

.bp-section-page .bp-route-head {
  padding: clamp(12px, 2vw, 24px) 0 clamp(24px, 3vw, 34px);
  gap: 24px;
}

#bernard-concepts .bp-section-page h1 {
  margin: 12px 0 0;
  font-size: clamp(32px, calc(20px + 3vw), 52px);
  line-height: 1.3;
}

.bp-section-page .bp-subintro {
  margin: 0;
}

.bp-section-page .bp-sort-switch--section {
  margin-top: 20px;
}

.bp-section-page .bp-section-list {
  gap: 16px;
  padding-top: 16px;
}

.bp-section-page .bp-subitem {
  margin-top: 0;
  padding: clamp(16px, 2.5vw, 24px);
}

.bp-section-page .bp-section-list .bp-subitem:first-child {
  margin-top: 0;
}

.bp-section-page .bp-pmeta {
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
  font-size: 12px;
}

#bernard-concepts .bp-section-page .bp-item-heading h2 {
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.5;
}

.bp-item-heading > span {
  flex-shrink: 0;
}

.bp-section-page .bp-outline {
  margin-top: 12px;
  padding-top: 10px;
}

.bp-section-list .bp-subitem:first-child {
  margin-top: 34px;
}

.bp-subitem {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--bp-line);
}

.bp-subitem-link {
  display: block;
  padding: 28px;
  border: 1px solid var(--bp-line);
  background: color-mix(in srgb, var(--bp-paper) 72%, transparent);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bp-subitem-link:hover,
.bp-subitem-link:focus-visible {
  box-shadow: 8px 9px 0 var(--bp-shadow);
  transform: translateY(-3px);
}

.bp-item-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.bp-item-heading > span {
  font-size: 21px;
}

.bp-subitem-link > p {
  max-width: 680px;
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
}

.bp-subitem .bp-pmeta {
  height: auto;
  margin-bottom: 15px;
  padding: 0;
  background: transparent;
}

.bp-outline {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--bp-line);
  color: var(--bp-muted);
  font-size: 12px;
}

.bp-empty-state {
  max-width: 720px;
  margin: 42px 0 90px;
  padding: 32px;
  border: 1px solid var(--bp-line);
  background: var(--bp-yellow);
}

[data-sort-region] > .bp-empty-state {
  margin-top: 34px;
}

.bp-empty-state h2 {
  margin-top: 18px;
}

.bp-empty-state > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--bp-muted);
  font-size: 15px;
  line-height: 1.9;
}

.bp-detail-head {
  max-width: 850px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--bp-ink);
}

.bp-detail-head .bp-pmeta {
  margin-bottom: 24px;
}

.bp-project-detail-head {
  max-width: none;
}

.bp-detail-lede {
  max-width: 680px;
  margin: 0;
  color: var(--bp-muted);
  font-size: 18px;
  line-height: 1.85;
}

.bp-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 54px;
  padding: 42px 0 54px;
}

.bp-detail-layout--project {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}

.bp-detail-layout--project > .bp-detail-content {
  min-width: 0;
}

.bp-project-info-band {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--bp-line);
}

.bp-project-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 54px;
  margin: 24px 0 0;
}

.bp-project-info-list > div {
  min-width: 0;
}

.bp-project-info-list > div:only-child {
  grid-column: 1 / -1;
}

.bp-project-info-list dt {
  color: var(--bp-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.bp-project-info-list dd {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.75;
}

.bp-article-page {
  width: min(100%, var(--bp-reading-width));
  margin-inline: auto;
  padding-top: clamp(12px, 2.8vw, 28px);
  padding-bottom: 18px;
  overflow-wrap: anywhere;
}

.bp-article-page > .bp-back {
  margin-bottom: 8px;
}

.bp-article-page .bp-article-head {
  padding-top: 12px;
}

.bp-article-page .bp-detail-lede {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.85;
}

.bp-article-page > .bp-detail-head {
  width: min(100%, 760px);
  margin-inline: auto;
}

.bp-article-page + .bp-foot {
  margin-top: 18px;
}

.bp-detail-content {
  display: grid;
  gap: 38px;
}

.bp-detail-section {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 18px;
}

.bp-detail-index {
  grid-row: 1 / span 2;
  margin: 5px 0 0;
  color: var(--bp-accent);
  font: 15px/1 Georgia, serif;
}

.bp-detail-section h2 {
  margin-bottom: 8px;
}

.bp-project-section-body {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.95;
}

.bp-project-section-body > :first-child {
  margin-top: 0;
}

.bp-project-section-body > :last-child {
  margin-bottom: 0;
}

.bp-project-meta-list {
  margin: 18px 0 22px;
  border-top: 1px solid var(--bp-line);
}

.bp-project-meta-list > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--bp-line);
  font-size: 12px;
  line-height: 1.65;
}

.bp-project-meta-list dt {
  margin-bottom: 4px;
  color: var(--bp-muted);
}

.bp-project-meta-list dd {
  margin: 0;
  white-space: pre-line;
}

.bp-detail-aside {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--bp-line);
  background: var(--bp-paper);
}

.bp-detail-aside > p:not(.bp-kicker) {
  margin: 18px 0 22px;
  color: var(--bp-muted);
  line-height: 1.85;
}

.bp-article-meta {
  display: grid;
  gap: 0;
  margin: 18px 0 22px;
}

.bp-article-meta > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bp-line);
  font-size: 12px;
  line-height: 1.6;
}

.bp-article-meta dt {
  color: var(--bp-muted);
}

.bp-article-meta dd {
  margin: 0;
}

.bp-detail-aside a {
  display: inline-block;
  margin-right: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--bp-line);
  font-size: 12px;
}

.bp-project-journal {
  width: 100%;
  margin-inline: auto;
  padding: 34px 0 54px;
  border-top: 1px solid var(--bp-ink);
}

.bp-project-journal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.bp-project-journal-head .bp-sort-switch {
  transform: translateY(-10px);
}

.bp-project-journal-head h2 {
  margin: 14px 0 0;
  font-size: clamp(25px, 3vw, 38px);
}

.bp-project-entry-list {
  display: grid;
  gap: 14px;
}

.bp-project-entry {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--bp-line);
  background: color-mix(in srgb, var(--bp-paper) 72%, transparent);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bp-project-entry:hover,
.bp-project-entry:focus-visible {
  box-shadow: 6px 7px 0 var(--bp-shadow);
  transform: translateY(-2px);
}

.bp-project-entry .bp-pmeta {
  height: auto;
  margin-bottom: 12px;
  padding: 0;
  background: transparent;
}

.bp-project-entry h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 29px);
  font-weight: 560;
}

.bp-project-entry > p,
.bp-project-journal-empty {
  margin: 0;
  color: var(--bp-muted);
  font-size: 15px;
  line-height: 1.85;
}

/* Project pages share one reading column from introduction to journal. */
.bp-project-page {
  width: min(100%, var(--bp-reading-width));
  margin-inline: auto;
  padding-top: clamp(12px, 2.8vw, 28px);
  overflow-wrap: anywhere;
}

.bp-project-page > .bp-back {
  min-height: 44px;
  margin-bottom: clamp(4px, 0.8vw, 8px);
}

.bp-project-detail-head {
  position: relative;
  padding: clamp(4px, 0.8vw, 8px) 0 clamp(8px, 2vw, 24px);
}

.bp-project-detail-head .bp-pmeta,
.bp-project-info-toggle {
  color: var(--bp-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

.bp-project-detail-head .bp-pmeta {
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.bp-project-detail-head .bp-pmeta span + span {
  padding-left: 16px;
  border-left: 1px solid var(--bp-line);
}

#bernard-concepts .bp-project-detail-head h1 {
  margin: clamp(10px, 1vw, 12px) 0 clamp(12px, 1.5vw, 18px);
  font-size: clamp(32px, calc(20px + 2vw), 48px);
  line-height: 1.3;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.bp-project-detail-head .bp-detail-lede {
  max-width: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
}

.bp-project-page .bp-project-info-band {
  margin-top: clamp(8px, 1vw, 12px);
  padding: 0;
  border: 0;
}

.bp-project-info-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 4px 8px 0;
  cursor: pointer;
  list-style: none;
}

.bp-project-info-toggle::-webkit-details-marker {
  display: none;
}

.bp-project-info-toggle:hover {
  color: var(--bp-accent);
}

.bp-project-info-state {
  font-size: 12px;
}

.bp-project-info-state--open,
.bp-project-info-band[open] .bp-project-info-state--closed {
  display: none;
}

.bp-project-info-band[open] .bp-project-info-state--open {
  display: inline;
}

.bp-project-info-chevron {
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.bp-project-info-band[open] .bp-project-info-chevron {
  transform: rotate(225deg);
}

.bp-project-page .bp-project-info-list {
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--bp-line);
}

.bp-project-page .bp-project-info-list > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
}

.bp-project-page .bp-project-info-list dt {
  font-size: 12px;
}

.bp-project-page .bp-project-info-list dd {
  margin: 0;
  line-height: 1.85;
}

.bp-project-page .bp-detail-layout--project {
  display: block;
  padding: clamp(24px, 3vw, 36px) 0 clamp(32px, 4vw, 40px);
}

.bp-project-page .bp-detail-content {
  gap: clamp(26px, 3vw, 30px);
}

.bp-project-page .bp-detail-section {
  display: block;
}

#bernard-concepts .bp-project-page .bp-detail-section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 clamp(8px, 1vw, 12px);
  font-size: clamp(20px, 2.2vw, 22px);
  line-height: 1.5;
}

.bp-project-page .bp-detail-index {
  flex: 0 0 auto;
  margin: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bp-project-page .bp-project-section-body {
  max-width: none;
  line-height: 1.9;
}

.bp-project-section-body img {
  max-width: 100%;
  height: auto;
}

.bp-project-section-body pre,
.bp-project-section-body table {
  max-width: 100%;
  overflow-x: auto;
}

.bp-project-section-body table {
  display: block;
}

.bp-project-page .bp-project-journal {
  padding: 30px 0 12px;
}

.bp-project-page .bp-project-journal-head {
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

#bernard-concepts .bp-project-page .bp-project-journal-head h2 {
  margin: 8px 0 0;
  font-size: clamp(23px, 2.6vw, 26px);
}

.bp-project-page .bp-project-journal-head .bp-sort-switch {
  transform: none;
  flex-shrink: 0;
}

.bp-project-page .bp-sort-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.bp-project-page .bp-project-entry {
  min-width: 0;
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2.5vw, 24px);
}

.bp-project-page .bp-project-entry h3 {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
  margin-bottom: 8px;
}

.bp-project-page .bp-project-entry > p {
  max-width: none;
  line-height: 1.8;
}

.bp-project-page .bp-project-entry .bp-pmeta {
  font-size: 12px;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 8px;
}

.bp-project-page .bp-project-entry .bp-outline {
  margin-top: 12px;
  padding-top: 10px;
}

@media (min-width: 900px) {
  #bernard-concepts .bp-project-page .bp-detail-section h2 {
    position: relative;
  }

  .bp-project-page .bp-detail-index {
    position: absolute;
    right: calc(100% + 12px);
    top: 11px;
  }
}

@media (max-width: 760px) {
  .bp-project-page .bp-project-info-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bp-project-page .bp-project-info-list > div {
    display: grid;
    grid-template-columns: minmax(0, 5.5em) minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
  }

  .bp-project-page .bp-project-info-list dd {
    margin: 0;
  }

  .bp-project-page .bp-project-journal-head {
    flex-direction: row;
    flex-wrap: wrap;
  }

}

@media (max-width: 390px) {
  .bp-project-page .bp-project-info-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

.bp-article-head {
  max-width: 900px;
}

#bernard-concepts .bp-article-head h1 {
  max-width: 900px;
  font-size: clamp(30px, calc(20px + 2.5vw), 52px);
  line-height: 1.35;
  text-wrap: balance;
}

.bp-article-content {
  width: min(100%, 760px);
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 44px) 0 16px;
  font-size: clamp(16px, calc(15px + 0.2vw), 17px);
}

#bernard-concepts .bp-article-content h2 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(23px, 2.8vw, 34px);
}

#bernard-concepts .bp-article-content h3 {
  margin: 1.9em 0 0.65em;
  font-size: clamp(19px, 2.2vw, 25px);
}

#bernard-concepts .bp-article-content > :first-child {
  margin-top: 0;
}

.bp-article-content p {
  margin: 0 0 1.35em;
  font-size: inherit;
  line-height: 1.9;
}

.bp-article-content > p {
  text-align: justify;
  text-indent: 2em;
  text-justify: inter-ideograph;
}

#bernard-concepts .bp-article-content a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

#bernard-concepts .bp-article-content a:hover,
#bernard-concepts .bp-article-content a:focus-visible {
  text-decoration-color: currentColor;
}

.bp-article-content ul,
.bp-article-content ol {
  margin: 0 0 1.7em;
  padding-left: 1.6em;
  font-size: inherit;
  line-height: 1.9;
}

.bp-article-content li + li {
  margin-top: 0.35em;
}

.bp-article-content li > p {
  margin-bottom: 0.65em;
  text-indent: 0;
}

.bp-article-content blockquote {
  margin: 2em 0;
  padding: 0.15em 0 0.15em 1.35em;
  border-left: 3px solid var(--bp-ink);
  color: var(--bp-muted);
}

.bp-article-content blockquote p {
  margin-bottom: 0.8em;
  text-indent: 0;
}

.bp-article-content blockquote p:last-child {
  margin-bottom: 0;
}

.bp-article-content code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--bp-line);
  background: var(--bp-paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.bp-article-content pre {
  margin: 2em 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--bp-line);
  background: var(--bp-paper);
  font-size: 14px;
  line-height: 1.75;
}

.bp-article-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
  overflow-wrap: normal;
}

.bp-article-content hr {
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--bp-line);
}

.bp-article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: normal;
}

.bp-article-content th,
.bp-article-content td {
  min-width: 10em;
  padding: 10px 12px;
  border: 1px solid var(--bp-line);
  text-align: left;
  vertical-align: top;
}

.bp-article-content th {
  background: var(--bp-paper);
  font-weight: 600;
}

.bp-table-scroll {
  max-width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.bp-table-scroll:focus-visible {
  outline: 2px solid var(--bp-accent);
  outline-offset: 4px;
}

.bp-table-scroll table {
  display: table;
  margin: 0;
}

.bp-article-content .bp-table-hint {
  margin: 1.6em 0 8px;
  color: var(--bp-muted);
  font-size: 12px;
  text-align: left;
  text-indent: 0;
}

.bp-table-hint:not([hidden]) + .bp-table-scroll {
  margin-top: 0;
}

.bp-article-content img {
  max-width: 100%;
  height: auto;
}

.bp-article-figure {
  width: min(100%, 680px);
  margin: 2.4rem auto 2.6rem;
}

.bp-article-figure a,
.bp-article-figure img {
  display: block;
}

.bp-article-figure a {
  color: inherit;
}

.bp-article-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--bp-line);
  background: var(--bp-paper);
}

.bp-article-figure figcaption {
  margin-top: 10px;
  color: var(--bp-muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}

.bp-article-end {
  width: min(100%, 760px);
  margin: 24px auto 0;
  padding: 24px 0 0;
  border-width: 1px 0 0;
  border-color: var(--bp-ink);
  background: transparent;
}

.bp-article-end-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bp-article-end .bp-kicker {
  flex: 0 0 auto;
  margin: 0;
}

.bp-article-end .bp-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 0;
}

.bp-article-end .bp-article-meta > div {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  padding: 0;
  border: 0;
  font-size: 13px;
}

.bp-article-nav {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--bp-line);
  border-bottom: 1px solid var(--bp-line);
}

.bp-detail-aside .bp-article-nav-link {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 16px 18px;
  border-top: 0;
  font-size: 12px;
}

.bp-article-nav-link + .bp-article-nav-link {
  border-left: 1px solid var(--bp-line);
}

.bp-article-nav-link span {
  color: var(--bp-muted);
}

.bp-article-nav-link strong {
  font-size: 15px;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.bp-article-nav-link--next {
  text-align: right;
}

.bp-article-nav-link.is-disabled {
  color: var(--bp-muted);
  cursor: default;
}

.bp-foot {
  position: relative;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--bp-line);
  color: var(--bp-muted);
  font-size: 12px;
}

.bp-foot::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 42px;
  height: 4px;
  background: var(--bp-accent);
  content: "";
}

.bp-note-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin: 3px 0 12px;
  color: var(--bp-ink);
}

.bp-note-heading span:last-child {
  color: var(--bp-muted);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.bp-site-note p {
  max-width: 760px;
  margin: 8px 0;
  line-height: 1.9;
}

.bp-foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding-top: 13px;
  border-top: 1px solid var(--bp-line);
  font-size: 11px;
}

.bp-foot-records {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.bp-foot-records a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bp-foot--full .bp-foot-bar {
  margin-top: 24px;
}

.bp-foot--compact .bp-foot-bar {
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 1199px) {
  .bp-projects {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(370px, auto);
  }

  .bp-project {
    grid-template-columns: minmax(0, 1fr) 270px;
    min-height: 370px;
  }
}

@media (max-width: 900px) {
  .bp-hero {
    grid-template-columns: 1fr;
  }

  .bp-section-page .bp-route-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .bp-article-content > p {
    text-align: left;
  }

  .bp-article-nav {
    grid-template-columns: 1fr;
  }

  .bp-article-end .bp-article-nav-link + .bp-article-nav-link {
    border-left: 0;
    border-top: 1px solid var(--bp-line);
  }

  .bp-article-nav-link--next {
    text-align: left;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 88px;
  }

  #bernard-concepts {
    padding-bottom: 20px;
  }

  .bp-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 0;
  }

  .bp-logo {
    align-self: flex-start;
  }

  .bp-links {
    gap: 0 clamp(6px, 2vw, 14px);
    font-size: 13px;
  }

  .bp-hero {
    grid-template-columns: 1fr;
    padding: 29px 0;
  }

  .bp-sculpture {
    height: 230px;
    margin-top: 14px;
  }

  .bp-sheet {
    width: 110px;
    height: 140px;
    padding: 10px;
    font-size: 11px;
  }

  .bp-sheet strong {
    font-size: 32px;
  }

  .bp-sheet-mark {
    width: 48px;
    height: 26px;
  }

  .bp-projects {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .bp-home-featured {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .bp-home-featured-head {
    flex-direction: row;
    align-items: baseline;
  }

  .bp-home-featured-title {
    align-items: center;
  }

  .bp-project {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 22px;
  }

  .bp-project-copy {
    min-height: 205px;
  }

  .bp-window {
    width: min(250px, 72vw);
    max-width: 100%;
    height: auto;
    aspect-ratio: 5 / 6;
  }

  .bp-pmeta {
    margin-bottom: 20px;
  }

  .bp-foot-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .bp-foot-records {
    justify-content: flex-start;
  }

  .bp-route-head,
  .bp-detail-layout {
    grid-template-columns: 1fr;
  }

  .bp-route-head {
    gap: 6px;
  }

  .bp-detail-layout {
    gap: 34px;
  }

  .bp-detail-layout--project {
    grid-template-columns: 1fr;
  }

  .bp-project-info-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bp-article-end-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .bp-article-end .bp-article-meta {
    gap: 10px 24px;
  }

  .bp-detail-aside .bp-article-nav-link {
    padding: 14px 12px;
  }

  .bp-subitem-link,
  .bp-empty-state {
    padding: 22px;
  }

  .bp-detail-section {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 4px 10px;
  }

  .bp-project-journal {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bp-project-journal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bp-project-journal-head .bp-sort-switch {
    transform: none;
  }

  .bp-section-list .bp-subitem:first-child {
    margin-top: 24px;
  }

  .bp-sort-switch--section {
    margin-top: 24px;
  }

  [data-sort-region] > .bp-empty-state {
    margin-top: 24px;
  }

  .bp-project-entry {
    padding: 20px;
  }

}

@media (max-width: 390px) {
  #bernard-concepts {
    padding-bottom: 17px;
  }

  .bp-project {
    padding: 18px;
  }

  .bp-window {
    width: min(238px, 73vw);
    padding-right: 19px;
    padding-left: 19px;
  }

  .bp-terminal {
    font-size: 12.5px;
  }

  .bp-folder-stack {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bp-sheet,
  .bp-project,
  .bp-window,
  .bp-process i,
  .bp-label-stack span,
  .bp-terminal,
  .bp-folder-paper {
    transition: none;
  }

  .bp-terminal-cursor {
    animation: none;
  }
}
