/* MindyBelden.com — the look of the original MindyMoritz.com, rebuilt to work
   on phones. Palette and type are taken from the 2021 stylesheet:
   pink #d6f page, purple #90f accents, Comic Sans. */

:root {
  --pink: #d6f;
  --purple: #90f;
  --ink: #111;
  --panel: rgba(255, 255, 255, 0.82);
  --shade: #ddd;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 10px;
  max-width: 900px;
  background: var(--pink);
  color: var(--ink);
  font-size: 14px;
  font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', arial, sans-serif;
  text-align: center;
}

img { border: 0; max-width: 100%; height: auto; }
p { text-align: left; }
h1.hidden { display: none; }
h2 { font-size: 140%; color: var(--purple); }
h3 { font-size: 130%; }
a { color: var(--purple); }
a:hover { color: #000; text-decoration: none; }
.hidden { display: none; }
.center { margin: auto; text-align: center; }

/* ---------- nav ---------- */
#topnav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #000 url('images/wb_grad.png') repeat-x;
  border: 1px solid var(--purple);
  font-size: 90%;
  font-weight: bold;
}
#topnav li { flex: 1 1 auto; border: 1px solid var(--purple); }
#topnav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 6px;
  color: var(--purple);
  text-decoration: none;
  white-space: nowrap;
}
#topnav a:hover, #topnav a[aria-current='page'] { color: #fff; }
#topnav img { max-height: 15px; vertical-align: middle; }

.footer {
  height: 30px;
  margin-top: 10px;
  background: #000 url('images/wb_grad.png') repeat-x;
  border: 1px solid var(--purple);
}

/* ---------- page shell ---------- */
.main {
  border: 1px solid var(--purple);
  background: #fff no-repeat;
  min-height: 400px;
  padding: 1px 0;
}

/* The cut-out photos sit behind the text on wide screens only; on a phone
   they would fight with the copy, so they are dropped below 880px. */
@media (min-width: 880px) {
  #index    { background-image: url('images/cutout_24.jpg'); background-position: left bottom; min-height: 750px; }
  #about    { background-image: url('images/cutout_03.jpg'); background-position: left bottom; }
  #music    { background-image: url('images/cutout_02.jpg'); background-position: left bottom; }
  #photos   { background-image: url('images/cutout_50.jpg'); background-position: right bottom; }
  #resume   { background-image: url('images/cutout_06.jpg'); background-position: 10px 10px; }
  #choreography { background-image: url('images/cutout_19.jpg'); background-position: left bottom; }
  #references   { background-image: url('images/cutout_04.jpg'); background-position: 10px 10px; min-height: 700px; }
  #contact  { background-image: url('images/cutout_01.jpg'); background-position: left bottom; }

  #about #content, #music #content { margin-left: 400px; margin-right: 30px; }
  #resume #content, #references #content { margin-left: 290px; margin-right: 30px; width: 65%; }
  #choreography #content { width: 65%; margin: 30px auto; }
  #contact #content { margin-left: 330px; margin-right: 20px; }
}

#content {
  padding: 10px;
  margin: 10px;
  background: var(--panel);
  border-radius: 3px;
}

/* ---------- home ---------- */
@media (min-width: 880px) {
  #index #content { width: 52%; margin-left: 400px; padding-top: 40px; }
}
#index #content { font-size: 130%; font-weight: bold; }
#logo { max-width: 100%; }

/* Text wordmark standing in for the original "Mindy Moritz" logo art.
   To use the original image instead, set logo.type to "image" in
   content/site.json — static/images/mindy-logo_full.png is still there. */
