/* aaroncphelps.com — notes pages. Ported from the v3 design reference. */

.notes-wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding: 8px 48px 80px;
}
.notes-intro {
  padding: 44px 24px 52px;
  margin-bottom: 24px;
  text-align: center;
}
.notes-kicker,
.note-card-meta,
.note-mark-caption {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.035em;
}
.notes-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #bcb4a4;
  margin-bottom: 16px;
}
.notes-pips {
  display: inline-flex;
  gap: 5px;
}
.notes-pips i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bcb4a4;
}
.notes-pips i:last-child {
  background: #e57647;
}
.notes-intro h1 {
  font-family: "proxima-sera", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin-inline: auto;
}
.notes-intro h1 em {
  font-style: normal;
  color: #e57647;
  display: block;
}
.notes-intro-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #c2bdb5;
  max-width: 44ch;
  margin: 20px auto 0;
}
#notes-list {
  scroll-margin-top: 24px;
}
.note-feature {
  --pip-hover: #78618a;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  background: #dad5cf;
  color: #262626;
}
.note-feature:hover {
  color: #262626;
}
.note-feature:focus-visible {
  outline-offset: 7px;
}
.note-feature-copy {
  padding: 32px 36px;
}
.note-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.note-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.note-feature .domino-pips {
  color: #a95030;
}
.note-feature .note-card-meta {
  color: #605a53;
  margin-bottom: 22px;
}
.note-feature .note-card-meta > span:first-child {
  color: #9a4527;
}
.note-feature h2 {
  font-family: "proxima-nova", -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.875rem, 3.1vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 19ch;
  text-wrap: pretty;
}
.note-feature-copy > p {
  margin-top: 15px;
  max-width: 34ch;
  color: #5a554f;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.note-read-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 32px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid #9e9890;
}
.note-read-link::after {
  content: '';
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  bottom: -1px;
  background: #c45d32;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 340ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
.note-feature:is(:hover, :focus-visible) .note-read-link::after {
  transform: scaleX(1);
}
.note-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
  border-left: 1px solid #bcb6ad;
}
.note-mark-grid {
  display: grid;
  grid-template-columns: repeat(9, 6px);
  gap: 20px;
  justify-content: center;
  align-content: center;
  padding: 26px;
}
.note-mark-grid i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aaa49b;
}
.note-mark-grid i:nth-child(31),
.note-mark-grid i:nth-child(33),
.note-mark-grid i:nth-child(23),
.note-mark-grid i:nth-child(41),
.note-mark-grid i:nth-child(22),
.note-mark-grid i:nth-child(24),
.note-mark-grid i:nth-child(40),
.note-mark-grid i:nth-child(42) {
  opacity: 0;
}
.note-mark-grid .note-mark-focus {
  background: #c95d32;
  box-shadow: 0 0 0 6px #c95d32;
  outline: 1px solid #a86145;
  outline-offset: 17px;
}
.note-mark-grid .note-mark-shimmer {
  animation: note-shimmer 29s ease-in-out infinite;
}
.note-mark-grid .shimmer-0 {
  --shimmer-color: #bd9580;
  animation-delay: -7s;
  animation-duration: 31s;
}
.note-mark-grid .shimmer-1 {
  --shimmer-color: #a398ad;
  animation-delay: -16s;
  animation-duration: 37s;
}
.note-mark-grid .shimmer-2 {
  --shimmer-color: #b9927f;
  animation-delay: -3s;
  animation-duration: 41s;
}
.note-mark-grid .shimmer-3 {
  --shimmer-color: #a394ad;
  animation-delay: -23s;
  animation-duration: 43s;
}
@keyframes note-shimmer {
  0%,
  72%,
  100% {
    opacity: 0.8;
    background: #aaa49b;
  }
  81% {
    opacity: 0.55;
    background: #aaa49b;
  }
  90% {
    opacity: 1;
    background: var(--shimmer-color);
  }
}
.note-mark-caption {
  margin-top: 22px;
  color: #605a53;
  text-align: center;
}
.notes-more {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #69645e;
  border-bottom: 1px solid #4d4d4d;
}
.note-card {
  display: block;
  min-width: 0;
  padding: 24px 28px 26px 0;
}
.note-card + .note-card {
  border-left: 1px solid #4d4d4d;
  padding-right: 0;
  padding-left: 28px;
}
.note-card .note-card-meta {
  color: #bcb4a4;
  margin-bottom: 16px;
}
.note-card-arrow {
  color: #e57647;
  font-family: "proxima-nova", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.375rem;
}
.note-card h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.625rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.note-card p {
  color: #bcb4a4;
  line-height: 1.5;
  font-size: 1rem;
  max-width: 40ch;
  margin-top: 10px;
}
.note-card:hover {
  color: #fff;
}
.note-card:is(:hover, :focus-visible) h2 {
  text-decoration: underline;
  text-decoration-color: #e57647;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.notes-page .footer-grid {
  max-width: 1120px;
  padding-inline: 48px;
}
.notes-page .footer-grid {
  padding-top: 36px;
}
@media (max-width: 900px) {
  .notes-wrap {
    padding: 8px 32px 56px;
  }
  .note-feature-copy {
    padding: 28px;
  }
  .note-mark {
    padding: 20px;
  }
  .note-mark-grid {
    gap: 16px;
    padding: 20px;
  }
  .notes-page .footer-grid {
    padding-inline: 32px;
  }
}
@media (max-width: 700px) {
  .notes-intro {
    padding: 36px 0 44px;
    margin-bottom: 16px;
  }
  .notes-intro h1 {
    font-size: clamp(2.625rem, 8vw, 3.5rem);
  }
  .notes-intro-description {
    max-width: 40ch;
  }
  .note-feature {
    grid-template-columns: 1fr;
  }
  .note-feature h2 {
    max-width: 22ch;
  }
  .note-mark {
    display: none;
  }
  .note-feature-copy {
    padding: 26px;
  }
  .notes-more {
    grid-template-columns: 1fr;
  }
  .note-card,
  .note-card + .note-card {
    padding: 24px 0;
    border-left: 0;
  }
  .note-card + .note-card {
    border-top: 1px solid #4d4d4d;
  }
}
@media (max-width: 480px) {
  .notes-wrap {
    padding: 4px 24px 40px;
  }
  .notes-kicker {
    margin-bottom: 18px;
  }
  .note-feature-copy {
    padding: 24px;
  }
  .note-feature .note-card-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  .note-feature h2 {
    font-size: 1.875rem;
  }
  .notes-page .footer-grid {
    padding-inline: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .note-mark-grid .note-mark-shimmer {
    animation: none;
  }
  .note-read-link::after {
    transition: none;
  }
}
