* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eae7de;
  color: #fff;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8vw;
  min-height: 100dvh;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #dcf797;
  outline-offset: 4px;
}
.desktop {
  color: #213b32;
  max-width: 400px;
}
.desktop > span {
  font-size: 10px;
  letter-spacing: 3px;
}
.desktop h1 {
  font:
    54px/1.08 Georgia,
    serif;
  font-weight: 400;
}
.desktop p {
  font-size: 13px;
}
.desktop small {
  display: block;
  margin-top: 50px;
  line-height: 1.9;
  color: #69776d;
}
main {
  position: relative;
  isolation: isolate;
  width: 430px;
  height: min(900px, 96dvh);
  background: #213b32;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 25px 70px #213b3240;
}
#photo,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
#photo {
  transition: opacity 0.25s;
}
.shade {
  z-index: -1;
  background: linear-gradient(
    180deg,
    #001c2070 0%,
    transparent 33%,
    #032322b0 59%,
    #071f1ff5 100%
  );
}
header {
  padding: 14px 18px 0;
}
#progress {
  display: flex;
  gap: 3px;
}
#progress button {
  height: 12px;
  padding: 5px 0;
  flex: 1;
  background: none;
  position: relative;
}
#progress button:before,
#progress button:after {
  content: "";
  display: block;
  height: 2px;
  border-radius: 3px;
  position: absolute;
  top: 5px;
  left: 0;
  background: #ffffff50;
  width: 100%;
}
#progress button:after {
  background: #fff;
  width: 0;
}
#progress .done:after {
  width: 100%;
}
#progress .current:after {
  width: var(--fill, 100%);
}
.top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.top > button:not(.identity) {
  font-size: 22px;
  background: #072d2945;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.identity {
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 0;
  margin-right: auto;
  font-size: 14px;
}
.identity small {
  display: block;
  font-size: 10px;
  opacity: 0.8;
  margin-top: 4px;
}
.avatar {
  display: grid;
  place-items: center;
  border: 1px solid #ffffffa0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font: italic 23px Georgia;
  background: #244f42;
}
.place {
  position: absolute;
  top: 140px;
  left: 25px;
  font-size: 10px;
  letter-spacing: 3px;
  writing-mode: vertical-rl;
}
.copy {
  position: absolute;
  bottom: 72px;
  left: 26px;
  right: 26px;
  max-height: calc(100% - 190px);
  overflow-y: auto;
  scrollbar-width: none;
}
.eyebrow {
  font-size: 9px !important;
  letter-spacing: 1.6px;
  line-height: 1.7 !important;
  color: #e0edcc;
}
h2 {
  font:
    400 clamp(40px, 6vh, 57px)/0.99 Georgia,
    serif;
  letter-spacing: -1.8px;
  margin: 15px 0 18px;
}
h2 em {
  color: #e2efc8;
  font-weight: 400;
}
.copy > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.65;
  max-width: 340px;
  margin-bottom: 17px;
}
#extra {
  font-size: 10px;
  color: #d7e3d7;
  margin: 16px 0 22px;
  line-height: 1.6;
}
#extra strong {
  display: block;
  color: #fff;
  font: 32px Georgia;
  margin-bottom: 2px;
}
.route {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.route span {
  border: 1px solid #ffffff50;
  border-radius: 20px;
  padding: 7px 11px;
}
.primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-radius: 30px;
  padding: 15px 19px;
  background: #dfefb6;
  color: #18392d;
  font-size: 12px;
  font-weight: bold;
}
.primary span {
  font-size: 20px;
  font-weight: normal;
}
footer {
  position: absolute;
  bottom: 15px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer button {
  background: none;
  font: 30px Georgia;
  width: 40px;
  height: 36px;
}
footer button:disabled {
  opacity: 0.25;
  cursor: default;
}
#counter {
  font-size: 9px;
  letter-spacing: 2px;
  color: #cbd9d3;
}
dialog {
  border: 0;
  padding: 0;
  color: #19372e;
  background: #f5f3ea;
  border-radius: 23px;
  max-width: 430px;
  width: calc(100% - 24px);
  max-height: 85dvh;
  box-shadow: 0 20px 60px #0005;
}
dialog::backdrop {
  background: #021c20a6;
  backdrop-filter: blur(5px);
}
.sheet-head {
  position: sticky;
  top: 0;
  background: #f5f3eaf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #19372e20;
  z-index: 2;
}
.sheet-head span {
  font-size: 10px;
  letter-spacing: 2px;
}
.sheet-head button {
  color: #19372e;
  background: none;
  font-size: 28px;
}
#sheet-content {
  padding: 8px 24px 28px;
  font-size: 14px;
  line-height: 1.7;
}
#sheet-content h3 {
  font: 34px/1.1 Georgia;
  margin: 22px 0;
}
#sheet-content h4 {
  font-size: 14px;
  margin-bottom: 5px;
}
#sheet-content a {
  color: #365e38;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#sheet-content ul {
  padding-left: 19px;
}
.note {
  font-size: 11px;
  color: #66746c;
  border-top: 1px solid #d8ddd1;
  padding-top: 15px;
  margin-top: 25px;
}
.line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid #19372e18;
}
.line b {
  white-space: nowrap;
}
.chapter {
  width: 100%;
  color: #19372e;
  background: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #19372e18;
}
.chapter img {
  width: 55px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
}
.chapter span small {
  display: block;
  font-size: 10px;
  color: #708075;
  margin-top: 5px;
}
.chapter > small {
  margin-left: auto;
}
.pill {
  display: inline-block;
  background: #e2e9d1;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
}
@media (max-width: 760px) {
  body {
    background: #142e28;
  }
  .desktop {
    display: none;
  }
  main {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  header {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  footer {
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .copy {
    bottom: calc(67px + env(safe-area-inset-bottom));
  }
  dialog {
    margin: auto auto 0;
    max-width: 600px;
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}
@media (max-height: 680px) {
  h2 {
    font-size: 39px;
  }
  .copy > p:not(.eyebrow) {
    font-size: 12px;
  }
  .copy {
    bottom: 55px;
    max-height: calc(100% - 145px);
  }
  #extra {
    margin: 10px 0;
  }
  .place {
    top: 115px;
  }
  .primary {
    padding: 11px 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
/* Readable mobile type, including dates and prices. */
.copy > p:not(.eyebrow),
#sheet-content {
  font-size: 16px;
}
.eyebrow {
  font-size: 12px !important;
}
.place {
  font-size: 12px;
  letter-spacing: 2px;
}
#extra,
.primary {
  font-size: 14px;
}
.identity small,
.note,
.pill,
.chapter span small,
#counter,
.sheet-head span {
  font-size: 12px;
}
.copy {
  max-height: calc(100% - 145px);
}

/* Keep the friends visible below the memories title. */
main[data-chapter="memorias"] .copy {
  top: 112px;
  bottom: auto;
}
main[data-chapter="memorias"] .copy h2 {
  font-size: 40px;
}
main[data-chapter="memorias"] .shade {
  background: linear-gradient(
    180deg,
    #122b42cc 0%,
    #122b4280 30%,
    transparent 60%
  );
}
body {
  background: #e8edf0;
}
.desktop {
  color: #223d53;
}
.avatar {
  background: #2c4a65;
}
.copy > p:not(.eyebrow) {
  font-size: 16px;
}
.eyebrow {
  font-size: 14px !important;
  letter-spacing: 1px;
}
#extra,
.primary,
.desktop p {
  font-size: 14px;
}
.identity small,
#counter,
.desktop > span {
  font-size: 12px;
}
.place {
  display: none;
}
