:root {
  --ootd-ink: #171c20;
  --ootd-muted: rgba(23, 28, 32, .58);
  --ootd-line: rgba(23, 28, 32, .14);
  --ootd-paper: rgba(245, 248, 249, .72);
  --ootd-solid: #eef2f3;
}

body.page-ootd {
  min-height: 100svh;
  color: var(--ootd-ink);
  background: #b8c5ce;
}

.page-ootd [hidden] {
  display: none !important;
}

body.page-ootd .site-header {
  background: rgba(184, 197, 206, .82);
  border-bottom-color: rgba(23, 28, 32, .08);
  backdrop-filter: blur(16px) saturate(1.08);
}

body.page-ootd .site-footer {
  border-top-color: rgba(23, 28, 32, .12);
}

.ootd-page,
.ootd-dialog,
.ootd-post-viewer,
.ootd-toast,
.ootd-page button,
.ootd-page input,
.ootd-page textarea,
.ootd-dialog button,
.ootd-dialog input,
.ootd-dialog textarea,
.ootd-post-viewer button,
.ootd-post-viewer textarea {
  font-family: "Space Grotesk", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.ootd-page button,
.ootd-dialog button,
.ootd-post-viewer button {
  color: inherit;
}

.ootd-page {
  width: min(1320px, calc(100vw - 64px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 126px 0 96px;
}

.ootd-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ootd-line);
}

.ootd-kicker {
  margin: 0 0 8px;
  color: var(--ootd-muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.ootd-mast h1 {
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-size: 92px;
  font-weight: 760;
  line-height: .82;
}

.ootd-mast__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ootd-account,
.ootd-share {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--ootd-line);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease);
}

.ootd-account {
  background: rgba(255, 255, 255, .25);
}

.ootd-page .ootd-share {
  color: #fff;
  background: var(--ootd-ink);
}

.ootd-account:hover,
.ootd-share:hover {
  transform: translateY(-2px);
}

.ootd-account:hover {
  background: rgba(255, 255, 255, .48);
}

.ootd-share:hover {
  background: #2c353b;
}

.ootd-share svg,
.ootd-icon-button svg,
.ootd-card__action svg,
.ootd-comment-submit svg,
.ootd-delete-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ootd-feed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 14px;
  color: var(--ootd-muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.ootd-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ootd-card {
  min-width: 0;
  overflow: hidden;
  background: var(--ootd-paper);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 6px;
  box-shadow: 0 16px 38px rgba(31, 43, 51, .08), inset 0 1px 0 rgba(255, 255, 255, .34);
  backdrop-filter: blur(12px);
}

.ootd-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: #8d9aa3;
  border: 0;
  border-radius: 0;
}

.ootd-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--snap), filter 220ms var(--ease);
}

.ootd-card:hover .ootd-card__media img {
  transform: scale(1.018);
}

