:root {
  --gold: #ffda9d;
  --p-cream: #fff3db;
  --p-plum: #423347;
  --p-indigo: #273752;
  --p-pink: #eea99b;
}
body {
  background:
    radial-gradient(ellipse at 82% 4%, #4e5374, transparent 43%),
    linear-gradient(150deg, #24384f, #263a47 65%, #354b49);
  color: var(--p-cream);
}
header {
  background: #213247;
  border-color: #666779;
}
.top nav a {
  color: #e7dcca;
}
.top,
main,
footer {
  max-width: 1250px;
}
.picnic-poster {
  display: grid;
  grid-template-columns: 1.19fr 0.87fr;
  position: relative;
  align-items: stretch;
  margin: 26px 0 16px;
  border: 1px solid #c2ab87;
  border-radius: 17px;
  overflow: hidden;
  background: #f8ebd4;
  color: var(--p-plum);
  box-shadow: 0 12px 26px #17212f48;
}
.picnic-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  min-height: 335px;
}
.invite {
  position: relative;
  align-content: center;
  padding: clamp(24px, 3.6vw, 52px);
  background: repeating-linear-gradient(0deg, transparent 0 6px, #f5e4cd55 7px 8px), #f9efdb;
}
.invite:before,
.invite:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    135deg,
    #d78e89 0 9px,
    #f8ecd5 9px 18px,
    #708798 18px 27px,
    #f8ecd5 27px 36px
  );
}
.invite:before {
  top: 0;
}
.invite:after {
  bottom: 0;
}
.seal-icon,
.stamp {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 2px solid #b46b66;
  outline: 1px dashed #a95e5a;
  outline-offset: 3px;
  border-radius: 50%;
  font-size: 1.45rem;
  background: #e9a396;
  color: #623e46;
}
.overline,
.pic-head small,
.outing-card small,
.souvenir small {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}
.overline {
  color: #82625b;
  margin: 18px 0 5px;
}
.invite h1,
.pic-head h1,
.p-book h2,
.souvenir h2,
.picnic-order strong {
  font-family: Georgia, serif;
  letter-spacing: -0.043em;
  line-height: 1.04;
}
.invite h1 {
  font-size: clamp(56px, 6.1vw, 88px);
  margin: 0;
}
.invite p:not(.overline) {
  max-width: 35ch;
  font-size: 1.08rem;
  margin: 16px 0 19px;
  font-weight: 650;
}
.cta,
button.cta {
  display: inline-block;
  background: #ffd196;
  color: #403244;
  text-decoration: none;
  border: 1px solid #efb870;
  border-radius: 9px;
  padding: 9px 15px;
  font-weight: 900;
}
.invite .cta {
  background: #354c55;
  color: #fff1d8;
  border-color: #354c55;
}
.outing-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.outing-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f8ead4;
  padding: 14px;
  background: #35495c;
  border: 1px solid #82929c;
  border-radius: 11px;
}
.outing-card:hover,
.out-tabs a:hover {
  background: #41536a;
}
.out-icon {
  background: #e9b899;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  flex: none;
  display: grid;
  place-items: center;
  color: #4a4051;
  font-size: 20px;
}
.outing-card small {
  color: #f7c99f;
}
.outing-card strong,
.outing-card span:not(.out-icon) {
  display: block;
}
.outing-card strong {
  font:
    700 20px/1.15 Georgia,
    serif;
  margin: 4px 0;
}
.outing-card div > span {
  color: #d9dedb;
  font-size: 0.87rem;
}
.p-sources {
  margin: 17px 0;
  padding: 12px 15px;
  border: 1px solid #6d8090;
  border-radius: 9px;
  background: #2c4053;
}
.p-sources summary,
.math summary {
  cursor: pointer;
  font-weight: 900;
}
.p-sources summary {
  color: var(--gold);
}
.p-sources li {
  margin: 6px 0;
}
.pic-head {
  margin: 21px 0 12px;
}
.pic-head small {
  color: #ffcfac;
}
.pic-head h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  margin: 4px 0;
}
.out-tabs,
.picnic-tools,
.roster,
.weigh {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.out-tabs {
  margin: 0 0 13px;
}
.out-tabs a {
  color: #f3e9d6;
  border: 1px solid #8c94a1;
  border-radius: 16px;
  text-decoration: none;
  padding: 5px 13px;
  font-size: 0.93rem;
}
.out-tabs .selected {
  background: #f8c29f;
  color: #483a49;
  border-color: #f5c588;
}
.p-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(265px, 1fr);
  gap: 15px;
  align-items: start;
}
.work-mat,
.p-book {
  border: 1px solid #9ca4a2;
  border-radius: 15px;
  padding: clamp(13px, 1.7vw, 23px);
  background: #344c57;
}
.work-mat {
  border-top: 7px solid #ce9187;
}
.p-book {
  background: #2c4052;
}
.p-book h2,
.souvenir h2 {
  margin: 0 0 12px;
  font-size: 30px;
}
.p-book p {
  font-size: 0.93rem;
}
.p-book .worked-flow {
  margin-bottom: 12px;
}
.picnic-order {
  background: #fcf0d9;
  color: #443a46;
  border-left: 5px solid #df9e93;
  padding: 10px 13px;
  border-radius: 8px;
}
.picnic-order strong {
  font-size: 23px;
}
.picnic-order p {
  font-weight: 650;
  margin: 5px 0 0;
  font-size: 0.95rem;
}
.timebar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  color: #f7d6ab;
  font-size: 0.86rem;
  margin: 10px 0;
}
.weigh {
  margin: 7px 0;
}
.work-mat button {
  border-color: #9baaac;
  background: #3c5665;
  font-size: 0.88rem;
}
.work-mat button[aria-pressed='true'] {
  border-color: #f7d59c;
  color: #433645;
  background: #f6d4a4;
}
.work-mat button.cta {
  background: #ffd196;
  color: #403244;
  border-color: #dfb282;
}
.memory-stack {
  display: grid;
  gap: 6px;
  margin: 9px 0;
}
.memory-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  background: #f6ead4;
  color: #423e46;
  padding: 9px;
  border-radius: 7px;
}
.memory-row > strong {
  font: 700 0.94rem monospace;
}
.memory-row b {
  font-size: 0.92rem;
}
.memory-row small {
  font-size: 0.77rem;
  font-weight: 700;
  color: #665c5f;
}
.memory-id {
  color: #724b4c;
  background: #ebc5ad;
  padding: 4px 8px;
  border-radius: 50%;
  font:
    700 1.05rem Georgia,
    serif;
}
.score-track {
  height: 5px;
  display: flex;
  background: #dfd4c5;
  max-width: 220px;
  border-radius: 6px;
  overflow: hidden;
  margin: 3px 0;
}
.bar-0 {
  background: #5379a3;
}
.bar-1 {
  background: #a36d52;
}
.bar-2 {
  background: #55846c;
}
.weigh button:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 2px;
}
.weight-0:before {
  background: #5379a3;
}
.weight-1:before {
  background: #a36d52;
}
.weight-2:before {
  background: #55846c;
}
.math,
.private-log,
.schedule,
.event-list,
.threadline {
  margin: 12px 0;
  padding: 10px 13px;
  background: #293f4b;
  border: 1px solid #738a8e;
  border-radius: 8px;
}
.math summary {
  color: #ffe1ae;
  font-size: 0.92rem;
}
.math p,
.math li,
.private-log li {
  font-size: 0.87rem;
}
.math ul,
.private-log ol {
  padding-left: 19px;
}
#picnic-status {
  font-size: 0.93rem;
  color: #ffe1b9;
  border-left: 3px solid #e5ad83;
  background: #443e4a;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 10px 0 0;
}
#picnic-status:empty {
  display: none;
}
.bell-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 20px 5px 10px;
}
.bell-counter strong {
  font:
    700 46px/1 Georgia,
    serif;
  color: #ffd394;
}
.bell-counter span {
  font-size: 38px;
}
.bell-counter small {
  max-width: 8ch;
}
progress {
  width: 100%;
  accent-color: #ffd699;
}
.event-list p {
  margin: 5px 0;
}
.pinboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 9px 0;
}
.pinboard button {
  text-align: left;
  padding: 9px 11px;
}
.picnic-tools {
  margin: 9px 0;
}
.weather-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: #415d78;
  padding: 9px 11px;
  margin: 12px 0;
  border-radius: 7px;
}
.schedule {
  list-style: none;
  line-height: 1.8;
}
.schedule li {
  border-bottom: 1px solid #64797f;
  padding: 4px 0;
}
.schedule .past {
  color: #c2d4cb;
}
.schedule .clash {
  color: #ffc5a6;
}
.picnic-tools button:focus-visible {
  z-index: 2;
}
.town-clock {
  display: block;
  font: 700 0.91rem var(--pixel);
  color: #ffe4b9;
  margin-bottom: 6px;
}
.town-square {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  margin-bottom: 11px;
  border: 1px solid #c9b594;
  background: #8caa95;
}
.town-square .map-cat {
  cursor: pointer;
  transition: transform 0.58s ease-in-out;
}
.map-cat text,
.place-label {
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 900;
  text-anchor: middle;
}
.place-label {
  font-size: 14px;
  fill: #463e43;
  paint-order: stroke;
  stroke: #f6e6c6;
  stroke-width: 3px;
}
.map-cat text {
  font-size: 11px;
  fill: #f9efdb;
}
.cat-tag {
  fill: #435363;
  stroke: #d6dcc4;
}
.map-cat.knows .cat-tag {
  fill: #f6dca2;
  stroke: #ad885f;
}
.map-cat.knows text {
  fill: #443c45;
}
.map-cat[aria-pressed='true'] .cat-tag,
.map-cat:focus-visible .cat-tag {
  stroke: #a44835;
  stroke-width: 3px;
}
.roster {
  margin: 10px 0 5px;
}
.roster button {
  padding: 4px 8px;
  font-size: 0.8rem;
}
.private-log {
  margin: 6px 0 0;
}
.private-log h3 {
  font:
    700 19px Georgia,
    serif;
  margin: 0;
}
.private-log p,
.private-log ol {
  margin: 6px 0;
}
.private-log i {
  color: #eaca9b;
}
.tallies {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.tallies label {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  border: 1px solid #819796;
  padding: 6px;
  border-radius: 6px;
}
.tallies select {
  font: inherit;
  background: #fff1d8;
  color: #44394a;
  border-radius: 4px;
  min-height: 34px;
}
.souvenir {
  text-align: center;
  padding: 14px;
}
.souvenir .stamp {
  margin: 0 auto 14px;
}
.souvenir small {
  color: #ffcca1;
}
.souvenir h2 {
  margin: 6px;
}
.souvenir button,
.souvenir a {
  margin: 4px;
}
.souvenir .picnic-tools {
  justify-content: center;
}
@media (max-width: 850px) {
  .outing-list {
    grid-template-columns: 1fr;
  }
  .outing-card {
    padding: 10px 14px;
  }
  .p-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(238px, 1fr);
  }
  .invite {
    padding: 24px;
  }
  .invite h1 {
    font-size: 52px;
  }
}
@media (max-width: 690px) {
  .picnic-poster,
  .p-layout {
    grid-template-columns: 1fr;
  }
  .picnic-poster {
    margin-top: 15px;
  }
  .picnic-poster img {
    min-height: 0;
    height: auto;
    max-height: 245px;
    aspect-ratio: 1.7;
  }
  .invite {
    padding: 19px 22px;
  }
  .invite h1 {
    font-size: 44px;
  }
  .invite .seal-icon {
    float: right;
    width: 34px;
    height: 34px;
    margin: 4px 0 0 10px;
  }
  .invite .overline {
    margin: 4px 0;
  }
  .invite p:not(.overline) {
    margin: 7px 0 11px;
  }
  .out-tabs a {
    padding: 5px 9px;
  }
  .top nav {
    justify-content: start;
    gap: 13px;
  }
  .memory-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .memory-row > button {
    grid-column: 2/4;
    justify-self: start;
    padding: 4px 10px;
  }
  .p-layout {
    gap: 10px;
  }
  .pinboard {
    grid-template-columns: 1fr;
  }
  .town-square {
    min-width: 0;
  }
  .tallies label {
    flex: 1;
    min-width: 65px;
  }
  .timebar {
    font-size: 0.82rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .town-square .map-cat {
    transition: none;
  }
}

.ribbons-board {
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid #778795;
}
.ribbons-board h3 {
  margin: 0;
  font:
    700 23px Georgia,
    serif;
}
.ribbons-board svg {
  display: block;
  width: 100%;
  margin: 6px 0;
  border-radius: 9px;
  background: #243848;
}
.r-node rect {
  fill: #384b5b;
  stroke: #9ba4a6;
}
.r-node.heard rect {
  fill: #f6dba5;
  stroke: #c09974;
}
.r-node.picked rect {
  stroke: #ea9b90;
  stroke-width: 3;
}
.r-node text,
.r-edge text {
  text-anchor: middle;
  font:
    800 12px Nunito,
    sans-serif;
  fill: #fff0d7;
}
.r-node.heard text {
  fill: #473945;
}
.r-edge path {
  stroke: #b39e8d;
  stroke-width: 1.8;
  fill: none;
}
.r-edge.active path {
  stroke: #ffd391;
  stroke-width: 3;
}
.r-edge.repeat path {
  stroke-dasharray: 3 3;
}
.r-edge text {
  font-size: 10px;
  fill: #ffe1b3;
  paint-order: stroke;
  stroke: #243848;
  stroke-width: 3px;
}
