/* Chalkboard on two posts. Used by the skills / recognition beach.
   Markup: .board > .board__face, .board__tray (3 spans), .board__post--l, .board__post--r */
.board {
  --wood: #b97a43;
  --wood-dark: #96602f;
  --board: #2d5548;
  --chalk: #f3f6ee;
  --focus: var(--chalk-yellow);
}

/* ---- chalkboard, posted in the sand ---- */
.board {
  position: relative;
  z-index: 0;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 170px;
}

.board__face {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(ellipse at 25% 15%, rgba(255, 255, 255, 0.07), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(255, 255, 255, 0.05), transparent 55%),
    var(--board);
  border: 14px solid var(--wood);
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18);
  color: var(--chalk);
  font-family: var(--font-chalk);
}

.board__photo {
  position: relative;
  margin: 0;
  padding: 10px 10px 6px;
  background: #fff;
  transform: rotate(-3deg);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}
.board__photo::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 92px;
  height: 26px;
  background: rgba(255, 232, 160, 0.88);
  transform: translateX(-50%) rotate(-4deg);
}
.board__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.board__photo figcaption {
  padding-top: 4px;
  text-align: center;
  font-size: var(--step-1);
  color: var(--ink);
}

.board__heading {
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem);
  margin-bottom: 16px;
}

.board__text {
  margin: 0;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.45;
  max-width: 52ch;
}
.board__text + .board__text { margin-top: 14px; }

.board__links {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
}

.board__links a {
  font-weight: 400;
  color: var(--chalk-yellow);
  border-bottom: 2px dashed var(--chalk-yellow);
}
.board__links a:hover { color: #fff; border-color: #fff; }

/* chalk ledge */
.board__tray {
  position: relative;
  height: 14px;
  margin: 0 -8px;
  background: var(--wood-dark);
  border-radius: 0 0 6px 6px;
}
.board__tray span {
  position: absolute;
  bottom: 100%;
  width: 34px;
  height: 8px;
  border-radius: 3px;
  background: var(--chalk);
}
.board__tray span:nth-child(1) { left: 16%; }
.board__tray span:nth-child(2) { left: calc(16% + 44px); width: 22px; background: var(--chalk-yellow); }
.board__tray span:nth-child(3) { right: 20%; width: 26px; background: var(--surf); }

/* posts */
.board__post {
  position: absolute;
  bottom: 40px;
  width: 26px;
  height: 132px;
  background: var(--wood-dark);
  z-index: -1;
}
.board__post::after {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -9px;
  width: 66px;
  height: 20px;
  border-radius: 50%;
  background: var(--sand-shade);
}
.board__post--l { left: 12%; }
.board__post--r { right: 12%; }

@media (max-width: 760px) {
  .board__face {
    grid-template-columns: 1fr;
    border-width: 10px;
  }
  .board__photo { max-width: 230px; margin: 6px auto 0; }
}