.ootd-card__content {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.ootd-card__head,
.ootd-card__author,
.ootd-card__actions {
  display: flex;
  align-items: center;
}

.ootd-card__head {
  justify-content: space-between;
  gap: 12px;
}

.ootd-card__author {
  min-width: 0;
  gap: 9px;
}

.ootd-card__identity {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.ootd-card__identity strong,
.ootd-card__identity time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ootd-card__identity strong {
  font-size: 12px;
  font-weight: 800;
}

.ootd-card__identity time {
  color: var(--ootd-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.ootd-card__actions {
  flex: 0 0 auto;
  gap: 3px;
}

.ootd-card__action,
.ootd-delete-button {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 7px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.ootd-card__action:hover,
.ootd-delete-button:hover {
  background: rgba(23, 28, 32, .07);
  border-color: rgba(23, 28, 32, .08);
}

.ootd-card__action[aria-pressed="true"] {
  color: #a73545;
}

.ootd-card__copy {
  display: grid;
  gap: 7px;
}

.ootd-card__copy h2,
.ootd-card__copy p {
  margin: 0;
  overflow-wrap: anywhere;
}

.ootd-card__copy h2 {
  font-size: 19px;
  font-weight: 760;
  line-height: 1.12;
}

.ootd-card__copy p {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(23, 28, 32, .68);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ootd-avatar {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #303a41;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.ootd-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ootd-avatar--card {
  width: 34px;
  height: 34px;
}

.ootd-avatar--account {
  width: 25px;
  height: 25px;
  margin-left: -5px;
  font-size: 7px;
}

.ootd-avatar--preview {
  width: 56px;
  height: 56px;
  font-size: 13px;
}

.ootd-skeleton {
  min-height: 410px;
  overflow: hidden;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
}

.ootd-skeleton i,
.ootd-skeleton span,
.ootd-skeleton b {
  display: block;
  background: rgba(255, 255, 255, .34);
  animation: ootd-pulse 1.4s ease-in-out infinite alternate;
}

.ootd-skeleton i {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.ootd-skeleton span {
  width: 42%;
  height: 12px;
  margin: 18px 14px 12px;
}

.ootd-skeleton b {
  width: 68%;
  height: 22px;
  margin: 0 14px;
}

@keyframes ootd-pulse {
  from { opacity: .45; }
  to { opacity: .9; }
}

.ootd-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-top: 1px solid var(--ootd-line);
  border-bottom: 1px solid var(--ootd-line);
  text-align: center;
}

.ootd-empty[hidden] {
  display: none;
}

.ootd-empty strong {
  font-size: 28px;
  font-weight: 750;
}

.ootd-empty span {
  color: var(--ootd-muted);
  font-size: 12px;
}

.ootd-empty button,
.ootd-load-more {
  min-height: 40px;
  margin-top: 12px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--ootd-line);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.ootd-load-more {
  display: block;
  margin: 24px auto 0;
}

.ootd-load-more[hidden] {
  display: none;
}

.ootd-dialog,
.ootd-post-viewer {
  padding: 0;
  overflow: hidden;
  color: var(--ootd-ink);
  background: rgba(238, 242, 243, .96);
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(16, 22, 26, .28);
  backdrop-filter: blur(22px) saturate(1.08);
}

.ootd-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100svh - 32px);
  padding: 22px;
  overflow-y: auto;
}

.ootd-dialog::backdrop,
.ootd-post-viewer::backdrop {
  background: rgba(16, 21, 24, .38);
  backdrop-filter: blur(5px);
}

.ootd-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.ootd-dialog__head > div {
  display: grid;
  gap: 3px;
}

.ootd-dialog__head span {
  color: var(--ootd-muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.ootd-dialog__head h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 760;
  line-height: 1;
}

.ootd-icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  background: rgba(255, 255, 255, .32);
  border: 1px solid var(--ootd-line);
  border-radius: 5px;
}

.ootd-icon-button:hover {
  background: rgba(255, 255, 255, .68);
}

.ootd-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  padding: 3px;
  background: rgba(23, 28, 32, .07);
  border: 1px solid rgba(23, 28, 32, .08);
  border-radius: 6px;
}

.ootd-segmented button {
  min-height: 36px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.ootd-segmented button.is-active {
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 3px 10px rgba(23, 28, 32, .08);
}

.ootd-form {
  display: grid;
  gap: 12px;
}

.ootd-field {
  position: relative;
  display: grid;
  gap: 7px;
}

.ootd-field > span,
.ootd-avatar-picker strong {
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.ootd-field input,
.ootd-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ootd-ink);
  background: rgba(255, 255, 255, .48);
  border: 1px solid rgba(23, 28, 32, .16);
  border-radius: 5px;
  outline: 0;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.45;
  resize: vertical;
}

.ootd-field input:focus,
.ootd-field textarea:focus {
  background: rgba(255, 255, 255, .8);
  border-color: rgba(23, 28, 32, .48);
  box-shadow: 0 0 0 3px rgba(23, 28, 32, .07);
}

.ootd-field > em {
  position: absolute;
  right: 8px;
  bottom: 6px;
  color: rgba(23, 28, 32, .44);
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
}

.ootd-avatar-picker {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 9px;
  background: rgba(255, 255, 255, .34);
  border: 1px solid rgba(23, 28, 32, .13);
  border-radius: 6px;
  cursor: pointer;
}

.ootd-avatar-picker > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.ootd-avatar-picker em {
  color: var(--ootd-muted);
  font-size: 10px;
  font-style: normal;
}

.ootd-avatar-picker input,
.ootd-image-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.ootd-remove-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ootd-muted);
  font-size: 10px;
  font-weight: 750;
}

.ootd-remove-avatar input {
  width: 16px;
  height: 16px;
  accent-color: var(--ootd-ink);
}

.ootd-form__submit,
.ootd-form__secondary,
.ootd-admin-link {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ootd-form__submit {
  color: #fff !important;
  background: var(--ootd-ink);
  border: 1px solid var(--ootd-ink);
}

.ootd-form__secondary {
  background: transparent;
  border: 1px solid var(--ootd-line);
}

.ootd-admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #303a41;
  border: 1px solid #303a41;
}

.ootd-form__submit:disabled,
.ootd-form__secondary:disabled {
  cursor: wait;
  opacity: .52;
}

.ootd-form__error {
  margin: 0;
  padding: 9px 10px;
  color: #7c2230;
  background: rgba(167, 53, 69, .08);
  border-left: 2px solid #a73545;
  font-size: 11px;
  font-weight: 700;
}

.ootd-image-picker {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  background: rgba(23, 28, 32, .05);
  border: 1px dashed rgba(23, 28, 32, .3);
  border-radius: 6px;
  cursor: pointer;
}

.ootd-image-picker > span {
  display: grid;
  place-items: center;
  gap: 5px;
}

.ootd-image-picker svg {
  width: 28px;
  height: 28px;
  margin-bottom: 3px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.ootd-image-picker strong {
  font-size: 12px;
  font-weight: 800;
}

.ootd-image-picker em {
  color: var(--ootd-muted);
  font-size: 9px;
  font-style: normal;
}

.ootd-image-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ootd-post-viewer {
  width: min(1180px, calc(100vw - 36px));
  height: min(800px, calc(100svh - 40px));
}

.ootd-post-viewer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  color: #fff !important;
  background: rgba(15, 19, 22, .7);
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
}

.ootd-post-viewer__content,
.ootd-post-detail {
  width: 100%;
  height: 100%;
}

.ootd-post-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, .75fr);
}