#wordmark { margin: 6px 0 2px; }
#wordmark .name {
  display: block;
  font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', cursive;
  /* Sized to keep the full name on one line inside the marquee. */
  font-size: clamp(1.55rem, 4.6vw, 2.45rem);
  line-height: 1.1;
  font-weight: bold;
  color: var(--purple);
  text-shadow: 2px 2px 0 #fff, -1px -1px 0 #4a007a, 3px 3px 6px rgba(0, 0, 0, .35);
}
#wordmark .roles {
  display: block;
  margin-top: 4px;
  /* Split evenly across lines rather than leaving a stub on the second. */
  text-wrap: balance;
  font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
  font-size: 92%;
  font-style: italic;
  font-weight: bold;
  color: #222;
}
@media (max-width: 480px) { #wordmark .name { font-size: clamp(1.35rem, 7.4vw, 2rem); } }
#homenav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-top: 14px; }
#homenav a { display: flex; align-items: center; gap: 6px; text-decoration: none; text-align: left; }
#homenav img { max-height: 34px; }
@media (max-width: 480px) { #homenav { grid-template-columns: 1fr; } }

/* Replaces the original Flash photo stack. */
#photostack {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 18px auto 0;
  aspect-ratio: 3 / 4;
}
#photostack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
#photostack img.on { opacity: 1; }

/* ---------- tables ---------- */
.data { width: 100%; margin: auto; text-align: left; border-collapse: collapse; font-size: 90%; }
.data th, .data td { padding: 3px 10px; }
.data th { border-bottom: 1px solid var(--purple); text-align: left; }
.data tbody tr:nth-child(odd) { background-color: var(--shade); }
#training td:first-child, #choreo_table td:nth-child(3) { text-align: center; }
.directed { font-style: normal; color: #840; }
.directed::before { content: '*'; }
.directed-min { font-style: normal; color: #067; }
.directed-min::before { content: '+'; }
.legend-key { margin: 10px 0; }
.legend { font-size: 85%; margin: 2px 0; }
.legend .mark { display: inline-block; width: 1em; font-weight: bold; color: #840; }
.legend + .legend .mark { color: #067; }

.tablewrap { overflow-x: auto; }

@media (max-width: 879px) {
  #content { margin: 6px; }
  .data { font-size: 85%; }
  .data th, .data td { padding: 3px 5px; }
}

/* ---------- résumé header ---------- */
#resume h2, #choreography h2 { margin-bottom: 4px; }
#resume h2 span, #choreography h2 span { display: block; color: #000; font-size: 70%; }
#resume h4, #choreography h4 { margin-top: 0; font-size: 90%; }
#resume h3, #choreography h3 { text-align: left; }

/* ---------- photo gallery ---------- */
#photo_gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
#photo_gallery button {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 5px solid;
  border-color: #000 #666 #444 #222;
  cursor: pointer;
}
#photo_gallery button:hover, #photo_gallery button:focus-visible {
  border-color: var(--purple) #006 #309 #60c;
}
#photo_gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .82);
  border: 0;
}
#lightbox[open] { display: flex; }
#lightbox img { max-width: 100%; max-height: 82vh; border: 5px solid #fff; }
#lightbox .close {
  position: absolute;
  top: 10px; right: 16px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--purple);
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

/* ---------- references ---------- */
#references h4 { text-align: left; margin: 14px 0 4px; }
.letter { border-bottom: 1px dotted #aaa; padding-bottom: 6px; }
.letter summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 105%;
  color: var(--purple);
  text-align: left;
  list-style: none;
  padding: 6px 0;
}
.letter summary::-webkit-details-marker { display: none; }
.letter summary::before { content: '+ '; font-weight: bold; }
.letter[open] summary::before { content: '\2212 '; }
.letter summary:hover { color: #000; }
.blurb { font-weight: bold; text-align: left; margin: 0 0 4px 14px; font-size: 92%; }
.letterbody { background: #ffd; padding: 8px 12px; margin-left: 14px; }
.letterbody .sig { text-align: right; }

/* ---------- contact ---------- */
#contactcard {
  text-align: left;
  background: var(--shade);
  border: 1px solid #000;
  padding: 12px 16px;
  margin: 10px 0;
}
#contactcard .email { font-size: 118%; font-weight: bold; word-break: break-all; }

/* ---------- music ---------- */
#music .note { background: #ffd; border: 1px dashed var(--purple); padding: 10px 14px; }
