/* css styles */

body {
  font-family: "Courier New", Courier, monospace;
  background: #f8f5ea;
  color: #111;
  line-height: 1.45;
}

/* Widen Quarto page area */
#quarto-content {
  max-width: 1500px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Widen main content while keeping right nav */
main.content {
  max-width: 1250px;
}

/* Keep ordinary paragraphs readable */
main.content > p {
  max-width: 75ch;
}

a {
  color: #111;
  text-decoration: underline;
}

h1, h2, h3 {
  font-weight: normal;
}

.archive-item {
  margin-bottom: 2rem;
}

.tag {
  font-size: 0.85rem;
  border: 1px solid #111;
  padding: 0.05rem 0.25rem;
}

.year-block {
  margin-top: 2.5rem;
}

.year-block h2 {
  border-bottom: 1px solid #111;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

.archive-grid {
  column-count: 2;
  column-gap: 2.5rem;
}

.archive-card {
  break-inside: avoid;
  border-top: 1px dotted #111;
  padding-top: 0.75rem;
  margin-bottom: 2rem;
  display: inline-block;
  width: 100%;
}

.archive-card h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.archive-card p {
  margin: 0.35rem 0;
}

.archive-card img {
  max-width: 100%;
  height: auto;
  border: 1px solid #111;
  margin-bottom: 0.5rem;
}

.meta {
  font-size: 0.85rem;
  color: #6b00cc;
}

@media (max-width: 900px) {
  #quarto-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  main.content {
    max-width: 100%;
  }

  .archive-grid {
  column-count: 1;
  }
}

/* Oversized archival images */

.archive-card.wide-left img,
.archive-card.wide-right img {
  width: 125%;
  max-width: none;
}

.archive-card.wide-left img {
  margin-left: -25%;
}

.archive-card.wide-right img {
  margin-right: -25%;
}

/* Mobile fallback */

@media (max-width: 900px) {

  .archive-card.wide-left img,
  .archive-card.wide-right img {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

}

.ascii-hula {
  font-family: "Courier New", Courier, monospace;
  white-space: pre;
  margin: 2rem 0;
  height: 1.5em;
  text-align: center;
}

.ascii-hula::before {
  content: "     (~‾▿‾)~";
  animation: hula-walk 2.4s steps(1, end) infinite;
}

@keyframes hula-walk {
  0%   { content: "(~‾▿‾)~"; }
  12%  { content: " (~‾▿‾)~"; }
  25%  { content: " ~(‾▿‾~)"; }
  37%  { content: "  ~(‾▿‾~)"; }
  50%  { content: "   (~‾▿‾)~"; }
  62%  { content: "   (~‾▿‾)~"; }
  75%  { content: "  ~(‾▿‾~)"; }
  87%  { content: " ~(‾▿‾~)"; }
  100% { content: "(~‾▿‾)~"; }
}

.ascii-groove {
  font-family: "Courier New", Courier, monospace;
  white-space: pre;
  margin: 2rem 0;
  height: 1.5em;
  text-align: center;
}

.ascii-groove::before {
  content: " ┌(˘⌣˘)ʃ";
  animation: groovebeat 1.8s steps(1,end) infinite;
}

@keyframes groovebeat {

  0%   { content: " ┌(˘⌣˘)ʃ"; }

  12%  { content: "  ┌(˘◡˘)ʃ"; }

  24%  { content: "   ┌(˘ᗜ˘)ʃ"; }

  36%  { content: "    ┌(˘⤙˘)ʃ"; }

  /* switch phrase */

  50%  { content: "    ʅ(˘⌣˘)┐"; }

  62%  { content: "   ʅ(˘◡˘)┐"; }

  74%  { content: "  ʅ(˘ᗝ˘)┐"; }

  86%  { content: " ʅ(˘⤚˘)┐"; }

  100% { content: " ┌(˘⌣˘)ʃ"; }

}

.ascii-groove2 {
  font-family: "Courier New", Courier, monospace;
  white-space: pre;
  margin: 2rem 0;
  height: 1.5em;
  text-align: center;
  opacity: 0.9;
}

.ascii-groove2::before {
  content: "    |( ˘_˘ )|";
  animation: groove2 2.4s steps(1,end) infinite;
}

@keyframes groove2 {
  0%   { content: "    (>˘_˘)>"; }
  8%   { content: "     (/ ˘_˘)/"; }
  16%  { content: "      (--˘_˘)--"; }
  24%  { content: "     (/ ˘_˘)/"; }
  32%  { content: "    (>˘_˘)>"; }
  40%  { content: "    |( ˘_˘ )|"; }

  48%  { content: "   <(˘_˘<)"; }
  56%  { content: "  \\(˘_˘ \\)"; }
  64%  { content: " --(˘_˘--)"; }
  72%  { content: "  \\(˘_˘ \\)"; }
  80%  { content: "   <(˘_˘<)"; }
  88%  { content: "    |( ˘_˘ )|"; }

  100% { content: "    (>˘_˘)>"; }
}

/* -------------------------------- */
/* Photographic archive objects     */
/* -------------------------------- */

/* No dotted rule above photo-only posts */
.archive-card.photo-card {
  border-top: none;
  padding-top: 0;
}

/* Two-image photographic object */
.photo-pair {
  display: table;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0.4rem 0;
  width: 100%;
  margin: 0 0 0.75rem 0;
  background: transparent;
}

/* Quarto/Bootstrap likes styling tables;
   strip all of that away here */
.photo-pair,
.photo-pair tbody,
.photo-pair tr,
.photo-pair td {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.photo-pair td {
  width: 30%;
  vertical-align: top;
}

/* Give both photographs exactly the same frame */
.photo-frame {
  width: 150%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

/* Fill the frame, cropping only what is necessary */
.photo-frame img {
  display: block;
  width: 104% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  margin: 0 !important;
  border: none !important;
}

/* Make the whole photographic object wider than the archive column */
.archive-card.photo-bleed-right .photo-pair {
  width: 150%;
  max-width: none;
}

.archive-card.photo-bleed-left .photo-pair {
  width: 150%;
  max-width: none;
  margin-left: -25%;
}

/* Caption */
.photo-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* On genuinely narrow screens, return to normal width.
   Keep the two photos beside one another. */
@media (max-width: 550px) {

  .archive-card.photo-bleed-right .photo-pair,
  .archive-card.photo-bleed-left .photo-pair {
    width: 100%;
    margin-left: 0;
  }

}

/* About page photograph */

.about-photo {
  width: min(700px, 82%);
  margin: 2.5rem 0 2.5rem auto;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
}

.about-photo p {
  margin-top: 0.45rem;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .about-photo {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}