.ootd-post-detail__media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: 20px;
  background: #14191c;
}

.ootd-post-detail__media img {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ootd-post-detail__side {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.ootd-post-detail__story {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--ootd-line);
}

.ootd-post-detail__story h2,
.ootd-post-detail__story p {
  margin: 0;
  overflow-wrap: anywhere;
}

.ootd-post-detail__story h2 {
  padding-right: 42px;
  font-size: 25px;
  font-weight: 760;
  line-height: 1.08;
}

.ootd-post-detail__story p {
  color: rgba(23, 28, 32, .7);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ootd-post-detail__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ootd-comments {
  min-height: 0;
  overflow-y: auto;
  padding: 8px 22px 18px;
}

.ootd-comments__label {
  display: block;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 0 8px;
  color: var(--ootd-muted);
  background: var(--ootd-solid);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.ootd-comment {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(23, 28, 32, .08);
}

.ootd-comment .ootd-avatar {
  width: 30px;
  height: 30px;
  font-size: 7px;
}

.ootd-comment__body {
  min-width: 0;
}

.ootd-comment__body strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 820;
}

.ootd-comment__body p {
  margin: 0;
  color: rgba(23, 28, 32, .72);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ootd-comment-empty {
  margin: 18px 0;
  color: var(--ootd-muted);
  font-size: 11px;
}

.ootd-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 7px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--ootd-line);
}

.ootd-comment-form textarea {
  min-height: 42px;
  max-height: 110px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--ootd-line);
  border-radius: 5px;
  outline: 0;
  font-size: 12px;
  resize: none;
}

.ootd-comment-submit {
  display: grid;
  width: 40px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: #fff !important;
  background: var(--ootd-ink);
  border: 1px solid var(--ootd-ink);
  border-radius: 5px;
}

.ootd-delete-button {
  color: rgba(23, 28, 32, .48) !important;
}

.ootd-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 14px;
  color: #fff;
  background: rgba(20, 25, 28, .92);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 5px;
  box-shadow: 0 14px 42px rgba(12, 17, 20, .24);
  font-size: 11px;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.ootd-page button:focus-visible,
.ootd-dialog button:focus-visible,
.ootd-post-viewer button:focus-visible,
.ootd-avatar-picker:focus-within,
.ootd-image-picker:focus-within {
  outline: 2px solid rgba(23, 28, 32, .75);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .ootd-page {
    width: min(100% - 24px, 820px);
    padding-top: 112px;
  }

  .ootd-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ootd-post-detail {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  }
}

@media (max-width: 680px) {
  .ootd-page {
    width: calc(100% - 20px);
    padding: 100px 0 64px;
  }

  .ootd-mast {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ootd-mast h1 {
    font-size: 62px;
  }

  .ootd-mast__actions,
  .ootd-account,
  .ootd-share {
    width: 100%;
  }

  .ootd-feed {
    grid-template-columns: 1fr;
  }

  .ootd-card__copy h2 {
    font-size: 21px;
  }

  .ootd-dialog,
  .ootd-post-viewer {
    width: 100vw;
    max-width: none;
    height: 100svh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .ootd-dialog {
    padding: 18px 14px;
  }

  .ootd-post-detail {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 42svh) minmax(0, 1fr);
    overflow-y: auto;
  }

  .ootd-post-detail__media {
    padding: 8px;
  }

  .ootd-post-detail__side {
    min-height: 58svh;
  }

  .ootd-post-detail__story,
  .ootd-comments,
  .ootd-comment-form {
    padding-right: 14px;
    padding-left: 14px;
  }

  .ootd-post-viewer__close {
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 360px) {
  .site-header .nav-actions > a.glasspad-link {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ootd-account,
  .ootd-share,
  .ootd-card__media img {
    transition: none;
  }

  .ootd-skeleton i,
  .ootd-skeleton span,
  .ootd-skeleton b {
    animation: none;
  }
}
