/* Keep accessible link names available to screen readers without displaying
   a second, typed label beside Douglas's handwritten navigation artwork. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background-image: radial-gradient(rgba(24, 33, 31, 0.024) 0.7px, transparent 0.7px);
  background-size: 7px 7px;
}

.eyebrow,
.handwritten,
.photo-caption {
  display: inline-block;
  font-family: "Bradley Hand", "Segoe Print", "Chalkboard SE", cursive;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: none;
}

.eyebrow {
  position: relative;
  margin-bottom: 12px;
  color: var(--rust);
  transform: rotate(-1deg);
}

.eyebrow::after {
  position: absolute;
  right: -4px;
  bottom: -7px;
  left: 3px;
  height: 2px;
  background: currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.65;
  transform: rotate(-1deg);
}

.video-card {
  border-radius: 2px 7px 3px 5px;
  box-shadow: 0 13px 35px rgba(24, 33, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.video-card:nth-child(odd) { transform: rotate(-0.25deg); }
.video-card:nth-child(even) { transform: rotate(0.25deg); }

.video-card:hover,
.video-card:focus-visible {
  z-index: 2;
  box-shadow: 0 18px 42px rgba(24, 33, 31, 0.18);
  transform: translateY(-4px) rotate(0deg);
}

.video-card p {
  font-family: "Bradley Hand", "Segoe Print", "Chalkboard SE", cursive;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .video-card { transition: none; }
}

/* Douglas's own handwriting, supplied as individually isolated artwork. */
.handwritten-brand {
  display: inline-flex;
  min-width: 160px;
  align-items: center;
}

.ink-label {
  display: inline-block;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 160ms ease, filter 160ms ease;
}

.ink-name {
  width: 160px;
  height: 39px;
  background-image: url("assets/handwriting-name.png");
}

.ink-home {
  width: 65px;
  height: 28px;
  background-image: url("assets/handwriting-home.png");
}

.ink-about {
  width: 74px;
  height: 30px;
  background-image: url("assets/handwriting-about.png");
}

.ink-music {
  width: 61px;
  height: 28px;
  background-image: url("assets/handwriting-music.png");
}

.ink-videos {
  width: 55px;
  height: 31px;
  background-image: url("assets/handwriting-videos.png");
}

.ink-contact {
  width: 76px;
  height: 31px;
  background-image: url("assets/handwriting-contact.png");
}

/* The homepage title uses the same supplied handwritten name, separated into
   two lines so it replaces the former large, typed heading. */
.hero-location-handwritten {
  position: relative;
  display: block;
  width: min(82%, 300px);
  aspect-ratio: 1580 / 353;
  margin-bottom: 18px;
  background-image: url("assets/handwriting-edmonton-alberta.png");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: invert(35%) sepia(53%) saturate(1000%) hue-rotate(329deg) brightness(91%);
}

.hero-location-handwritten::after {
  position: absolute;
  right: 5px;
  bottom: -5px;
  left: 5px;
  height: 2px;
  background: #000;
  border-radius: 50%;
  content: "";
  opacity: 0.65;
  transform: rotate(-1deg);
}

.hero-handwritten-name {
  width: min(100%, 600px);
  margin: 0.12em 0 0.3em;
}

.hero-name-word {
  display: block;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
}

.hero-name-douglas {
  width: 82%;
  aspect-ratio: 825 / 411;
  background-image: url("assets/handwriting-douglas.png");
}

.hero-name-mitchell {
  width: 94%;
  aspect-ratio: 886 / 303;
  margin-top: -11%;
  margin-left: 2%;
  background-image: url("assets/handwriting-mitchell.png");
}

.nav-links a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.nav-links a[aria-current="page"] .ink-label {
  filter: invert(35%) sepia(53%) saturate(1000%) hue-rotate(329deg) brightness(91%);
}

.nav-links a:hover .ink-label,
.nav-links a:focus-visible .ink-label {
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .nav-links a {
    justify-content: flex-start;
  }
}

/* A quieter, warm paper tone keeps the clarity of the light design without
   the glare of a stark white screen. */
:root {
  --paper: #e8e5de;
  --cream: #ddd7cd;
}

.site-header {
  background: rgba(232, 229, 222, 0.94);
}

/* Handwritten page headings supplied by Douglas. The underline belongs to
   the heading treatment and takes on the same rust colour through the filter. */
.script-kicker {
  position: relative;
  display: block;
  margin-bottom: 26px;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: invert(35%) sepia(53%) saturate(1000%) hue-rotate(329deg) brightness(91%);
}

.script-kicker::after {
  position: absolute;
  right: 4px;
  bottom: -7px;
  left: 4px;
  height: 2px;
  background: #000;
  border-radius: 50%;
  content: "";
  opacity: 0.65;
  transform: rotate(-1deg);
}

.script-kicker-about {
  width: min(54%, 150px);
  aspect-ratio: 1003 / 407;
  background-image: url("assets/handwriting-about.png");
}

.script-kicker-music {
  width: min(51%, 136px);
  aspect-ratio: 838 / 385;
  background-image: url("assets/handwriting-music.png");
}

.script-kicker-selected {
  width: min(88%, 380px);
  aspect-ratio: 2494 / 372;
  background-image: url("assets/heading-selected-performances.png");
}

.script-kicker-contact {
  width: min(78%, 292px);
  aspect-ratio: 2353 / 598;
  background-image: url("assets/heading-contact-booking.png");
}

.script-elsewhere {
  display: block;
  width: min(78%, 190px);
  aspect-ratio: 1187 / 329;
  margin: 0 0 20px;
  background-image: url("assets/heading-elsewhere.png");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: rotate(-0.75deg);
  transform-origin: left center;
}

@media (max-width: 600px) {
  .script-kicker-selected {
    width: min(90%, 330px);
  }

  .script-kicker-contact {
    width: min(78%, 270px);
  }
}

/* A consistent signed footer across the site. */
.footer-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
}

.footer-signature,
.footer-location {
  display: block;
  background-repeat: no-repeat;
}

.footer-signature {
  width: 165px;
  aspect-ratio: 1757 / 423;
  background: var(--paper);
  -webkit-mask: url("assets/handwriting-name.png") left center / contain no-repeat;
  mask: url("assets/handwriting-name.png") left center / contain no-repeat;
}

.footer-location {
  width: 145px;
  aspect-ratio: 1580 / 353;
  margin-top: 8px;
  background: #d58b70;
  -webkit-mask: url("assets/handwriting-edmonton-alberta.png") left center / contain no-repeat;
  mask: url("assets/handwriting-edmonton-alberta.png") left center / contain no-repeat;
}

.footer-socials {
  justify-content: flex-end;
  align-items: center;
  max-width: 620px;
}

.footer-socials a {
  color: var(--paper);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.38em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: #d58b70;
  text-decoration-color: currentColor;
}

@media (max-width: 800px) {
  .footer-socials {
    justify-content: flex-start;
  }
}
