@font-face {
  font-family: Fredoka;
  src: url("assets/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  background: #fffaf2;
  color: #540b62;
  font: 16px/1.54 "Trebuchet MS", Verdana, sans-serif;
  scroll-padding-top: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #086e65; outline-offset: 3px; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; inset: 8px auto auto 8px; z-index: 2; background: white; padding: 10px; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
h1, h2, h3, h4, .pick { font-family: Fredoka, "Trebuchet MS", sans-serif; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.025em; }
.head, .head nav, footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.head { min-height: 78px; }
.brand img { display: block; width: clamp(104px, 13vw, 160px); height: auto; }
.head nav { gap: clamp(12px, 3vw, 32px); }
.head nav a, footer a { font-weight: 700; }
.head nav a { text-decoration: none; padding-block: 9px; }
.head nav a:hover, footer a:hover { text-decoration: underline; }
.head nav .home { background: #efe2f2; border-radius: 99px; padding: 9px 16px; }
.intro { display: grid; grid-template-columns: 42% 58%; background: #dcefe8; border-radius: 28px; overflow: hidden; }
.intro-copy { align-self: center; padding: clamp(24px, 3.3vw, 48px); }
h1 { font-size: clamp(44px, 5.2vw, 68px); }
.intro-copy p { margin-block: 16px 21px; max-width: 41ch; font-size: clamp(16px,1.3vw,19px); }
.action { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 18px; border-radius: 50px; background: #861099; color: white; font-weight: bold; text-decoration: none; }
.action:hover { background: #650676; }
.village { min-height: 260px; position: relative; }
.village img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.directory { margin-block: clamp(30px,4vw,50px) 32px; }
h2 { font-size: clamp(29px,3.4vw,43px); }
.cast { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 10px; }
.pick { display: flex; height: 100%; flex-direction: column; align-items: center; gap: 8px; justify-content: flex-start; padding: 10px 4px 11px; font-weight: 600; font-size: clamp(15px,1.4vw,20px); line-height: 1.1; text-align: center; text-decoration: none; border: 2px solid transparent; border-radius: 17px; }
.pick:hover { background: #f7eef3; }
.pick[aria-current="true"] { border-color: #8a3295; background: #fbf0fb; }
.thumb, .portrait { display: block; border-radius: 50%; overflow: hidden; background: var(--tint); }
.thumb { width: min(100%,92px); aspect-ratio: 1; }
.thumb img, .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile { display: grid; grid-template-columns: minmax(200px,34fr) minmax(0,66fr); border: 1px solid #e7d8d2; border-radius: 24px; overflow: hidden; background: #fffdf8; }
.profile + .profile { margin-top: 16px; }
.profile[hidden] { display: none; }
.profiles.is-enhanced .profile { margin-top: 0; }
.portrait-panel { display: grid; place-items: center; background: var(--tint); padding: 22px; }
.portrait { width: min(100%,235px); aspect-ratio: 1; border: 5px solid #fffaf1; }
.profile-copy { padding: clamp(20px,3vw,40px); align-self: center; }
.profile-copy h3 { font-size: clamp(30px,3.5vw,50px); margin-bottom: 12px; }
.profile-copy p { max-width: 64ch; }
.profile-copy h4 { font-size: 18px; margin-top: 16px; }
.profile-copy nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid #e5d5dd; margin-top: 22px; padding-top: 12px; }
.profile-copy nav a { font-weight: bold; display: inline-block; padding-block: 6px; }
footer { border-top: 1px solid #d9c1d6; padding: 16px 0 24px; flex-wrap: wrap; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 36px); }
  .cast { gap: 4px; }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 28px); }
  .head { min-height: 62px; }
  .head nav { gap: 10px; font-size: 13px; }
  .head nav .home { padding: 7px 11px; }
  .intro { grid-template-columns: 1fr; border-radius: 20px; }
  .intro-copy { padding: 22px; }
  h1 br { display: none; }
  .intro-copy p { margin: 10px 0 16px; }
  .village { min-height: 0; aspect-ratio: 2.45; }
  .cast { grid-template-columns: repeat(4,minmax(0,1fr)); margin: 14px 0 18px; }
  .pick { padding: 5px 2px 7px; gap: 5px; font-size: 15px; border-radius: 12px; }
  .thumb { max-width: 65px; }
  .profile { grid-template-columns: 1fr; }
  .portrait-panel { padding: 15px; }
  .portrait { width: 145px; border-width: 3px; }
  footer { font-size: 14px; }
}
