:root {
  color-scheme: dark;
  --paper: #000;
  --surface: #101114;
  --control: #1a1c20;
  --hover: #282b31;
  --ink: #f0f2f5;
  --muted: #a7acb6;
  --rule: #32353d;
  --accent: #77ebd4;
  --violet: #c7a4ff;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font:
    16px/1.5 "Instrument Sans",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
input,
textarea {
  font: inherit;
}
button,
a.btn {
  cursor: pointer;
}
button,
:is(a, input, textarea, iframe, [tabindex]):focus-visible {
  outline-offset: 4px;
}
*:focus-visible {
  outline: 2px solid var(--accent);
}
#mast {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.mast-inner {
  max-width: 1180px;
  padding: 10px 36px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  flex-wrap: wrap;
}
nav,
.brand,
.actions,
.post-meta,
.byline,
.section-heading {
  display: flex;
  align-items: center;
}
.brand {
  text-decoration: none;
  color: var(--accent);
  font: bold 17px/1 var(--mono);
  letter-spacing: -0.5px;
}
.brand span {
  color: var(--violet);
}
.actions {
  gap: 10px;
}
nav {
  gap: clamp(10px, 2.5vw, 20px);
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-inline-start: auto;
}
.nav-text,
.account-action {
  display: inline-flex;
  align-items: center;
  min-block-size: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 17px/1.25 "Instrument Sans", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.nav-text:hover,
.nav-text[aria-current="page"],
.nav-text[aria-pressed="true"],
.account-action:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
}
.nav-icon {
  display: grid;
  place-items: center;
  min-inline-size: 34px;
  min-block-size: 34px;
  border-radius: 8px;
  color: var(--muted);
}
.nav-icon:hover,
.nav-icon[aria-current="page"] {
  color: var(--ink);
  background: var(--hover);
}
.nav-icon[aria-current="page"] {
  box-shadow: inset 0 -1px currentColor;
}
.account {
  position: relative;
}
.account-trigger {
  display: grid;
  place-items: center;
  min-inline-size: 34px;
  min-block-size: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
}
.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  background: transparent;
  outline: 1px solid var(--rule);
}
.account-trigger:focus-visible {
  outline: 2px solid var(--accent);
}
.account-panel {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  display: grid;
  min-inline-size: 8rem;
  max-inline-size: calc(100vw - 24px);
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
}
.account-name {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 13px;
}
.btn,
button {
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--control);
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.4;
}
.btn:hover,
button:hover {
  background: var(--hover);
}
.primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.primary:hover {
  background: #a6f7e7;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main {
  max-width: 748px;
  padding: 0 22px 60px;
  margin: auto;
}
.section-heading {
  margin: 35px 0 21px;
  gap: 11px;
}
.section-heading h1 {
  font-size: 32px;
  letter-spacing: -1.7px;
  line-height: 1.25;
  margin: 0;
}
.section-icon {
  color: var(--accent);
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #12302a;
  border-radius: 8px;
}
.section-icon .icon {
  width: 19px;
}
.post {
  margin-bottom: 20px;
}
.post-meta {
  justify-content: space-between;
  gap: 12px;
  margin: 0 3px 11px;
}
.byline {
  gap: 10px;
  min-width: 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  flex: none;
}
.avatar svg {
  width: 21px;
  height: 21px;
  shape-rendering: crispEdges;
}
.username {
  font-size: 14px;
  font-weight: 700;
}
.byline time {
  font: 11px/1.4 var(--mono);
  color: var(--muted);
}
.postlink {
  font: 11px var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--muted);
  padding: 6px;
}
.postlink:hover {
  text-decoration: underline;
}
.postlink .icon {
  width: 13px;
  height: 13px;
}
.post-slot {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: var(--paper);
  border-radius: 5px;
}
.post-slot.full-post {
  height: auto;
}
.post-slot .post-frame {
  height: 100%;
}
.full-post .post-frame {
  height: 0;
}
.post-preview-more:not([hidden]) {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 68px;
  padding: 8px 12px;
  background: linear-gradient(transparent, var(--paper) 78%);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.post-preview-more:hover,
.post-preview-more:focus-visible,
.tile:hover .post-preview-more,
.tile:focus-within .post-preview-more {
  color: var(--accent);
  text-decoration: underline;
}
.post-preview-more:focus-visible {
  outline-offset: -3px;
}
.post-preview-more:active {
  color: var(--violet);
}
.post-frame {
  display: block;
  width: 100%;
  height: 270px;
  border: 0;
  border-radius: 5px;
  background: var(--paper);
}
.post-footer {
  margin-top: 6px;
  border-top: 1px solid var(--rule);
  padding-top: 3px;
}
.post-actions,
.post-action {
  display: flex;
  align-items: center;
}
.post-actions {
  gap: 6px;
}
.post-action {
  min-block-size: 36px;
  gap: 5px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.post-action:hover {
  color: var(--ink);
  background: var(--hover);
}
.post-action[aria-pressed="true"] {
  color: #ffa1b6;
}
.post-action[aria-pressed="true"] .icon {
  fill: currentColor;
}
.post-action[aria-disabled="true"] {
  cursor: wait;
}
.post-edit {
  margin-inline-start: auto;
}
.post-action-status {
  font-size: 13px;
}
.comments {
  margin: 24px 0;
}
.comments h2 {
  margin: 0 0 12px;
  font-size: 21px;
}
.comment-form {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.comment-form label {
  margin: 0;
}
.comment-form textarea {
  min-height: 88px;
  font: inherit;
}
.comment-form button {
  justify-self: start;
}
.comment-empty {
  color: var(--muted);
  font-size: 14px;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.comment {
  border-top: 1px solid var(--rule);
  padding: 12px 0;
}
.comment-text {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.comment-reply {
  margin-top: 4px;
}
.reply-branch {
  margin-top: 4px;
  padding-inline-start: clamp(10px, 3vw, 22px);
  border-inline-start: 1px solid var(--rule);
}
.reply-branch .reply-branch .reply-branch {
  padding-inline-start: 0;
  border-inline-start: 0;
}
.reply-branch > .comment-list {
  margin: 0;
}
.load-comments[aria-disabled="true"] {
  cursor: wait;
}
.small-link {
  font-size: 13px;
}
.center {
  display: block;
  margin: 18px auto;
}
.notice {
  color: #ffa899;
}
.auth,
.editor,
.leave {
  margin: 48px auto 0;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 12px;
  padding: 26px;
}
.auth,
.leave {
  max-width: 440px;
}
.auth h1,
.editor h1,
.leave h1 {
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 18px;
}
label {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  font-size: 14px;
  font-weight: 600;
}
input,
textarea {
  border: 1px solid #686d79;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 9px 10px;
  width: 100%;
}
textarea {
  min-height: 160px;
  resize: vertical;
  font: 14px/1.5 var(--mono);
}
.auth p,
.leave p {
  font-size: 14px;
}
.auth button {
  margin: 6px 0;
}
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
}
.code-hint {
  overflow-wrap: anywhere;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}
.tools button {
  padding: 6px 10px;
}
.tools [aria-pressed="true"] {
  background: var(--accent);
  color: var(--paper);
}
.editframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.post-size {
  font-size: 14px;
}
.editor .preview {
  border: 1px solid var(--rule);
}
.editor h2 {
  font-size: 17px;
  margin: 18px 0 8px;
}
.editor .actions {
  margin-top: 18px;
}
[hidden] {
  display: none !important;
}
.status:empty {
  display: none;
}
.status {
  font-size: 14px;
}
.leave strong {
  word-break: break-word;
}
.destination {
  font: 12px var(--mono);
  word-break: break-all;
}
.empty {
  color: var(--muted);
}
.wall-page {
  overflow: hidden;
}
.wall-page #mast {
  position: fixed;
  inset-block-start: 16px;
  inset-inline-start: 16px;
  border: 0;
  border-radius: 8px;
}
.wall-nav > button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wall-nav nav {
  position: absolute;
  inset-block-start: calc(100% + 5px);
  inset-inline-start: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-inline-size: 150px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.wall-nav .account-panel {
  inset-inline: 0 auto;
}
.wall-page main {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.wall-viewport {
  height: 100vh;
  height: 100dvh;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: grab;
  background-color: var(--paper);
  background-image: radial-gradient(#272930 1px, transparent 1px);
  background-size: 17px 17px;
}
.dragging {
  cursor: grabbing;
  user-select: none;
}
.feed-tail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 32px;
  color: var(--muted);
  font-size: 14px;
}
.wall-grid {
  --gap: 12px;
  --tile-width: clamp(310px, 32vw, 390px);
  --tile-height: clamp(255px, 36vh, 315px);
  position: relative;
  overflow: clip;
  overflow-anchor: none;
}
.wall-end {
  position: fixed;
  inset: auto 0 1rem;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
}
.wall-coordinates {
  font: 12px var(--mono);
  color: var(--muted);
}
.wall-block {
  position: absolute;
  inset: 0 auto auto 0;
  width: max(100vw, calc(3 * (var(--tile-width) + var(--gap))));
  height: max(100dvh, calc(4 * (var(--tile-height) + var(--gap))));
  transform: translate(calc((var(--origin-x, 0) + var(--x)) * 100%), calc((var(--origin-y, 0) + var(--y)) * 100%));
  padding: calc(var(--gap) / 2);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.tile {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--paper);
  border-radius: 10px;
  padding: 10px;
}
.tile .post-meta {
  flex: none;
}
.tile .post-slot {
  flex: 1;
  min-height: 0;
}
.tile iframe {
  pointer-events: none;
}
.tile > a.cover {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  cursor: inherit;
}
.tile > a:focus-visible {
  outline-offset: 0;
}
.tile .post-footer {
  position: relative;
  flex: none;
  pointer-events: none;
}
.tile .post-action {
  pointer-events: auto;
}
@media (pointer: coarse) {
  .post-action,
  .comment-form button {
    min-block-size: 44px;
  }
}
@media (max-width: 560px) {
  .mast-inner {
    padding: 8px 12px;
  }
  .btn,
  button {
    padding: 7px 10px;
  }
  main {
    padding: 0 12px 35px;
  }
  .section-heading {
    margin: 25px 2px 15px;
  }
  .section-heading h1 {
    font-size: 28px;
  }
  .byline {
    gap: 7px;
  }
  .byline time {
    font-size: 10px;
  }
  .post-meta {
    margin: 1px 1px 9px;
  }
  .auth,
  .editor,
  .leave {
    margin-top: 22px;
    padding: 18px;
  }
}
